/* Design tokens — the only place colours, type, spacing and motion are defined.
   See docs/website-best-practices.md §3. Values come from the client's draft site. */
:root {
  color-scheme: light;

  /* Page and surfaces */
  --background: #f7f4ec;               /* warm cream paper */
  --surface-container-low: #fffdf8;    /* bright leaf: figure cards, panels */
  --surface-container: #ece5d4;        /* deeper cream: secondary buttons, bands */
  --surface-container-high: #e3dac4;   /* table header band, hover fill */

  /* Ink */
  --on-surface: #1c1f26;               /* near-black ink */
  --on-surface-variant: #4f5360;       /* graphite: captions, secondary text */

  /* Rules and borders */
  --outline: #b08d57;                  /* burnished brass: rules and borders */
  --outline-variant: #d9cfb8;          /* pale brass: hairline dividers */

  /* Accents */
  --primary: #14213d;                  /* deep institutional navy */
  --on-primary: #f7f4ec;               /* cream on navy */
  --primary-container: #e3e6ee;        /* pale navy wash: selected states */
  --on-primary-container: #14213d;
  --secondary: #2d5a4a;                /* bottle green: favorable notes */
  --on-secondary: #ffffff;
  --tertiary: #8a6a35;                 /* dark brass: small accent text */
  --error: #9b2c2c;
  --on-error: #f7f4ec;

  /* Semantic tokens */
  --positive: #2d5a4a;
  --warning: #b08d57;
  --focus: #14213d;

  /* Data series */
  --data-1: #14213d;                   /* navy */
  --data-2: #8a6a35;                   /* dark brass */
  --data-3: #2d5a4a;                   /* bottle green */
  --data-4: #5b7aa0;                   /* slate blue */
  --data-context: #c2bba9;

  /* Typography */
  --font-headline: 'Libre Caslon Text', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-label: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type Scale (Narrative) */
  --display-size: clamp(2.4rem, 1.8rem + 2.8vw, 4.25rem);
  --headline-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --subhead-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --body-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --label-size: clamp(0.72rem, 0.7rem + 0.1vw, 0.8125rem);

  /* Spacing scale (4pt base) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Shape */
  --rounded: 0.125rem;
  --rounded-lg: 0.25rem;
  --rounded-full: 0.125rem;

  /* Style effects */
  --brass-rule: 2px solid var(--outline);
  --brass-rule-thick: 3px solid var(--outline);
  --hairline: 1px solid var(--outline-variant);
  --leaf-underline: 0 1px 0 var(--outline-variant);
  --shadow-subtle: 0 4px 16px rgba(20, 33, 61, 0.05);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
}
