/* parkiraj.click design tokens: the font, colours (light and dark) and
   spacing, shared by the map app (style.css) and the reading pages
   (pages.css). A brand change goes here. Load before either stylesheet. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-parkiraj.woff2") format("woff2-variations"),
       url("assets/fonts/archivo-parkiraj.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* FABER's typeface, for the foot's last line beside its logo (faber.js):
   Montserrat (SIL Open Font License), cut to that line's letters and
   digits; fetched only where the line shows. */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-faber.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #eef1f5;          /* concrete */
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e7ebf0;
  --line: #e0e5eb;
  --ink: #0f1622;            /* asphalt ink */
  --ink-2: #4b5666;
  --ink-3: #7f8a99;

  --brand: #1d5bff;          /* signal blue */
  --brand-ink: #ffffff;
  --brand-soft: #e6edff;
  --mall: #8b5cf6;            /* shopping-centre garages */
  --mall-ink: #6d3fe0;
  --hotel: #0e9f8e;            /* hotel garages */
  --hotel-ink: #0a7a6d;
  --sport: #e0457b;            /* sports venues */
  --sport-ink: #c42a62;
  --hospital: #5b5bd6;         /* hospitals */
  --hospital-ink: #4343b8;
  --airport: #52627a;          /* airport */
  --airport-ink: #3e4c61;
  --station: #b5651d;          /* bus and train stations */
  --station-ink: #94500f;
  --market: #6f8f1f;           /* green markets */
  --market-ink: #56710f;
  --focus: #1d5bff;

  /* availability, tuned for text on surfaces */
  --good: #12924f;
  --mid: #b26a00;
  --low: #d43a3a;
  /* availability, solid fills with dark text (map pins, bays) */
  --good-fill: #2bd67b;
  --mid-fill: #ffb224;
  --busy-fill: #f2d01f; /* traffic: yellow, orange */
  --slow-fill: #ff8a1f;
  --low-fill: #ff6b6b;
  --on-fill: #0b1118;

  --bay-taken: #dfe4ea;

  --glass: rgb(255 255 255 / 0.86);
  --shadow-1: 0 1px 2px rgb(15 22 34 / 0.06), 0 2px 8px rgb(15 22 34 / 0.06);
  --shadow-float: 0 14px 34px -16px rgb(15 22 34 / 0.38), 0 2px 6px rgb(15 22 34 / 0.08);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gap: 10px;
  --topbar-h: 52px;
  --panel-w: clamp(368px, 30vw, 420px);
  --sheet-h: 55vh;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0e131b;        /* night asphalt */
    --surface: #161c26;
    --surface-2: #1d2531;
    --surface-3: #263040;
    --line: #283241;
    --ink: #f2f5f9;
    --ink-2: #a9b3c1;
    --ink-3: #717d8e;
    --brand: #3f74ff;
    --brand-soft: #1a2747;
    --mall: #9b74ff;
    --mall-ink: #b9a0ff;
    --hotel: #22c3ad;
    --hotel-ink: #5fe0cc;
    --sport: #f0619a;
    --sport-ink: #ff8db8;
    --hospital: #7c7cf0;
    --hospital-ink: #a5a5ff;
    --airport: #8292ab;
    --airport-ink: #b3c0d4;
    --station: #d9893f;
    --station-ink: #f0ad6b;
    --market: #9bbd3d;
    --market-ink: #bad86a;
    --focus: #7ea2ff;
    --good: #43e08a;
    --mid: #ffb938;
    --low: #ff7676;
    --bay-taken: #2a3443;
    --glass: rgb(22 28 38 / 0.84);
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-float: 0 16px 36px -14px rgb(0 0 0 / 0.7), 0 2px 6px rgb(0 0 0 / 0.3);
  }
}
