/* Scroll & Stone - living time tokens.
   Foundational codex colours (--codex-*, defined in home.css/style.css) are never
   touched here. These four custom properties are an OPT-IN layer: a page that never
   reads them looks exactly as it did before. living-time.js sets data-hebrew-month,
   data-jewish-season, data-omer and data-friday on <html>; this file reacts to
   data-jewish-season to retint the two accent tokens from the existing codex
   palette (no new colours invented), and living-time.js sets --omer-progress
   inline as a 0-1 fraction of the 49-day count (0 outside it).

   --year-vellum    background accent for the day's season
   --year-pigment   ink/accent colour for the day's season
   --year-ambient   soft ambient glow (box-shadow / gradient stop) for the day's season
   --omer-progress  0-1 fraction through the Omer count; 0 when not counting */

:root {
  --year-vellum:   var(--codex-vellum, #F3E9D2);
  --year-pigment:  var(--codex-gold, #C9A227);
  --year-ambient:  var(--codex-gold-hi, #F0DD9A);
  --omer-progress: 0;
}

/* Tishrei-Cheshvan: gathering (harvest) */
:root[data-jewish-season="gathering"] {
  --year-pigment: var(--codex-coast, #B98A4B);
  --year-ambient: var(--codex-vellum-3, #E6D5AF);
}

/* Kislev-Tevet-Shevat: winter-light (Hanukkah into the depths of winter) */
:root[data-jewish-season="winter-light"] {
  --year-pigment: var(--codex-lapis-2, #2C4087);
  --year-ambient: var(--codex-gold-hi, #F0DD9A);
}

/* Adar / Adar I / Adar II: turning (Purim) */
:root[data-jewish-season="turning"] {
  --year-pigment: var(--codex-tyrian, #6E2B6B);
  --year-ambient: var(--codex-gold-hi, #F0DD9A);
}

/* Nisan-Iyar-Sivan: spring-counting (Passover to Shavuot, the Omer) */
:root[data-jewish-season="spring-counting"] {
  --year-pigment: var(--codex-malachite, #1E7B4F);
  --year-ambient: var(--codex-gold-hi, #F0DD9A);
}

/* Tammuz-Av: high-summer */
:root[data-jewish-season="high-summer"] {
  --year-pigment: var(--codex-vermilion, #C8401F);
  --year-ambient: var(--codex-vellum-3, #E6D5AF);
}

/* Elul: return (turning back toward Tishrei) */
:root[data-jewish-season="return"] {
  --year-pigment: var(--codex-gold-deep, #8C6E1D);
  --year-ambient: var(--codex-gold-hi, #F0DD9A);
}
