/* Design tokens — the ONLY source of visual constants.
 * v13 "Paper Ledger" reskin (2026-07-15, Gautam-approved mock-a): chalk
 * paper + racing-green ink + price-flash yellow + SACRED pink (hearts,
 * misses, charity — never buttons, never wallpaper). Variable NAMES are
 * frozen API (every stylesheet rides them); only VALUES changed here.
 * Legacy names read oddly now (--cream is paper, --cocoa is ink, --mint is
 * turf, --mango is flash) — renaming them would touch every file for zero
 * behavior; the map lives in docs/v13-brand-de-claude-proposal.md.
 * Rules: ink text on --mango/--flash (never white); pink is semantic only.
 * No component may invent a color, radius, shadow, or spacing step. */
:root {
  /* palette */
  --cream: #F5F4EE;   /* chalk paper */
  --pink: #FF6FA5;    /* the ♥ family — SEMANTIC ONLY (miss/charity/giving) */
  --pink-dk: #E14E86;
  /* v36 a11y steps, re-checked on paper #F5F4EE: --pink-text 4.9:1 ✓ */
  --pink-text: #C2376C;
  --pink-btn: #C93D74; /* charity-context buttons only, post-reskin */
  --mint: #1E7A4F;    /* turf — "you moved", money kept */
  --mint-dk: #14563A;
  --mango: #FFCE00;   /* price-flash — stakes, warnings, primary CTAs */
  --mango-dk: #D6AD00;
  --blue: #5FB8E6;    /* focus + ideas only */
  --blue-dk: #2E9BD1;
  --peach: #FF9E6D;
  --cocoa: #12382B;   /* racing-green ink — all text, dark surfaces */
  --muted: #5B6B62;
  --white: #FFFFFF;
  --line: rgba(18, 56, 43, 0.18); /* the printed rule */

  /* type */
  --font-head: "Bricolage Grotesque", system-ui, sans-serif; /* 700/800, tight */
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;  /* EVERY money figure + rhythm date */
  --text-body: 16px;   /* 15–17px band */
  --text-meta: 12.5px; /* 12–13px band */

  /* radii — tickets, not blobs */
  --radius-card: 6px;
  --radius-input: 6px;
  --radius-stamp: 6px;
  --radius-pill: 999px; /* chips, stamps, the ♥ */

  /* elevation: print, not glow — the "shadow" IS a 1px ink rule, so every
   * legacy `box-shadow: var(--shadow-warm)` renders as a bordered card. */
  --shadow-warm: 0 0 0 1px var(--line);

  /* spacing scale — the only allowed gaps/paddings */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* layout */
  --measure: 68ch;        /* readable prose width */
  --page-max: 1200px;     /* marketing container */
  --page-max-app: 1400px; /* signed-in full-width shell */
}

/* base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}
h1 { font-size: clamp(30px, 5.5vw, 52px); letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 3.5vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 var(--space-3); }
a { color: var(--mint-dk); }
a:hover { color: var(--cocoa); }
img { max-width: 100%; height: auto; }
/* money + rhythm dates read like a ledger, wherever they're classed */
.money { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* accessibility primitives */
:focus-visible {
  outline: 3px solid var(--blue-dk);
  outline-offset: 2px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
