/* Design tokens. Source of truth: DESIGN.md section 2. Change a value here, never inline in a page. */
:root {
  /* colour */
  --paper: #F3F2EC;
  --surface: #FFFFFF;
  --ink: #15171B;
  --ink-2: #474C55;
  --ink-3: #60656E;
  --rule: #E4E1D8;
  --rule-strong: #D3CFC4;
  --signal: #C2410C;
  --signal-bg: #FBE9DC;
  --signal-text: #9A3412;
  --bar-mid: #A8A39A;
  --bar-light: #D3CFC4;

  /* space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  /* shape */
  --radius-tag: 3px;
  --radius-control: 4px;
  --radius-panel: 6px;
  --radius-card: 8px;

  /* type */
  --font-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-note: 'Newsreader', Georgia, 'Times New Roman', serif;
  --fs-h1: 36px;
  --fs-h2: 30px;
  --fs-h3: 22px;
  --fs-section: 15px;
  --fs-body: 15px;
  --fs-table: 14px;
  --fs-meta: 13px;
  --fs-meta-sm: 12px;
  --fs-display: 84px;
  --stretch-heading: 110%;
  --stretch-wordmark: 115%;
  --stretch-display: 118%;
  --lh-heading: 1.1;
  --lh-body: 1.5;

  /* layout */
  --container: 1120px;
  --gutter: 16px;
  --header-h: 56px;
  --tabbar-h: 56px;
  --touch: 44px;

  /* motion and focus */
  --motion: 150ms;
  --focus-ring: 2px solid var(--signal);
  --focus-offset: 2px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }
}

@media (max-width: 719.98px) {
  :root {
    --fs-h1: 28px;
    --fs-h2: 24px;
    --fs-h3: 20px;
    --fs-display: 48px;
  }
}
