/* =========================================================
   SOVEREIGN-TERMINAL — Healthy Food Blog Theme
   ========================================================= */

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand — Mindful Earth Tones */
  --accent:           #C1602E; /* terracotta */
  --accent-hover:     #9C4A22; /* terracotta, deeper */
  --accent-light:     #F0C9A8; /* terracotta tint */
  --bg-warm:          #F3E9D8; /* warm sand */
  --surface:          #FBF6EC; /* cream */

  /* Palette aliases used directly by the redesigned sections */
  --sand:             #F3E9D8;
  --sand-deep:        #E9D9BC;
  --cream:            #FBF6EC;
  --terracotta:       #C1602E;
  --terracotta-dark:  #9C4A22;
  --terracotta-tint:  #F0C9A8;
  --clay:             #6E4A34;
  --moss:             #6B7654;
  --gold:             #C98A2C;

  /* Text */
  --on-surface:       #3B2A22; /* ink */
  --on-surface-muted: #7A6656; /* ink, muted */
  --on-accent:        #ffffff;
  --ink:              #3B2A22;
  --ink-muted:        #7A6656;

  /* Borders & radius */
  --border:           #DFCBA8;
  --radius:           8px;
  --radius-img:       16px;
  --radius-card:      14px;

  /* Typography */
  --font-headline: "Fraunces", Georgia, serif;
  --font-body:     "Lato", system-ui, sans-serif;
  --font-script:   "Caveat", cursive;

  /* Layout */
  --container-w: 1200px;
  --section-py:  72px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── UTILITY ──────────────────────────────────────────── */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  border: 2px solid transparent;
  line-height: 1;
}
.btn--accent  { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--on-accent); }

.section-heading { margin-bottom: 40px; }
.section-heading--center { text-align: center; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 6px;
}
.section-eyebrow--inv { color: var(--terracotta-tint); }
.section-title {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.2;
}
.section-title--inv { color: var(--cream); }
.section-sub {
  margin-top: 10px;
  color: var(--on-surface-muted);
  font-size: 1.05rem;
}
.section-sub--inv { color: rgba(251,246,236,.62); }

/* ── TOP BAR ──────────────────────────────────────────── */
.top-bar {
  background: var(--ink);
  text-align: center;
  padding: 9px 16px;
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .03em;
}

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sand);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.site-header--scrolled { box-shadow: 0 4px 16px rgba(59,42,34,.09); }
.header-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 24px;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.header-logo { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.header-logo img { height: 50px; width: auto; object-fit: contain; }
.header-logo .custom-logo-link { display: flex; align-items: center; }
.header-logo .site-title-text {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-headline);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
}
.site-title-mark { display: inline-flex; flex-shrink: 0; }
.header-nav { justify-self: center; }
.header-nav .nav-list { display: flex; list-style: none; gap: 6px; }
.header-nav .nav-list a {
  position: relative;
  display: inline-block;
  color: var(--on-surface);
  font-size: .92rem;
  font-weight: 600;
  padding: 8px 14px;
  transition: color .2s;
}
.header-nav .nav-list a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='6' viewBox='0 0 20 6'%3E%3Cpath d='M0 3c2-3 4-3 5 0s3 3 5 0 3-3 5 0 3 3 5 0' fill='none' stroke='%23C1602E' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 20px 6px;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .2s, transform .2s;
}
.header-nav .nav-list a:hover { color: var(--accent); }
.header-nav .nav-list a:hover::after { opacity: 1; transform: translateY(0); }

/* Desktop dropdown */
.header-nav .nav-list > li {
  position: relative;
}
.header-nav .nav-list > li > a.menu-item-has-children-toggle::after,
.header-nav .nav-list li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform .2s;
}
.header-nav .nav-list li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
.header-nav .nav-list li.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.header-nav .nav-list li.menu-item-has-children:hover .sub-menu,
.header-nav .nav-list li.menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.header-nav .nav-list .sub-menu a {
  display: block;
  padding: 9px 18px;
  font-size: .87rem;
  color: var(--on-surface);
  border-radius: 0;
  background: none;
  white-space: nowrap;
}
.header-nav .nav-list .sub-menu a:hover { color: var(--accent); background: var(--accent-light); }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.header-search-btn, .burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--on-surface);
  padding: 8px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.header-search-btn:hover, .burger-btn:hover { color: var(--accent); background: var(--accent-light); }
.burger-btn { display: none; }

/* Search Bar */
.header-search-bar {
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
  padding: 12px 0;
  display: flex;
  justify-content: center;
}
.header-search-bar[hidden] { display: none; }
.header-search-bar .search-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: var(--container-w);
  padding-inline: 24px;
}
.header-search-bar input[type="search"] {
  flex: 1;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  background: var(--surface);
  color: var(--on-surface);
  transition: border-color .2s;
  min-width: 0;
}
.header-search-bar input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193,96,46,.15);
}
.header-search-bar input[type="search"]::placeholder { color: var(--on-surface-muted); opacity: .7; }
.header-search-bar button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 12px 28px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.header-search-bar button[type="submit"]:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.header-search-bar button[type="submit"] svg { display: block; }

