/* =========================================================
   ASTRAHERB — The Moonlit Apothecary
   (theme: sovereign-terminal)
   ========================================================= */

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

:root {
  --paper:   #f4eddc;
  --paper-2: #ebe1c9;
  --paper-3: #fbf7ec;
  --forest:  #24392d;
  --forest-2:#1a2a20;
  --sage:    #8fa98a;
  --moss:    #4f6b52;
  --ink:     #22302a;
  --muted:   #5f6b61;
  --gold:    #b58a3c;
  --gold-lt: #e8d29c;
  --error:   #a3412f;

  --line:      rgba(36,57,45,.18);
  --line-2:    rgba(36,57,45,.25);
  --line-gold: rgba(181,138,60,.4);

  --font-headline: 'Playfair Display', Georgia, serif;
  --font-body:     'Karla', system-ui, sans-serif;

  --container-w: 1120px;
  --gutter:      24px;
  --header-h:    78px;
  --section-py:  110px;
}

html { scroll-behavior: smooth; height: 100%; }
html.nav-locked { overflow: hidden; }
body {
  font-family: var(--font-body);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(36,57,45,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.site-main { flex: 1 0 auto; }

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--moss); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-headline); font-weight: 400; line-height: 1.1; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

.small {
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  line-height: 1.6;
}
.small--light { color: var(--gold-lt); }

.btn {
  display: inline-block;
  background: var(--forest);
  color: var(--paper);
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--moss); color: var(--paper); }

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,237,220,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header--scrolled { box-shadow: 0 6px 24px -12px rgba(36,57,45,.25); }

.header-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo .custom-logo-link { display: flex; align-items: center; }
.header-logo img { max-height: 46px; width: auto; object-fit: contain; }
.site-title-text,
.footer-logo__name,
.nav-menu__brand {
  font-family: var(--font-headline);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}
.site-title-text:hover,
.footer-logo__name:hover { color: var(--forest); }

.header-nav { margin-left: auto; }
.header-nav .nav-list { display: flex; list-style: none; gap: 28px; }
.header-nav .nav-list a {
  display: block;
  color: var(--ink);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
}
.header-nav .nav-list > li > a::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.header-nav .nav-list > li > a:hover { color: var(--forest); }
.header-nav .nav-list > li > a:hover::before { transform: scaleX(1); }

/* Desktop dropdown */
.header-nav .nav-list > li { position: relative; }
.header-nav .nav-list li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  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 .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px;
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 32px -12px rgba(36,57,45,.3);
  padding: 8px 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 {
  padding: 9px 20px;
  font-size: .78rem;
  white-space: nowrap;
}
.header-nav .nav-list .sub-menu a:hover { background: var(--paper-2); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
/* "Letters" — plain nav-style link, same look as the menu items */
.btn--newsletter {
  display: inline-block;
  position: relative;
  margin-left: 4px; /* + header gap 24px = same 28px rhythm as the menu */
  padding: 6px 0;
  color: var(--ink);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn--newsletter::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.btn--newsletter:hover { color: var(--forest); }
.btn--newsletter:hover::before { transform: scaleX(1); }

.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: color .2s;
}
.burger-btn:hover { color: var(--gold); }

/* Mobile nav backdrop + drawer (slides from right) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,42,32,.45);
  z-index: 299;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.nav-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(36,57,45,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), visibility .35s;
  box-shadow: -8px 0 32px rgba(26,42,32,.18);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-menu.is-open { transform: translateX(0); visibility: visible; }
.nav-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding: 0 14px 0 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.nav-menu__brand { font-size: 1.45rem; }
.nav-menu__brand .custom-logo-link { display: block; line-height: 0; }
.nav-menu__brand .custom-logo { max-height: 40px; width: auto; }
.nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: color .2s;
}
.nav-close:hover { color: var(--gold); }
.nav-menu__body { padding: 12px 0; }
.nav-menu .menu { list-style: none; }
.nav-menu .menu li a {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.35rem;
  color: var(--ink);
  padding: 12px 24px;
  border-bottom: 1px dashed var(--line);
}
.nav-menu .menu li a:hover { color: var(--moss); background: var(--paper-2); }
.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: "";
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  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(--paper-2); }
.nav-menu .menu li.menu-item-has-children.is-open > .sub-menu { display: block; }
.nav-menu .menu .sub-menu a { font-family: var(--font-body); font-size: .95rem; padding: 10px 24px 10px 38px; }
.nav-menu__subscribe {
  margin-top: auto;
  padding: 20px 24px 28px;
  flex-shrink: 0;
}
.nav-menu__subscribe .btn { display: block; }

/* ── FRONT PAGE: shared section bits ──────────────────── */
.home-sec { padding: var(--section-py) 0; }
.home-sec--cycle { padding-bottom: 40px; }
.home-sec--letter { padding-top: 0; }

.sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.sec-head h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 14px 0; }
.sec-head p { color: var(--muted); }

