/* =====================================================================
   mewmilk - shared stylesheet (single source of truth)
   Static site, hand-written modern CSS. No framework, no build step.
   Palette: Forest variant - spruce green + cool milk-white + foam apricot.
   Theme: auto (prefers-color-scheme). One accent (spruce). Foam is a
   sparse warm brand highlight, never a competing CTA colour.
   Radius rule: buttons + tags = pill; cards + media = 14px; large media
   = 22px; inputs = 8px. Applied everywhere.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* --- Colour: light (default) --- */
  --bg:           #f6f8f4;   /* cool milk-white, faint green cast */
  --bg-sunken:    #edf1ea;   /* alternating / recessed sections */
  --surface:      #fcfdfb;   /* cards, elevated panels */
  --surface-2:    #ffffff;   /* topmost (inputs, popovers) */

  --ink:          #16231e;   /* primary text, deep spruce-black */
  --ink-soft:     #4c5c54;   /* secondary text, body de-emphasis */
  --ink-faint:    #5f6e64;   /* meta, captions, small print (WCAG AA on bg) */

  --line:         #d9e0d7;   /* hairline borders */
  --line-strong:  #c3ccbf;   /* dividers that need to read */

  --accent:        #2f6b57;  /* spruce - THE accent, all CTAs */
  --accent-strong: #22513f;  /* hover / active */
  --accent-tint:   #e2ece4;  /* soft spruce wash (chips, section bg) */
  --on-accent:     #f4f7f1;  /* text on spruce surfaces */

  --foam:         #d9824a;   /* warm apricot pop - sparse brand mark */
  --foam-tint:    #f6e6d6;   /* soft foam wash (rare accent block) */

  --focus:        #2f6b57;   /* focus ring colour */

  /* --- Shadows: tinted to the green base, never pure black --- */
  --shadow-sm: 0 1px 2px rgba(22, 35, 30, .05), 0 1px 3px rgba(22, 35, 30, .06);
  --shadow-md: 0 6px 16px rgba(22, 35, 30, .07), 0 2px 6px rgba(22, 35, 30, .05);
  --shadow-lg: 0 22px 54px rgba(22, 35, 30, .10), 0 8px 20px rgba(22, 35, 30, .06);

  /* --- Type --- */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --font-display: var(--font-sans);
  --font-editorial: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype",
               Palatino, "Book Antiqua", Georgia, Cambria, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo,
               Consolas, monospace;

  /* fluid type scale */
  --fs-hero:   clamp(2.7rem, 1.6rem + 4.4vw, 4.75rem);
  --fs-h1:     clamp(2.15rem, 1.5rem + 2.7vw, 3.4rem);
  --fs-h2:     clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem);
  --fs-h3:     clamp(1.28rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-h4:     1.15rem;
  --fs-lead:   clamp(1.12rem, 1.04rem + 0.4vw, 1.32rem);
  --fs-body:   1.0625rem;
  --fs-sm:     0.9375rem;
  --fs-xs:     0.8125rem;
  --fs-eyebrow:0.72rem;

  --lh-tight: 1.06;
  --lh-snug:  1.22;
  --lh-body:  1.62;
  --measure:  66ch;

  /* --- Spacing (4px base, generous for an airy density-3 read) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* --- Layout --- */
  --container: 1200px;
  --container-wide: 1340px;
  --container-narrow: 760px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
  --header-h: 68px;

  /* --- Radius (documented rule, see file header) --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:  0.4s;
  --dur-slow: 0.7s;
}

/* ---------------------------------------------------------------------
   2. DARK MODE (auto). Brand stays recognisably spruce; foam stays warm.
   ------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0e1714;
    --bg-sunken:    #0a110f;
    --surface:      #15211c;
    --surface-2:    #1b271f;

    --ink:          #eaf0ea;
    --ink-soft:     #a9b6ad;
    --ink-faint:    #828f86;

    --line:         #26332d;
    --line-strong:  #36463d;

    --accent:        #62bd9d;  /* lifted so the brand pops on dark */
    --accent-strong: #7accab;
    --accent-tint:   #16322a;
    --on-accent:     #0b1411;

    --foam:         #ec9f63;
    --foam-tint:    #2a2017;

    --focus:        #62bd9d;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, .42), 0 2px 8px rgba(0, 0, 0, .32);
    --shadow-lg: 0 26px 60px rgba(0, 0, 0, .55), 0 10px 24px rgba(0, 0, 0, .4);
  }
}

/* ---------------------------------------------------------------------
   3. RESET
   ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body, var(--font-sans));
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
img { font-style: italic; color: var(--ink-faint); } /* alt text styling if broken */

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
p { text-wrap: pretty; }

/* Body lock while the mobile drawer is open */
html[data-nav-open] { overflow: hidden; }

