/*
 * Rosé Pine Moon theme for Bulma 1.x's CSS-custom-property system.
 * Palette: https://github.com/rose-pine/palette (moon variant), converted
 * to HSL. No Sass rebuild: Bulma 1.x's shade/tint/hover/active scale for
 * every semantic color is a live hsl(var(--bulma-X-h), var(--bulma-X-s), ...)
 * expression, so overriding just the base h/s/l triplet per role re-flows
 * the whole derived scale. Loaded after bulma.min.css, with html[data-theme
 * =dark] set in layout/base.html so Bulma's own dark-mode structural
 * defaults (hover/active lightness deltas going lighter, not darker) are
 * active underneath these values.
 *
 * base/surface/overlay/muted/subtle/text all share one hue/sat family
 * (~247deg, ~15-50% depending on how saturated white 3ff), so the scheme
 * (background/border) and text roles are just per-role lightness dialed
 * against one shared h/s pair - matches Bulma's own model exactly. The
 * text-weak/text/text-strong composites are pinned to exact hex on top,
 * since Rosé Pine's muted/subtle/text don't actually share one saturation
 * value the way Bulma's single-knob model assumes.
 */

:root {
  /* scheme (background/border): base #232136, surface #2a273f, overlay #393552 */
  --bulma-scheme-h: 247deg;
  --bulma-scheme-s: 24%;
  --bulma-scheme-main-l: 17%;
  --bulma-scheme-main-bis-l: 19%;
  --bulma-scheme-main-ter-l: 21%;
  --bulma-background-l: 20%;
  --bulma-border-weak-l: 23%;
  --bulma-border-l: 26%;

  /* text: muted #6e6a86, subtle #908caa, text #e0def4 */
  --bulma-text-h: 246deg;
  --bulma-text-s: 30%;
  --bulma-text-weak-l: 61%;
  --bulma-text-l: 91%;
  --bulma-text-strong-l: 95%;
  --bulma-text-title-l: 100%;

  /* primary = iris #c4a7e7 */
  --bulma-primary-h: 267deg;
  --bulma-primary-s: 57%;
  --bulma-primary-l: 78%;

  /* link = foam #9ccfd8 */
  --bulma-link-h: 189deg;
  --bulma-link-s: 44%;
  --bulma-link-l: 73%;

  /* info = pine #3e8fb0 */
  --bulma-info-h: 197deg;
  --bulma-info-s: 48%;
  --bulma-info-l: 47%;

  /* success = rose #ea9a97 (Rosé Pine has no green; a warm rose reads
     positive without the alarm-red of a mismatched success color) */
  --bulma-success-h: 2deg;
  --bulma-success-s: 66%;
  --bulma-success-l: 76%;

  /* warning = gold #f6c177 */
  --bulma-warning-h: 35deg;
  --bulma-warning-s: 88%;
  --bulma-warning-l: 72%;

  /* danger = love #eb6f92 */
  --bulma-danger-h: 343deg;
  --bulma-danger-s: 76%;
  --bulma-danger-l: 68%;

  /* Exact-hex pins for the most-visible text composites - see note above */
  --bulma-text-weak: #908caa;
  --bulma-text: #e0def4;
  --bulma-text-strong: #e0def4;

  /* focus ring (inputs, buttons, pagination) = iris, matching primary.
     Bulma defaults --bulma-focus-* to the link color (foam #9ccfd8),
     which read as a mismatched teal glow against this otherwise
     purple-accented scheme. */
  --bulma-focus-h: var(--bulma-primary-h);
  --bulma-focus-s: var(--bulma-primary-s);
  --bulma-focus-l: var(--bulma-primary-l);
}
