/* WEBDEVCAVEMAN portfolio · R7 "the mage's book" tokens (thread 9, 2026-11-14)
   Theme follows the time of day in Poland (rules.periodAt): night 21–5 = navy paper with glowing cyan ink, otherwise warm paper.

   Contrast (WCAG 2.1, computed on --paper):
   day   text 14.12 · text-2 5.99 · note 5.53 · cyan-ink #066E98 5.04 (4.53 on --paper-2) · ink on cyan button 9.64
   night text 15.14 · text-2 8.13 · note 8.43 · cyan-ink 10.23
   window #E6ECF3 on #0E1522 15.37 · cyan in a window 8.84
   FORBIDDEN: pure cyan #00C2FF as text on day paper (1.83) · #0A7FB0 for small text (3.98; only numerals ≥ 24 px)
              --rule is decoration only (1.35 / 1.39), never the only cue. */

:root {
  --paper: #F4F1EA;
  --paper-2: #EAE5DA;
  --text: #1B2230;
  --text-2: #545C68;
  --note: #6B5F4B;
  --rule: #D8D1C3;
  --graphite: #2E333B;
  --blue: #5B8DD6;            /* construction lines in the sketch, decoration only */
  --blue-text: #3A69AE;       /* thread 25: small blue captions (Raróg ages, egg); 4.88:1 on paper, 5.15 on paper-2 (AA) */
  --cyan: #00C2FF;            /* button fill, living water; never small text on paper */
  --cyan-ink: #066E98;        /* chapter labels and links on paper */
  --cyan-big: #0A7FB0;        /* roman numerals in the margin (large text only) */
  --ink: #07090D;
  --win: #0E1522;
  --win-text: #E6ECF3;
  --win-line: #1F2836;
  --hp: #C0282D;

  --font-head: "Alegreya", Georgia, serif;
  --font-sc: "Alegreya SC", Georgia, serif;
  --font-body: "Onest", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 48px;
  --margin-col: 150px;
  --badge-clear: 12.5rem;     /* Netlify Free badge, bottom right */
  --nav-h: 60px;
}

html[data-theme="night"] {
  --paper: #0C1726;
  --paper-2: #122036;
  --text: #E6ECF3;
  --text-2: #9FB0C4;
  --note: #9DB4CC;
  --rule: #22324A;
  --graphite: #B8C7D9;
  --blue: #3F75B8;
  --blue-text: #6E9BE0;       /* 6.5:1 on paper, ~5.9 on paper-2 */
  --cyan-ink: #39D3FF;
  --cyan-big: #39D3FF;
}

@media (max-width: 700px) {
  :root { --gutter: 16px; --nav-h: 56px; }
}
