/* Required Notice: Copyright 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
   SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 */

/* VIRIDIS PALETTE: the default, the official Viridis colormap.
 *
 * It is linked by every page right after main.css, beside the other palettes,
 * and exactly one of them is on at a time: the footer switch turns one on and the
 * rest off, and the pin script in the layout has made that choice before the
 * first paint. The rules are unlayered, so they beat the layered tokens in
 * main.css no matter the order the files arrive in.
 *
 * Every accent is an exact entry of the colormap matplotlib publishes
 * (lib/matplotlib/_cm_listed.py, _viridis_data): #440154 is entry 0, #3b528b is
 * 64, #26828e is 112, #fde725 is 255 and #5ec962 is 192. The neutrals are tinted
 * towards the colormap's dark end, hue 280 in the light scheme and 300 in the
 * dark one, and the semantic states keep their own colours in main.css: a failure
 * is not a palette colour.
 *
 * The matching favicon lives at favicon.svg in the repository root.
 */

:root {
  --bg: light-dark(oklch(98.2% 0.008 280), oklch(17% 0.02 300));
  --surface: light-dark(oklch(100% 0 0), oklch(21.5% 0.024 300));
  --surface-2: light-dark(oklch(96.2% 0.01 280), oklch(25.5% 0.028 300));
  --ink: light-dark(oklch(21% 0.03 300), oklch(94% 0.01 280));
  --ink-2: light-dark(oklch(45% 0.025 300), oklch(78% 0.02 280));
  --ink-3: light-dark(oklch(57% 0.02 300), oklch(64% 0.02 280));
  --line: light-dark(oklch(91% 0.015 300), oklch(31% 0.025 300));
  --line-strong: light-dark(oklch(83% 0.02 300), oklch(39% 0.03 300));

  --accent: light-dark(#26828e, #5ec962);
  --accent-2: light-dark(#440154, #fde725);
  --on-accent: light-dark(oklch(99% 0.005 300), oklch(22% 0.04 130));
}
