/* Design tokens. The only place with raw colour, type and spacing values. */
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/familjen-grotesk-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/familjen-grotesk-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-latin-700.woff2") format("woff2"); }

:root {
  --ink: #101828;
  --paper: #ffffff;
  --ground: #f4f6fa;
  --blue: #1d4ed8;
  --blue-ink: #ffffff;
  --open: #ffd23f;
  --taken: #101828;
  --hold: #e4e7ec;
  --muted: #475467;
  --error: #b42318;

  --font-display: "Familjen Grotesk", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;

  /* major third (1.25) scale, body 18px */
  --step--1: 0.85rem;
  --step-0: 1.125rem;
  --step-1: 1.4rem;
  --step-2: 1.75rem;
  --step-3: 2.2rem;
  --step-4: 2.75rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  --measure: 68ch;
  --focus: 3px solid var(--ink);
  --touch: 44px;
}

@media (prefers-color-scheme: dark) {
  /* Brief is light-only; keep it readable if a browser forces dark. */
  :root:not([data-theme="light"]) { color-scheme: light; }
}
