/* vendored from docs/brand/tokens.css @ 2026-06-27 — re-sync on brand change (see spec §8) */
:root{
  /* ---- baza monochromatyczna ---- */
  --th-ink:        #14120e;  /* węgiel / tusz */
  --th-ink-cool:   #20262a;  /* tusz chłodny */
  --th-steel:      #5b6f78;  /* stal */
  --th-paper:      #f4f1e9;  /* papier (jasne tło) — W2 2026-07-11: jaśniejszy, mniej "ciężko" */
  --th-bone:       #ece6d6;  /* kość (tekst na ciemnym) */
  --th-oil:        #16130f;  /* olej / noc (ciemne tło) */
  --th-oil-2:      #1b1813;

  /* ---- rampa żaru: JEDYNA rodzina akcentu ---- */
  --th-heat-oxide:  #a3331c;  /* najgorętszy / intensywny — "bez wymówek" */
  --th-heat-ember:  #d6611f;  /* DOMYŚLNY, sygnaturowy (~80% przypadków) */
  --th-heat-orange: #e8862a;
  --th-heat-amber:  #e3a53a;  /* chłodniejszy, premium */
  --th-heat-gold:   #ecc873;  /* najsubtelniejszy / most do "żółci" redesignu strony */
  --th-accent:      var(--th-heat-ember);  /* alias domyślnego akcentu */

  /* ---- opcjonalny chłodny kontr-akcent (rzadko: kontrast / stany funkcyjne) ---- */
  --th-cold-petrol: #1f4140;
  --th-cold-teal:   #2f6f6e;
}

/* Semantyka intensywności: poziom / streak / trudność = pozycja na rampie.
 * Nałóż klasę na kontener, a dzieci używające var(--th-accent) "rozgrzeją się". */
.th-intensity-1{ --th-accent: var(--th-heat-gold); }
.th-intensity-2{ --th-accent: var(--th-heat-amber); }
.th-intensity-3{ --th-accent: var(--th-heat-orange); }
.th-intensity-4{ --th-accent: var(--th-heat-ember); }
.th-intensity-5{ --th-accent: var(--th-heat-oxide); }

/* ---- self-hosted fonts ---- */
/* Each family ships TWO subsets: `latin` (U+0000-00FF — ASCII + Latin-1, incl. ó/Ó)
   and `latin-ext` (U+0100+ — Polish ł/ą/ę/ć/ń/ś/ź/ż). The browser picks per codepoint.
   The old single latin-ext file claimed U+0000-00FF but lacked ó/Ó → PL artifacts. */
/* Oswald */
@font-face{font-family:"Oswald";src:url(/fonts/oswald-400-latin.woff2) format("woff2");
  font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF;}
@font-face{font-family:"Oswald";src:url(/fonts/oswald-400.woff2) format("woff2");
  font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Oswald";src:url(/fonts/oswald-600-latin.woff2) format("woff2");
  font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF;}
@font-face{font-family:"Oswald";src:url(/fonts/oswald-600.woff2) format("woff2");
  font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Oswald";src:url(/fonts/oswald-700-latin.woff2) format("woff2");
  font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF;}
@font-face{font-family:"Oswald";src:url(/fonts/oswald-700.woff2) format("woff2");
  font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}
/* Space Mono */
@font-face{font-family:"Space Mono";src:url(/fonts/space-mono-400-latin.woff2) format("woff2");
  font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF;}
@font-face{font-family:"Space Mono";src:url(/fonts/space-mono-400.woff2) format("woff2");
  font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0100-024F;}
@font-face{font-family:"Space Mono";src:url(/fonts/space-mono-700-latin.woff2) format("woff2");
  font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF;}
@font-face{font-family:"Space Mono";src:url(/fonts/space-mono-700.woff2) format("woff2");
  font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0100-024F;}
/* Source Serif 4 */
@font-face{font-family:"Source Serif 4";src:url(/fonts/source-serif-400-latin.woff2) format("woff2");
  font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF;}
@font-face{font-family:"Source Serif 4";src:url(/fonts/source-serif-400.woff2) format("woff2");
  font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Source Serif 4";src:url(/fonts/source-serif-400-italic-latin.woff2) format("woff2");
  font-weight:400;font-style:italic;font-display:swap;unicode-range:U+0000-00FF;}
@font-face{font-family:"Source Serif 4";src:url(/fonts/source-serif-400-italic.woff2) format("woff2");
  font-weight:400;font-style:italic;font-display:swap;unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Source Serif 4";src:url(/fonts/source-serif-600-latin.woff2) format("woff2");
  font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF;}
@font-face{font-family:"Source Serif 4";src:url(/fonts/source-serif-600.woff2) format("woff2");
  font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}

/* ---- --ds-* contract: map brand tokens to design-system tokens ---- */
:root{
  --ds-bg:var(--th-paper);
  --ds-surface:#fbf9f3;
  --ds-ink:var(--th-ink);
  --ds-muted:var(--th-steel);
  --ds-line:#d8d2c2;
  --ds-accent:var(--th-accent);
  --ds-accent-press:var(--th-heat-oxide);
  --ds-danger:#b3261e;
  --ds-link:var(--th-ink-cool);
  --ds-radius:0;
  --ds-btn-ink:#fff;
  --ds-f-display:"Oswald",sans-serif;
  --ds-f-label:"Space Mono",monospace;
  --ds-f-body:"Source Serif 4",Georgia,serif;
  --ds-h1:44px;
  --ds-h2:26px;
  --ds-body:17px;
  --ds-small:11px;
}
