:root[data-color-mode="light"] {
  color-scheme: light;
  --bg: #f3f5f8; --surface: #fff; --surface-2: #f7f8fa;
  --text: #171a20; --muted: #616975; --line: #d7dce2;
  --danger: #a81424; --success: #08783e; --shadow: 0 18px 45px rgba(20,28,40,.10);
  --cup-sheet-bg: #ffffff; --cup-sheet-head: #eef2f8;
  --cup-sheet-text: #17253a; --cup-sheet-muted: #49576b; --cup-sheet-line: #b8c5d6;
  --cup-sheet-selected: #dce8fb; --cup-sheet-on-selected: #17253a;
  --cup-sheet-focus: #315d9e; --cup-sheet-editor: #ffffff;
  --cup-sheet-error: #ffe0e4; --cup-sheet-on-error: #671426; --cup-sheet-error-line: #bd233b;
  --cup-sheet-warning: #fff0bb; --cup-sheet-on-warning: #563b00; --cup-sheet-warning-line: #986c0f;
}
:root[data-color-mode="dark"] {
  color-scheme: dark;
  --bg: #101318; --surface: #191e26; --surface-2: #222832;
  --text: #f4f6f8; --muted: #b2bac5; --line: #3a424e;
  --danger: #ff8995; --success: #73d9a1; --shadow: 0 18px 45px #0004;
  --cup-sheet-bg: #1a2636; --cup-sheet-head: #24344a;
  --cup-sheet-text: #e8eef8; --cup-sheet-muted: #b6c5d9; --cup-sheet-line: #4c607a;
  --cup-sheet-selected: #31527a; --cup-sheet-on-selected: #ffffff;
  --cup-sheet-focus: #96beff; --cup-sheet-editor: #111c2b;
  --cup-sheet-error: #4a2431; --cup-sheet-on-error: #ffe7ed; --cup-sheet-error-line: #ff879e;
  --cup-sheet-warning: #4b391d; --cup-sheet-on-warning: #ffedbf; --cup-sheet-warning-line: #e3b85c;
}
:where(:root[data-color-mode="light"]) a { color: color-mix(in srgb,var(--primary) 74%,var(--text)); }
:where(:root[data-color-mode="light"]) .eyebrow { color: color-mix(in srgb,var(--primary) 72%,var(--text)); }
:where(:root[data-color-mode="dark"]) a,
:where(:root[data-color-mode="dark"]) .eyebrow { color: color-mix(in srgb,var(--text) 88%,var(--primary)); }
:root[data-color-mode] .site-header a { color: inherit; }
:root[data-color-mode="light"] .jcalendar-prev,
:root[data-color-mode="light"] .jcalendar-next { filter: none; }
:root[data-color-mode="dark"] .jcalendar-prev,
:root[data-color-mode="dark"] .jcalendar-next { filter: invert(1); }
.theme-picker { display: flex; align-items: center; gap: .4rem; font-size: .8rem; }
.theme-picker select { padding: .35rem .5rem; }
.theme-picker select:focus-visible { outline: 2px solid var(--on-primary); outline-offset: 2px; }
@media (max-width: 44rem) { .theme-picker span { display: none; } }
