/*
 * Design tokens — Direction B "Summit Ember" (see docs/decisions.md D-016, D-017).
 * Colours derive from the official finisher hoodie: bottle green, coral print,
 * gold embroidery, cream print. Contrast ratios are WCAG 2.x against the noted fill.
 */
:root {
  /* Greens: bg-0 for nav, hero and footer; bg-1 for page bands; surface for cards. */
  --bg-0: #0a1c13;
  --bg-1: #10281b;
  --bg-2: #173625;            /* hover and pressed fills on bg-1 only, never a section colour */
  --surface: #1f4d36;         /* hoodie green */

  /* Text on dark */
  --text: #f3eedd;
  --muted: #a8b8ac;           /* 4.66:1 on surface; use --muted-on-surface inside cards */
  --muted-on-surface: #b5c4b8; /* 5.32:1 on surface */
  --gold: #d9b865;            /* 9.3:1 on bg-0, 8.2:1 on bg-1; also the link colour on dark */

  /* Accent. Never used as text: fills, rules and icons only. */
  --accent: #f47038;          /* 6.1:1 with --on-accent */
  --accent-hover: #f78c5c;    /* 7.5:1 with --on-accent */
  --on-accent: #0a1c13;
  --go: #5fd08a;              /* status: open, live */

  /* Lines */
  --border: #2f5e45;          /* 2.09:1 on bg-1 */
  --border-on-surface: #3f7a5b; /* 1.91:1 on surface */

  /* Cream "paper" sections: at most once or twice per page, never for race cards. */
  --paper: #f3eedd;
  --paper-text: #10281b;      /* 13.48:1 */
  --paper-muted: #4a5a4f;     /* 6.31:1 */
  --paper-gold: #6e5212;
  --paper-link: #b23f0e;      /* 5.01:1 */

  /* Type. All faces self-hosted as WOFF2 (no Google Fonts CDN). */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.5rem, 1.6rem + 4.5vw, 5.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;
  --fs-stat: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);

  --lh-hero: 0.95;
  --lh-h2: 1;
  --lh-h3: 1.15;
  --lh-body: 1.6;
  --lh-small: 1.5;

  --measure: 62ch;
  --measure-hero: 32ch;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --band-block: clamp(56px, 4rem + 4vw, 128px);
  --band-inline: clamp(16px, 4vw, 64px);
  --card-pad: clamp(20px, 1rem + 1vw, 32px);

  /* Controls */
  --btn-height: 44px;
  --btn-height-sm: 40px;
  --radius-pill: 999px;
  --radius-card: 12px;
  --focus-ring: 3px solid var(--gold);
}