/* Mobile nav backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 299;
}
.nav-backdrop.is-open { display: block; }

/* Mobile nav drawer — slides from left */
.nav-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--bg-warm);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 32px rgba(0,0,0,.16);
  overflow-y: auto;
}
.nav-menu.is-open { transform: translateX(0); }
.nav-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-menu__brand {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--on-surface);
}
.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--on-surface);
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, background .2s;
}
.nav-close:hover { color: var(--accent); background: var(--accent-light); }
.nav-menu__body { padding: 8px 0; }

/* Mobile nav dropdown: items expand inline */
.nav-menu .menu li.menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-menu .menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  flex-shrink: 0;
  transition: transform .25s;
}
.nav-menu .menu li.menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
}
.nav-menu .menu .sub-menu {
  display: none;
  list-style: none;
  background: var(--accent-light);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.nav-menu .menu li.menu-item-has-children.is-open > .sub-menu {
  display: block;
}
.nav-menu .menu .sub-menu a {
  padding: 10px 24px 10px 32px;
  font-size: .93rem;
  border-left-color: transparent;
}
.nav-menu .menu { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-menu .menu li a {
  display: block;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  color: var(--on-surface);
  padding: 14px 24px;
  border-left: 3px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-menu .menu li a:hover {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}
.nav-menu__subscribe {
  padding: 20px 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-menu__subscribe .btn { display: block; text-align: center; }

/* ── THE TRAILHEAD — Hero ─────────────────────────────── */
.hero-trail-section {
  background: var(--sand);
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-trail-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; color: var(--terracotta); }
.hero-trail-blob {
  position: absolute;
  border-radius: 44% 56% 62% 38% / 48% 40% 60% 52%;
  background: var(--terracotta-tint);
  opacity: .55;
  filter: blur(2px);
}
.hero-trail-blob--a { width: 380px; height: 340px; top: -140px; right: -80px; }
.hero-trail-blob--b { width: 220px; height: 200px; bottom: -90px; left: -60px; opacity: .4; }
.hero-trail-contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; }

/* Kicker row */
.hero-trail-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  flex-wrap: wrap;
}
.hero-trail-kicker__mark { display: inline-flex; color: var(--accent); }
.hero-trail-kicker__rule {
  display: block;
  width: 34px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}
.hero-trail-kicker__edition {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .85rem;
  color: var(--on-surface-muted);
}

/* ── HERO LAYOUT: lead dispatch + waypoint list ── */
.hero-trail-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
  align-items: start;
}

/* Shared trail pill (category chip) reused across new sections */
.trail-pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-headline);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 999px;
  margin-bottom: 12px;
  transition: background .2s;
}
.trail-pill:hover { background: var(--accent-hover); color: #fff; }
.trail-pill--sm { font-size: .62rem; padding: 3px 11px; }

/* Lead dispatch card */
.lead-dispatch {
  position: relative;
  border-radius: 28px 28px 28px 6px;
  overflow: hidden;
  background: var(--clay);
  box-shadow: 0 18px 40px rgba(59,42,34,.16);
}
.lead-dispatch__img-link {
  display: block;
  aspect-ratio: 5/4;
  overflow: hidden;
  clip-path: ellipse(78% 92% at 50% 8%);
}
.lead-dispatch__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.lead-dispatch:hover .lead-dispatch__img { transform: scale(1.045); }
.lead-dispatch__placeholder { width: 100%; height: 100%; background: var(--terracotta-tint); }
.lead-dispatch__badge {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-headline);
  font-style: italic;
  font-size: .8rem;
  padding: 5px 16px;
  border-radius: 999px;
  z-index: 2;
}
.lead-dispatch__body { padding: 26px 30px 30px; background: var(--cream); }
.lead-dispatch__title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.18;
  margin-bottom: 12px;
}
.lead-dispatch__title a { color: inherit; }
.lead-dispatch__title a:hover { color: var(--accent); }
.lead-dispatch__excerpt {
  font-size: .95rem;
  color: var(--on-surface-muted);
  line-height: 1.62;
  margin-bottom: 20px;
  max-width: 48ch;
}
.lead-dispatch__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.lead-dispatch__date {
  font-family: var(--font-headline);
  font-size: .8rem;
  font-style: italic;
  color: var(--on-surface-muted);
}
.lead-dispatch__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  transition: gap .2s, color .2s;
}
.lead-dispatch__cta:hover { color: var(--accent-hover); gap: 10px; }

