/* ═══════════════════════════════════════════════════
   THEME — BONE
   Sunlit linen paper, watercolour illustration,
   Japanese stationery. Washi tape and pressed flowers.
   ───────────────────────────────────────────────────
   LIGHT-FIRST. The other palettes follow the system and land dark at night;
   Bone is bright by nature and stays bright unless a mode is asked for
   explicitly. That used to require restating the entire palette under a
   flipped media query. Now it is one declaration — `color-scheme: light` —
   because mode and palette are finally separate axes.
═══════════════════════════════════════════════════ */

.wal-bone,
[data-theme="bone"],
[data-theme^="bone-"] {
  /* ── The ground rod ── the same warm amber as café, at a whisper */
  --wal-hue:    55;
  --wal-chroma: 0.025;

  /* ── The five cues ── watercolour: pigment, not ink.
     The washi tape leads. The hanko stamp that used to lead is still on the
     page, in the cool slot: the slot names say where a cue is used, not what
     temperature it is, and success and danger are their own tokens, so any
     slot can hold any hue. A teal at the accent's stops runs out of sRGB at
     0.089 chroma, which is why the accent is the quietest number here and
     still reads first.
     Bloom and cool are pinned; from a teal their defaults are a second blue
     and an amber. */
  --wal-accent-hue: 208;  --wal-accent-chroma: 0.088; /* asagi washi tape */
  --wal-bloom-hue:  355;  --wal-bloom-chroma:  0.11;  /* pressed flower   */
  --wal-gold-hue:   85;   --wal-gold-chroma:   0.10;  /* dried stem       */
  --wal-olive-hue:  130;  --wal-olive-chroma:  0.075; /* pressed leaf     */
  --wal-cool-hue:   30;   --wal-cool-chroma:   0.13;  /* hanko vermilion  */

  /* ── Ramp nudges ── layered paper: the card stock sits ABOVE the page, so
     surface runs brighter than bg rather than darker. */
  --wal-l-bg-light:        95%;
  --wal-l-subtle-light:    92%;
  --wal-l-surface-light:   97%;
  --wal-l-surface-2-light: 93%;
  --wal-l-line-light:      86%;
  --wal-l-line-soft-light: 90%;
  --wal-l-text-light:      18%;
  --wal-l-text-soft-light: 38%;
  --wal-l-text-muted-light: 50.5%;
}

/* Light-first, stated so it still LOSES to an explicit mode request.
   The :not() chain matters: this file ships unlayered, which beats the mode
   rules in 01-tokens.css whatever their specificity, so a plain `.wal-bone`
   rule would make `.wal-dark` on the same element unreachable. The :where()
   matters too: without it the chain weighs (0,4,0) and beats an app's own
   one-class dark mode, `.dark { color-scheme: dark }`. */
:where(.wal-bone:not(.wal-dark):not([data-theme="dark"]):not([data-theme$="-dark"]),
       [data-theme="bone"]:not(.wal-dark)) {
  color-scheme: light;
}
