/* Design tokens
   ----------------------------------------------------------------
   The single source of truth for colour, type and spacing.
   These names are meant to mirror Figma variables one-to-one,
   so a change in Figma maps to one line here. */

:root {
  /* Colour: primitives */
  --grey-50: #FFFFFF;
  --grey-100: #F4F4F6;
  --grey-200: #E4E4E8;
  --grey-500: #6B6B70;
  --grey-800: #333333;
  --grey-900: #2C2C2C;
  --black: #000000;

  /* Colour: semantics (what components use) */
  --color-bg: var(--grey-100);
  --color-surface: var(--grey-50);
  --color-ink: var(--grey-800);
  --color-ink-muted: var(--grey-500);
  --color-ink-strong: var(--black);
  --color-rule: var(--grey-800);
  --color-border: var(--grey-200);
  --color-action: var(--grey-900);
  --color-on-action: var(--grey-50);

  /* Type: families */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Roboto", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  /* Type: scale */
  --text-xs: 0.75rem;     /* 12px  tags */
  --text-sm: 0.875rem;    /* 14px  links, captions, lists */
  --text-md: 1rem;        /* 16px  body */
  --text-lg: 1.25rem;     /* 20px  sub-headings */
  --text-xl: 1.75rem;     /* 28px  section headings */
  --text-2xl: clamp(2rem, 1.5rem + 1.8vw, 2.5rem);  /* card titles */
  --text-3xl: clamp(2.25rem, 1.5rem + 2.6vw, 3rem); /* page titles */

  --leading-tight: 1.1;
  --leading-body: 1.625;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-full: 999px;

  /* Layout */
  --width-text: 32rem;    /* reading column */
  --width-wide: 58rem;    /* images, case cards */
  --gutter: 1rem;

  /* Motion (from your motion token work) */
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 200ms;
}
