/* The platform's tokens: the "paper" scheme. Other schemes are in themes.css. A realm's
   brand may set its accent (realm.yaml `brand.accent`, applied by js/look.js) and
   nothing else; status colours are the platform's in every scheme. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f0f0ec;
  --ink: #1b1c1e;
  --ink-2: #55575d;
  --ink-3: #6a6c70;
  --line: #e2e2dc;
  --accent: #2f5bd3;
  --accent-ink: #ffffff;
  --accent-soft: #e6ecfb;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --bad: #b3261e;
  --bad-soft: #fdecea;

  --radius: 12px;
  --radius-s: 8px;
  --measure: 860px;
  /* The device's own fonts first; the vendored Noto slices (css/fonts.css, linked
     only when an answer needs them) fill any script the device lacks. */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
          "Helvetica Neue", Arial, "Chat Noto Sans Arabic", "Chat Noto Sans Hebrew", "Chat Noto Sans Devanagari",
          "Chat Noto Sans Thai", "Chat Noto Sans KR", "Chat Noto Sans JP", "Chat Noto Sans SC", "Chat Noto Sans TC",
          "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Chat Noto Color Emoji", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131416;
    --surface: #1b1c1f;
    --surface-2: #232428;
    --ink: #ececea;
    --ink-2: #b2b3b8;
    --ink-3: #8a8c92;
    --line: #2e3035;
    --accent: #7c9cff;
    --accent-ink: #0d1430;
    --accent-soft: #1f2a4a;
    --warn: #f0b45a;
    --warn-soft: #3a2a10;
    --bad: #ff8a80;
    --bad-soft: #3d1a17;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #131416;
  --surface: #1b1c1f;
  --surface-2: #232428;
  --ink: #ececea;
  --ink-2: #b2b3b8;
  --ink-3: #8a8c92;
  --line: #2e3035;
  --accent: #7c9cff;
  --accent-ink: #0d1430;
  --accent-soft: #1f2a4a;
  --warn: #f0b45a;
  --warn-soft: #3a2a10;
  --bad: #ff8a80;
  --bad-soft: #3d1a17;
  color-scheme: dark;
}
