/* ==========================================================================
   prjct-again-design — design tokens
   ONE theme only: background is always paper #dbdadf, text is always graphite #202126.
   No dark theme, no dark sections, no rounded corners (every radius token is 0).
   Never hardcode a color, size, radius or duration in components: use these.
   ========================================================================== */

/* Fonts. PRODUCTION (EU sites): self-host the woff2 files and @font-face them locally — loading
   from Google sends visitor IPs to Google (GDPR risk, courts have fined for it). Google link below is for quick drafts only:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..800&family=Martian+Mono:wdth,wght@75..112.5,400..700&family=Anybody:wdth,wght@50..150,700..900&display=swap" rel="stylesheet">
*/

:root {
  /* ---------- Font families ---------- */
  --font-sans:  "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;      /* headings + body */
  --font-mono:  "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; /* labels, specs, meta */
  --font-stamp: "Anybody", "Arial Black", Arial, sans-serif;                   /* wide uppercase product stamps, sparingly */

  /* ---------- Type scale: ratio 1.333 (perfect fourth), base 16px ---------- */
  --fs-nano:    0.5625rem;                                         /* 9   chips, sub-labels inside rows */
  --fs-micro:   0.6875rem;                                         /* 11  mono labels */
  --fs-caption: 0.75rem;                                           /* 12  mono meta */
  --fs-small:   0.875rem;                                          /* 14 */
  --fs-body:    1rem;                                              /* 16 */
  --fs-lead:    clamp(1.125rem, 1.02rem + 0.5vw, 1.333rem);       /* 18 → 21 */
  --fs-h5:      clamp(1.375rem, 1.18rem + 0.9vw, 1.777rem);       /* 22 → 28 */
  --fs-h4:      clamp(1.75rem, 1.4rem + 1.5vw, 2.369rem);         /* 28 → 38 */
  --fs-h3:      clamp(2.25rem, 1.65rem + 2.6vw, 3.157rem);        /* 36 → 50 */
  --fs-h2:      clamp(2.75rem, 1.7rem + 4.4vw, 4.209rem);         /* 44 → 67 */
  --fs-h1:      clamp(3.25rem, 1.6rem + 7vw, 5.61rem);            /* 52 → 90 */
  --fs-display: clamp(3.5rem, 1rem + 10.5vw, 7.478rem);           /* 56 → 120 */
  --fs-mega:    clamp(3.75rem, 0.2rem + 14.5vw, 9.969rem);        /* 60 → 160 */

  /* line-height */
  --lh-mega: 0.82;   /* display / mega words */
  --lh-tight: 0.92;  /* h1–h3 */
  --lh-snug: 1.12;   /* h4–h5, lead */
  --lh-body: 1.45;
  --lh-mono: 1.35;

  /* letter-spacing (em, so it scales) */
  --ls-mega: -0.072em;
  --ls-display: -0.06em;
  --ls-heading: -0.04em;
  --ls-tight: -0.02em;
  --ls-body: -0.005em;
  --ls-mono: 0.02em;       /* uppercase mono labels */
  --ls-mono-tight: -0.04em;/* bracket labels like [ VIEW ] */
  --ls-stamp: -0.015em;

  /* weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-stamp: 850;

  --measure: 62ch;        /* max line length for body text */
  --measure-narrow: 38ch; /* lead / intro next to a big word */

  /* ---------- Raw palette (do not use directly in components) ---------- */
  --paper:      #dbdadf;  /* MAIN */
  --paper-hi:   #e8e7eb;
  --paper-lo:   #cfced4;
  --graphite:   #202126;  /* SECOND */
  --graphite-hi:#2a2b31;
  --graphite-lo:#17181b;
  --signal:     #ff3d24;  /* accent fill; dark text on it (4.55:1) */
  --signal-deep:#d9240f;  /* accent fill with white text (4.99:1) */
  --white:      #ffffff;  /* only as text/icon on --signal-deep */
  --scrim:      rgba(23, 24, 27, 0.55); /* modal / menu overlay */

  /* ---------- Semantic colors — LIGHT (paper) ---------- */
  --bg:          var(--paper);
  --surface:     var(--paper);     /* panels sit on the page colour, separated by hairlines */
  --surface-2:   var(--paper-lo);  /* only: image placeholders, tiny chips (Save $6.90) */
  --text:        var(--graphite);  /* 11.56:1 */
  --text-2:      #4a4b52;          /* 6.24:1  secondary */
  --text-3:      #5c5d64;          /* 4.71:1  muted / meta (minimum for text) */
  --text-ghost:  rgba(32, 33, 38, 0.32); /* decorative only: leaders, inactive fill words */
  --line:        rgba(32, 33, 38, 0.14);
  --line-strong: rgba(32, 33, 38, 0.32);
  --accent:      var(--signal);
  --accent-text: #b3200d;          /* red as text on paper (4.83:1) */
  --on-accent:   var(--graphite);
  --invert-bg:   var(--graphite);  /* solid button / inverted chip */
  --invert-text: var(--paper);
  --hover:       rgba(32, 33, 38, 0.06);
  --active:      rgba(32, 33, 38, 0.12);
  --glass:       rgba(232, 231, 235, 0.72);
  --success:     #1f7a45;
  --warning:     #8a5a00;
  --error:       #b3200d;
  --focus:       var(--signal);
  --grain-opacity: 0.09;

  /* ---------- Spacing: 4px base ---------- */
  --s-0: 0;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;
  --s-40: 160px;

  /* ---------- Layout ---------- */
  --pad: clamp(16px, 3.2vw, 48px);          /* page side gutter */
  --gutter: 16px;                            /* grid gap */
  --cols: 12;
  --container: 1680px;                       /* wide, editorial */
  --container-text: 1180px;
  --section-gap: clamp(72px, 10vw, 168px);   /* between sections */
  --block-gap: clamp(32px, 4.5vw, 72px);     /* inside a section */
  --header-h: 64px;

  /* ---------- Shape ---------- */
  /* NO ROUNDING ANYWHERE. Kept as tokens only so old markup resolves to square. */
  --r-0: 0;
  --r-xs: 0;
  --r-card: 0;
  --r-pill: 0;
  --bw: 1px;
  --bw-strong: 1.5px;
  --shadow-panel: none; /* no shadows in this system */
  --shadow-float: none;
  --inner-edge: none;

  /* ---------- Motion ---------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);   /* default for everything entering / hover */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);   /* wipes, curtains, page transitions */
  --ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1);  /* buttons, small pops */
  --dur-instant: 120ms;
  --dur-fast:    220ms;
  --dur-base:    450ms;
  --dur-slow:    800ms;
  --dur-reveal:  1100ms;
  --dur-media:   1400ms;
  --stagger:     70ms;

  /* ---------- Layers ---------- */
  --z-base: 1;
  --z-sticky: 40;
  --z-header: 50;
  --z-cursor: 90;
  --z-modal: 100;

  color-scheme: light;
}


/* There is deliberately NO dark theme and NO .theme-dark / .theme-light class.
   The page, every section, panel, modal and menu use --bg (paper) with --text (graphite).
   Graphite appears as fill only on small solid elements: primary/mono buttons, cart count, logo chip. */
html, body { background-color: var(--bg); color: var(--text); }