/* the typeface is served with the app (fonts/, SIL Open Font License), so it works offline and asks nobody else */
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/figtree-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/figtree-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Smooth (5.0): a calm study tracker. Light or dark from the device, both complete. One warm winter yellow fills the
   primary button, the active choice and the next date (always with dark text on it); a darker amber says due or missing
   in text, where yellow would not read on white. Green only for passed, red only for failed. Figtree for everything */
:root{
  --paper:#f5f6f8; --card:#ffffff; --ink:#15171c; --muted:#5b616d; --line:#e1e4e9;
  --accent:#9a5600; --accent-soft:#fdf0d2; --blue:#3a414e; --blue-soft:#eef0f3; --hot:#f2a900; --inv-hot:#9a5600;
  --ok:#15784a; --ok-soft:#dff3e8; --warn:#9a5600; --warn-soft:#fdf0d2; --bad:#c21f3f; --bad-soft:#fbe3e8; --save:#f2a900;
  --pri:#f5b80c; --on-pri:#1f1600; /* buttons and the active choice; a colour theme (Settings → Appearance) overrides them */
  --shadow:0 1px 2px rgba(20,24,32,.05),0 2px 8px rgba(20,24,32,.04);
  --f-display:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-body:var(--f-display);
  --f-mono:var(--f-display); /* numbers sit in the text face, lined up with tabular figures (.mono) */
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#0e0f12; --card:#17191e; --ink:#eceef2; --muted:#9ba1ad; --line:#2a2e36;
  --accent:#ffc940; --accent-soft:#3a2c08; --blue:#c5cad4; --blue-soft:#1f2228; --hot:#ffc940; --inv-hot:#ffc940;
  --ok:#4cc585; --ok-soft:#12291c; --warn:#ffc940; --warn-soft:#3a2c08; --bad:#ff6b81; --bad-soft:#3a1420; --save:#ffc940; --pri:#ffc940; --shadow:none; color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#0e0f12; --card:#17191e; --ink:#eceef2; --muted:#9ba1ad; --line:#2a2e36;
  --accent:#ffc940; --accent-soft:#3a2c08; --blue:#c5cad4; --blue-soft:#1f2228; --hot:#ffc940; --inv-hot:#ffc940;
  --ok:#4cc585; --ok-soft:#12291c; --warn:#ffc940; --warn-soft:#3a2c08; --bad:#ff6b81; --bad-soft:#3a1420; --save:#ffc940; --pri:#ffc940; --shadow:none; color-scheme:dark}
/* the page's own Light / Dark switch wins over the system and viewer theme */
:root[data-mode="light"]{
  --paper:#f5f6f8; --card:#ffffff; --ink:#15171c; --muted:#5b616d; --line:#e1e4e9;
  --accent:#9a5600; --accent-soft:#fdf0d2; --blue:#3a414e; --blue-soft:#eef0f3; --hot:#f2a900; --inv-hot:#9a5600;
  --ok:#15784a; --ok-soft:#dff3e8; --warn:#9a5600; --warn-soft:#fdf0d2; --bad:#c21f3f; --bad-soft:#fbe3e8; --save:#f2a900; --pri:#f5b80c; --shadow:0 1px 2px rgba(20,24,32,.05),0 2px 8px rgba(20,24,32,.04); color-scheme:light}
:root[data-mode="dark"]{
  --paper:#0e0f12; --card:#17191e; --ink:#eceef2; --muted:#9ba1ad; --line:#2a2e36;
  --accent:#ffc940; --accent-soft:#3a2c08; --blue:#c5cad4; --blue-soft:#1f2228; --hot:#ffc940; --inv-hot:#ffc940;
  --ok:#4cc585; --ok-soft:#12291c; --warn:#ffc940; --warn-soft:#3a2c08; --bad:#ff6b81; --bad-soft:#3a1420; --save:#ffc940; --pri:#ffc940; --shadow:none; color-scheme:dark}
/* credits chart colours: passed green, in progress slate, the race in orange and yellow */
:root{--c-pass:#15784a;--c-prog:#8b929e;--c-org:#e2650f;--c-yel:#f2a900}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--c-pass:#3aa870;--c-prog:#7d8594;--c-org:#ff8a45;--c-yel:#ffc940}}
:root[data-theme="dark"]{--c-pass:#3aa870;--c-prog:#7d8594;--c-org:#ff8a45;--c-yel:#ffc940}
:root[data-mode="light"]{--c-pass:#15784a;--c-prog:#8b929e;--c-org:#e2650f;--c-yel:#f2a900}
:root[data-mode="dark"]{--c-pass:#3aa870;--c-prog:#7d8594;--c-org:#ff8a45;--c-yel:#ffc940}
/* version 4 (Orloj) in the version history: faded blues, dark blue text on light, light text on dark */
:root{--v4a:#e3edf9;--v4b:#c5d9f1;--v4ink:#1f4f8f;--v4glow:#5a90dc}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--v4a:#1b2a3d;--v4b:#2a4266;--v4ink:#d3e3f8;--v4glow:#7fb0ef}}
:root[data-theme="dark"]{--v4a:#1b2a3d;--v4b:#2a4266;--v4ink:#d3e3f8;--v4glow:#7fb0ef}
:root[data-mode="light"]{--v4a:#e3edf9;--v4b:#c5d9f1;--v4ink:#1f4f8f;--v4glow:#5a90dc}
:root[data-mode="dark"]{--v4a:#1b2a3d;--v4b:#2a4266;--v4ink:#d3e3f8;--v4glow:#7fb0ef}
/* version 5 in the version history: the winter yellow with dark text in both themes; a version's group and page take its major's colours through data-maj */
:root{--v5a:#fdf0d2;--v5b:#f5b80c;--v5ink:#1f1600;--v5glow:#f5b80c}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--v5a:#3a2c08;--v5b:#ffc940;--v5ink:#1a1300;--v5glow:#ffc940}}
:root[data-theme="dark"],:root[data-mode="dark"]{--v5a:#3a2c08;--v5b:#ffc940;--v5ink:#1a1300;--v5glow:#ffc940}
:root[data-mode="light"]{--v5a:#fdf0d2;--v5b:#f5b80c;--v5ink:#1f1600;--v5glow:#f5b80c}
[data-maj="5"]{--v4a:var(--v5a);--v4b:var(--v5b);--v4ink:var(--v5ink);--v4glow:var(--v5glow)}
/* the mark's yellow: the button colour unless a colour theme sets its own */
:root{--wmark:var(--pri)}
