/* Design tokens: bokke-in-ghana. Springbok green and gold on deep green and cream, with a small Ghana red nod.
   Typography-led, no images, no crest. One accent per surface: gold on dark, green on light. Red is a sparing accent.
   Contrast (hand-calculated, WCAG AA):
     light surfaces: ink on paper ~16:1, muted on paper ~6.8:1, green-700 on paper ~6.2:1, red-600 on paper ~5.5:1
     dark surfaces:  paper on night ~16:1, muted-on-night on night ~9:1, gold on night ~9.5:1,
                     green-on-dark on night ~9:1, red-on-dark on night ~6.5:1
     fills:          black text on gold ~12:1, white text on green-700 ~6.2:1, white text on red-600 ~5.5:1
   Never use gold as text on light, and never use green-700 or red-600 as text on dark: use the -on-dark tokens.
   Type: system fonts only, bold display scale with clamp(), tight tracking on large type.
   Token names match the other typography-led sites, so layout and motion code reads the same. */
:root {
  /* brand */
  --red-600: #ce1126;
  --red-700: #a80d1f;
  --gold-400: #ffb81c;
  --gold-300: #ffd777;
  --green-700: #0b6b45;
  --green-800: #08523a;
  --black: #06150f;
  --white: #ffffff;

  /* text and surfaces: light */
  --paper: #fbf8ef;
  --paper-2: #eef0e2;
  --ink: #10150f;
  --muted: #55594d;
  --line: #d9dcc8;

  /* text and surfaces: dark */
  --night: #06241a;
  --night-2: #0b3326;
  --on-night: #fbf8ef;
  --muted-on-night: #b6c7bb;
  --line-on-night: #1f4a39;

  /* accents that pass on dark */
  --red-on-dark: #ff6b6b;
  --green-on-dark: #5fe0a0;

  /* semantic */
  --accent-light: var(--green-700);
  --accent-dark: var(--gold-400);
  --link-light: var(--green-800);
  --link-dark: var(--gold-400);
  --focus: #0b63ce;
  --focus-on-dark: #8fc2ff;
  --success: #1e6b45;
  --success-bg: #e6f4ec;
  --error: #b3261e;
  --error-bg: #fdecea;
  --booked-bg: var(--paper-2);

  /* gradients (soft glows and gradient text) */
  --gradient-flag: linear-gradient(90deg, var(--green-700), var(--gold-400), var(--red-600));
  --gradient-flag-on-dark: linear-gradient(90deg, var(--green-on-dark), var(--gold-400), var(--red-on-dark));
  --glow-gold: radial-gradient(60% 60% at 50% 40%, rgba(255, 184, 28, 0.2), transparent 70%);

  /* fonts */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* type scale: display uses clamp(), body steps are fixed */
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-md: 1.25rem;
  --text-lg: 1.6rem;
  --text-step: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  --text-h2: clamp(2rem, 1.2rem + 3.6vw, 4rem);
  --text-h1: clamp(2.6rem, 1rem + 7vw, 7rem);
  --text-giant: clamp(4rem, 1rem + 14vw, 13rem);
  --leading-tight: 1.02;
  --leading-heading: 1.1;
  --leading-body: 1.65;
  --tracking-display: -0.035em;
  --tracking-heading: -0.02em;
  --weight-body: 400;
  --weight-display: 800;
  --measure: 65ch;

  /* spacing and layout */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.25rem;
  --space-7: 3.5rem;
  --space-8: 5rem;
  --section-space: clamp(5rem, 12vw, 10rem);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --content-width: 72rem;

  /* shape and depth */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 2px 6px rgba(6, 21, 15, 0.08), 0 14px 40px rgba(6, 21, 15, 0.1);
  --shadow-lift: 0 4px 10px rgba(6, 21, 15, 0.12), 0 22px 60px rgba(6, 21, 15, 0.16);
  --border-width: 1px;
  --focus-ring: 3px solid var(--focus);
  --focus-ring-on-dark: 3px solid var(--focus-on-dark);

  /* motion: animate only transform, opacity and filter */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 200ms;
  --dur-base: 500ms;
  --dur-slow: 800ms;
  --dur-marquee: 60s;
  --reveal-distance: 1.25rem;
  --reveal-blur: 6px;
  --stagger: 60ms;
  --stagger-words: 55ms;
}

/* reduced motion: no movement, everything visible at once */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur-base: 0.01ms;
    --dur-slow: 0.01ms;
    --dur-marquee: 0s;
    --reveal-distance: 0;
    --reveal-blur: 0;
    --stagger: 0ms;
    --stagger-words: 0ms;
  }
}
