/* billcu — central theme palette. Dark is the default (matches the historical
   inline :root in every template); html[data-theme="light"] flips to light.
   The switcher (in _nav.html / mobile) persists the choice in
   localStorage['billcu-theme']; a tiny pre-paint script in each <head> applies
   it before first render so there is no flash. */

:root{
  --bg:#0e1319; --bg2:#11161c; --panel:#161d25; --panel2:#1c2530;
  --line:#27313d; --line2:#3a4754;
  --txt:#e9eef4; --txt-strong:#ffffff; --muted:#8a97a4;
  --accent:#4493f8; --accent2:#5aa0ff;
  --green:#3fb950; --amber:#d6a01f; --red:#f8716a; --violet:#a371f7;
  --ok-bg:#16311c; --bad-bg:#3a1d1d; --bad-bg2:#5c2f2c;
  --warn-bg:#3a311a; --warn-bg2:#2a2412; --info-bg:#16273f; --info-bg2:#15263c;
  --violet-bg:#221a33;
  --header-bg:rgba(14,19,25,.82);
  --shadow:0 8px 24px rgba(0,0,0,.35);
  color-scheme:dark;
}

html[data-theme="light"]{
  /* Warm paper palette – matches the 2026-07-21 website redesign (billcu.ai).
     Deliberately NOT stark white: warm gray ground, white cards, ink text.
     The previous GitHub-flavored cool white read as "viel zu hell". */
  --bg:#f4f3ef; --bg2:#ecebe5; --panel:#ffffff; --panel2:#f8f7f3;
  --line:#e1dfd7; --line2:#cfccc2;
  --txt:#2b333d; --txt-strong:#171d24; --muted:#5b6570;
  --accent:#2f6bd8; --accent2:#2558b8;
  --green:#2f9e44; --amber:#a97a0b; --red:#cf4a44; --violet:#7c5cd0;
  --ok-bg:#e4efe2; --bad-bg:#f9e6e3; --bad-bg2:#f2d5d0;
  --warn-bg:#f7edd3; --warn-bg2:#f1e5c4; --info-bg:#e3ecf9; --info-bg2:#d5e3f5;
  --violet-bg:#ece6f7;
  --header-bg:rgba(244,243,239,.85);
  --shadow:0 8px 24px rgba(32,38,46,.12);
  color-scheme:light;
}