/* ── WAYPOINT LIST — dotted trail connector ── */
.waypoint-list {
  position: relative;
  padding: 22px 0 6px 26px;
}
.waypoint-list__label {
  display: block;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: 18px;
}
.waypoint {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-left: 2px dotted var(--border);
  padding-left: 22px;
  margin-left: -1px;
}
.waypoint:last-child { border-left-color: transparent; margin-bottom: 0; padding-bottom: 0; }
.waypoint__node {
  position: absolute;
  left: -7px; top: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--accent);
}
.waypoint__thumb-link {
  flex: 0 0 60px;
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  border: 2px solid var(--cream);
  box-shadow: 0 2px 8px rgba(59,42,34,.12);
}
.waypoint__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.waypoint:hover .waypoint__thumb { transform: scale(1.08); }
.waypoint__thumb-placeholder { display: block; width: 100%; height: 100%; background: var(--terracotta-tint); }
.waypoint__body { flex: 1; min-width: 0; padding-top: 2px; }
.waypoint__cat {
  display: block;
  font-family: var(--font-headline);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 3px;
}
.waypoint__title {
  font-family: var(--font-headline);
  font-size: .95rem;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.32;
  margin-bottom: 4px;
}
.waypoint__title a { color: inherit; }
.waypoint__title a:hover { color: var(--accent); }
.waypoint__date {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: .78rem;
  color: var(--on-surface-muted);
}

/* ── TRUST RIBBON ─────────────────────────────────────── */
.trust-ribbon {
  background: var(--accent);
  color: var(--terracotta);
  position: relative;
  padding: 8px 0;
}
.trust-ribbon__wave { display: block; width: 100%; height: 20px; }
.trust-ribbon__wave--top { margin-bottom: -1px; }
.trust-ribbon__wave--bottom { margin-top: -1px; }
.trust-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 20px 24px;
}
.trust-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.trust-stat__num {
  font-family: var(--font-headline);
  font-size: 1.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.trust-stat__label {
  font-size: .76rem;
  color: rgba(255,255,255,.82);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.btn--ribbon {
  background: var(--cream);
  color: var(--accent);
}
.btn--ribbon:hover { background: #fff; color: var(--accent-hover); }

/* ── THE TRAILHEAD SHELF — unique leaning layout ──────── */
.shelf-section {
  padding: var(--section-py) 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.shelf-bg-contours {
  position: absolute;
  inset: 0;
  opacity: .5;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, transparent 0 38px, var(--sand-deep) 38px 39px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.shelf-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 34px;
  position: relative;
  z-index: 1;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 0 96%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0 96%, transparent 100%);
}
.shelf-card {
  scroll-snap-align: start;
  flex: 0 0 240px;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(59,42,34,.1);
  border: 1px solid var(--border);
  transition: transform .3s;
}
.shelf-row .shelf-card:nth-child(odd)  { transform: translateY(-10px) rotate(-1.1deg); }
.shelf-row .shelf-card:nth-child(even) { transform: translateY(6px) rotate(1.3deg); }
.shelf-row .shelf-card:hover { transform: translateY(-16px) rotate(0deg); }
.shelf-card__img-link { display: block; aspect-ratio: 4/3; overflow: hidden; }
.shelf-card__img, .shelf-card__img-placeholder {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.shelf-card__img-placeholder { background: var(--terracotta-tint); }
.shelf-card:hover .shelf-card__img { transform: scale(1.05); }
.shelf-card__body { padding: 16px 16px 20px; }
.shelf-card__title {
  font-family: var(--font-headline);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.3;
  margin-bottom: 8px;
}
.shelf-card__title a { color: inherit; }
.shelf-card__title a:hover { color: var(--accent); }
.shelf-card__date {
  display: block;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: .78rem;
  color: var(--on-surface-muted);
}
.shelf-line {
  position: relative;
  z-index: 1;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 8%, var(--accent) 92%, transparent);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.recipe-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-warm);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
/* Image wrapper — positions the overlay pill */
.recipe-card__img-wrap {
  position: relative;
  flex-shrink: 0;
}
/* Category pill on image — top left corner */
.recipe-card__cat--img {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  pointer-events: auto;
}
.recipe-card__img-link { display: block; aspect-ratio: 4/3; overflow: hidden; }
.recipe-card__img, .recipe-card__img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.recipe-card__img-placeholder { background: var(--accent-light); }
.recipe-card:hover .recipe-card__img { transform: scale(1.04); }
/* Card body — flex-grow fills full remaining card height so bg is consistent */
.recipe-card__body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Date line */
.recipe-card__date {
  display: block;
  font-family: var(--font-headline);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--on-surface-muted);
  margin-bottom: 6px;
}
/* Category pill — same pattern as mosaic-pill */
.recipe-card__cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-headline);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 9px;
  transition: background .2s;
}
.recipe-card__cat:hover { background: var(--accent-hover); color: #fff; }
.recipe-card__title {
  font-family: var(--font-headline);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-surface);
  margin-bottom: 8px;
}
.recipe-card__title a { color: inherit; }
.recipe-card__title a:hover { color: var(--accent); }
/* Excerpt */
.recipe-card__excerpt {
  font-size: .85rem;
  color: var(--on-surface-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}
/* Read More link */
.recipe-card__more {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  margin-top: auto;
  transition: color .2s;
}
.recipe-card__more:hover { color: var(--accent-hover); }

/* ── THE FOUR ROOTS — zigzag timeline ─────────────────── */
.roots-section {
  background: var(--ink);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.roots-timeline {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding: 20px 0;
}
.roots-timeline__trunk {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background-image: linear-gradient(180deg, var(--terracotta-tint) 0 8px, transparent 8px 16px);
  background-size: 2px 16px;
  transform: translateX(-1px);
}
.root-item {
  position: relative;
  width: 50%;
  padding: 0 40px 56px;
}
.root-item:last-child { padding-bottom: 0; }
.root-item--left  { left: 0; text-align: right; }
.root-item--right { left: 50%; text-align: left; }
.root-item__node {
  position: absolute;
  top: 2px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-headline);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px var(--ink);
}
.root-item--left .root-item__node  { right: -18px; }
.root-item--right .root-item__node { left: -18px; }
.root-item__card {
  background: rgba(251,246,236,.05);
  border: 1px solid rgba(251,246,236,.1);
  border-radius: 16px;
  padding: 22px 24px;
  transition: background .25s;
}
.root-item__card:hover { background: rgba(251,246,236,.08); }
.root-item__tag {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--terracotta-tint);
  background: rgba(193,96,46,.22);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.root-item__title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 8px;
}
.root-item__text {
  font-size: .88rem;
  color: rgba(251,246,236,.58);
  line-height: 1.7;
}

