/* Design tokens: the only place colours, type scale, spacing and shape are defined.
   Brand values come from nationalhumanitiescenter.org (read 2026-11-28); if NHC's formal brand guide
   differs, change them here and nothing else. Contrast of every text/background pair below is
   checked by tests/test_tokens.py (WCAG AA, 4.5:1). */
:root {
  /* Brand */
  --brand-navy: #323B76;
  --brand-sky: #9FC3D9;     /* backgrounds and accents only: 1.9:1 on white, never text */
  --brand-mist: #C9E2EC;
  --brand-ink: #33241D;     /* the site's warm "black" */

  /* Warm neutrals (from the site) */
  --neutral-10: #E9E6E5;
  --neutral-20: #D2CECC;
  --neutral-30: #BDB7B4;
  --neutral-40: #A8A09C;
  --neutral-60: #7E736E;
  --neutral-70: #6B5E59;
  --neutral-80: #584A44;
  --neutral-90: #453730;

  /* Derived UI shades (not brand colours) */
  --navy-hover: #262D5E;
  --navy-tint: #ECEEF7;
  --mist-tint: #EEF6F9;
  --paper: #FAF9F8;         /* page background */
  --surface: #FFFFFF;
  --surface-muted: #F4F2F1;

  /* Semantic */
  --text: var(--brand-ink);
  --text-muted: var(--neutral-70);
  --text-on-brand: #FFFFFF;
  --link: var(--brand-navy);
  --link-hover: var(--navy-hover);
  --border: var(--neutral-20);
  --border-strong: var(--neutral-40);
  --focus: var(--brand-navy);

  --danger: #D51C1C;        /* the site's error red; text on white and on --danger-bg */
  --danger-bg: #FDF0F0;
  --success: #225444;       /* dark green for text; the site's bright #84bd00 is fill-only */
  --success-bg: #E8F2ED;
  --success-fill: #84BD00;
  --warning: #6B4A00;       /* text; the site's #f1c400 is fill-only */
  --warning-bg: #FDF3CF;
  --warning-fill: #F1C400;
  --info: var(--brand-navy);
  --info-bg: var(--navy-tint);

  /* Typography (faces are declared in fonts.css) */
  --font-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --text-sm: .875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --leading: 1.5;

  /* Space, shape, layout */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --radius-sm: .25rem; --radius: .5rem; --radius-lg: .75rem;
  --shadow-sm: 0 1px 2px rgb(51 36 29 / .08);
  --shadow: 0 6px 20px rgb(51 36 29 / .12);
  --container: 74rem;
  --container-narrow: 30rem;
}
