/*
  GoodSweat — Story page (founder/origin)
  baseline: 8px grid
  type scale (px): 11 / 13 / 15 / 17 / 20 / 26 / 32 / 42 / 64 / 96
  spacing scale (px): 8 / 16 / 24 / 32 / 48 / 64 / 80 / 120
  rails: shell = min(1160px, 100vw - 48px); reading column = 640px max
  stroke: 1px hairline; 0.7px decorative; 1.5px focus

  Layout notes (load-bearing):
  - Hero is a magazine-cover stage: full-bleed photo, header chrome
    absolutely positioned over the top of the photo, H1 + eyebrow
    typeset over the bottom third with a tuned cream-fade scrim. The
    standfirst (deck + meta + breadcrumb) sits BELOW the photo on
    cream bg as a printed editorial caption strip.
  - Each .story-section is its own sticky scroll-context. Header track
    is align-self: start so it shrinks to its own height. Sticky H2 is
    further faded out via a scroll-driven view() animation in the last
    20% of the section's viewport-exit range, so it doesn't ghost on
    the next chapter's content during the transition.
  - Pull-quotes sit OUTSIDE any section's grid, on their own full-shell
    row, with modular 64/80/96 vertical separation above and below so
    they read as deliberate punctuation between chapters — never as a
    column-spanning element bleeding into the next section's H2 track.

  Inherits palette + tokens from /styles.css.
*/

/* =====================================================================
   PAGE FRAME
   ===================================================================== */

.story-body {
  background: linear-gradient(180deg, #FFFCF6 0%, var(--paper) 32%, var(--paper-warm) 100%);
  color: var(--ink-warm);
  --story-sticky-top: var(--s-32);
  --story-hero-h: clamp(560px, 86vh, 880px);
}

.story-shell {
  width: var(--shell);
  margin-left: auto;
  margin-right: auto;
}

.story-reading {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================================
   HEADER (over hero photo — magazine cover)
   ===================================================================== */

.story-header {
  padding-top: var(--s-24);
  padding-bottom: var(--s-16);
}

/* When the header sits over the hero photo it loses the hairline rule
   and shifts to a cream-tinted typescale for legibility against the
   darker top-of-photo region. */
.story-header--over {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding-top: var(--s-24);
  padding-bottom: 0;
  pointer-events: none; /* cleared on interactive children below */
}
.story-header--over .story-shell { pointer-events: auto; }

.story-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  min-height: 56px;
  padding-bottom: var(--s-16);
  border-bottom: 1px solid var(--line-soft);
}

.story-header--over .story-header-inner {
  border-bottom: 1px solid rgba(255, 249, 240, 0.18);
}

.story-brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
}

.story-brand-lockup {
  display: flex;
  gap: 4px;
  font-family: var(--font-display);
  font-size: var(--t-20);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
}

.story-brand-accent { color: var(--coral-deep); }

