/*
 * Design tokens: the single place for shared values.
 * Source: Series Brand Spec + Brand Guidelines THC (02 Production/00 Series Reference).
 *
 * Fonts: the hosted site uses the free stand-ins Montserrat (for Gotham) and
 * Source Serif 4 (for Plantin), self-hosted from @fontsource (imported in
 * main.tsx). Gotham and Plantin are licensed for local use only and are
 * never committed, uploaded or deployed.
 */


:root {
  /* Brand colour */
  --primary: #0d300c;
  --secondary: #042b03;
  --tertiary: #43863e; /* large text and graphics only */
  --mint: #c8e0b5;
  --neutral: #f2f0eb;
  --gray: #4f4f4f;
  --base: #39393a;
  --white: #ffffff;

  /* Derived tints (for fills and lines only) */
  --mint-wash: #edf4e6;
  --neutral-deep: #e7e4dc;
  --line: rgba(13, 48, 12, 0.12);
  --line-strong: rgba(13, 48, 12, 0.24);
  --line-on-dark: rgba(200, 224, 181, 0.18);
  --wrong: #8a2e1d;
  --wrong-wash: #f7ebe7;

  /* Text roles */
  --text: var(--base);
  --text-muted: var(--gray);
  --heading: var(--primary);
  --on-dark: var(--white);
  --on-dark-muted: rgba(255, 255, 255, 0.74);
  --on-dark-heading: var(--mint);

  /* Chart series order (brand): Primary, Tertiary, Mint, Gray, Neutral */
  --chart-1: var(--primary);
  --chart-2: var(--tertiary);
  --chart-3: var(--mint);
  --chart-4: var(--gray);
  --chart-5: var(--neutral-deep);

  /* Type */
  --font-serif: 'Source Serif 4 Variable', 'Source Serif 4', Georgia, serif;
  --font-sans: 'Montserrat Variable', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --fs-display: 60px;
  --fs-h1: 44px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-lead: 19px;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-micro: 13px;
  --fs-overline: 12px;

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.6;
  --tracking-overline: 0.12em;

  /* 8pt spacing scale */
  --s-0: 4px;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-7: 56px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Layout */
  --content: 1200px;
  --content-wide: 1312px;
  --gutter: 40px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* easeOutQuint */
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --dur: 240ms;
  --dur-slow: 300ms;

  /* Focus */
  --focus: var(--tertiary);
  --focus-on-dark: var(--mint);
}

@media (min-width: 1800px) {
  :root { --content-wide: 1440px; }
}

@media (max-width: 1100px) {
  :root {
    --fs-display: 48px;
    --fs-h1: 38px;
    --gutter: 32px;
  }
}

@media (max-width: 720px) {
  :root {
    --fs-display: 38px;
    --fs-h1: 32px;
    --fs-h2: 26px;
    --gutter: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0ms;
    --dur-slow: 0ms;
  }
}
