/* vodostaj.org design tokens: the font, colours (light and dark) and
   spacing, in the manner of parkiraj.click. The river-state colours
   (--t-*) follow raftalerts/levels.py TIERS. Load before style.css. */

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

:root {
  color-scheme: light;

  --paper: #eef3f6;
  --surface: #ffffff;
  --surface-2: #f2f6f8;
  --surface-3: #e4ebef;
  --line: #dde6eb;
  --ink: #0d1a21;
  --ink-2: #475861;
  --ink-3: #7c8c95;

  --brand: #0b7285;          /* deep river teal */
  --brand-ink: #ffffff;
  --brand-soft: #e2f3f6;
  --focus: #0b7285;

  /* river states: lines, pins, stripes (--t-*) and text on surfaces (--t-*-ink) */
  --t-blue: #2b7fe0;
  --t-yellow: #f5b800;
  --t-red: #e5383b;
  --t-grey: #a2b0b8;
  --t-blue-ink: #1d63b8;
  --t-yellow-ink: #8a6400;
  --t-red-ink: #c1262b;
  --t-grey-ink: #6b7b84;
  --t-blue-soft: #e7f1fd;
  --t-yellow-soft: #fff6d6;
  --t-red-soft: #fde8e8;
  --t-grey-soft: #eef2f4;
  --on-fill: #0b1418;

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

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gap: 10px;
  --topbar-h: 54px;
  --panel-w: clamp(372px, 30vw, 430px);
  --ease: cubic-bezier(0.32, 0.72, 0, 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: #0b1217;
    --surface: #131c22;
    --surface-2: #1a252c;
    --surface-3: #24323a;
    --line: #26343c;
    --ink: #eef4f7;
    --ink-2: #a5b5bd;
    --ink-3: #71838c;
    --brand: #22b8cf;
    --brand-ink: #062027;
    --brand-soft: #123039;
    --focus: #5fd3e6;
    --t-blue: #4a9bf0;
    --t-blue-ink: #8cc2ff;
    --t-yellow-ink: #ffd25e;
    --t-red-ink: #ff8a8d;
    --t-grey-ink: #93a4ad;
    --t-blue-soft: #14283d;
    --t-yellow-soft: #332a0c;
    --t-red-soft: #3a1717;
    --t-grey-soft: #1c252b;
    --glass: rgb(19 28 34 / 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);
  }
}