/* ── HERO ─────────────────────────────────────────────── */
.hero { padding: 70px 0 100px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero__title { font-size: clamp(2.8rem, 7vw, 6rem); margin: 20px 0 24px; }
.hero__title i { color: var(--moss); }
.hero__lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 470px;
  margin-bottom: 34px;
}
.hero__art { position: relative; max-width: 440px; width: 100%; margin: 0 auto; }
.hero__art svg { width: 100%; height: auto; display: block; overflow: visible; }
.sway { transform-origin: 220px 480px; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(2deg); } }

/* ── TONIGHT'S MOON ───────────────────────────────────── */
.moon-sec {
  background: var(--forest);
  color: var(--paper);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.moon-sec__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff8, transparent),
    radial-gradient(1px 1px at 30% 80%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 70% 30%, #fff8, transparent),
    radial-gradient(1px 1px at 85% 70%, #fff6, transparent),
    radial-gradient(1px 1px at 50% 10%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 92% 12%, #fff8, transparent),
    radial-gradient(1px 1px at 18% 62%, #fff5, transparent),
    radial-gradient(1px 1px at 62% 88%, #fff5, transparent);
}
.moon-sec__grid {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 70px;
  align-items: center;
}
.moon-disc {
  width: 280px;
  height: 280px;
  filter: drop-shadow(0 0 50px rgba(244,237,220,.25));
}
.moon-sec__title { font-size: clamp(2.2rem, 5vw, 4rem); margin: 14px 0 6px; }
.moon-sec__phase {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-lt);
  min-height: 1.5em;
}
.moon-sec__illum { opacity: .7; font-size: .9rem; letter-spacing: .1em; margin: 4px 0 26px; min-height: 1.5em; }
.ritual { border: 1px solid rgba(244,237,220,.25); padding: 30px; max-width: 560px; }
.ritual .small { margin-bottom: 10px; }
.ritual__title { font-size: 1.8rem; margin-bottom: 8px; }
.ritual__text { opacity: .85; }
.ritual__note { margin-top: 14px; font-size: .85rem; opacity: .65; }

/* ── LUNAR CYCLE ──────────────────────────────────────── */
.cycle {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.cphase {
  text-align: center;
  padding: 18px 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.35);
  transition: background .3s, border-color .3s;
  line-height: 1.35;
}
.cphase:hover { border-color: var(--line-gold); }
.cphase.is-now { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.cphase svg { width: 44px; height: 44px; margin: 0 auto 10px; display: block; }
.cphase b {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cphase span { font-family: var(--font-headline); font-style: italic; font-size: .95rem; }

/* ── ALMANAC ──────────────────────────────────────────── */
.almanac {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.herb {
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 40px 34px;
  position: relative;
  transition: background .35s;
}
.herb:hover { background: var(--paper-2); }
.herb__icon {
  position: absolute;
  top: 28px; right: 30px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(36,57,45,.22));
  transition: transform .35s;
}
.herb:hover .herb__icon { transform: translateY(-2px) scale(1.08); }
.herb__no { font-family: var(--font-headline); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.herb__name { font-size: 2rem; margin: 8px 0 2px; padding-right: 48px; }
.herb__latin { font-style: italic; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.herb__text { font-size: .96rem; }
.herb__care {
  margin-top: 14px;
  padding-top: 10px;
  font-size: .82rem;
  color: var(--moss);
  border-top: 1px dashed rgba(36,57,45,.3);
}

/* ── LETTER / NEWSLETTER ──────────────────────────────── */
.letter {
  background: var(--paper-2);
  padding: 80px 50px;
  text-align: center;
  border: 1px solid var(--line);
  position: relative;
}
.letter::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line-gold);
  pointer-events: none;
}
.letter__title { font-size: clamp(2rem, 5vw, 3.6rem); margin: 12px 0; }
.letter__sub { color: var(--muted); max-width: 520px; margin: 0 auto; }
.letter__form { max-width: 520px; margin: 30px auto 0; position: relative; z-index: 1; }

/* ── CONTACT FORM 7 (shared: letter + sidebar) ────────── */
.wpcf7-spinner { display: none; }
.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  font-size: .88rem;
  text-align: center;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--moss);
  color: var(--moss);
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.15rem;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--error); color: var(--error); }
.wpcf7-not-valid-tip { display: none !important; }

.wpcf7 input[type="email"],
.wpcf7 input[type="text"] {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--forest);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="text"]::placeholder { color: var(--muted); opacity: .8; }
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="text"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.wpcf7 input.wpcf7-not-valid { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }

.wpcf7 input[type="submit"] {
  background: var(--forest);
  color: var(--paper);
  border: 1px solid var(--forest);
  border-radius: 0;
  padding: 15px 32px;
  font-family: inherit;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.4;
  cursor: pointer;
  transition: background .3s, border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 input[type="submit"]:hover { background: var(--moss); border-color: var(--moss); }
.wpcf7 input[type="submit"]:disabled { opacity: .6; cursor: default; }

/* Email + button joined in one row; the raw <br> is suppressed */
.wpcf7 .form-fields p { display: flex; flex-wrap: wrap; margin: 0; }
.wpcf7 .form-fields p br { display: none; }
.wpcf7 .form-fields .wpcf7-form-control-wrap { flex: 1 1 240px; min-width: 0; }
.wpcf7 .form-fields input[type="submit"] { flex: 0 0 auto; }

/* Consent checkbox */
.wpcf7 .form-privacy { margin-top: 16px; }
.wpcf7 .form-privacy p { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--muted); text-align: left; }
.wpcf7 .form-privacy a { color: var(--moss); text-decoration: underline; text-underline-offset: 2px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.wpcf7 .wpcf7-list-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 3px;
  accent-color: var(--forest);
}
.wpcf7 .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label {
  text-decoration: underline;
  text-decoration-color: var(--error);
  text-underline-offset: 2px;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  padding: 0 0 48px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
.footer-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 0 48px;
  color: var(--gold);
}
.footer-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold) 25%, var(--line-gold) 75%, transparent);
}
.footer-divider__mark { width: 40px; height: 24px; flex-shrink: 0; }

