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

/* PLASMA PALETTE: the second palette, the official Plasma colormap.
 *
 * It is linked by every page with 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.
 *
 * Every accent is an exact entry of the colormap matplotlib publishes
 * (lib/matplotlib/_cm_listed.py, _plasma_data): #0d0887 is entry 0, #7e03a8
 * is 64, #bc3587 is 112, #d6556d is 140, #f89540 is 192 and #f0f921 is 255.
 * The neutrals are tinted towards the colormap's dark end, the same way the
 * default palette tints towards viridis, and the semantic states keep their
 * own colours: a failure is not a palette colour.
 *
 * The rules here are unlayered, so they beat the layered tokens in main.css; with
 * the other palettes there is no contest, because exactly one is on at a time.
 * Everything below the tokens follows: the gradient, the washes, the glow, the
 * timeline and the featured border all derive from --accent and --accent-2.
 *
 * The stylesheet is linked on every page with a media query that does not match,
 * so it waits for the visitor to choose it. That is also why it registers no
 * @property: --bg is registered by main.css, and a registration is document-wide
 * whether or not the palette is on.
 *
 * The matching favicon lives at favicon-plasma.svg in the repository root.
 */

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

  --accent: light-dark(#bc3587, #f89540);
  --accent-2: light-dark(#0d0887, #f0f921);
  --on-accent: light-dark(oklch(99% 0.005 267.5), oklch(22% 0.04 112));
}