/* ---------------------------------------------------------------------
   4. ACCESSIBILITY HELPERS
   ------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
   5. TYPOGRAPHY
   ------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display, var(--font-sans));
  font-weight: 650;
  line-height: var(--lh-snug);
  letter-spacing: -0.011em;
  color: var(--ink);
}
.display {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.026em;
  font-weight: 700;
}
h1, .h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); font-weight: 600; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.text-soft  { color: var(--ink-soft); }
.text-faint { color: var(--ink-faint); }
.measure { max-width: var(--measure); }

strong, b { font-weight: 650; }
em { font-style: italic; }
small { font-size: var(--fs-sm); }

a:not([class]) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 0.16em;
  transition: text-decoration-color var(--dur) var(--ease);
}
a:not([class]):hover { text-decoration-color: var(--accent); }

::selection { background: var(--accent-tint); color: var(--ink); }

/* Eyebrow: use sparingly, max 1 per 3 sections per the Taste skill */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  .eyebrow { color: var(--accent-strong); }
}

/* ---------------------------------------------------------------------
   6. LAYOUT PRIMITIVES
   ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--sunken { background: var(--bg-sunken); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }

.section-head { max-width: 52ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head .lead { margin-top: var(--space-4); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

.divider { height: 1px; background: var(--line); border: 0; }

/* Grid helpers (Grid over flex-math, per Taste 3.E) */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
/* asymmetric split (variance 7) */
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
.split--7-5 { grid-template-columns: 1.1fr 0.9fr; }
.split--5-7 { grid-template-columns: 0.9fr 1.1fr; }
.split--reverse > :first-child { order: 2; }