.footer-logo { display: flex; justify-content: center; }
.footer-logo .custom-logo-link { display: block; }
.footer-logo img { max-height: 44px; width: auto; object-fit: contain; }
.footer-disclaimer { max-width: 640px; margin: 14px auto 0; line-height: 1.7; }

.footer-nav { margin-top: 22px; }
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
}
.footer-nav-list a {
  color: var(--ink);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-nav-list a:hover { color: var(--gold); }
.footer-copy { margin: 18px auto 0; font-size: .8rem; opacity: .85; }
.footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ── INNER PAGES: shared ──────────────────────────────── */
.section-pad { padding: 72px 0; }

.chip {
  display: inline;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
}
.chip:hover { color: var(--moss); }
.chip + .chip::before { content: " · "; color: var(--muted); }

/* Post cards (archive, search, related) */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.recipe-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-3);
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.recipe-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(36,57,45,.35);
}
.recipe-card__img-wrap { position: relative; flex-shrink: 0; }
.recipe-card__img-link { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.recipe-card__img,
.recipe-card__img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.recipe-card__img-placeholder {
  background:
    radial-gradient(circle at 70% 30%, rgba(181,138,60,.25) 0 18%, transparent 19%),
    var(--paper-2);
}
.recipe-card:hover .recipe-card__img { transform: scale(1.04); }
.recipe-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 24px;
}
.recipe-card__date {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 8px;
}
.recipe-card__title {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--ink);
}
.recipe-card__title a { color: inherit; }
.recipe-card__title a:hover { color: var(--moss); }
.recipe-card__excerpt { font-size: .92rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.recipe-card__more {
  margin-top: auto;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--forest);
}
.recipe-card__more:hover { color: var(--gold); }

