/* tokens.css (the new look, 2026-10-30): the website's colours, faces and sizes, from the approved design
   (design/new-ui/source/site/03-landing-page/src: hero-built.html, sections.css, dark-warm.css, shine.css).

   Two looks, the site's own names (assets/theme.js): dark is no attribute at all and the house look, with the
   warm orange accent of the orb; light is <html data-site-theme="light">, with the blue. A first visit is dark,
   whatever the device prefers (the founder, 20 Oct), so nothing here reads prefers-color-scheme.

   Every size, gap and padding is on the 4px grid. Words keep 4.5:1 on the ground and the panels, marks 3:1
   (test_light_theme.py measures them). The dashboard keeps its own copy of these colours (assets/dash/core.css).

   The faces below name their size-adjusted local fallbacks ("Sora Fallback" and the rest), which live in fonts.css,
   the one file the website and the dashboard both load, so either paints at once and nothing moves when the web
   faces arrive. */

:root {
  color-scheme: dark;

  /* surfaces and lines */
  --ground: #08090A;
  --panel: #0F1011;
  --raised: #16171A;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --mock: #0B0C0D;               /* the inside of a product window drawn on a page */
  --bubble: #1E2024;             /* a visitor's bubble in a chat drawn on a page */
  --shadow: 0 24px 80px rgba(0, 0, 0, .5);

  /* words */
  --text: #F7F8F8;
  --text-2: #8A8F98;
  --text-3: #787C84;             /* captions on the ground and the panels only */
  --head-edge: #9499A2;          /* a headline's grey ends */
  --head-mid: #FFFFFF;           /* and its bright middle */

  /* the pill button, the email field, the logos strip */
  --pill: #F7F8F8;
  --pill-ink: #08090A;
  --pill-hover: #FFFFFF;
  --field: #0F1011;
  --field-line: rgba(255, 255, 255, .12);
  --logo: rgba(247, 248, 248, .56);
  --logo-hover: #F7F8F8;

  /* the accent: warm orange in the dark look */
  --glow: #FF6B35;
  --glow-hi: #FFB38A;
  --glow-core: rgba(255, 112, 60, .85);
  --glow-mid: rgba(255, 84, 80, .28);
  --accent: #FF8A4C;
  --accent-soft: rgba(255, 122, 61, .14);
  --focus: #FFB38A;

  /* statuses: a glyph and a grey word in the dashboard; these colours draw the website's own marks */
  --ok: #4CC38A;
  --ok-soft: rgba(76, 195, 138, .12);
  --warn: #F2B24C;
  --flat: #F59E3D;
  --hot: #FF6680;
  --hot-soft: rgba(255, 102, 128, .12);
  --wait: #A98BFF;
  --error: #FF8A8A;

  /* the shine: three wide, slow pools of light behind the page and its cards */
  --sh1: rgba(255, 77, 106, .06);
  --sh2: rgba(255, 140, 60, .06);
  --sh3: rgba(255, 110, 60, .042);

  /* faces */
  --display: "Sora", "Sora Fallback", "Segoe UI", system-ui, sans-serif;            /* titles, the bidi word */
  --headline: "Outfit", "Outfit Fallback", "Segoe UI", system-ui, sans-serif;       /* Home's two big headlines */
  --body: "Manrope", "Manrope Fallback", "Segoe UI", system-ui, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* layout, on the 4px grid */
  --container: 1224px;
  --margin: 36px;
  --h-bar: 72px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --pill-radius: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-site-theme="light"] {
  color-scheme: light;

  --ground: #F7F8F8;
  --panel: #FFFFFF;
  --raised: #EEF0F2;
  --line: rgba(8, 9, 10, .08);
  --line-2: rgba(8, 9, 10, .14);
  --mock: #FBFBFC;
  --bubble: #EEF0F2;
  --shadow: 0 24px 64px rgba(8, 9, 10, .10);

  --text: #08090A;
  --text-2: #5C616A;
  --text-3: #6C7179;
  --head-edge: #8A8F98;
  --head-mid: #08090A;

  --pill: #08090A;
  --pill-ink: #F7F8F8;
  --pill-hover: #23252A;
  --field: #FFFFFF;
  --field-line: rgba(8, 9, 10, .12);
  --logo: rgba(8, 9, 10, .56);
  --logo-hover: #08090A;

  /* the accent: blue in the light look */
  --glow: #2A5BE0;
  --glow-hi: #6F95FF;
  --glow-core: rgba(42, 91, 224, .42);
  --glow-mid: rgba(42, 91, 224, .14);
  --accent: #2350C8;
  --accent-soft: rgba(42, 91, 224, .09);
  --focus: #2A5BE0;

  --ok: #146A42;
  --ok-soft: rgba(28, 129, 80, .1);
  --warn: #8F5A00;
  --flat: #B45A00;
  --hot: #C42B2B;
  --hot-soft: rgba(196, 43, 43, .07);
  --wait: #6B3FD4;
  --error: #C42B2B;

  --sh1: rgba(140, 92, 255, .06);
  --sh2: rgba(56, 189, 248, .066);
  --sh3: rgba(59, 111, 255, .042);
}

@media (max-width: 1100px) {
  :root { --margin: 32px; }
}
@media (max-width: 640px) {
  :root { --margin: 16px; --h-bar: 64px; }
}