.story-brand-sub {
  font-size: var(--t-11);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* over-photo recolor — cream type, coral accent unchanged for brand recall */
.story-header--over .story-brand,
.story-header--over .story-brand-lockup { color: var(--paper); }
.story-header--over .story-brand-accent { color: var(--coral); }
.story-header--over .story-brand-sub { color: rgba(255, 249, 240, 0.74); }

.story-nav-link {
  font-size: var(--t-13);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-warm);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.story-nav-link:hover,
.story-nav-link:focus-visible { color: var(--coral-deep); border-bottom-color: var(--coral-deep); }

.story-header--over .story-nav-link { color: var(--paper); }
.story-header--over .story-nav-link:hover,
.story-header--over .story-nav-link:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* =====================================================================
   HERO — magazine cover treatment
   ===================================================================== */

.story-hero {
  position: relative;
  margin: 0;
  padding: 0;
}

/* The stage: full-bleed photo with overlays. */
.story-hero-stage {
  position: relative;
  width: 100%;
  min-height: var(--story-hero-h);
  height: var(--story-hero-h);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.story-hero-picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.story-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* a touch of warm contrast to keep the type readable without
     crushing the natural golden-hour light */
  filter: saturate(1.04) contrast(1.02);
}

/* Two scrims: top darkens to make header chrome legible; bottom fades
   into the cream bg so the H1 reads cleanly and the seam to the
   standfirst below is invisible. */
.story-hero-scrim {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 2;
}

.story-hero-scrim--top {
  top: 0;
  height: 32%;
  background: linear-gradient(180deg, rgba(30, 27, 24, 0.48) 0%, rgba(30, 27, 24, 0.18) 50%, rgba(30, 27, 24, 0) 100%);
}

.story-hero-scrim--bottom {
  bottom: 0;
  height: 62%;
  background: linear-gradient(0deg,
    var(--paper) 0%,
    rgba(255, 249, 240, 0.92) 12%,
    rgba(255, 249, 240, 0.62) 32%,
    rgba(255, 249, 240, 0.18) 62%,
    rgba(255, 249, 240, 0) 100%);
}

/* H1 + eyebrow over the bottom third of the photo. */
.story-hero-cover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  gap: var(--s-16);
  padding-bottom: clamp(var(--s-32), 6vh, var(--s-64));
}

.story-eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-11);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0;
}

.story-eyebrow--over {
  color: var(--coral);
  text-shadow: 0 1px 8px rgba(30, 27, 24, 0.25);
}

.story-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(var(--t-42), 8.6vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 14ch;
  text-wrap: balance;
}

.story-h1--over {
  color: var(--ink);
  /* faint glow stabilizes type over busy photo regions without
     looking shadowed */
  text-shadow:
    0 1px 0 rgba(255, 249, 240, 0.4),
    0 2px 14px rgba(255, 249, 240, 0.5);
  max-width: 18ch;
}

.story-h1 em {
  font-style: italic;
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--coral-deep);
  letter-spacing: -0.005em;
}

/* The standfirst strip below the photo — small editorial caption. */
.story-hero-standfirst {
  display: grid;
  gap: var(--s-24);
  padding-top: var(--s-32);
  padding-bottom: var(--s-32);
  border-bottom: 1px solid var(--line);
}

.story-deck {
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: clamp(var(--t-17), 2.2vw, 22px);
  line-height: 1.5;
  color: var(--ink-warm);
  max-width: 36rem;
  margin: 0;
  font-weight: 400;
  text-wrap: pretty;
}

.story-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: var(--s-32);
  margin: 0;
  padding-top: var(--s-24);
  border-top: 1px solid var(--line);
  font-size: var(--t-13);
  justify-content: start;
}

.story-meta > div { display: grid; gap: 4px; }

.story-meta dt {
  font-size: var(--t-11);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.story-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

/* Breadcrumb collapsed into the meta strip as the "Filed under" cell. */
.story-breadcrumb {
  font-size: var(--t-13);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.story-breadcrumb a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 2px 0;
  transition: color 160ms ease, border-color 160ms ease;
}

.story-breadcrumb a:hover { color: var(--green-deep); border-bottom-color: var(--green); }

.story-breadcrumb span[aria-hidden] { color: var(--ink-mute); }

/* shared media rules */
.story-image,
.story-image-placeholder {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow-deep);
}

.story-image {
  object-fit: cover;
}

.story-image-placeholder--landscape { aspect-ratio: 16 / 10; }
.story-image--portrait,
.story-image-placeholder--portrait  { aspect-ratio: 4 / 5; }
.story-image--square,
.story-image-placeholder--square    { aspect-ratio: 1 / 1; }
.story-image--travel                { aspect-ratio: 3 / 4; }

.story-signature-img,
.story-image-placeholder--signature {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  box-shadow: none;
  background: transparent;
  border: 0;
  object-fit: contain;
}

.story-figcaption {
  margin-top: var(--s-16);
  font-family: var(--font-body);
  font-size: var(--t-13);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36rem;
}

/* =====================================================================
   ARTICLE
   ===================================================================== */

.story-article {
  padding: var(--s-48) 0 var(--s-80);
}

