/*
 * The dark values of the tokens.css colors, on when <html data-theme="hiyori-dark"> (public/js/
 * theme.js, from the settings buttons or the device's dark mode). daisyUI's
 * themes read these same variables, so hand-written parts and daisyUI parts darken together.
 * test/unit/design/tokens.test.ts holds these to the same contrast rules as the light ones.
 * Yomochi's body and cheeks are the light colors at 0.85 of each RGB channel, so she does not glare
 * on the dark page yet her face (--color-ink) keeps 3:1; her leaf and the calendar discs stay light.
 */
:root[data-theme="hiyori-dark"] {
  color-scheme: dark;
  --color-bg: #141a12;
  --color-surface: #1f281c;
  --color-text: #eef3e9;
  --color-muted: #c8d2bf;
  --color-primary: #a9d98f;
  --color-primary-contrast: #10200a;
  --color-link: #a9d98f;
  --color-url: #a3c8f7;
  --color-border: #7d8e72;
  --color-focus: #8db8f2;
  --color-notice-bg: #213a19;
  --color-notice-text: #d9f0cb;
  --color-error-bg: #3e1a15;
  --color-error-text: #ffd6cf;
  --color-danger: #ff9e92;
  --color-danger-contrast: #2b0a05;
  --color-selected-bg: #2b4222;
  --color-saved-bg: #3a3415;
  --color-mark-bg: #574410;
  --color-soft: #263322;
  --color-hero: #22351b;
  --color-tag-bg: #263322;
  --color-label-green: #7fbf68;
  --color-label-green-bg: #243b1c;
  --color-label-blue: #7aa9e0;
  --color-label-blue-bg: #1d3048;
  --color-label-yellow: #d6b44a;
  --color-label-yellow-bg: #3a3215;
  --color-label-pink: #e88aa8;
  --color-label-pink-bg: #43212c;
  --color-label-purple: #b49ae3;
  --color-label-purple-bg: #30264a;
  --color-label-orange: #e8995e;
  --color-label-orange-bg: #432a17;
  --color-label-gray: #a8a8a0;
  --color-label-gray-bg: #2e2e2a;
  --color-label-brown: #c9a07c;
  --color-label-brown-bg: #3a2c20;
  --color-paper: #1a2217;
  --color-sprout: #77a75e;
  --color-cheek: #d0b35b;
  --color-day-0: #2c3628;
  --color-season-spring: #2e2126;
  --color-season-summer: #1a2a2c;
  --color-season-autumn: #2e2417;
  --color-season-winter: #1f242c;
  --shadow-card: 0 0.0625rem 0.125rem rgb(0 0 0 / 0.3), 0 0.5rem 1.5rem -0.5rem rgb(0 0 0 / 0.5);
  --shadow-lift: 0 0.125rem 0.25rem rgb(0 0 0 / 0.3), 0 1.25rem 2.5rem -0.75rem rgb(0 0 0 / 0.6);
  --color-rule: #2d3828;
  --color-margin: #5a3a33;
  --color-glass: rgb(31 40 28 / 0.78);
  --grain-opacity: 0.18;
  --grain-blend: screen;
}
