/* what-if colour tokens: the one source for the landing page and the docs theme.
   `make docs/render` stages this file into the docs theme with theme/tokens.wiki.css, so the two
   cannot drift. Neutrals are the shared warm stone (light) and zinc (dark) of the agync family;
   cerulean is the product accent and marks interaction only: links, focus, selection and the one
   primary action. Status colours always travel with a word. */

:root {
  color-scheme: light;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --sunken: #F5F5F4;
  --line: #E7E5E4;
  --line-strong: #D6D3D1;
  --text: #1C1917;
  --text-2: #44403C;
  --text-3: #57534E;
  --text-4: #716A65;
  --accent: #0F5FA8;
  --accent-text: #0B4F8C;
  --accent-soft: rgba(15, 95, 168, 0.08);
  --on-accent: #FFFFFF;
  --ok: #15803D;
  --warn: #A16207;
  --crit: #B91C1C;
  --code-bg: #1C1917;
  --code-fg: #F5F5F4;
  --code-accent: #93C5F2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111114;
    --surface: #16161A;
    --sunken: #0D0D0F;
    --line: #2A2A2F;
    --line-strong: #3A3A40;
    --text: #F4F4F5;
    --text-2: #E4E4E7;
    --text-3: #A1A1AA;
    --text-4: #8E8E96;
    --accent: #6CB0EC;
    --accent-text: #93C5F2;
    --accent-soft: rgba(108, 176, 236, 0.12);
    --on-accent: #0D0D0F;
    --ok: #4ADE80;
    --warn: #FFD800;
    --crit: #F87171;
    --code-bg: #0D0D0F;
    --code-fg: #E4E4E7;
    --code-accent: #93C5F2;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111114;
  --surface: #16161A;
  --sunken: #0D0D0F;
  --line: #2A2A2F;
  --line-strong: #3A3A40;
  --text: #F4F4F5;
  --text-2: #E4E4E7;
  --text-3: #A1A1AA;
  --text-4: #8E8E96;
  --accent: #6CB0EC;
  --accent-text: #93C5F2;
  --accent-soft: rgba(108, 176, 236, 0.12);
  --on-accent: #0D0D0F;
  --ok: #4ADE80;
  --warn: #FFD800;
  --crit: #F87171;
  --code-bg: #0D0D0F;
  --code-fg: #E4E4E7;
  --code-accent: #93C5F2;
}
