/* ============================================================================
   The Discard Jar — design system
   Artisanal-modern bakery editorial. Fraunces (self-hosted variable soft-serif)
   for display, refined system sans for body. Warm layered palette, paper grain,
   wax-seal stamp, generous editorial rhythm. Light default + soft dark mode.
   System-sans body + self-hosted display font: no external/runtime font request.
   ========================================================================== */

/* ---------- Self-hosted Fraunces (variable: opsz 9–144, wght 300–700) ---------- */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/fraunces-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/fraunces-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url(/assets/fonts/fraunces-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url(/assets/fonts/fraunces-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Theme tokens ---------- */
:root {
  --paper:    #FBF6EC;   /* warm flour */
  --paper-2:  #F5EAD6;   /* cards / wells */
  --paper-3:  #EFE0C8;   /* deeper wells */
  --ink:      #2A1E14;   /* espresso */
  --ink-soft: #5E4A36;
  --ink-faint:#7A6044;   /* 5.44:1 on --paper — WCAG AA for small text */
  --line:     #E7D6BC;
  --line-2:   #DCC6A6;
  --terra:    #C0531C;   /* crust terracotta — fills, decor */
  --terra-ink:#9F3F10;   /* accent text/links (AA on flour) */
  --terra-2:  #A8451A;
  --terra-soft:#F3DEC8;  /* accent tint */
  --rye:      #34241A;   /* dark brand block */
  --rye-2:    #2A1C13;
  --honey:    #E6B25C;   /* highlights / seal core */
  --olive:    #6E7456;   /* secondary accent */
  --cream:    #FBF6EC;   /* text on dark blocks */

  --shadow-sm: 0 1px 2px rgba(42,30,20,.06), 0 4px 12px rgba(42,30,20,.05);
  --shadow:    0 2px 6px rgba(42,30,20,.06), 0 16px 40px rgba(42,30,20,.10);
  --shadow-lg: 0 6px 18px rgba(42,30,20,.10), 0 30px 70px rgba(42,30,20,.16);

  --radius: 16px;
  --radius-lg: 26px;
  --wrap: 74rem;
  --measure: 40rem;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* paper-grain noise (inline, no request) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --paper:    #20180F;
  --paper-2:  #2B2015;
  --paper-3:  #372819;
  --ink:      #F4EAD6;
  --ink-soft: #D2BC9C;
  --ink-faint:#9E876A;
  --line:     #3E2D1C;
  --line-2:   #4A3724;
  --terra:    #DD8246;
  --terra-ink:#E9A064;
  --terra-2:  #E08A4F;
  --terra-soft:#33241733;
  --rye:      #160F08;
  --rye-2:    #100A05;
  --honey:    #E6B25C;
  --olive:    #9CA67F;
  --cream:    #F4EAD6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 2px 8px rgba(0,0,0,.4), 0 18px 44px rgba(0,0,0,.5);
  --shadow-lg: 0 10px 50px rgba(0,0,0,.6);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.075rem/1.72 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--terra); color: #fff; }

a { color: var(--terra-ink); text-underline-offset: .18em; text-decoration-thickness: .08em; transition: color .15s ease; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem); font-weight: 600; margin: 0 0 .35em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin: 0 0 .5em; }
h3 { font-size: 1.4rem; margin: 1.7em 0 .4em; }
h4 { font-size: 1.05rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
p { margin: 1.05em 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* Eyebrow / kicker — italic Fraunces, the "editorial" tell */
.eyebrow {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 1.18rem; color: var(--terra-ink); margin: 0 0 .9rem;
  letter-spacing: 0;
}
.overline {
  text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 700;
  color: var(--terra-ink); font-family: var(--font-sans);
}

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--rye); color: var(--cream); padding: .6rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* Global keyboard focus ring — clearly visible against the warm palette, both themes */
:focus-visible { outline: 2px solid var(--terra-ink); outline-offset: 2px; border-radius: 4px; }
.icon-btn:focus-visible, .btn:focus-visible { outline: 2px solid var(--terra-ink); outline-offset: 3px; }

/* ConvertKit honeypot — off-screen, not a layout/announcement target */
.ck-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .92em 1.5em; border-radius: 999px;
  border: 1.5px solid var(--terra-ink); color: var(--terra-ink);
  background: transparent; cursor: pointer; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--terra-soft); color: var(--terra-ink); transform: translateY(-2px); }