.story-section {
  width: var(--shell);
  margin-left: auto;
  margin-right: auto;
  padding: var(--s-48) 0;
  display: grid;
  gap: var(--s-32);
}

.story-section + .story-section {
  border-top: 1px solid var(--line-soft);
}

/* The chapter rail two-column layout. Each .story-section is its own
   sticky scroll-context — the section IS the bounding box, so the H2
   releases the moment the section's bottom edge passes the sticky-top.
   align-self: start is the load-bearing rule; without it, the header
   track stretches to the full section height and the sticky never
   releases. */
@media (min-width: 1024px) {
  .story-section {
    grid-template-columns: minmax(200px, 240px) minmax(0, 640px);
    column-gap: var(--s-64);
    row-gap: var(--s-32);
    align-items: start;
    justify-content: center;
  }
}

@media (min-width: 1280px) {
  .story-section {
    grid-template-columns: minmax(220px, 280px) minmax(0, 640px);
    column-gap: var(--s-80);
  }
}

.story-section-header {
  display: grid;
  gap: var(--s-8);
  align-content: start;
  position: relative;
}

@media (min-width: 1024px) {
  .story-section-header {
    position: sticky;
    top: var(--story-sticky-top);
    align-self: start;          /* shrink header track to its own height */
    z-index: 1;                 /* above body prose during sticky */
    /* keep the sticky element inside the visible viewport when the
       chapter title is tall — never let it run off the section */
    max-height: calc(100vh - var(--story-sticky-top) - var(--s-16));
    overflow: visible;          /* don't clip — H2 already short */
    will-change: opacity;
  }
}

/* Scroll-driven graceful fade — the H2 fades out as the section's
   bottom edge crosses the viewport, so the sticky header doesn't ghost
   onto the next chapter's prose during the handoff.

   `view(block)` ties the timeline to the .story-section's intersection
   with the viewport. `exit 0% exit 90%` means: stay opaque while any
   part of the section is "entering" or "in view"; fade as the section
   exits the top of the viewport, finishing the fade just before the
   final pixel passes out of view. We also drop pointer-events at the
   tail of the fade so the ghost can't block clicks on the next
   section's prose. */
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) {
    .story-section {
      view-timeline-name: --section;
      view-timeline-axis: block;
    }
    .story-section .story-section-header {
      animation: storyStickyFade linear both;
      animation-timeline: --section;
      animation-range: exit 0% exit 90%;
    }
    @keyframes storyStickyFade {
      0%   { opacity: 1; }
      70%  { opacity: 1; pointer-events: auto; }
      100% { opacity: 0; pointer-events: none; }
    }
  }
}

.story-chapter {
  font-family: var(--font-body);
  font-size: var(--t-11);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--coral-deep);
  line-height: 1.4;
}

.story-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(var(--t-26), 3.6vw, var(--t-42));
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 14ch;
  text-wrap: balance;
}

@media (max-width: 1023px) {
  .story-section h2 { font-size: clamp(var(--t-26), 4.2vw, var(--t-32)); }
}

/* prose */
.story-prose {
  display: grid;
  gap: var(--s-24);
  max-width: 40rem;        /* 640px reading column */
  font-family: var(--font-body);
  font-size: var(--t-17);
  line-height: 1.62;
  color: var(--ink-warm);
}

@media (min-width: 720px) {
  .story-prose { font-size: 18px; line-height: 1.65; }
}

.story-prose p { margin: 0; text-wrap: pretty; }

.story-prose p strong {
  font-weight: 700;
  color: var(--ink);
}

.story-prose em {
  font-style: italic;
  color: var(--ink);
}

