/* ==========================================================================
   PREACH CLOSET - design tokens (Stage 2, approved 2026-12-06)
   Direction: LOUD & TENDER. Two voices, taken from the logo:
     loud   = Archivo, black weight, narrowest width, lowercase  -> the drop
     tender = Pinyon Script (copperplate)                          -> scripture + mission
   Palette A "Cherry AW26": two neutrals + one accent, from their own hoodies.

   COMPOSITION CONTRACT (nextlevel Stage 2.5, enforced in Stage 7 by grep)
   - Display reaches 88-160px at desktop: --fs-mega clamp(4.5rem, 13vw, 13rem)
   - Hero : body >= 6:1 (mega ~208px max vs 17px body)
   - No 1fr 1fr content splits: 7fr 5fr, 2fr 1fr, 3fr 2fr only
   - No repeat(auto-fit, minmax()) product grid: explicit editorial rhythm
   - >= 3 measures: full-bleed / --w-wide 1440px / --w-text 64ch
   - At least one section escapes the container (hero + mission are full-bleed)
   - Section padding >= 12vh desktop; hero >= 85vh
   - Accent budget: CTA, the script line, prices on sale, focus ring. <= 3 per viewport.
   ========================================================================== */
:root {
  /* primitives */
  --ink-900: #1e1716;      /* Ink: warm black from the Chocolate Cherry hoodie */
  --ink-800: #2a2120;
  --ink-700: #3b302e;
  --bone-50: #f3efe8;
  --bone-100: #eae5dc;     /* Bone: the page. From the Bone hoodie */
  --bone-200: #ddd6ca;
  --bone-300: #cfc6b8;
  --cherry-500: #9b1b30;   /* Cherry: CTA + script line + sale price. 6.5:1 on bone */
  --cherry-600: #82152a;   /* pressed / hover */
  --cherry-300: #d9707f;   /* cherry on ink: 5.5:1 on --ink-900 */

  /* semantic: light (the shop) */
  --bg: var(--bone-100);
  --bg-raised: var(--bone-50);
  --bg-sunk: var(--bone-200);
  --fg: var(--ink-900);
  --fg-muted: rgb(30 23 22 / .68);   /* 5.5:1 on bone (AA) */
  --fg-faint: rgb(30 23 22 / .52);   /* 3.4:1: large text and decoration only, never body */
  --line: rgb(30 23 22 / .14);
  --line-strong: rgb(30 23 22 / .28);
  --accent: var(--cherry-500);
  --accent-press: var(--cherry-600);
  --on-accent: var(--bone-100);

  /* type */
  --font-loud: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-tender: "Pinyon Script", "Snell Roundhand", cursive;
  --font-body: "Archivo", system-ui, sans-serif;
  --stretch-loud: 62%;
  --stretch-body: 100%;

  --fs-mega: clamp(4.5rem, 13vw, 13rem);     /* hero drop name */
  --fs-xl: clamp(3rem, 7vw, 7rem);           /* section statements */
  --fs-lg: clamp(2rem, 4vw, 3.5rem);         /* product name on PDP */
  --fs-md: clamp(1.375rem, 2vw, 1.75rem);
  --fs-script: clamp(1.75rem, 3.4vw, 3.25rem);
  --fs-body: 1.0625rem;                      /* 17px */
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --lh-loud: .84;
  --lh-body: 1.55;
  --track-loud: -.02em;

  /* space + measure */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --section-y: max(12vh, 5rem);
  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --w-wide: 1440px;
  --w-text: 64ch;

  /* shape + motion */
  --r-pill: 999px;
  --r-sm: 4px;
  --r-md: 10px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 1100ms;
  --z-header: 50; --z-drawer: 80; --z-toast: 90;
}

/* the dark sections (hero, mission) re-map the same names */
.on-ink {
  --bg: var(--ink-900);
  --bg-raised: var(--ink-800);
  --fg: var(--bone-100);
  --fg-muted: rgb(234 229 220 / .72);
  --fg-faint: rgb(234 229 220 / .55);
  --line: rgb(234 229 220 / .16);
  --line-strong: rgb(234 229 220 / .32);
  --accent: var(--cherry-300);
  --on-accent: var(--ink-900);
  background: var(--bg);
  color: var(--fg);
}
.on-cherry {
  --bg: var(--cherry-500);
  --fg: var(--bone-100);
  --fg-muted: rgb(234 229 220 / .8);
  --line: rgb(234 229 220 / .22);
  --accent: var(--bone-100);
  --on-accent: var(--cherry-500);
  background: var(--bg);
  color: var(--fg);
}
