/* yggdrasil - the Heiðrún emblem on drbek.eu (Kuba's homepage). Mood: night
   sky over the world tree, cream strokes, aurora teal; mead gold stays a
   spark. Dark by default (--palette-theme-default), light values exist for
   print and the checker. Seeded with palette_seed.py from the aurora ring
   #3D7F86 (oklch 0.56 0.068 205), 2026-10-27.
   Tint: hue 265 from the emblem night #070C18 (oklch 0.16 0.027 265), chroma
   0.012 in both modes. Dark on-accent = the night #070C18 itself.
   Emblem inputs: cream #ECEEDF (oklch 0.94 0.020 113, strokes, app layer),
   mead gold #E3A83F (oklch 0.77 0.137 78; light #C98A1C, oklch 0.68 0.136 75).
   Teal carries every accent role: TEXT --color-ember (= accent, focus, link
   underline) dark #7CBEC6 (oklch 0.76 0.068 206), light ink #00383D (oklch
   0.31 0.053 205); FILL dark #4E8F97 (oklch 0.61 0.068 206, hover #60A2A9),
   light #3E8087 (oklch 0.56 0.068 205, hover #2B6E76; white 4.5:1, so no
   --color-accent-mark needed).
   Gold did NOT make it into the fill. Tried: fill #E3A83F dark / #C98A1C
   light with night on-accent. Checker: fill~warn dE 4.2 < 5 in every dark
   look (gold is the amber `warn` status), and the light gold fill is 2.9:1
   on surface and 2.6-2.7 on raised (mark < 3). So gold stays an app-layer
   ornament (emblem, hero, small marks), never an accent token.
   Charts: from the seeded dataviz method (8 slots, chart-1 = series 1 = the
   teal text step, rest by max-min OKLab distance under normal / deutan /
   protan, >= 3:1 on every look's surface, >= 20 deg from chromatic statuses).
   Not hand-tuned: slot hues differ between light and dark for some slots.
   Contract: sets only accent (--color-ember, -bright, -muted), accent fill + fill hover, on-accent, focus,
   selection, link underline, tint, chart-1..8 and --palette-theme-default
   (never statuses). Checked by ember/scripts/palette_check.py in every look.
   Kuba can fine-tune it in Palette Studio (drbek.eu/odin/palettes).
*/

[data-palette="yggdrasil"] {
  --palette-theme-default: dark;
  --tint-hue: 265;
}

[data-palette="yggdrasil"][data-theme="light"] {
  --color-ember: #00383D;  /* oklch(0.31 0.053 205) */
  --color-ember-bright: #002528;  /* oklch(0.24 0.041 203) */
  --color-ember-muted: #DEEBEC;  /* oklch(0.93 0.014 202) */
  --color-accent-fill: #3E8087;  /* oklch(0.56 0.068 205) */
  --color-accent-fill-hover: #2B6E76;  /* oklch(0.50 0.068 206) */
  --color-on-accent: #FFFFFF;  /* oklch(1.00 0.000 90) */
  --color-focus: #00383D;  /* oklch(0.31 0.053 205) */
  --color-selection: rgba(0, 56, 61, 0.32);
  --color-link-underline: rgba(0, 56, 61, 0.4);
  --tint-chroma: 0.012;
  --color-chart-1: #00383D;  /* oklch(0.31 0.053 205) */
  --color-chart-2: #6F983D;  /* oklch(0.63 0.129 130) */
  --color-chart-3: #6466BB;  /* oklch(0.55 0.130 280) */
  --color-chart-4: #575E00;  /* oklch(0.46 0.104 115) */
  --color-chart-5: #00646D;  /* oklch(0.46 0.079 206) */
  --color-chart-6: #009E98;  /* oklch(0.63 0.109 190) */
  --color-chart-7: #4C4C9E;  /* oklch(0.46 0.130 280) */
  --color-chart-8: #00818C;  /* oklch(0.55 0.094 205) */
}

[data-palette="yggdrasil"][data-theme="dark"] {
  --color-ember: #7CBEC6;  /* oklch(0.76 0.068 206) */
  --color-ember-bright: #92D5DC;  /* oklch(0.83 0.068 204) */
  --color-ember-muted: #152A2D;  /* oklch(0.27 0.027 207) */
  --color-accent-fill: #4E8F97;  /* oklch(0.61 0.068 206) */
  --color-accent-fill-hover: #60A2A9;  /* oklch(0.67 0.068 204) */
  --color-on-accent: #070C18;  /* oklch(0.16 0.027 265) */
  --color-focus: #7CBEC6;  /* oklch(0.76 0.068 206) */
  --color-selection: rgba(124, 190, 198, 0.32);
  --color-link-underline: rgba(124, 190, 198, 0.4);
  --tint-chroma: 0.012;
  --color-chart-1: #7CBEC6;  /* oklch(0.76 0.068 206) */
  --color-chart-2: #909B2F;  /* oklch(0.66 0.130 115) */
  --color-chart-3: #C1CE66;  /* oklch(0.82 0.130 115) */
  --color-chart-4: #8388E0;  /* oklch(0.66 0.130 280) */
  --color-chart-5: #00AA8E;  /* oklch(0.66 0.124 175) */
  --color-chart-6: #9BA1FB;  /* oklch(0.74 0.130 280) */
  --color-chart-7: #48D7FE;  /* oklch(0.82 0.130 220) */
  --color-chart-8: #A8B44B;  /* oklch(0.74 0.130 115) */
}