.story-lede {
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: clamp(var(--t-20), 2.6vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.story-h3 {
  margin: var(--s-16) 0 0;
  font-family: var(--font-display);
  font-size: var(--t-20);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1.1;
}

/* figures inside sections */
.story-section .story-figure {
  margin: var(--s-24) 0 0;
  max-width: 40rem;
}

.story-section .story-figure--portrait {
  max-width: 36rem;
}

.story-section .story-figure--travel {
  max-width: 36rem;
}

.story-section .story-figure--square {
  max-width: 28rem;
}

.story-section .story-figure--signature {
  max-width: 320px;
  margin-top: var(--s-32);
}

/* =====================================================================
   PULL QUOTE — deliberate punctuation BETWEEN sections
   =====================================================================
   Sits outside any section grid. Full-shell width, single column,
   modular 80px (mobile 48) of breathing room above and below. The
   .story-section just above gets `border-bottom: 0` to avoid
   double-ruling the pull-quote's own top hairline, and the next
   section drops its `border-top` so the quote owns its zone. */

.story-pullquote {
  width: var(--shell);
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--s-80);
  margin-bottom: var(--s-80);
  padding: var(--s-64) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  display: block;
  /* A pull-quote is its own block-level row in the document flow.
     Belt-and-suspenders against a parent grid trying to span it
     across columns — never happens here, but we lock it down so a
     future grid context can't bleed it into the next H2 track. */
  grid-column: 1 / -1;
}

.story-pullquote--first { margin-top: var(--s-64); }

/* When a pull-quote follows a section, suppress the section-to-section
   hairline rule below it — the pull-quote's own borders ARE the rule. */
.story-section + .story-pullquote { margin-top: var(--s-64); }
.story-pullquote + .story-section { border-top: 0; padding-top: var(--s-64); }

.story-pullquote p {
  margin: 0 auto;
  max-width: 32rem;
  font-family: var(--font-display);
  font-size: clamp(var(--t-20), 3.2vw, var(--t-32));
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  text-wrap: balance;
}

.story-pullquote p em {
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--coral-deep);
}

/* =====================================================================
   INGREDIENTS
   ===================================================================== */

.story-ingredients {
  display: grid;
  gap: 0;
  margin: var(--s-8) 0 0;
  max-width: 40rem;
  border-top: 1px solid var(--line);
}

.story-ingredient {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: var(--s-24);
  padding: var(--s-24) 0;
  border-bottom: 1px solid var(--line);
}

.story-ingredient dt {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-15);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--green-deep);
  line-height: 1.2;
}

.story-ingredient dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-15);
  line-height: 1.55;
  color: var(--ink-warm);
}

@media (max-width: 640px) {
  .story-ingredient {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
  }
}

/* the dl-to-figure transition: a deliberate, generous gap — the
   ingredient list closes a chapter, the figure opens the next beat. */
.story-section--ingredients .story-figure {
  margin-top: var(--s-48);
}

.story-prose--isnt {
  margin-top: var(--s-32);
  padding-top: var(--s-24);
  border-top: 1px solid var(--line);
}

.story-prose--isnt p {
  font-size: var(--t-15);
  color: var(--ink-soft);
}

/* =====================================================================
   SIGNED COMMITMENT
   ===================================================================== */

.story-section--sign {
  padding-top: var(--s-64);
  padding-bottom: var(--s-64);
}

.story-section--sign .story-prose {
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-size: clamp(var(--t-17), 2vw, var(--t-20));
  line-height: 1.55;
  color: var(--ink);
  font-style: normal;
}

.story-section--sign .story-prose em {
  font-style: italic;
}

.story-email {
  color: var(--coral-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 160ms ease, text-decoration-thickness 160ms ease;
}

.story-email:hover,
.story-email:focus-visible {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.story-figcaption--sign {
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: var(--t-17);
  color: var(--ink-warm);
  margin-top: var(--s-8);
}

/* =====================================================================
   FOOTER CTA
   ===================================================================== */

.story-cta {
  margin-top: var(--s-80);
  padding: var(--s-80) 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(241, 229, 211, 0.62) 50%, transparent 100%);
}

.story-cta-inner {
  display: grid;
  gap: var(--s-16);
  text-align: center;
  justify-items: center;
  max-width: 36rem;
  margin: 0 auto;
}

.story-cta-tag {
  font-size: var(--t-11);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0;
}

.story-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(var(--t-26), 4.4vw, var(--t-42));
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

.story-cta-deck {
  font-size: var(--t-15);
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

.story-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-16);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: var(--t-13);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  min-height: 48px;
  box-shadow: 0 8px 24px rgba(30, 27, 24, 0.18);
}