.btn-primary {
  background: var(--terra); color: #fff; border-color: var(--terra);
  box-shadow: 0 3px 0 var(--terra-2), 0 10px 24px rgba(192,83,28,.28);
}
.btn-primary:hover { background: var(--terra-2); border-color: var(--terra-2); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 var(--terra-2), 0 16px 30px rgba(192,83,28,.32); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--terra-2); }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-faint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; filter: drop-shadow(0 2px 3px rgba(42,30,20,.12)); }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: .15rem; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 1rem; padding: .55rem .85rem; border-radius: 9px; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.header-actions { display: flex; align-items: center; gap: .55rem; margin-left: .3rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--line-2); background: var(--paper-2); color: var(--ink); border-radius: 12px; cursor: pointer; padding: 0; transition: border-color .15s, color .15s, transform .15s; }
.icon-btn:hover { border-color: var(--terra-ink); color: var(--terra-ink); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; } .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
.nav-toggle { display: none; }

/* ---------- Section rhythm + decorative divider ---------- */
section { position: relative; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 1rem; white-space: nowrap; font-weight: 600; }
.divider { display: block; width: 100%; max-width: 180px; margin: 0 auto; color: var(--line-2); }
.divider svg { width: 100%; height: auto; display: block; }

/* ---------- Hero ---------- */
.hero-panel {
  position: relative; overflow: hidden;
  margin-top: clamp(.9rem, 2vw, 1.6rem);
  min-height: calc(100svh - 96px);   /* fill the viewport below the sticky header */
  display: flex; align-items: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 85% 0%, var(--terra-soft) 0%, transparent 55%),
    linear-gradient(165deg, var(--paper-2) 0%, var(--paper) 60%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.8rem);
}
.hero-panel::after { /* grain */
  content: ""; position: absolute; inset: 0; background-image: var(--grain);
  opacity: .05; mix-blend-mode: multiply; pointer-events: none;
}
:root[data-theme="dark"] .hero-panel::after { mix-blend-mode: screen; opacity: .06; }
.hero-grid { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.25rem, 3.5vw, 2.8rem); align-items: center; }
.hero-copy { max-width: 36rem; }
.hero-copy .eyebrow { font-size: 1.05rem; margin-bottom: .55rem; }
.hero-copy h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.35rem); letter-spacing: -0.03em; margin-bottom: .3em; }
.hero-copy h1 em { font-style: italic; font-weight: 500; color: var(--terra-ink); }
.hero-copy .lede { font-size: clamp(1.02rem, .95rem + .4vw, 1.16rem); line-height: 1.5; color: var(--ink-soft); margin: 0 0 1.25rem; max-width: 32rem; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .jar-illo { width: min(100%, 318px); height: auto; filter: drop-shadow(0 24px 40px rgba(42,30,20,.18)); }

/* Trust row under the form */
.trust { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .95rem; padding: 0; list-style: none; color: var(--ink-soft); font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust svg { width: 17px; height: 17px; color: var(--olive); flex: 0 0 auto; }

/* ---------- Wax-seal stamp ---------- */
.seal { position: absolute; width: clamp(96px, 12vw, 132px); height: clamp(96px, 12vw, 132px); z-index: 2; }
.hero-art .seal { right: -6px; bottom: -10px; }
.seal-svg { width: 100%; height: 100%; overflow: visible; }
.seal-ring { transform-origin: 100px 100px; animation: seal-spin 26s linear infinite; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
.seal-disc { fill: var(--terra); }
.seal-text { fill: var(--cream); font-family: var(--font-sans); font-size: 13.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.seal-core { fill: var(--honey); }
.seal-core-text { fill: var(--rye); font-family: var(--font-display); font-weight: 600; }

/* ---------- Subscribe form ---------- */
.subscribe-block { scroll-margin-top: 90px; }
.ck-form { max-width: 30rem; }
.form-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.ck-form input[type="email"] {
  flex: 1 1 15rem; padding: .95em 1.15em; font-size: 1.02rem; font-family: var(--font-sans);
  border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper);
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.ck-form input[type="email"]::placeholder { color: var(--ink-faint); }
.ck-form input[type="email"]:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-soft); }
.ck-form .fineprint { color: var(--ink-faint); font-size: .85rem; margin-top: .85rem; }
.ck-disabled { background: var(--paper-2); border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 1.1rem 1.3rem; color: var(--ink-soft); font-size: .96rem; max-width: 30rem; }
.ck-disabled code { background: var(--paper-3); padding: .1em .4em; border-radius: 5px; font-size: .9em; }
.sample-link { display: inline-block; margin-top: .85rem; font-size: .96rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.sample-link:hover { color: var(--terra-ink); }
.sample-link em { font-family: var(--font-display); font-style: italic; color: var(--ink); }

/* ---------- "What you get" — editorial numbered steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 1.6rem 1.5rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.step .emoji { font-size: 1.7rem; line-height: 1; display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.18rem; margin: 0 0 .3rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.step .num { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--line-2); }

/* ---------- Recipe cards (recent + archive) ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.4rem; }
.nl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.4rem; }
.nl-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nl-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--terra), var(--honey)); opacity: .85; }
.nl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.nl-card .num { color: var(--terra-ink); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: .2rem; }
.nl-card h3 { margin: .5rem 0 .5rem; font-size: 1.32rem; line-height: 1.15; }
.nl-card p { margin: 0; color: var(--ink-soft); font-size: .97rem; line-height: 1.55; }
.nl-card .read { margin-top: 1rem; font-weight: 600; font-size: .95rem; color: var(--terra-ink); }
.nl-card:hover .read { text-decoration: underline; }

/* ---------- Closing band ---------- */
.closing-band {
  position: relative; overflow: hidden; margin-top: clamp(3rem, 6vw, 5rem);
  border-radius: var(--radius-lg); background: var(--rye); color: var(--cream);
  padding: clamp(2.4rem, 5vw, 4rem); text-align: center; box-shadow: var(--shadow);
}
.closing-band::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; pointer-events: none; }
.closing-band h2 { color: var(--cream); position: relative; z-index: 1; }
.closing-band .lede { color: color-mix(in srgb, var(--cream) 80%, transparent); position: relative; z-index: 1; max-width: 34rem; margin: 0 auto 1.6rem; font-size: 1.15rem; }
.closing-band .ck-form { margin: 0 auto; position: relative; z-index: 1; }
.closing-band input[type="email"] { background: rgba(255,255,255,.96); border-color: transparent; color: #2A1E14; }
.closing-band .fineprint { color: color-mix(in srgb, var(--cream) 65%, transparent); }
.closing-band .ck-disabled { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: color-mix(in srgb, var(--cream) 85%, transparent); margin: 0 auto; }
.closing-band .ck-disabled code { background: rgba(255,255,255,.14); }

/* ---------- Article / edition ---------- */
.article { padding-top: 2rem; padding-bottom: 1rem; }
.breadcrumbs { font-size: .88rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terra-ink); }
.article-header { max-width: var(--measure); }
.article-header h1 { margin-top: .5rem; letter-spacing: -0.025em; }
.cat-tag { display: inline-block; font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.article-meta { color: var(--ink-faint); font-size: .92rem; margin-top: .7rem; font-family: var(--font-sans); }
.article-lede { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.32rem; line-height: 1.5; color: var(--ink-soft); max-width: var(--measure); margin: 1.1rem 0 0; }
.edition-nav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 2.5rem; font-weight: 600; }

.article-body { max-width: var(--measure); margin-top: 1.8rem; font-size: 1.115rem; }
.article-body > * { max-width: var(--measure); }
.article-body p { margin: 1.15em 0; }
.article-body > h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2rem); margin: 1.9em 0 .5em; padding-top: .3em; }
.article-body > h3 { font-size: 1.3rem; }
.article-body a { color: var(--terra-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--terra-ink) 40%, transparent); }
.article-body a:hover { color: var(--ink); text-decoration-color: currentColor; }
.article-body strong { color: var(--ink); font-weight: 650; }
.article-body em { font-style: italic; }

