/* Palette, fonts and rules shared by every page (docs/SPEC.md「视觉和适配」「维护约束」). Every colour
   is a token here and the other stylesheets use only var(), so the palette SPEC lists is the whole of it. */
/* Dark: near-black grounds and light grey text, softer than white on a phone at night. Text tokens
   keep at least 4.5:1 on every ground they sit on (ink over 10:1). */
:root{color-scheme:dark;
--bg:#121412;--sidebar:#181b18;--sidebar-2:#1e221e;--panel:#1b1e1b;--soft:#232823;--sentence-hover:#1d211d;
--ink:#d3d7cf;--muted:#9aa399;--faint:#6c746b;
--line:#2b302b;--control-line:#3c433c;--button-line:#353b35;--player-line:#2e342e;
--accent:#d4917c;--accent-soft:#2e2521;--current-ink:#f0d6ca;--error-ink:#eba996;
/* --green is text, outlines and checkmarks; a filled button is --green-fill with --on-fill text. */
--green:#8fbea8;--green-fill:#3e6a5b;--on-fill:#eef2ec;--green-hover:#34594c;--play-hover:#365d50;
--scrim:rgba(0,0,0,.6);
--tree-thumb:#4a524a;--tree-thumb-hover:#636d62;--reader-track:#1a1e1a;--reader-track-line:#2c322c;--reader-thumb:#55685a;--reader-thumb-hover:#6f8a76;
--serif:Georgia,'Songti SC','STSong','Noto Serif CJK SC','SimSun',serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
/* Every text on every page is --text-size, at every width; only glyph icons (× ⌕ › ⇤ ⇥) keep a size of
   their own. An article's own text (the player's sentences, the full-text page) is --reading-size in
   --sans: the pages set it from the text_size setting, which starts at the same 12px. */
--text-size:12px;--reading-size:12px}
*{box-sizing:border-box}
body{margin:0}
[hidden]{display:none!important}
/* Keyboard focus is a thin ring just outside the control (inside it for rows that fill a scrolling list,
   see styles.css). Text fields and the picker buttons have a border of their own and colour it instead,
   so no frame is drawn around them or over their labels. */
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
input:not([type=checkbox],[type=range]):focus-visible,[aria-haspopup=listbox]:focus-visible{outline:none;border-color:var(--green)}
/* A dialog, or the full-text page's main region, holds focus only while its own work runs and gives it
   back after (app.js keepFocus, read.js); a frame around all of it would point at nothing. */
dialog:focus-visible,#read-main:focus-visible{outline:none}
@keyframes pulse{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