.story-cta-link:hover,
.story-cta-link:focus-visible {
  background: var(--coral-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(239, 117, 107, 0.32);
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.story-footer {
  padding: var(--s-48) 0;
  border-top: 1px solid var(--line-soft);
}

.story-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-32);
  align-items: end;
}

.story-footer-brand {
  font-family: var(--font-display);
  font-size: var(--t-20);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.story-footer-tagline {
  font-size: var(--t-13);
  color: var(--ink-soft);
  margin-top: 4px;
}

.story-footer-links {
  display: flex;
  gap: var(--s-24);
  font-size: var(--t-13);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.story-footer-links a {
  color: var(--ink-warm);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
  transition: color 160ms, border-color 160ms;
}

.story-footer-links a:hover,
.story-footer-links a:focus-visible {
  color: var(--coral-deep);
  border-bottom-color: var(--coral-deep);
}

@media (max-width: 720px) {
  .story-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-16);
  }
}

/* =====================================================================
   RESPONSIVE — INTERMEDIATE
   ===================================================================== */

@media (max-width: 1023px) {
  /* below the chapter-rail breakpoint: header stacks above prose,
     no sticky behavior anywhere — collapses cleanly to a single column. */
  .story-section-header { position: static; top: auto; }
  .story-section { gap: var(--s-24); }

  /* hero scales — slightly less tall on tablet so the photo doesn't
     dominate the viewport */
  .story-body { --story-hero-h: clamp(520px, 78vh, 760px); }

  .story-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-24);
  }
}

@media (max-width: 980px) {
  .story-section { padding: var(--s-32) 0; }
  .story-pullquote {
    margin-top: var(--s-48);
    margin-bottom: var(--s-48);
    padding: var(--s-48) 0;
  }
  .story-cta { padding: var(--s-64) 0; margin-top: var(--s-48); }
}

/* =====================================================================
   RESPONSIVE — MOBILE
   ===================================================================== */

@media (max-width: 720px) {
  :root {
    --shell: min(100vw - 32px, 100%);
  }

  /* Hero shifts to portrait crop with H1 sitting low. min-height keeps
     the photo substantial regardless of viewport. */
  .story-body { --story-hero-h: clamp(560px, 84vh, 720px); }
  .story-hero-img { object-position: center 28%; }

  .story-header--over { padding-top: var(--s-16); }
  .story-header-inner { min-height: 48px; padding-bottom: var(--s-8); }
  .story-brand-sub { display: none; }

  .story-hero-cover { padding-bottom: clamp(var(--s-24), 4vh, var(--s-48)); gap: var(--s-8); }
  .story-h1--over {
    font-size: clamp(var(--t-32), 11vw, 44px);
    max-width: 100%;
    line-height: 0.96;
  }

  .story-hero-scrim--top { height: 28%; }
  .story-hero-scrim--bottom { height: 56%; }

  .story-hero-standfirst { padding-top: var(--s-24); padding-bottom: var(--s-32); gap: var(--s-16); }
  .story-deck { font-size: var(--t-17); }

  .story-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
    padding-top: var(--s-16);
  }
  .story-meta > div {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-auto-flow: column;
    align-items: baseline;
    gap: var(--s-8);
  }
  .story-meta dd { font-size: var(--t-13); }

  .story-section h2 { font-size: var(--t-26); max-width: 100%; }
  .story-prose { font-size: 17px; }
  .story-lede { font-size: var(--t-20); }

  .story-pullquote p { font-size: var(--t-20); }
  .story-pullquote { padding: var(--s-32) 0; margin-top: var(--s-48); margin-bottom: var(--s-48); }

  .story-ingredient {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
  }

  .story-section--ingredients .story-figure {
    margin-top: var(--s-32);
  }

  .story-cta h2 { font-size: var(--t-26); }
  .story-cta-link {
    width: 100%;
    justify-content: center;
    min-height: 52px;       /* mobile tap target headroom */
  }
}

