/*
  Operativa's design tokens: the one place a raw colour, size or typeface
  is written. Every other style of the UI names a token
  (test/design.test.mjs fails on one that does not). Light or dark by the
  device.
*/
:root {
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text-body: 15px;
  --text-head: 20px;
  --text-brand: 17px;
  --text-group: 16px;
  --text-small: 13px;
  --weight-strong: 600;
  --line-height: 1.5;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-8: 48px;

  --radius: 8px;
  --border-width: 1px;
  --opacity-off: 0.6;
  --nav-width: 232px;
  --page-width: 960px;
  --filter-width: 240px;
  --field-width: 120px;

  --colour-ground: #fbfaf7;
  --colour-surface: #ffffff;
  --colour-text: #1f2421;
  --colour-quiet: #5d665f;
  --colour-border: #dcdfd8;
  --colour-accent: #2f6b4f;
  --colour-accent-soft: #e3efe8;
  --colour-refused: #8a2d1f;
  --colour-refused-soft: #f8e6e1;
  --colour-focus: #2f6b4f;
  --colour-on-accent: #ffffff;
  --colour-warn: #8a5a00;
  --colour-warn-soft: #fbefd5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --colour-ground: #151816;
    --colour-surface: #1d211f;
    --colour-text: #e8ebe6;
    --colour-quiet: #a3aba4;
    --colour-border: #343a36;
    --colour-accent: #8cc7a8;
    --colour-accent-soft: #23372c;
    --colour-refused: #f0a593;
    --colour-refused-soft: #3a221d;
    --colour-focus: #8cc7a8;
    --colour-on-accent: #151816;
    --colour-warn: #f0c674;
    --colour-warn-soft: #3a2f17;
  }
}