/* ── MAP THE TERRAIN — lead tile + symmetrical grid ───── */
.terrain-section {
  padding: var(--section-py) 0;
  background: var(--sand);
}
.terrain-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: 170px;
  gap: 18px;
  background-image: radial-gradient(var(--border) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  border-radius: 24px;
  padding: 16px;
}
.terrain-tile {
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 4px 16px rgba(59,42,34,.12);
  transition: transform .25s, border-radius .25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
/* First tile is the lead — larger, everything else shares one equal size */
.terrain-grid .terrain-tile:first-child { grid-column: 1; grid-row: 1 / 3; }
.terrain-tile:hover {
  transform: translateY(-4px) scale(1.02);
  border-radius: 24px;
}
.terrain-tile__img-wrap { flex: 1; overflow: hidden; background: var(--terracotta-tint); }
.terrain-tile__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s;
}
.terrain-tile:hover .terrain-tile__img { transform: scale(1.08); }
.terrain-tile__placeholder {
  width: 100%; height: 100%;
  background: var(--terracotta-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.terrain-tile__title {
  font-family: var(--font-headline);
  font-size: .95rem;
  font-weight: 600;
  color: var(--on-surface);
  padding: 12px 14px 14px;
  text-align: center;
  line-height: 1.3;
  transition: color .2s;
}
.terrain-tile:hover .terrain-tile__title { color: var(--accent); }

/* ── FIELD INDEX — numbered ledger list ───────────────── */
.field-index-section {
  padding: var(--section-py) 0;
  background: var(--sand-deep);
}
.ledger-list {
  border-top: 1px solid var(--border);
}
.ledger-row {
  display: grid;
  grid-template-columns: 56px 64px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.ledger-row:hover { background: rgba(251,246,236,.55); }
.ledger-row__num {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--terracotta-tint);
  -webkit-text-stroke: 1px var(--accent);
}
.ledger-row__thumb-link {
  display: block;
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.ledger-row__thumb, .ledger-row__thumb-placeholder {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--terracotta-tint);
}
.ledger-row__body { min-width: 0; }
.ledger-row__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.3;
  margin-bottom: 4px;
}
.ledger-row__title a { color: inherit; }
.ledger-row__title a:hover { color: var(--accent); }
.ledger-row__excerpt {
  font-size: .85rem;
  color: var(--on-surface-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ledger-row__cat {
  font-family: var(--font-headline);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  white-space: nowrap;
}
.ledger-row__cat:hover { color: var(--accent-hover); }
.ledger-row__date {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: .82rem;
  color: var(--on-surface-muted);
  white-space: nowrap;
}

/* ── TESTIMONIALS ─────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-warm);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
/* Faint large script watermark */
.testimonials-section::before {
  content: 'Readers';
  position: absolute;
  right: -10px; bottom: -30px;
  font-family: var(--font-script);
  font-size: 11rem;
  color: var(--accent-light);
  opacity: 0.5;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
/* Split header row */
.testimonials-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 44px;
}
.testimonials-header__eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 8px;
}
.testimonials-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.2;
  margin: 0;
  max-width: 26ch;
}
.testimonials-header__sub {
  max-width: 32ch;
  color: var(--on-surface-muted);
  font-size: .97rem;
  line-height: 1.65;
  padding-top: 4px;
  flex-shrink: 0;
}
/* Cards grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
/* First card — accent variant */
.testimonial-card--accent {
  background: var(--accent);
  border-color: var(--accent);
}
/* Large decorative opening quote */
.testimonial-card__quote-mark {
  font-family: var(--font-script);
  font-size: 4.5rem;
  line-height: .7;
  color: var(--accent-light);
  user-select: none;
}
.testimonial-card--accent .testimonial-card__quote-mark {
  color: rgba(255,255,255,.3);
}
.testimonial-card__text {
  font-size: .97rem;
  color: var(--on-surface);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-card--accent .testimonial-card__text { color: rgba(255,255,255,.92); }
/* Footer row: avatar + name/meta + stars */
.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.testimonial-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2.5px solid var(--accent-light);
}
.testimonial-card--accent .testimonial-card__avatar {
  border-color: rgba(255,255,255,.5);
}
.testimonial-card__name {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: .95rem;
  color: var(--on-surface);
  line-height: 1.2;
}
.testimonial-card--accent .testimonial-card__name { color: #fff; }
.testimonial-card__meta {
  display: block;
  font-size: .78rem;
  color: var(--on-surface-muted);
  line-height: 1.3;
  margin-top: 2px;
}
.testimonial-card--accent .testimonial-card__meta { color: rgba(255,255,255,.7); }
.testimonial-card__stars {
  color: #f5c842;
  font-size: .9rem;
  letter-spacing: 1.5px;
  margin-left: auto;
}
.testimonial-card--accent .testimonial-card__stars { color: #f5c842; }

/* ── JOIN THE GROVE — subscription, no image, all stats ── */
.grove-section {
  background: var(--sand);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.grove-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grove-blob {
  position: absolute;
  border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%;
  background: var(--terracotta-tint);
}
.grove-blob--a { width: 340px; height: 300px; top: -120px; left: 55%; opacity: .45; }
.grove-blob--b { width: 200px; height: 180px; bottom: -80px; left: -60px; opacity: .5; }
.grove-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.grove-copy__title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem,2.6vw,2.3rem);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--on-surface);
}
.grove-copy__sub { color: var(--on-surface-muted); margin-bottom: 24px; line-height: 1.6; }
.grove-copy .wpcf7-form { display: flex; flex-direction: column; gap: 12px; }
.grove-copy .wpcf7-form input[type="email"],
.grove-copy .wpcf7-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--on-surface);
}
.grove-copy .wpcf7-form input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 32px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .2s;
}
.grove-copy .wpcf7-form input[type="submit"]:hover { background: var(--accent-hover); }