@media (max-width: 420px) {
  .story-h1--over { font-size: clamp(28px, 9.6vw, 36px); }
  .story-meta > div { grid-template-columns: minmax(0, 1fr); }
  .story-meta { gap: var(--s-16); }
}

/* =====================================================================
   PRINT (lightly editorial — keep the article readable)
   ===================================================================== */

@media print {
  .story-header, .story-footer, .story-cta, .story-breadcrumb { display: none; }
  .story-body { background: #fff; color: #000; }
  .story-section { page-break-inside: avoid; }
  .story-hero-stage { min-height: auto; height: auto; }
  .story-hero-scrim { display: none; }
  .story-h1--over { color: #000; text-shadow: none; }
}

/* =====================================================================
   AMBIENT SCROLL REVEAL
   =====================================================================
   Fade-in-only, scroll-driven reveal for body prose, figures, captions,
   pull-quotes, and ingredient rows. Per NN/G "Scroll Fading 101":
   one-shot, persistence-on, no exit fade — already-read content stays
   put. Per Apple HIG / Vev longform / Comeau: linear easing (the
   scroll IS the easing curve), 12–24px translate, opacity 0→1.

   SEO/AEO contract — load-bearing:
   - The entire reveal is wrapped in @supports (animation-timeline:
     view()). Browsers without scroll-timeline support (and any crawler
     that parses CSS but doesn't execute scroll timelines) never see the
     animation declaration at all and render the natural document state
     (opacity: 1, no transform).
   - opacity: 0 lives ONLY inside @keyframes from{} — never as a static
     property on a selector. The default rendered state of every
     element is opacity: 1.
   - No display:none, visibility:hidden, or aria-hidden on meaningful
     content. Pure presentational fade-in over the existing DOM.
   - No JS. No IntersectionObserver. The @supports gate is the contract.

   Composition: the existing storyStickyFade rule (above) targets
   .story-section-header and runs on a custom view-timeline-name
   (--section). The selectors here target .story-prose > p, figures,
   captions, pull-quotes, and ingredient rows — disjoint scope, no
   conflict. The sticky H2 fade continues to work unchanged. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* Body text + captions + signed paragraphs + ingredient rows. */
    .story-prose > p,
    .story-prose .story-lede,
    .story-prose .story-h3,
    .story-figcaption {
      animation: storyReveal linear both;
      animation-timeline: view(block);
      animation-range: entry 10% cover 35%;
    }

    /* Ingredient rows — slightly tighter range since they appear in a
       stack and the dl reads as a single beat. */
    .story-ingredient {
      animation: storyRevealRow linear both;
      animation-timeline: view(block);
      animation-range: entry 8% cover 38%;
    }

    /* Figures (images): longer ramp, larger translate (Apple HIG
       distance-proportional principle — bigger objects need longer
       ramps to feel ambient). */
    .story-figure {
      animation: storyRevealFigure linear both;
      animation-timeline: view(block);
      animation-range: entry 5% cover 45%;
    }

    /* Pull quotes: slowest, most dramatic — earn the long ramp. */
    .story-pullquote {
      animation: storyRevealQuote linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 50%;
    }

    @keyframes storyReveal {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes storyRevealRow {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes storyRevealFigure {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes storyRevealQuote {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }
  }
}

/* =====================================================================
   REDUCED MOTION
   =====================================================================
   Respect prefers-reduced-motion: kill the scroll-driven sticky-fade
   (the H2 just stays opaque — sticky still works), kill transitions,
   and hard-set scroll-behavior. The ambient-reveal block above is
   already gated by @media (prefers-reduced-motion: no-preference) so
   it self-disables; this block adds the belt-and-suspenders for any
   transitions and the sticky-rail fade. */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }

  @supports (animation-timeline: view()) {
    .story-section .story-section-header {
      animation: none !important;
      opacity: 1 !important;
    }
  }
}
