/* Self-hosted fonts (SIL Open Font License, see /static/fonts/*.txt). Cyrillic + Latin. */
@font-face { font-family: "Unbounded"; font-weight: 400; font-display: swap; src: url("/static/fonts/unbounded-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 400; font-display: swap; src: url("/static/fonts/unbounded-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("/static/fonts/unbounded-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("/static/fonts/unbounded-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("/static/fonts/unbounded-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("/static/fonts/unbounded-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("/static/fonts/golos-text-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("/static/fonts/golos-text-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("/static/fonts/golos-text-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("/static/fonts/golos-text-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("/static/fonts/golos-text-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("/static/fonts/golos-text-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Dark theme is the default; [data-theme="light"] switches (static/js/theme.js). */
  color-scheme: dark;
  --paper: #10151d;
  --surface: #18202b;
  --ink: #e4e9e2;
  --ink-soft: #9ba7b6;
  --line: #2b3544;
  --signal: #6f86ff;
  --signal-ink: #a6b4ff;
  --on-signal: #0b1020;
  --signal-tint: #1f2a4d;
  --ok: #57c084;
  --warn: #e3a948;
  --danger: #f2776d;
  --ok-bg: #15301f; --ok-line: #2f6a46;
  --err-bg: #3a1c1b; --err-line: #7a3a35;
  --warn-bg: #36290f; --warn-line: #7a5a1f;
  --field: #0c1118;
  --field-border: #3a4657;
  --side-bg: #0a0e14;
  --side-ink: #d5dbe4;
  --side-strong: #ffffff;
  --side-accent: #8fa2ff;
  --side-link: #b9c2cf;
  --side-hover: #1d2635;
  --side-soft: #8794a6;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #e9ede7;
  --surface: #f6f8f4;
  --ink: #18212f;
  --ink-soft: #4a5566;
  --line: #c6cec3;
  --signal: #2e47c7;
  --signal-ink: #1f3299;
  --on-signal: #ffffff;
  --signal-tint: #dfe4f6;
  --ok: #2b7547;
  --warn: #9a6210;
  --danger: #b0352e;
  --ok-bg: #e3f0e7; --ok-line: #9cc7aa;
  --err-bg: #f8e4e2; --err-line: #e0a29d;
  --warn-bg: #f6ecd9; --warn-line: #dcbd85;
  --field: #ffffff;
  --field-border: #aeb8ab;
  --side-bg: #18212f;
  --side-ink: #dfe5ee;
  --side-strong: #ffffff;
  --side-accent: #8fa2ff;
  --side-link: #c8d0dc;
  --side-hover: #253042;
  --side-soft: #9aa6b8;
}

/* Theme switch icons: in dark theme offer the sun (switch to light), in light the moon */
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: inline; }
