:root {
  --cream: #faf6f0;
  --pine: #21402e;
  --pine-deep: #1a3324;
  --cream-soft: #f3ecdd;
  --card: #ffffff;
  --ink: #2b2723;
  --muted: #7a716a;
  --sage: #7f926f;
  --terra: #c2724f;
  --terra-dark: #a85c3d;
  --line: #e9e0d4;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(43, 39, 35, 0.06), 0 12px 32px rgba(43, 39, 35, 0.07);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--terra-dark); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--pine);
  text-decoration: none;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 26px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.site-nav a:hover { border-color: var(--terra); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.hero-img {
  width: 100%;
  height: min(66vh, 560px);
  object-fit: cover;
  border-radius: calc(var(--radius) + 6px);
}

.hero-card {
  position: relative;
  background: var(--pine);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
  max-width: 620px;
  margin: -120px auto 0;
  text-align: center;
}

.hero-card h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.2rem);
  line-height: 1.12;
  margin: 10px 0 14px;
  color: var(--cream-soft);
}

.hero-card .kicker { color: #b9cdae; }

.hero-sub { color: rgba(243, 236, 221, 0.85); margin: 0 0 24px; }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0;
}

.btn {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover { background: var(--terra-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover { background: var(--card); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 64px 24px 8px; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.1rem;
  margin: 0 0 26px;
  color: var(--pine);
}

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card:hover img { transform: scale(1.05); }

.cat-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(250, 246, 240, 0.95);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Post cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.post-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(43, 39, 35, 0.08), 0 18px 44px rgba(43, 39, 35, 0.1);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card-body { padding: 20px 22px 22px; }

.post-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 8px 0 8px;
}

.excerpt { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }

.meta { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- About strip ---------- */
.about-strip {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  margin-top: 64px;
  margin-bottom: 64px;
}

.about-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-strip .section-title { margin-bottom: 12px; }

.about-strip p { color: var(--muted); margin-top: 0; }

@media (max-width: 720px) {
  .about-strip { grid-template-columns: 1fr; }
  .hero-card { padding: 26px 22px; margin-top: -60px; }
}

/* ---------- Post page ---------- */
.post { padding-top: 48px; padding-bottom: 48px; max-width: 780px; }

.post-header { text-align: center; margin-bottom: 28px; }

.post-header h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  margin: 10px 0 10px;
  color: var(--pine);
}

.post-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}

.prose { font-size: 1.05rem; }

.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  margin: 40px 0 12px;
  line-height: 1.25;
  color: var(--pine);
}

.prose p { margin: 0 0 18px; }

.prose a {
  color: var(--terra-dark);
  text-decoration-color: rgba(194, 114, 79, 0.4);
  text-underline-offset: 3px;
  font-weight: 500;
}

.prose a:hover { text-decoration-color: var(--terra-dark); }

.prose img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 28px auto;
}

.prose em:first-child { color: var(--muted); font-size: 0.9rem; }

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.prose blockquote {
  border-left: 3px solid var(--sage);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-style: italic;
}

.post-footer { margin-top: 48px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: none;
  margin-top: 64px;
  background: var(--pine-deep);
  color: var(--cream-soft);
}

.site-footer .brand { color: var(--cream-soft); }
.site-footer .footer-brand p { color: rgba(243, 236, 221, 0.75); }
.site-footer .footer-links a { color: rgba(243, 236, 221, 0.85); }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-newsletter-title { color: var(--cream-soft); }
.site-footer .footer-small p { color: rgba(243, 236, 221, 0.55); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 8px;
}

.footer-brand { max-width: 380px; }

.footer-brand p { color: var(--muted); font-size: 0.95rem; }

.footer-links { display: flex; gap: 22px; }

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links a:hover { color: var(--terra-dark); }

.footer-newsletter { max-width: 300px; }

.footer-newsletter-title { font-weight: 600; margin: 0 0 10px; }

.footer-newsletter-form { display: flex; gap: 8px; }

.footer-newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.footer-newsletter-btn { padding: 10px 16px; font-size: 0.9rem; white-space: nowrap; }

.footer-small {
  padding-bottom: 26px;
}

.footer-small p { color: var(--muted); font-size: 0.82rem; margin: 8px 0 0; }

/* ---- Conversion: Top Pick box ---- */
.pick {
  background: linear-gradient(180deg, #ffffff, #fbf7f1);
  border: 1px solid var(--line);
  border-left: 5px solid var(--terra);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.pick-badge {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terra-dark);
  background: rgba(194, 114, 79, 0.1);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.pick-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0 0 5px;
}
.pick-why { color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }
.pick-btn {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.pick-btn:hover { background: var(--terra-dark); color: #fff; transform: translateY(-1px); }

/* ---- In-article newsletter box ---- */
.post-newsletter { margin: 36px 0 8px; }
.post-newsletter .footer-newsletter-form { max-width: 420px; margin-top: 4px; }
.post-newsletter .footer-newsletter-input { background: #fff; }

/* ---- Conversion: comparison table ---- */
.prose .table-wrap { overflow-x: auto; margin: 24px 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose thead th {
  background: #f3ede3;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.prose tbody tr:hover { background: #fbf7f1; }

/* Save-to-Pinterest button (added 2026-08-05) — gives readers a way to SAVE,
   which is the quality signal Pinterest ranks on. */
.pin-save { margin: 30px 0 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-pin { background: #e60023; }
.btn-pin:hover { background: #c8001e; }
.pin-save-hint { font-size: 0.9rem; opacity: 0.7; }