.wpcf7-spinner {
  display: none;
}

/* Form layout: stack email + button with gap, suppress the raw <br> */
.grove-copy .form-fields p {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.grove-copy .form-fields p br { display: none; }
.grove-copy .form-privacy p { margin: 0; font-size: .82rem; color: var(--on-surface-muted); }

/* Validation: red border on invalid email, hide CF7 tip text */
.grove-copy .wpcf7-not-valid-tip { display: none !important; }
.grove-copy .wpcf7-form input.wpcf7-not-valid {
  border-color: #c0392b;
}
/* Red underline on privacy label when acceptance is invalid */
.grove-copy .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label {
  text-decoration: underline;
  text-decoration-color: #c0392b;
  text-underline-offset: 2px;
}

/* Field notebook stat panel */
.grove-notebook {
  background: var(--ink);
  border-radius: 22px;
  padding: 30px 30px 26px;
  color: var(--cream);
}
.grove-notebook__label {
  display: block;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: .95rem;
  color: var(--terracotta-tint);
  margin-bottom: 18px;
}
.grove-notebook__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(251,246,236,.2);
}
.grove-notebook__stat strong {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.15;
}
.grove-notebook__stat span {
  font-size: .76rem;
  color: rgba(251,246,236,.55);
  line-height: 1.4;
}
.grove-notebook__quote {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: .95rem;
  color: rgba(251,246,236,.82);
  line-height: 1.5;
}
.grove-notebook__quote span { display: block; font-style: normal; font-size: .78rem; color: rgba(251,246,236,.5); margin-top: 6px; }