@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--7-5, .split--5-7 { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   7. HEADER / NAVIGATION
   ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(180%) blur(14px); }
}
.site-header[data-scrolled] {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand__mark { flex-shrink: 0; }
.brand__name { line-height: 1; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 0.2rem + 0.8vw, 1.1rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav__link {
  display: inline-block;
  padding: 0.5rem 0.55rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.site-nav__link:hover { color: var(--ink); }
.site-nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.55rem; right: 0.55rem; bottom: 0.18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -8px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.nav-toggle__box { position: relative; width: 20px; height: 14px; }
.nav-toggle__box span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__box span:nth-child(1) { top: 0; }
.nav-toggle__box span:nth-child(2) { top: 6px; }
.nav-toggle__box span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    padding: var(--space-6) var(--gutter) var(--space-8);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    overflow-y: auto;
  }
  html[data-nav-open] .site-nav {
    opacity: 1; visibility: visible; transform: none;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .site-nav__link {
    padding: 0.85rem 0.5rem;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav__link[aria-current="page"]::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--accent); }
}

/* ---------------------------------------------------------------------
   8. BUTTONS  (pill, full radius; contrast audited)
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.74rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-strong);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding-inline: 0.4rem;
}
.btn--ghost:hover { color: var(--accent-strong); }

.btn--lg { padding: 0.92rem 1.7rem; font-size: var(--fs-body); }
.btn--block { display: flex; width: 100%; }

/* Inline text link with arrow affordance */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--accent);
}
.link-arrow svg, .link-arrow .arrow { transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg, .link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------------
   9. CHIPS, TAGS, BADGES
   ------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.74rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--accent-tint);
  color: var(--accent-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
@media (prefers-color-scheme: dark) {
  .chip { color: var(--accent); }
}
.chip--foam {
  background: var(--foam-tint);
  color: color-mix(in srgb, var(--foam) 55%, var(--ink));
  border-color: color-mix(in srgb, var(--foam) 30%, transparent);
}
.chip--quiet {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}

.price {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.price__unit { color: var(--ink-faint); font-size: var(--fs-xs); }

/* ---------------------------------------------------------------------
   10. MEDIA (graceful fallback tone if a local image is missing)
   ------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    linear-gradient(150deg, var(--accent-tint), var(--bg-sunken));
  box-shadow: var(--shadow-sm);
}
.media::after {
  /* faint inner edge so the shape reads even with no image */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(22, 35, 30, .05);
  pointer-events: none;
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.media--lg { border-radius: var(--radius-lg); }
.media--foam { background: linear-gradient(150deg, var(--foam-tint), var(--bg-sunken)); }

.ratio-1x1   { aspect-ratio: 1 / 1; }
.ratio-4x5   { aspect-ratio: 4 / 5; }
.ratio-3x2   { aspect-ratio: 3 / 2; }
.ratio-16x9  { aspect-ratio: 16 / 9; }
.ratio-3x4   { aspect-ratio: 3 / 4; }

.figure { display: grid; gap: var(--space-3); }
.figure figcaption { font-size: var(--fs-sm); color: var(--ink-faint); }

/* ---------------------------------------------------------------------
   11. CARDS
   ------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.card__media { aspect-ratio: 1 / 1; background: linear-gradient(150deg, var(--accent-tint), var(--bg-sunken)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__title { font-size: var(--fs-h4); font-weight: 650; letter-spacing: -0.01em; }
.card__meta { font-size: var(--fs-xs); color: var(--ink-faint); letter-spacing: 0.02em; }
.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

/* Product card */
.product-card .card__media { aspect-ratio: 4 / 5; }
.product-card .card__note { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; }

/* Journal card */
.journal-card .card__media { aspect-ratio: 3 / 2; }
.journal-card .card__excerpt { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.55; }

/* Plain feature block (no card chrome) - grouped by hairline / space */
.feature { display: grid; gap: var(--space-3); }
.feature__kicker { font-weight: 650; font-size: var(--fs-h4); }
.feature--ruled { padding-top: var(--space-5); border-top: 1px solid var(--line); }

/* Stat / number callout */
.stat { display: grid; gap: var(--space-1); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}
.stat__label { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   12. FORMS  (label above input; contrast audited)
   ------------------------------------------------------------------- */
.field { display: grid; gap: var(--space-2); }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field__hint  { font-size: var(--fs-xs); color: var(--ink-soft); }
.field__error { font-size: var(--fs-xs); color: #b23b2e; }
@media (prefers-color-scheme: dark) { .field__error { color: #e88b7d; } }

.input, .textarea, .select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  background: var(--surface-2);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 8rem; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.form-note {
  margin-top: var(--space-3);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-size: var(--fs-sm);
  font-weight: 500;
}
@media (prefers-color-scheme: dark) { .form-note { color: var(--accent); } }

/* Inline newsletter row */
.subscribe { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.subscribe .input { flex: 1 1 12rem; }

/* ---------------------------------------------------------------------
   13. EDITORIAL PROSE (journal articles only - warm humanist serif)
   ------------------------------------------------------------------- */
.prose {
  font-family: var(--font-editorial);
  font-size: clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem);
  line-height: 1.72;
  color: var(--ink);
  max-width: 64ch;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-display); line-height: 1.25; }
.prose h2 { font-size: var(--fs-h3); margin-top: 1.8em; }
.prose h3 { font-size: var(--fs-h4); margin-top: 1.6em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.16em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose blockquote {
  margin: 1.4em 0;
  padding-left: 1.2em;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--ink-soft);
}

/* Pull quote (also serif) */
.pullquote {
  font-family: var(--font-editorial);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.32;
  font-style: italic;
  color: var(--ink);
  max-width: 22ch;
}

/* Testimonial */
.quote { display: grid; gap: var(--space-4); }
.quote__body {
  font-family: var(--font-editorial);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink);
}
.quote__cite { font-size: var(--fs-sm); color: var(--ink-soft); font-style: normal; }
.quote__cite b { color: var(--ink); font-weight: 650; }

/* ---------------------------------------------------------------------
   14. HERO  (fits the viewport; asymmetric split, variance 7)
   ------------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) var(--section-y); }
.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
}
.hero__title { margin-top: var(--space-4); }
.hero__lead { margin-top: var(--space-5); }
.hero__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero__media { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 3 / 2; order: -1; }
}

/* ---------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--space-6);
  margin-top: var(--section-y);
}
.footer__top {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.footer__brand { max-width: 30ch; display: grid; gap: var(--space-4); }
.footer__blurb { font-size: var(--fs-sm); color: var(--ink-soft); }
.footer__col h3 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 650;
  color: var(--ink-faint);
  margin-bottom: var(--space-4);
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.footer__col a { font-size: var(--fs-sm); color: var(--ink-soft); transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--ink); }

.footer__subscribe { margin-top: var(--space-2); }
.footer__subscribe .field__label { font-size: var(--fs-xs); }

.footer__bottom {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer__legal a { color: var(--ink-faint); }
.footer__legal a:hover { color: var(--ink-soft); }

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   16. SCROLL REVEAL  (only when JS present; reduced-motion safe)
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js [data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
  .js [data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
  .js [data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
}

/* ---------------------------------------------------------------------
   17. UTILITIES
   ------------------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.flow > * + * { margin-top: var(--space-4); }
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.cluster--between { justify-content: space-between; }
.full-bleed-tint { background: var(--accent-tint); }
.foam-tint { background: var(--foam-tint); }

/* Foam underline accent for a single emphasised word (use once, sparingly) */
.mark-foam {
  background:
    linear-gradient(transparent 62%, color-mix(in srgb, var(--foam) 42%, transparent) 0);
  padding-inline: 0.04em;
}

/* ---------------------------------------------------------------------
   18. REDUCED MOTION GLOBAL FALLBACK
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
