/* The look of the site, in one place.

   Everything brand-specific lives here: the palette, the typefaces, the
   backdrop and how the cards are drawn. The layout in style.css, overview.css,
   display.css and embed.css only ever reads the tokens below, so re-branding
   the site means editing this file and nothing else.

   Weatherfur -- neutral. A quiet slate dark theme with system fonts: nothing
   in it belongs to any one convention, so every partner's page looks like it
   belongs to the same tool, and the colour that matters -- the index -- is the
   only colour that stands out.

   The previous look, EF31 "Midnight at the Lab", is kept in themes/ef31.css.
   Load that instead of this file to bring it back.

   The index colours (green to pink) are NOT here on purpose. They come from the
   server (app/fsi.py, BANDS) so the page, the board, the widget and the API
   agree on them.

   Loaded before style.css / overview.css / display.css / embed.css by every
   page. */

:root {
  /* Dark by design, as before: the index colours were chosen to glow on dark.
     Declared, so native controls (menus, checkboxes, scrollbars) match. */
  color-scheme: dark;

  /* The system's own typeface: neutral, already on the device, no download. */
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  /* ---------- Neutral palette: slate ---------- */
  --n-950: #0e1116;
  --n-900: #13171d;
  --n-850: #181d24;
  --n-800: #1e242c;
  --n-700: #2a313b;
  --n-600: #3a434f;
  --n-400: #8a94a2;
  --n-300: #a9b2be;
  --n-200: #d3d9e0;
  --n-100: #eef1f4;
  --blue: #6fa8ff;
  --blue-soft: #a9c9ff;

  /* ---------- The backdrop ----------
     Plain. The blob and graph-paper machinery in style.css stays, switched
     off, so a branded theme can turn it back on. */
  --backdrop-base: var(--n-950);
  --blob-1: transparent;
  --blob-2: transparent;
  --blob-3: transparent;
  --blob-4: transparent;
  --blob-5: transparent;
  --blob-6: transparent;
  --blob-strength: 0;
  --grid-line: transparent;
  --grid-size: 34px;

  /* ---------- Roles ---------- */
  --bg: var(--backdrop-base);
  --card-solid: var(--n-900);
  --card: var(--n-900);
  --surface-2: var(--n-800); /* controls */
  --glass-blur: 0px;
  --glass-edge: var(--n-700);
  --glass-rim: inset 0 0 0 0 transparent;
  --inset: color-mix(in srgb, #000 28%, transparent);
  --text: var(--n-200);
  --text-strong: var(--n-100);
  --muted: var(--n-400);
  --border: var(--n-700);
  --accent: var(--blue);
  --accent-ink: #0b1220;
  --link: var(--blue-soft);
  --highlight: var(--blue);
  --eyebrow: var(--n-300);
  --notice: #e7c45a;
  --avoid-text: #ff8fd6;
  --good-text: #7fd67c;
  /* The title is plain text in this theme; the token stays for branded ones. */
  --title-gradient: linear-gradient(var(--n-100), var(--n-100));
  --now: #ff5a5a;
  --radius: 14px;
  --radius-small: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%);
  --temp-cold: #7fb2ff;
  --temp-cool: #5fcfc2;
  --temp-mild: #b9d36a;
  --temp-warm: #f0b04a;
  --temp-hot: #ef6a6a;
  --rain: #7cc8ff;
  /* Things that used to be EF31 colours written into the layout. */
  --hatch-dark: rgb(14 17 22 / 62%);
  --hatch-light: rgb(14 17 22 / 28%);
  --map-bg: #0b0e12;
  --map-credit-bg: rgb(14 17 22 / 78%);
  --preview-bg: #1a1f26;
  /* A light basemap turned dark to sit in the page: plain grey here. */
  --basemap-filter: invert(1) grayscale(1) brightness(1.35) contrast(0.8);
  /* Europe under the maps (static/europe.js): the inverted basemap's land
     grey, so Germany's detail sits on it without a seam. */
  --map-land: #191919;
  --map-border: #4a4f57;
  /* Quiet tints where the branded theme had its own colours. */
  --tint: #5b7fbf;
  --tint-2: transparent;
  --tint-line: var(--n-400);
  --ink-dark: var(--n-950);
  /* Official but harmless (fog): calm lilac, never DWD yellow. */
  --info: #a7a2db;

  /* The site icon and brand mark: a neutral outline, standing in until the
     real one is drawn. Same drawing as /icon.svg. */
  --brand-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23a9b2be' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='2.5' width='27' height='27' rx='7'/%3E%3Cpath d='M10.5 21.5h11a3.6 3.6 0 0 0 .4-7.2 5.6 5.6 0 0 0-10.8-1.3 4.3 4.3 0 0 0-.6 8.5Z'/%3E%3C/svg%3E");
}