/* ── OUR ROOTS — About, illustration + growth rings ───── */
.about-roots-section {
  background: var(--cream);
  padding: var(--section-py) 0;
}
.about-roots-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-roots-illustration { display: flex; justify-content: center; }
.about-roots-illustration svg { width: 100%; max-width: 260px; height: auto; }
.about-roots-illustration__img {
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 4/4;
  object-fit: cover;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  box-shadow: 0 12px 32px rgba(59,42,34,.16);
}
.about-roots-content__title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem,2.8vw,2.3rem);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--on-surface);
}
.about-roots-content__desc {
  color: var(--on-surface-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  font-size: 1.02rem;
  max-width: 62ch;
}
/* Three pillar cards */
.about-pillars-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}
.about-pillar-new {
  background: var(--sand);
  border-radius: 14px;
  padding: 20px 18px;
  border: 1px solid var(--border);
}
.about-pillar-new strong {
  display: block;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: .95rem;
  color: var(--on-surface);
  margin-bottom: 6px;
}
.about-pillar-new span {
  font-size: .85rem;
  color: var(--on-surface-muted);
  line-height: 1.55;
}
/* Concentric growth-ring stats */
.ring-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.ring-stat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; width: 96px; }
.ring-stat__ring { width: 96px; height: 96px; margin-bottom: 8px; transform: rotate(-90deg); }
.ring-stat__num {
  position: absolute;
  top: 34px;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-surface);
}
.ring-stat__label {
  font-size: .74rem;
  color: var(--on-surface-muted);
  line-height: 1.35;
}

/* ── FOOTER — "Basecamp" ──────────────────────────────── */
.site-footer {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .05;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 15% 20%, transparent 0 34px, rgba(251,246,236,.5) 34px 35px),
    repeating-radial-gradient(circle at 85% 80%, transparent 0 46px, rgba(251,246,236,.5) 46px 47px);
}

/* Top section */
.footer-top {
  padding: 60px 0 52px;
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

/* Brand column */
.footer-brand {
  flex: 0 0 38%;
  max-width: 38%;
}
.footer-brand__logo img { height: 50px; width: auto; }
.footer-brand__logo--custom img { filter: none; opacity: 1; }
.footer-brand__name {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.footer-brand__desc {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.68;
  max-width: 34ch;
  margin-top: 14px;
}

/* Right side: both menus together */
.footer-menus {
  display: flex;
  flex: 1;
  gap: 48px;
}

/* Individual menu column */
.footer-col { flex: 1; }
.footer-col__title {
  font-family: var(--font-headline);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col__list a {
  font-size: .875rem;
  color: rgba(255,255,255,.52);
  transition: color .2s, padding-left .2s;
  display: inline-block;
}
.footer-col__list a:hover { color: #fff; padding-left: 4px; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  position: relative;
  z-index: 1;
}
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.28);
  text-align: center;
  margin: 0;
}

/* ── SHARED INNER-PAGE UTILITIES ─────────────────────── */
.container--narrow {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: 24px;
}
.section-pad { padding: var(--section-py) 0; }

/* Category chip — pill badge matching the trail-pill family */
.chip {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-headline);
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 12px;
  border-radius: 999px;
  transition: background .2s;
}
.chip:hover { background: var(--accent-hover); color: #fff; }

/* ── POST GRID & TILE (archive, index, related) ──────── */
.post-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 56px;
}
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-grid--2 { grid-template-columns: repeat(2, 1fr); }

.post-tile {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.post-tile:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.post-tile__thumb-link { display: block; aspect-ratio: 4/3; overflow: hidden; }
.post-tile__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-tile:hover .post-tile__thumb { transform: scale(1.04); }
.post-tile__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-tile__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.post-tile__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-surface);
  margin-bottom: 8px;
}
.post-tile__title a { color: inherit; }
.post-tile__title a:hover { color: var(--accent); }
.post-tile__excerpt { font-size: .9rem; color: var(--on-surface-muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.post-tile__meta { font-size: .8rem; color: var(--on-surface-muted); display: flex; align-items: center; gap: 8px; }
.post-tile__meta time { }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination { margin-top: 26px; margin-bottom: 72px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  color: var(--on-surface);
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.pagination .page-numbers:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .page-numbers.dots { border: none; background: none; min-width: auto; padding: 0 4px; }

/* ── NO RESULTS ──────────────────────────────────────── */
.no-results { text-align: center; padding: 72px 0; }
.no-results p { font-size: 1.1rem; color: var(--on-surface-muted); margin-bottom: 24px; }

/* ── ARCHIVE / CATEGORY / SEARCH HEADER — cosmetic band ── */
.archive-main { padding: 0 0 80px; }

.archive-header {
  position: relative;
  overflow: hidden;
  background: var(--sand-deep);
  padding: 64px 0 44px;
  margin-bottom: 56px;
}
.archive-header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--border) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 100%);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 100%);
}
.archive-header__blob {
  position: absolute;
  top: -100px; right: -70px;
  width: 280px; height: 240px;
  border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%;
  background: var(--terracotta-tint);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}