/* Legacy post tile (index.php) */
.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 {
  display: flex;
  flex-direction: column;
  background: var(--paper-3);
  border: 1px solid var(--line);
  transition: border-color .3s;
}
.post-tile:hover { border-color: var(--line-gold); }
.post-tile__thumb-link { display: block; aspect-ratio: 4/3; overflow: hidden; }
.post-tile__thumb { width: 100%; height: 100%; object-fit: cover; }
.post-tile__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-tile__chips { margin-bottom: 8px; }
.post-tile__title { font-size: 1.35rem; line-height: 1.25; margin-bottom: 10px; }
.post-tile__title a { color: var(--ink); }
.post-tile__title a:hover { color: var(--moss); }
.post-tile__excerpt { font-size: .92rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.post-tile__meta { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; }

/* Pagination */
.pagination { margin: 56px 0 0; }
.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: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: .85rem;
  letter-spacing: .08em;
  transition: background .2s, color .2s, border-color .2s;
}
.pagination .page-numbers:hover { border-color: var(--forest); color: var(--forest); }
.pagination .page-numbers.current { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.pagination .page-numbers.dots { border: none; min-width: auto; }

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

/* Archive / search */
.archive-main { padding: 64px 0 var(--section-py); }
.archive-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.archive-header__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.archive-header__title span { font-style: italic; color: var(--moss); }
.archive-header__desc { color: var(--muted); margin-top: 14px; }

/* Section divider (single) */
.sect-div { padding: 6px 0; }
.sect-div__inner { display: flex; align-items: center; gap: 18px; }
.sect-div__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold) 25%, var(--line-gold) 75%, transparent);
}
.sect-div__mark { color: var(--gold); font-size: .75rem; line-height: 1; }
.sect-div-single { margin: 64px 0; }

/* ── SINGLE POST ──────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--gold);
  z-index: 9999;
}
.single-main { padding: 56px 0 var(--section-py); }
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}
.article-header { margin-bottom: 32px; }
.article-header__title { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.12; }
.article-hero { margin: 0 0 40px; }
.article-hero__img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border: 1px solid var(--line); }
.article-hero__caption { font-size: .82rem; color: var(--muted); text-align: center; padding-top: 8px; font-style: italic; }

.entry-content { font-size: 1.06rem; line-height: 1.8; color: var(--ink); overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 1.6em; margin-bottom: .2em; line-height: 1.2; }
.entry-content h2 { font-size: 1.9rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.2rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--gold); }
.entry-content a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gold); }
.entry-content img { margin: 1.6em 0; height: auto; }
.entry-content figure { margin-left: 0; margin-right: 0; max-width: 100%; }
.entry-content blockquote {
  margin: 2em 0;
  padding: 1.2em 1.6em;
  border-left: 2px solid var(--gold);
  background: var(--paper-2);
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--forest);
}
.entry-content blockquote p { margin: 0; }
.entry-content code { background: var(--paper-2); padding: 2px 6px; font-size: .88em; }
.entry-content hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th,
.entry-content td { border: 1px solid var(--line-2); padding: 8px 12px; text-align: left; }
.entry-content iframe,
.entry-content video { max-width: 100%; }

/* Sidebar */
.single-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.admin-bar .single-sidebar { top: calc(var(--header-h) + 56px); }
.sidebar-panel { border: 1px solid var(--line-2); background: var(--paper-3); }
.sidebar-panel__heading {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.side-article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px dashed var(--line);
}
.side-article:last-child { border-bottom: none; }
.side-article__thumb-link { flex-shrink: 0; width: 72px; height: 72px; overflow: hidden; display: block; }
.side-article__thumb { width: 100%; height: 100%; object-fit: cover; }
.side-article__body { flex: 1; min-width: 0; }
.side-article__title { font-size: 1.02rem; line-height: 1.3; margin: 0 0 6px; }
.side-article__title a { color: var(--ink); }
.side-article__title a:hover { color: var(--moss); }
.side-article__date { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; }

.sidebar-sub {
  margin-top: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  position: relative;
}
.sidebar-sub::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-gold);
  pointer-events: none;
}
.sidebar-sub__inner { padding: 30px 24px; position: relative; z-index: 1; }
.sidebar-sub__eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.sidebar-sub__title { font-size: 1.5rem; line-height: 1.15; margin-bottom: 8px; }
.sidebar-sub__desc { font-size: .88rem; color: var(--muted); margin-bottom: 18px; line-height: 1.55; }
.sidebar-sub .wpcf7 .form-fields p { flex-direction: column; gap: 10px; }
.sidebar-sub .wpcf7 .form-fields .wpcf7-form-control-wrap { flex: none; }
.sidebar-sub .wpcf7 input[type="email"] { padding: 12px 14px; font-size: .92rem; }
.sidebar-sub .wpcf7 input[type="submit"] { width: 100%; padding: 13px 20px; }
.sidebar-sub .wpcf7 .form-privacy p { font-size: .75rem; }

