/* Theme: routekaarten.nl ("the friend who knows the back roads"). Direction: the folded paper road map.
 * Palette from the Dutch/Belgian road map itself: pale map paper (sage, not cream), forest green for structure,
 * main-road red as the one action colour (with a white casing, as on the map), secondary-road yellow for highlights
 * and status ("nagelopen", season), water blue for ferries and river notes.
 * Young Serif (postcard warmth) for headings, Barlow (road-sign lineage) for reading, Barlow Semi Condensed for map
 * lettering: place names in the drawing, km tags, legend. Rule 12: no cream/terracotta/espresso, no purple.
 * Dark mode = the map at night: deep forest green, not near-black; roads keep their colours, casing becomes paper. */
@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --zs-bg: #eef2e8;            /* map paper: pale sage */
  --zs-surface: #ffffff;
  --zs-surface-alt: #dde8d5;   /* meadow tint */
  --zs-ink: #17261d;
  --zs-muted: #4a5d50;
  --zs-line: #c8d6c2;
  --zs-brand: #2a5a3c;         /* forest on the map (white text 7.6:1) */
  --zs-brand-deep: #1d4129;
  --zs-on-brand: #ffffff;
  --zs-brand-text: #2a5a3c;
  --zs-accent: #b8232b;        /* main road red (white text 6.2:1) */
  --zs-accent-hover: #931a21;
  --zs-accent-ink: #ffffff;
  --zs-highlight: #f2c230;     /* secondary road yellow */
  --zs-highlight-ink: #17261d;
  --zs-font-display: "Young Serif", Georgia, serif;
  --zs-font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zs-display-weight: 400;
  --zs-display-tracking: -.01em;
  --zs-radius: 10px;
  --zs-radius-sm: 6px;
  --zs-radius-btn: 8px;
  --zs-picto: #2a5a3c;
  /* Map layer */
  --rk-font-map: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --rk-paper: #f6f8f1;         /* inside a map panel, a shade lighter than the page */
  --rk-forest: #d3e3c8;        /* wood patches */
  --rk-contour: rgba(42, 90, 60, .18);
  --rk-fold: rgba(23, 38, 29, .08);
  --rk-road: #c0272d;
  --rk-road-casing: #ffffff;
  --rk-side: #f2c230;
  --rk-water: #2f6fa8;         /* text-safe water blue */
  --rk-water-line: #7fb3e0;
  --rk-water-bg: #e1edf6;
  --rk-label-halo: #f6f8f1;
  /* Mark */
  --rk-mark-map: #2a5a3c; --rk-mark-fold: #1d4129; --rk-mark-road: #c0272d; --rk-mark-casing: #ffffff;
  --rk-mark-water: #7fb3e0; --rk-mark-side: #f2c230;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zs-bg: #10231a; --zs-surface: #17301f; --zs-surface-alt: #1e3a29; --zs-ink: #e8f1ea; --zs-muted: #adc4b4; --zs-line: #2c4a37;
    --zs-brand: #1f4a32; --zs-brand-deep: #0c1a12; --zs-on-brand: #ffffff; --zs-brand-text: #9fd6b2;
    --zs-accent: #ff7b82; --zs-accent-hover: #ffa3a8; --zs-accent-ink: #2a0a0c;
    --zs-highlight: #f2c230; --zs-highlight-ink: #17261d; --zs-picto: #9fd6b2;
    --rk-paper: #152b1f; --rk-forest: #1d3b28; --rk-contour: rgba(159, 214, 178, .16); --rk-fold: rgba(0, 0, 0, .22);
    --rk-road: #ff6b72; --rk-road-casing: #e8f1ea; --rk-side: #e0b52a;
    --rk-water: #8cc0ec; --rk-water-line: #5c95c8; --rk-water-bg: #16304a; --rk-label-halo: #152b1f;
    --rk-mark-map: #5fa77a; --rk-mark-fold: #3f8a5c; --rk-mark-road: #ff6b72; --rk-mark-casing: #10231a;
  }
}
:root[data-theme="dark"] {
  --zs-bg: #10231a; --zs-surface: #17301f; --zs-surface-alt: #1e3a29; --zs-ink: #e8f1ea; --zs-muted: #adc4b4; --zs-line: #2c4a37;
  --zs-brand: #1f4a32; --zs-brand-deep: #0c1a12; --zs-on-brand: #ffffff; --zs-brand-text: #9fd6b2;
  --zs-accent: #ff7b82; --zs-accent-hover: #ffa3a8; --zs-accent-ink: #2a0a0c;
  --zs-highlight: #f2c230; --zs-highlight-ink: #17261d; --zs-picto: #9fd6b2;
  --rk-paper: #152b1f; --rk-forest: #1d3b28; --rk-contour: rgba(159, 214, 178, .16); --rk-fold: rgba(0, 0, 0, .22);
  --rk-road: #ff6b72; --rk-road-casing: #e8f1ea; --rk-side: #e0b52a;
  --rk-water: #8cc0ec; --rk-water-line: #5c95c8; --rk-water-bg: #16304a; --rk-label-halo: #152b1f;
  --rk-mark-map: #5fa77a; --rk-mark-fold: #3f8a5c; --rk-mark-road: #ff6b72; --rk-mark-casing: #10231a;
}