.archive-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.archive-header__text { max-width: 640px; }
.archive-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.archive-header__eyebrow svg { flex-shrink: 0; }
.archive-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.15;
  margin-bottom: 12px;
}
.archive-header__title span { color: var(--accent); }
.archive-header__desc {
  color: var(--on-surface-muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}
.archive-header__image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 44% 56% 60% 40% / 50% 44% 56% 50%;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(59,42,34,.16);
  border: 4px solid var(--cream);
}
.archive-header__image-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── SINGLE POST ─────────────────────────────────────── */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width .1s linear;
}

.single-main { padding: 56px 0 80px; }
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

/* Article header */
.article-header { margin-bottom: 32px; }
.article-header__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.article-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--on-surface-muted);
}

/* Featured image */
.article-hero { margin-bottom: 40px; border-radius: var(--radius-img); overflow: hidden; }
.article-hero__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-hero__caption {
  font-size: .8rem;
  color: var(--on-surface-muted);
  text-align: center;
  padding: 8px 0;
  font-style: italic;
}

/* Prose content */
.entry-content {
  color: var(--on-surface);
  font-size: 1.05rem;
  line-height: 1.8;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--on-surface);
  margin: 1.0em 0 .6em;
  line-height: 1.25;
}
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.05rem; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--accent-hover); }
.entry-content img { border-radius: var(--radius-img); margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: var(--bg-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--on-surface-muted);
}
.entry-content blockquote p { margin: 0; }
.entry-content code {
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .88em;
}
.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* Prev / Next post nav */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-nav__prev { text-align: left; }
.article-nav__next { text-align: right; }
.article-nav__label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.article-nav__link {
  font-family: var(--font-headline);
  font-size: .95rem;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.35;
}
.article-nav__link:hover { color: var(--accent); }