/* Related posts */
.related-section { padding-bottom: 0; }
.related-section__header { text-align: center; margin-bottom: 44px; }
.recipes-section__eyebrow {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.related-section__heading { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 12px; }
.related-section .recipes-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.related-section .recipe-card__title { font-size: 1.15rem; }

/* ── STATIC PAGE ──────────────────────────────────────── */
.page-main { padding: 64px 0 var(--section-py); }
.page-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-header__title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero { margin: 0 0 40px; }
.page-hero__img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }

/* ── 404 ──────────────────────────────────────────────── */
.error-main { padding: 80px 0 var(--section-py); }
.error-page { text-align: center; }
.error-page__code {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(6rem, 20vw, 10rem);
  color: var(--gold);
  opacity: .45;
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}
.error-page__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.error-page__desc { color: var(--muted); max-width: 500px; margin: 0 auto 36px; }
.error-page__actions { margin-bottom: 64px; }
.error-recent { max-width: 520px; margin: 0 auto; text-align: left; }
.error-recent__heading {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.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 dashed var(--line);
}
.error-recent__list a { font-family: var(--font-headline); font-size: 1.1rem; color: var(--ink); flex: 1; }
.error-recent__list a:hover { color: var(--moss); }
.error-recent__list time { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .single-layout { grid-template-columns: 1fr; gap: 56px; }
  .single-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .sidebar-sub { margin-top: 0; }
  .recipes-grid,
  .post-grid--3,
  .related-section .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --section-py: 80px; --header-h: 68px; }

  .header-nav { display: none; }
  .burger-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }

  .hero { padding: 48px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero__lead { margin: 0 auto 34px; }
  .hero__art { max-width: 340px; }

  .moon-sec__grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .moon-disc { margin: 0 auto; width: 240px; height: 240px; }
  .ritual { margin: 0 auto; }

  .sec-head { margin-bottom: 44px; }
  .cycle { grid-template-columns: repeat(4, 1fr); }
  .almanac { grid-template-columns: 1fr 1fr; }
  .herb { padding: 34px 28px; }
}

@media (max-width: 640px) {
  :root { --section-py: 64px; --gutter: 18px; }

  .header-inner { gap: 12px; }
  .header-logo img { max-height: 38px; }
  .site-title-text { font-size: 1.45rem; }
  .btn--newsletter { display: none; }

  .hero { padding: 36px 0 56px; }
  .hero__title { margin: 14px 0 18px; }
  .hero__lead { font-size: 1.02rem; margin-bottom: 28px; }
  .hero__art { max-width: 260px; }
  .hero .btn { display: block; width: 100%; }

  .moon-disc { width: 200px; height: 200px; }
  .moon-sec__phase { font-size: 1.35rem; }
  .moon-sec__illum { letter-spacing: .04em; }
  .ritual { padding: 24px 20px; }
  .ritual__title { font-size: 1.55rem; }

  .cycle { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cphase { padding: 16px 8px; }

  .almanac { grid-template-columns: 1fr; }
  .herb { padding: 30px 22px; }
  .herb__icon { top: 26px; right: 20px; font-size: 1.8rem; }
  .herb__name { font-size: 1.8rem; }

  .letter { padding: 56px 22px; }
  .letter::before { inset: 8px; }
  .wpcf7 .form-fields p { gap: 10px; }
  .wpcf7 .form-fields .wpcf7-form-control-wrap,
  .wpcf7 .form-fields input[type="submit"] { flex: 1 1 100%; width: 100%; }

  .footer-divider { padding-bottom: 36px; }
  .site-footer { padding-bottom: 36px; }

  .recipes-grid,
  .post-grid--3,
  .post-grid--2,
  .related-section .recipes-grid { grid-template-columns: 1fr; }
  .single-sidebar { grid-template-columns: 1fr; }
  .single-main,
  .archive-main,
  .page-main { padding-top: 40px; }
  .archive-header { margin-bottom: 40px; }
  .sect-div-single { margin: 48px 0; }
  .error-recent__list li { flex-direction: column; gap: 2px; }
}

@media (max-width: 380px) {
  .cphase b { font-size: .64rem; letter-spacing: .06em; }
  .cphase span { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sway { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
