/* Kaya — design tokens (day + night) and self-hosted type.
   Day is the default on :root; night is `body.night` (per design/koyeba/README.md §3).
   Colour values are traced exactly from the prototype (design/koyeba/Koyeba App.dc.html);
   hex in the comments is the approximation only. One accent: gold. Night is forest, never navy. */

/* ── Type: self-hosted latin woff2 in /fonts ──────────────────────────────── */
@font-face{font-family:'Cormorant Garamond';src:url('/fonts/CormorantGaramond-300.woff2') format('woff2');font-weight:300;font-style:normal;font-display:block}
@font-face{font-family:'Cormorant Garamond';src:url('/fonts/CormorantGaramond-300-italic.woff2') format('woff2');font-weight:300;font-style:italic;font-display:block}
@font-face{font-family:'Cormorant Garamond';src:url('/fonts/CormorantGaramond-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:block}
@font-face{font-family:'Jost';src:url('/fonts/Jost-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:'Jost';src:url('/fonts/Jost-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:block}
@font-face{font-family:'Jost';src:url('/fonts/Jost-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:block}
/* Source Serif 4 (§58/§59): someone else's words, on white paper. Self-hosted
   latin woff2 (the prototype loads it from Google Fonts, which our CSP blocks).
   One variable file carries the 400-600 axis, so 600 renders heavier from it. */
@font-face{font-family:'Source Serif 4';src:url('/fonts/SourceSerif4.woff2') format('woff2');font-weight:400 600;font-style:normal;font-display:block}
@font-face{font-family:'Source Serif 4';src:url('/fonts/SourceSerif4-italic.woff2') format('woff2');font-weight:400;font-style:italic;font-display:block}
/* Noto Sans Symbols (§64): the zodiac glyphs ♈–♓ as real text, not emoji.
   Self-hosted latin/zodiac subset (U+2648-2653); the horoscope card appends
   U+FE0E to force text presentation. */
@font-face{font-family:'Noto Sans Symbols';src:url('/fonts/NotoSansSymbols-zodiac.woff2') format('woff2');font-weight:400;font-style:normal;font-display:block;unicode-range:U+2648-2653,U+FE0E}

/* ── Day (default) ────────────────────────────────────────────────────────── */
:root{
  --k-bg:oklch(0.975 0.012 85);      /* ≈#f8f4ec  page (ivory) */
  --k-panel:oklch(0.99 0.006 85);    /* ≈#fdfbf7  cards, drawer, inputs-in-panels */
  --k-soft:oklch(0.94 0.016 82);     /* ≈#efe9dc  selected row, inner dividers, open sheet */
  --k-mine:oklch(0.92 0.03 82);      /* my own chat messages' soft fill (never solid gold) */
  --k-ink:oklch(0.17 0.015 60);      /* text - V31 §59: darker, was 0.22 */
  --k-mute:oklch(0.38 0.02 70);      /* secondary text - V31 §59: darker (passes 4.5:1 on ivory), was 0.46 */
  --k-line:oklch(0.88 0.014 80);     /* ≈#e0d9cc  1px keylines */
  --k-gold:oklch(0.72 0.13 75);      /* ≈#c99a3e  accent fills, rules, markers */
  --k-goldt:oklch(0.5 0.11 68);      /* gold TEXT - V31 §59: darker, was 0.55 */
  --k-deep:oklch(0.28 0.04 155);     /* ≈#2c4a3a  forest: capture bar, notification, avatars */
  --k-ondeep:oklch(0.975 0.012 85);  /* ≈#f8f4ec  text on forest */
  --k-ongold:oklch(0.22 0.018 60);   /* text on a solid gold button (same in both themes) */
  --k-rust:oklch(0.6 0.14 40);       /* V36 §72: a quiet terracotta for "needs you"/overdue ONLY - never a status colour elsewhere */

  --k-serif:'Cormorant Garamond',serif;         /* display only: titles, big readings, the quote */
  --k-sans:'Jost',sans-serif; /* type system 1a (§59): does the work - items, body, meta, labels */
  --k-read:'Source Serif 4',Georgia,serif; /* someone else's words, on white paper (§58) */
  font-synthesis:none; /* never fake a weight or slant we have no real face for */
}

/* ── Night: deep forest green — never blue-grey, navy or black ────────────── */
body.night, :root[data-theme='dark']{
  /* v7 night: a lighter, warmer deep-forest (hue 158, more chroma). Keyed to
     data-theme='dark' as well as body.night, so these tokens actually swap in
     the app (which uses data-theme), not just the prototype - the fix behind
     §14's "night mode across the whole app". (Robin, 2026-11-01.) */
  --k-bg:oklch(0.23 0.035 158);
  --k-panel:oklch(0.26 0.035 158);
  --k-soft:oklch(0.29 0.035 158);
  --k-mine:oklch(0.31 0.04 150);
  --k-ink:oklch(0.94 0.012 85);
  --k-mute:oklch(0.74 0.02 80);
  --k-line:oklch(0.36 0.03 158);
  --k-gold:oklch(0.74 0.12 76);
  --k-goldt:oklch(0.80 0.11 78);
  --k-deep:oklch(0.18 0.035 158);
  --k-ondeep:oklch(0.94 0.012 85);
  --k-rust:oklch(0.74 0.13 44);      /* lifted for legibility on deep forest */
  /* --k-ongold stays the day ink: text on gold is always dark. */
}