/* Recipe ingredient lists styled as a warm card */
.article-body ul {
  list-style: none; margin: 1.5em 0; padding: 1.3rem 1.5rem;
  background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--terra);
  border-radius: 12px;
}
.article-body ul li { position: relative; padding-left: 1.6rem; margin: .55em 0; }
.article-body ul li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 3px var(--terra-soft);
}
.article-body ol { margin: 1.3em 0; padding-left: 1.4em; }
.article-body ol li { margin: .5em 0; padding-left: .3em; }
.article-body ol li::marker { color: var(--terra-ink); font-family: var(--font-display); font-weight: 600; }
.article-body blockquote { margin: 1.8em 0; padding: .4em 1.4em; border-left: 3px solid var(--terra); color: var(--ink-soft); font-family: var(--font-display); font-style: italic; font-size: 1.18rem; }
.article-body hr { border-top: 1px solid var(--line); margin: 2.4em 0; }

/* Drop cap on the opening paragraph of an edition */
.edition-body > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 600; float: left;
  font-size: 4.1rem; line-height: .82; padding: .06em .12em 0 0; color: var(--terra);
}

/* ---------- Inline subscribe nudge ---------- */
.nudge {
  max-width: var(--measure); margin: 3rem auto 0; padding: 1.7rem 1.8rem; border-radius: var(--radius);
  background: radial-gradient(120% 160% at 100% 0%, var(--terra-soft) 0%, var(--paper-2) 60%);
  border: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; justify-content: space-between;
}
.nudge p { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 1.18rem; max-width: 24rem; }
.nudge .btn { white-space: nowrap; }

