/* Stork design tokens. Every colour, radius and space in the UI comes from here (docs/UX.md).
   Dawn-delivery palette: night sky ink, feather white, beak orange, kraft parcel, sky blue. */
:root {
  --ink: #0c1322; --night: #131c31; --dusk: #1c2742; --line: #2b3858;
  --feather: #f6f2e9; --mist: #a9b4cc; --beak: #ff6b35; --beak-deep: #e0521f;
  --kraft: #c89b6a; --sky: #5ab8ff; --leaf: #37d39b; --sun: #ffc94d; --rose: #ff5d7a;
  --bg: var(--ink); --panel: var(--night); --raised: var(--dusk);
  --fg: var(--feather); --fg-dim: var(--mist); --accent: var(--beak); --focus: var(--sky);
  --link: var(--beak); /* text-on-background orange: 6.5:1 on ink, 5.2:1 on dusk */
  --ok: var(--leaf); --warn: var(--sun); --danger: var(--rose);
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --space: 8px; --radius: 14px; --radius-sm: 8px; --radius-pill: 999px;
  --shadow: 0 10px 30px rgb(0 0 0 / 0.35); --tap: 44px; /* minimum touch target */
}
:root[data-theme="light"] {
  --bg: var(--feather); --panel: #ffffff; --raised: #efe9dc; --line: #d9d0bd;
  --fg: #14203a; --fg-dim: #5a6682; --accent: var(--beak-deep); --focus: #1c7fd6;
  --link: #b23c0c; /* WCAG AA text: 5.3:1 on cream, 5.9:1 on white, 4.9:1 on raised (beak-deep was 3.5:1) */
  --shadow: 0 10px 30px rgb(20 32 58 / 0.12);
  --ok: #0f7a52; --warn: #8a5a00; --danger: #c0213f; --sky: #1565b0; /* darker for 4.5:1 on cream */
}
/* Scrollbars (Jack 11-20: grey scrollbars are forbidden): accent thumb on a tinted track, every theme and
   every page (tokens.css is the one stylesheet all pages load). Chrome 121+ and Firefox use the standard
   properties; Safari uses the ::-webkit-scrollbar rules (gradient, rounded, hover). */
:root { --scroll-thumb: color-mix(in srgb, var(--accent) 78%, var(--sky)); --scroll-thumb-hi: var(--accent);
  --scroll-track: color-mix(in srgb, var(--accent) 10%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
*:hover { scrollbar-color: var(--scroll-thumb-hi) var(--scroll-track); }
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track { background: var(--scroll-track); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), var(--scroll-thumb)); border-radius: var(--radius-pill); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hi); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
