/* Corporate constants and explicit light and dark semantic values. */
:root {
  --wlv-white: #fff;
  --wlv-neutral: #f5f5f5;
  --wlv-dark: #181818;
  --wlv-graphite: #202020;
  --wlv-gold: #ffe27b;
  --wlv-font: Inter, "Segoe UI", system-ui, sans-serif;
  --wlv-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;

  color-scheme: light;
  --wlv-bg: light-dark(var(--wlv-white), var(--wlv-dark));
  --wlv-surface: light-dark(var(--wlv-neutral), #222222);
  --wlv-elevated: light-dark(#eae9e6, #2b2b2b);
  --wlv-text: light-dark(var(--wlv-graphite), #f1f0ed);
  --wlv-muted: light-dark(#555550, #bdbbb5);
  --wlv-line: light-dark(#d5d3ce, #474641);
  --wlv-control-line: light-dark(#797871, #929086);
  --wlv-accent: light-dark(var(--wlv-graphite), #f1f0ed);
  --wlv-on-accent: light-dark(var(--wlv-white), var(--wlv-graphite));
  --wlv-focus: light-dark(#315d9f, #a9ceff);
  --wlv-link: light-dark(#265187, #a9ceff);
  --wlv-positive: light-dark(#236044, #a2dcb5);
  --wlv-warning: light-dark(#735014, #f3ce90);
  --wlv-negative: light-dark(#953737, #f2abab);
  --wlv-show-light-mark: block;
  --wlv-show-dark-mark: none;
}

:root[data-theme="light"],
:root:has(:is(#landing-theme, #docs-theme) option[value="light"]:checked) {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(:has(:is(#landing-theme, #docs-theme) option[value="light"]:checked)),
  :root:has(:is(#landing-theme, #docs-theme) option[value="system"]:checked) {
    color-scheme: dark;
    --wlv-show-light-mark: none;
    --wlv-show-dark-mark: block;
  }
}

:root[data-theme="dark"],
:root:has(:is(#landing-theme, #docs-theme) option[value="dark"]:checked) {
  color-scheme: dark;
  --wlv-show-light-mark: none;
  --wlv-show-dark-mark: block;
}