/* ---------- Page hero (archive, about, etc.) ---------- */
.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 1rem; max-width: 44rem; }
.page-hero h1 { letter-spacing: -0.03em; }
.page-hero .lede { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Ads ---------- */
.ad { margin: 2.4rem auto; text-align: center; max-width: var(--measure); }
.ad::before { content: "Advertisement"; display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .35rem; }
.ad ins { display: block; }
.ad-inline { min-height: 280px; }   /* reserve height so a loading AdSense unit can't shift content (CLS) */
.ad-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: .25rem; min-height: 50px; background: var(--paper-2); border-top: 1px solid var(--line); display: none; }
.ad-sticky::before { display: none; }
@media (max-width: 720px) { .ad-sticky.on { display: block; } body.has-sticky { padding-bottom: 70px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: 4rem; background: var(--rye); color: var(--cream); }
.site-footer::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; pointer-events: none; }
.footer-inner { position: relative; z-index: 1; padding-block: 3.2rem 2.2rem; display: grid; gap: 1.8rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 22rem; }
.footer-wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--cream); text-decoration: none; letter-spacing: -0.02em; }
.footer-wordmark .brand-mark { width: 30px; height: 30px; }
.footer-tag { color: color-mix(in srgb, var(--cream) 72%, transparent); margin: .7rem 0 0; font-size: 1.02rem; line-height: 1.55; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; }
.footer-cols nav { display: grid; gap: .55rem; align-content: start; }
.footer-cols h4 { margin: 0 0 .2rem; font-family: var(--font-sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: color-mix(in srgb, var(--cream) 55%, transparent); }
.footer-cols a { color: color-mix(in srgb, var(--cream) 82%, transparent); text-decoration: none; font-size: 1rem; }
.footer-cols a:hover { color: var(--cream); }
.foot-brandline { color: color-mix(in srgb, var(--cream) 78%, transparent); font-size: .98rem; max-width: var(--measure); border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; }
.foot-brandline strong { color: var(--honey); font-weight: 600; }
.foot-brandline a { color: var(--honey); }
.disclosure { color: color-mix(in srgb, var(--cream) 58%, transparent); font-size: .85rem; max-width: var(--measure); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; color: color-mix(in srgb, var(--cream) 55%, transparent); font-size: .86rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; }
.foot-legal a { color: color-mix(in srgb, var(--cream) 70%, transparent); }
.foot-legal a:hover { color: var(--cream); }
.xref { color: var(--honey); font-weight: 500; font-style: italic; font-family: var(--font-display); }
.site-footer .xref { color: var(--honey); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero-copy .lede { margin-inline: auto; }
  .ck-form, .subscribe-block { margin-inline: auto; }
  .trust { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art .jar-illo { width: min(72%, 260px); }
  .hero-art .seal { right: 4%; }
}
@media (max-width: 760px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav.open { display: grid; position: absolute; left: 0; right: 0; top: 70px; background: var(--paper); border-bottom: 1px solid var(--line); padding: .75rem 1.5rem 1rem; gap: .1rem; box-shadow: var(--shadow); }
  .nav.open a { padding: .8rem .5rem; font-size: 1.05rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .3rem; }
}
@media print {
  .site-header, .site-footer, .ad, .ad-sticky, .nudge, .seal, .closing-band { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
