/* Stash's one colour system, locked 29 Oct 2026, Board B "Stone" since 1 Nov 2026 (docs/brand/BRAND.md → Colour).
   Light: stone paper with white cards. Dark: graphite with graphite cards. No brown anywhere.
   Coral and butter are never text (ink on a pale fill, or an underline); only sky has a text colour.
   The Mac app draws the same values from Sources/StashCore/BrandPalette.swift; BrandPaletteTests keeps the two in step,
   and scripts/hub/web/color-literals.test.mjs fails on a colour number written anywhere but here.
   Shared by site/hub, site/join, site/j, the hub's legal pages and docs/launch (invite, install, legal).
   Pages may set data-theme="light" | "dark" on <html> to override the system setting. */
/* Hebrew = Rubik, titles and text, on every device (classhub/DECISIONS.md J18, 22 Nov 2026). Self-hosted (the CSP allows
   only this site), Hebrew letters only: pages put "Stash Hebrew" FIRST in their font stacks, so Hebrew is Rubik everywhere
   (Apple devices too) and Latin falls through to SF Pro / New York / the system font. vendor/README.md has the file. */
@font-face { font-family:"Stash Hebrew"; src:url("vendor/fonts/rubik-hebrew-wght-5.3.0.woff2") format("woff2"); font-weight:300 900;
  font-style:normal; font-display:swap; unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
:root {
  color-scheme: light dark;
  --paper:#F4F4F2; --surface:#FFFFFF; --surface-hover:#FFFFFF;
  --ink:#202427; --ink-2:#636973; --ink-3:#9DA2AA;
  --ink-rgb:32 36 39;                       /* ink as channels, for hairlines: rgb(var(--ink-rgb) / .09) */
  --shade-rgb:0 0 0;                        /* shadow colour as channels: rgb(var(--shade-rgb) / .08) */
  --hairline:rgb(var(--ink-rgb) / .09); --hover:rgb(var(--ink-rgb) / .045);
  --line:#E0DFDD; --sidebar:#EEEDEB; --well:#EFEEED; --selected:#E3E2E0;
  --primary:#202427; --on-primary:#FFFFFF;
  --graphite-top:#3C424A; --graphite-bottom:#15191E;
  --white:#FFFFFF;                          /* pages of paper, QR codes: white in both modes */
  --coral:#F0A58E; --butter:#F0CE89; --sky:#84B0F0;
  --coral-muted:#F0A58E; --butter-muted:#F0CE89; --sky-muted:#84B0F0;
  --coral-fill:#FDE9E2; --butter-fill:#FDEFD2; --sky-fill:#E5EFFC;
  --coral-deep:#C8664E; --butter-deep:#A97E2C; --sky-text:#3460A1;   /* deep = icons only (≥ 3:1), never words */
  --focus:#3460A1;
  --success:#347653; --recording:#B63F3C; --warning:#936400;
}
:root[data-theme="dark"] {
  --paper:#17191C; --surface:#24272B; --surface-hover:#282C30;
  --ink:#ECEEF2; --ink-2:#AFB6C1; --ink-3:#7B8189;
  --ink-rgb:236 238 242;
  --line:#33373C; --sidebar:#1B1E21; --well:#1C1F22; --selected:#303338;
  --primary:#ECEEF2; --on-primary:#17191C;
  --coral-muted:#B67C6A; --butter-muted:#BA9F6A; --sky-muted:#6081B4;
  --coral-fill:#42312C; --butter-fill:#3D372B; --sky-fill:#29394F;
  --coral-deep:#F0A58E; --butter-deep:#F0CE89; --sky-text:#84B0F0;
  --focus:#84B0F0;
  --success:#7BC39B; --recording:#F36164; --warning:#E8BD63;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:#17191C; --surface:#24272B; --surface-hover:#282C30;
    --ink:#ECEEF2; --ink-2:#AFB6C1; --ink-3:#7B8189;
    --ink-rgb:236 238 242;
    --line:#33373C; --sidebar:#1B1E21; --well:#1C1F22; --selected:#303338;
    --primary:#ECEEF2; --on-primary:#17191C;
    --coral-muted:#B67C6A; --butter-muted:#BA9F6A; --sky-muted:#6081B4;
    --coral-fill:#42312C; --butter-fill:#3D372B; --sky-fill:#29394F;
    --coral-deep:#F0A58E; --butter-deep:#F0CE89; --sky-text:#84B0F0;
    --focus:#84B0F0;
    --success:#7BC39B; --recording:#F36164; --warning:#E8BD63;
    color-scheme: dark;
  }
}
:root[data-theme="light"] { color-scheme: light; }
/* Increase Contrast (macOS / iOS "Increase contrast"). */
@media (prefers-contrast: more) {
  :root { --ink:#101315; --ink-2:#474C54; --ink-3:#5A6069; --line:#A6A4A1; --hairline:rgb(var(--ink-rgb) / .32); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink:#FFFFFF; --ink-2:#D0D5DD; --ink-3:#BAC0CA; --line:#5C6167; }
}
@media (prefers-contrast: more) {
  :root[data-theme="dark"] { --ink:#FFFFFF; --ink-2:#D0D5DD; --ink-3:#BAC0CA; --line:#5C6167; }
}