html { background: var(--backdrop-base); }

/* ---------- Backdrop ---------- */

/* Kept for branded themes; with the tokens above it draws nothing. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--backdrop-base);
}
.backdrop i { display: none; }

/* ---------- Cards ---------- */

/* "Glass" in a branded theme; here simply a card. */
.glass {
  background: var(--card);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}

/* The brand mark, wherever it appears. */
.brand-mark {
  display: inline-block;
  flex: none;
  width: 1.45rem;
  height: 1.45rem;
  background: var(--brand-mark) center / contain no-repeat;
}

/* ---------- Day ----------
   The light scheme (2026-11-20), switched by the sun and moon in the top bar
   (static/theme.js puts data-theme="light" on <html>). The neutral scale is
   turned round, so everything built on it follows; the blue gets deeper so
   it still reads on white. The index colours stay the server's. The night
   above stays the default: the site was made dark. */
:root[data-theme='light'] {
  color-scheme: light;
  /* A light sky blue for the ground, not white; the cards a paler sky. */
  --n-950: #d9eaf8;
  --n-900: #f4f9fe;
  --n-850: #e7f1fb;
  --n-800: #e2edf8;
  --n-700: #bdd0e3;
  --n-600: #9fb4ca;
  --n-400: #5f6b7a;
  --n-300: #4b5563;
  --n-200: #2a3340;
  --n-100: #0f1720;
  --blue: #2f6fdb;
  --blue-soft: #2457b5;
  --accent-ink: #ffffff;
  --inset: color-mix(in srgb, #0f1720 6%, transparent);
  --shadow: 0 1px 3px rgb(15 23 32 / 12%);
  --notice: #9a7400;
  --good-text: #2e8b35;
  --avoid-text: #c0267f;
  --map-bg: #e2eef9;
  --map-land: #dfe4ea;
  --map-border: #a7b0bc;
  --map-credit-bg: rgb(243 245 248 / 85%);
  --preview-bg: #e9edf2;
  /* The basemap as it comes (a light grey map), not turned dark; the city
     names dark, on a light halo. */
  --basemap-filter: grayscale(1) contrast(0.92) brightness(1.03);
  --map-city: #3d4654;
  --map-halo: #fff;
  /* Dark ink on a light colour stays dark: the scale above is turned round. */
  --ink-dark: #0f1720;
  --brand-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%234b5563' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='2.5' width='27' height='27' rx='7'/%3E%3Cpath d='M10.5 21.5h11a3.6 3.6 0 0 0 .4-7.2 5.6 5.6 0 0 0-10.8-1.3 4.3 4.3 0 0 0-.6 8.5Z'/%3E%3C/svg%3E");
}

/* ---------- The day sky (picked 2026-11-24) ----------
   The user found the day too bright: a real sky, deeper blue overhead and
   paler towards the horizon. The ground and the cards move together so
   the cards still stand out as the lighter layer. */
:root[data-theme='light'] {
  --n-950: #b3cdec;
  --n-900: #ecf3fc;
  --n-850: #d8e7f7;
  --n-800: #d2e2f4;
  --n-700: #9dbbdb;
  --map-bg: #c9ddf3;
}
:root[data-theme='light'],
:root[data-theme='light'] body {
  background: linear-gradient(180deg, #8fb6e6 0%, #b3cdec 45%, #d6e6f6 100%) fixed;
}