/* Related posts (legacy inline — kept for fallback) */
.related-posts { margin-top: 56px; }
.related-posts__heading {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* You May Also Like — full-width section below single layout */
.related-section {
  background: var(--surface);
}
.related-section__header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.related-section__heading {
  font-family: var(--font-headline);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.18;
  margin: 6px 0 0;
}
.related-section .recipes-grid {
  grid-template-columns: repeat(4, 1fr);
}
.sect-div-single {
  margin: 36px 0;
}

/* Sticky sidebar */
.single-sidebar { position: sticky; top: calc(var(--header-h, 64px) + 24px); }

/* Latest Articles panel */
.sidebar-panel {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 0;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  overflow: hidden;
}
.sidebar-panel__heading {
  font-family: var(--font-headline);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin: 0;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
}
.side-article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.side-article:last-child { border-bottom: none; }
.side-article__thumb-link {
  display: block;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
}
.side-article__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.side-article__thumb-link:hover .side-article__thumb { transform: scale(1.05); }
.side-article__body { flex: 1; min-width: 0; }
.side-article__cat {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-headline);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  transition: background .2s, color .2s;
}
.side-article__cat:hover { background: var(--accent); color: #fff; }
.side-article__title {
  font-family: var(--font-headline);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
}
.side-article__title a { color: var(--on-surface); }
.side-article__title a:hover { color: var(--accent); }
.side-article__date {
  font-family: var(--font-headline);
  font-size: .7rem;
  font-weight: 600;
  color: var(--on-surface-muted);
  display: block;
}

/* ── SIDEBAR SUBSCRIPTION PANEL ─────────────────────── */
.sidebar-sub {
  margin-top: 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  overflow: hidden;
  background: var(--bg-warm);
}
.sidebar-sub__inner {
  padding: 24px 20px;
}
.sidebar-sub__eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 10px;
}
.sidebar-sub__title {
  font-family: var(--font-headline);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.25;
  margin: 0 0 8px;
}
.sidebar-sub__desc {
  font-size: .82rem;
  color: var(--on-surface-muted);
  margin: 0 0 18px;
  line-height: 1.5;
}
/* Compact form inside sidebar */
.sidebar-sub .wpcf7-form { display: flex; flex-direction: column; gap: 10px; }
.sidebar-sub .wpcf7-form input[type="email"],
.sidebar-sub .wpcf7-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .88rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
}
.sidebar-sub .wpcf7-form input[type="email"]::placeholder,
.sidebar-sub .wpcf7-form input[type="text"]::placeholder {
  color: var(--on-surface-muted);
}
.sidebar-sub .wpcf7-form input[type="email"]:focus,
.sidebar-sub .wpcf7-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.sidebar-sub .wpcf7-form input[type="submit"] {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s;
}
.sidebar-sub .wpcf7-form input[type="submit"]:hover { background: var(--accent-hover); }
.sidebar-sub .form-fields p { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.sidebar-sub .form-fields p br { display: none; }
.sidebar-sub .form-privacy p { margin: 0; font-size: .75rem; color: var(--on-surface-muted); }
.sidebar-sub .form-privacy a { color: var(--accent); }
.sidebar-sub .wpcf7-not-valid-tip { display: none !important; }
.sidebar-sub .wpcf7-form input.wpcf7-not-valid { border-color: #c0392b; }

/* ── STATIC PAGE ─────────────────────────────────────── */
.page-main { padding: 56px 0 80px; }
.page-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.2;
}
.page-hero { margin-bottom: 40px; border-radius: var(--radius-img); overflow: hidden; }
.page-hero__img { width: 100%; aspect-ratio: 16/6; object-fit: cover; }

/* ── 404 PAGE ────────────────────────────────────────── */
.error-main { padding: 80px 0 100px; }
.error-page { text-align: center; }
.error-page__code {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 600;
  color: var(--sand);
  -webkit-text-stroke: 2px var(--terracotta);
  paint-order: stroke fill;
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .error-page__code { color: var(--terracotta); -webkit-text-stroke: 0; }
}
.error-page__title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 16px;
}
.error-page__desc {
  color: var(--on-surface-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 36px;
}
.error-page__actions { margin-bottom: 64px; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; border-color: var(--accent-hover); }

.error-recent {
  max-width: 500px;
  margin-inline: auto;
  text-align: left;
}
.error-recent__heading {
  font-family: var(--font-headline);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.error-recent__list { list-style: none; }
.error-recent__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.error-recent__list li:last-child { border-bottom: none; }
.error-recent__list a {
  font-weight: 600;
  color: var(--on-surface);
  font-size: .95rem;
  flex: 1;
}
.error-recent__list a:hover { color: var(--accent); }
.error-recent__list time { font-size: .78rem; color: var(--on-surface-muted); white-space: nowrap; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Header — flex so logo stays left, icons stay right */
  .header-inner { display: flex; justify-content: space-between; padding: 0 16px; }
  .header-nav { display: none; }
  .burger-btn { display: flex; }

  .recipes-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero — stack lead + waypoints at tablet */
  .hero-trail-layout { grid-template-columns: 1fr; gap: 32px; }

  /* Grove — stack copy + notebook at tablet */
  .grove-inner { grid-template-columns: 1fr; gap: 36px; }

  /* Roots timeline — collapse zigzag to a single left-aligned column */
  .roots-timeline__trunk { left: 18px; }
  .root-item, .root-item--left, .root-item--right {
    left: 0; width: 100%; text-align: left; padding: 0 0 44px 56px;
  }
  .root-item--left .root-item__node, .root-item--right .root-item__node { left: 0; right: auto; }

  .about-roots-layout { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .about-roots-content__desc { margin-inline: auto; }
  .about-pillars-new { text-align: left; }
  .ring-stats { justify-content: center; }

  /* Inner pages */
  .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  /* Related recipes: 2-col at tablet */
  .related-section .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

  .hero-trail-section { padding: 40px 0 52px; }
  .lead-dispatch__body { padding: 22px 22px 26px; }

  .trust-ribbon__inner { gap: 26px; padding: 24px 20px; }

  /* Terrain — lead becomes a full-width banner, the rest form an even 2x2 below it */
  .terrain-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .terrain-grid .terrain-tile:first-child { grid-column: 1 / 3; grid-row: 1; }

  .ledger-row { grid-template-columns: 40px 52px 1fr; }
  .ledger-row__cat, .ledger-row__date { display: none; }

  .about-pillars-new { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 36px; }
  .footer-brand { flex: none; max-width: 100%; }
  .footer-brand__desc { max-width: 48ch; }
  .footer-menus { width: 100%; gap: 32px; }

  /* Inner pages */
  .post-grid--3 { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; gap: 16px; }
  .article-nav__next { text-align: left; }
  .article-hero__img { aspect-ratio: 4/3; }
  .archive-header { padding: 40px 0 32px; margin-bottom: 40px; }
  .archive-header__inner { flex-direction: column; text-align: center; gap: 20px; }
  .archive-header__text { max-width: 100%; }
  .archive-header__eyebrow { justify-content: center; }
  .archive-header__desc { margin-inline: auto; }
  .archive-header__image { width: 110px; height: 110px; }
}

@media (max-width: 600px) {
  /* Terrain — single column, every tile the same size */
  .terrain-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .terrain-grid .terrain-tile:first-child { grid-column: 1; grid-row: auto; }
}

@media (max-width: 480px) {
  /* Long site titles + the logo mark can crowd out the header actions
     on narrow phones — trim the mark and font-size to keep search/menu visible. */
  .site-title-mark { display: none; }
  .header-logo .site-title-text { font-size: 1.15rem; }
  .header-actions { gap: 4px; }
}

@media (max-width: 560px) {
  .recipes-grid { grid-template-columns: 1fr; }
  .related-section .recipes-grid { grid-template-columns: repeat(2, 1fr); }
  .grove-notebook__stats { grid-template-columns: 1fr; }
}
