/* Colours shared by every site, light and dark (bean bc72d1). Stamped into every site as
   assets/kit/theme.css. Load it BEFORE the site's own site.css, then assets/kit/theme.js.

   Each colour is light-dark(<light>, <dark>). Which one is used follows color-scheme:
   the device's setting by default, or the user's choice from theme.js (data-theme on
   <html>). color-scheme also turns the browser's own parts dark: form fields, scrollbars,
   <audio> controls, and the page behind everything.
   A site adds its own colours in its site.css the same way, with light-dark(). */

:root {
    color-scheme: light dark;
    --fg: light-dark(#1f2328, #e6edf3);
    --muted: light-dark(#59636e, #9198a1);
    --bg: light-dark(#fff, #0d1117);
    --soft: light-dark(#f6f8fa, #161b22);
    --line: light-dark(#d1d9e0, #3d444d);
    --accent: light-dark(#0b5cad, #4493f8);
    --bar: light-dark(#24364b, #161b22);
    --bar-fg: light-dark(#fff, #e6edf3);
    --warn: light-dark(#fff6d6, #3a3000);
    --danger: light-dark(#d1242f, #ff7b72);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

body { color: var(--fg); background: var(--bg); }
a { color: var(--accent); }

/* The switch. Looks like the Sign out button; a site places it. */
.theme-toggle { background: none; color: inherit; border: 1px solid currentColor;
                border-radius: .3rem; padding: .15rem .6rem; cursor: pointer; white-space: nowrap; }
