/* Shared design tokens for every OSINT Swarm page: one font, one neutral palette in dark and light,
   the severity colours, one brand hue, three corner sizes, two shadows and the motion curves.
   Built on the Prism rules: a single hue sets the brand colour, and loud colour is kept for what
   matters, here severity (red, amber), so the brand stays calm.
   Pages link this first and add only their own layout values; colour.css and site.css build on it.
   Theme: dark by default, light when the system asks for it, and data-theme on <html> wins either way. */

@font-face {
  font-family: "Mona Sans"; src: url("/static/mona-sans-wdth.woff2") format("woff2");
  font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
}

:root {
  color-scheme: dark;
  /* brand: change the hue and every brand colour follows. Both stops carry white text at 4.5:1 or more. */
  --hue: 250;
  --brand: oklch(.52 .15 var(--hue));
  --brand-2: oklch(.50 .15 calc(var(--hue) + 28));
  --on-brand: #fff;

  /* neutrals */
  --abyss: #111110;
  --glass: rgb(26 26 25 / .82);
  --glass-solid: #1A1A19;
  --ice: #ECECEA; --ice-rgb: 236 236 234;
  --frost: #A3A39D; --faint: #7D7D77;
  --text: rgb(var(--ice-rgb) / .92);
  --rule: rgb(var(--ice-rgb) / .12);
  --rule-strong: rgb(var(--ice-rgb) / .32);
  --tint: rgb(var(--ice-rgb) / .06);

  /* severity: the loud colours. The -text variants pass 4.5:1 as text on the page background. */
  --amber: #FAB219; --signal: #D03B3B; --phosphor: #0CA30C;
  --amber-text: var(--amber); --signal-text: #F29090; --phosphor-text: #62CF62;
  --glow: 1;

  /* shape and motion */
  --r-panel: 16px;      /* cards, panels, dialogs */
  --r-ctl: 10px;        /* buttons, inputs, segmented groups */
  --r-pill: 999px;      /* chips and pill buttons */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .18);
  --shadow: 0 12px 32px -12px rgb(0 0 0 / .45);
  --spring: cubic-bezier(.34, 1.6, .5, 1);
  --spring-soft: cubic-bezier(.34, 1.4, .5, 1);
  --ease-out: cubic-bezier(.25, 1, .5, 1);

  /* Mona Sans has no Hebrew: Hebrew glyphs fall through to the system font (the CSP allows self-hosted fonts only) */
  --font: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --abyss: #F3F3F1;
    --glass: rgb(252 252 251 / .82);
    --glass-solid: #FCFCFB;
    --ice: #1B1B1A; --ice-rgb: 27 27 26;
    --frost: #62625E; --faint: #8B8B86;
    --rule: rgb(var(--ice-rgb) / .16);
    --rule-strong: rgb(var(--ice-rgb) / .34);
    --amber: #C98A00;
    /* AA text variants: the raw light-theme amber and phosphor fall under 4.5:1 on the daylight base */
    --amber-text: #8A5200; --signal-text: #B42F2F; --phosphor-text: #067A40;
    --glow: 0;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .06);
    --shadow: 0 12px 32px -14px rgb(0 0 0 / .18);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --abyss: #F3F3F1;
  --glass: rgb(252 252 251 / .82);
  --glass-solid: #FCFCFB;
  --ice: #1B1B1A; --ice-rgb: 27 27 26;
  --frost: #62625E; --faint: #8B8B86;
  --rule: rgb(var(--ice-rgb) / .16);
  --rule-strong: rgb(var(--ice-rgb) / .34);
  --amber: #C98A00;
  --amber-text: #8A5200; --signal-text: #B42F2F; --phosphor-text: #067A40;
  --glow: 0;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .06);
  --shadow: 0 12px 32px -14px rgb(0 0 0 / .18);
}
:root[data-theme="dark"] { color-scheme: dark; }
