/* Theme: Schaatsplekjes.nl ("where can you skate today"). Elayne B.V. product, own install.
 * Palette from a frozen polder at dusk: winter-evening blue for structure, ice blue for actions, frost white
 * surfaces, and one warm signal (Dutch skating orange) only for "er wordt geschaatst". No cream, no purple (rule 12).
 * Mona Sans (wide cut, like speed-skating numbers) for display, Rethink Sans for body text.
 * Load BEFORE css/kit.css, then signature/schaatsplekjes.css. Mark: icons/schaatsplekjes/mark.svg (--sp-mark-* tokens).
 * Contrast (WCAG, measured): ink on bg 14.9, muted on bg 6.6 (on surface-alt 6.1), white on accent 6.0, accent on bg 5.5,
 * on-brand on brand 10.6, skating on bg 4.9, unsafe on bg 6.8; dark: ink on bg 14.6, muted 8.7, accent-ink on accent 10.6,
 * accent on bg 10.5 (on surface 9.1), skating 8.5, unsafe 7.4. Chance inks on their fills 5.6 to 11.6, both modes. */
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-var.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url("../fonts/rethink-sans-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --zs-bg: #f2f6f8;            /* frost white, cool */
  --zs-surface: #ffffff;
  --zs-surface-alt: #e2edf3;   /* clear-ice wash */
  --zs-ink: #102233;
  --zs-muted: #48596a;
  --zs-line: #cbdae3;
  --zs-brand: #163a56;         /* winter-evening blue: header, headings, hero */
  --zs-brand-deep: #0d273d;
  --zs-brand-text: #163a56;
  --zs-on-brand: #eaf4fa;
  --zs-accent: #1767a0;        /* ice blue: CTA and links */
  --zs-accent-hover: #11527f;
  --zs-accent-ink: #ffffff;
  --zs-highlight: #fde7d2;     /* "er wordt geschaatst" chip only */
  --zs-highlight-ink: #7a3300;
  --zs-font-display: "Mona Sans", system-ui, sans-serif;
  --zs-font-body: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zs-display-weight: 760;
  --zs-display-tracking: -0.01em;
  --zs-radius: 14px;
  --zs-radius-sm: 6px;
  --zs-radius-btn: 999px;

  /* Ice indication on maps and lists: one hue, light to dark (sequential), always with the words.
   * none = no frost, possible = a few frost nights, likely = ice expected. Fill + edge so "none" still shows on white.
   * Text on the fill: --sp-chance-*-ink (>= 4.5:1). Edge on white: none 3.3, possible 4.4, likely 6.8. */
  --sp-chance-none: #dfe6eb;      --sp-chance-none-edge: #7d8e9b;  --sp-chance-none-ink: #2c3b47;
  --sp-chance-possible: #8fc3e3;  --sp-chance-possible-edge: #3a7fae; --sp-chance-possible-ink: #0d273d;
  --sp-chance-likely: #1d5f93;    --sp-chance-likely-edge: #0d3a5e; --sp-chance-likely-ink: #ffffff;

  /* Reports (status): each with its picto and label, never colour alone. */
  --sp-skating: #b14d00;          /* er wordt geschaatst: Dutch skating orange (text on bg 5.0) */
  --sp-ice: #1767a0;              /* ijs ligt (gemeld) */
  --sp-unsafe: #a3261b;           /* niet betrouwbaar / 112 (text on bg 6.2) */
  --sp-unsafe-bg: #fbe4e1;
  --sp-frost: #3d6f95;            /* frost-night bars */

  /* Mark (also read by the inline SVG) */
  --sp-mark-sky: #163a56; --sp-mark-sun: #ffad5c; --sp-mark-ice: #bfe2f4; --sp-mark-line: #5e9cc6;
  --sp-mark-boot: #ffffff; --sp-mark-lace: #163a56; --sp-mark-blade: #dfe9ef;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zs-bg: #0e1e2c; --zs-surface: #152a3c; --zs-surface-alt: #1b3449; --zs-ink: #e6f0f6; --zs-muted: #a9bccb; --zs-line: #2c4a62;
    --zs-brand: #133550; --zs-brand-deep: #0a1824; --zs-brand-text: #9fd2f1; --zs-on-brand: #eaf4fa;
    --zs-accent: #9fd2f1; --zs-accent-hover: #c4e5f8; --zs-accent-ink: #0b1d2c;
    --zs-highlight: #4a2a10; --zs-highlight-ink: #ffd2a8;
    --sp-chance-none: #2a3f50; --sp-chance-none-edge: #6f8798; --sp-chance-none-ink: #dce7ee;
    --sp-chance-possible: #2f6d97; --sp-chance-possible-edge: #8fc3e3; --sp-chance-possible-ink: #ffffff;
    --sp-chance-likely: #a9dcf8; --sp-chance-likely-edge: #e1f3fd; --sp-chance-likely-ink: #0b1d2c;
    --sp-skating: #ffa25a; --sp-ice: #9fd2f1; --sp-unsafe: #ff8a7d; --sp-unsafe-bg: #3d1b18; --sp-frost: #7fb6dc;
    --sp-mark-sky: #163a56; --sp-mark-ice: #bfe2f4; --sp-mark-line: #5e9cc6;
  }
}
:root[data-theme="dark"] {
  --zs-bg: #0e1e2c; --zs-surface: #152a3c; --zs-surface-alt: #1b3449; --zs-ink: #e6f0f6; --zs-muted: #a9bccb; --zs-line: #2c4a62;
  --zs-brand: #133550; --zs-brand-deep: #0a1824; --zs-brand-text: #9fd2f1; --zs-on-brand: #eaf4fa;
  --zs-accent: #9fd2f1; --zs-accent-hover: #c4e5f8; --zs-accent-ink: #0b1d2c;
  --zs-highlight: #4a2a10; --zs-highlight-ink: #ffd2a8;
  --sp-chance-none: #2a3f50; --sp-chance-none-edge: #6f8798; --sp-chance-none-ink: #dce7ee;
  --sp-chance-possible: #2f6d97; --sp-chance-possible-edge: #8fc3e3; --sp-chance-possible-ink: #ffffff;
  --sp-chance-likely: #a9dcf8; --sp-chance-likely-edge: #e1f3fd; --sp-chance-likely-ink: #0b1d2c;
  --sp-skating: #ffa25a; --sp-ice: #9fd2f1; --sp-unsafe: #ff8a7d; --sp-unsafe-bg: #3d1b18; --sp-frost: #7fb6dc;
  --sp-mark-sky: #163a56; --sp-mark-ice: #bfe2f4; --sp-mark-line: #5e9cc6;
}

h1, h2, .zs-logo { font-stretch: 112%; }
