/* atomise.fun design tokens
   Single source of truth for colour, type, spacing, radii, shadow and motion.
   Every page (index, flow, admin) loads this file first and references the
   variables; no page redefines a brand colour by hand. See STYLE-GUIDE.md. */
:root {
  /* ── colour: surfaces ── */
  --bg: #0A0A0C;          /* page */
  --bg-2: #0F0F13;        /* raised page areas, top bar */
  --card: #141417;        /* cards, rows, dialogs */
  --card-2: #1A1A1E;      /* nested / hover card */
  --line: #26262B;        /* hairline borders */
  --line-strong: #34343B;

  /* ── colour: text ── */
  --txt: #E8EAE9;         /* body */
  --txt-strong: #FFFFFF;  /* headings, key figures */
  --mut: #9AA19D;         /* secondary */
  --dim: #8A918D;         /* tertiary, legal strips, placeholders (AA on --bg and --card; was #6B716D, 3.7:1 on cards) */

  /* ── colour: brand + semantic ── */
  --grn: #34D399;         /* primary action, live, success */
  --grn-l: #6EE7B7;       /* highlighted text on dark */
  --grn-deep: #052E22;    /* text on a green fill */
  --grn-08: rgba(52,211,153,.08);
  --grn-14: rgba(52,211,153,.14);
  --grn-30: rgba(52,211,153,.30);
  --amb: #F59E0B;         /* forming, pending, demo warnings */
  --amb-deep: #451A03;
  --amb-10: rgba(245,158,11,.10);
  --amb-30: rgba(245,158,11,.30);
  --vio: #A78BFA;         /* investor mode, owned */
  --vio-15: rgba(167,139,250,.15);
  --blu: #60A5FA;         /* market / info */
  --red: #F87171;         /* errors, bad standing */
  --red-10: rgba(248,113,113,.10);
  --pink: #F472B6;        /* hard name-check failure */
  --amb-txt: #F5C26B;     /* amber text: hints, warnings */

  /* ── theme channels (15 Oct 2026, light theme) ──
     --ink: the RGB of "text-coloured" tints, used as rgba(var(--ink), a) for
     hairlines, glass fills and subtle hovers; --bar: the RGB of the top bar.
     --t-hi/md/lo: three text tiers replacing ad-hoc white alphas, each kept
     at WCAG AA or better on its background in both themes. */
  --ink: 255,255,255;
  --bar: 15,15,19;
  --t-hi: rgba(255,255,255,.86);
  --t-md: rgba(255,255,255,.76);
  --t-lo: rgba(255,255,255,.62);

  /* ── type ── */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --fs-xs: 12px;          /* smallest size anywhere: badges, legal, timestamps */
  --fs-sm: 13px;          /* secondary copy, chips, table meta */
  --fs-md: 15px;          /* body (base) */
  --fs-lg: 17px;          /* row titles, dialog titles */
  --fs-xl: 22px;          /* section headings, page titles */
  --fs-2xl: 28px;         /* hero numbers */
  --fs-3xl: 36px;         /* hero headline (mobile) */
  --fs-4xl: 48px;         /* hero headline (desktop) */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.55;
  --track-caps: .10em;    /* letter-spacing for uppercase labels */

  /* ── spacing (4px grid) ── */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  /* ── radii ── */
  --r-sm: 8px;            /* chips, small badges */
  --r-md: 12px;           /* inputs, buttons that aren't pills */
  --r-lg: 16px;           /* cards, rows */
  --r-xl: 20px;           /* dialogs, hero cards */
  --r-pill: 9999px;

  /* ── layout ── */
  --w-content: 880px;     /* main reading column */
  --w-wide: 1120px;       /* top bar and landing sections */
  --w-dialog: 560px;      /* dialogs (sheets on desktop) */
  --gutter: 16px;         /* side padding on phones */
  --topbar-h: 64px;
  --tabbar-h: 64px;
  --tap: 44px;            /* minimum hit target */

  /* ── shadow + glow ── */
  --sh-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.35);
  --sh-dialog: 0 24px 64px rgba(0,0,0,.6), inset 0 1px 1px rgba(255,255,255,.08);
  --glow-grn: 0 0 20px rgba(52,211,153,.35);
  --focus: 0 0 0 3px rgba(52,211,153,.45);

  /* ── motion ── */
  --t-fast: .12s ease;
  --t-base: .2s ease;
  --t-slow: .35s cubic-bezier(.2,.9,.3,1);
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
/* ── LIGHT THEME (15 Oct 2026) ──
   Daytime reading. Set by flow.html on <html data-theme="light"> (the visitor's
   choice, else the device setting). Every text colour below is at least 4.5:1
   on --bg and --card (body text 12:1+); brand colours are the deeper shades of
   the same hues so they stay legible as text, and white text sits on fills. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F5F4;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #EEF0EE;
  --line: #DADDDB;
  --line-strong: #B9BEBB;

  --txt: #1C201E;         /* 15.6:1 on --bg */
  --txt-strong: #0A0A0C;
  --mut: #4A524D;         /* 7.6:1 */
  --dim: #59615C;         /* 6.0:1 */

  --grn: #047857;         /* 5.2:1 as text on --bg; white on it 5.5:1 */
  --grn-l: #065F46;
  --grn-deep: #FFFFFF;    /* text on a green fill */
  --grn-08: rgba(4,120,87,.07);
  --grn-14: rgba(4,120,87,.12);
  --grn-30: rgba(4,120,87,.35);
  --amb: #9A4A06;         /* 5.7:1 on --bg, 6.3:1 on white; white on it 6.3:1 */
  --amb-deep: #FFFFFF;
  --amb-10: rgba(154,74,6,.07);
  --amb-30: rgba(154,74,6,.32);
  --amb-txt: #92400E;     /* 6.9:1 */
  --vio: #6D28D9;
  --vio-15: rgba(109,40,217,.10);
  --blu: #1D4ED8;
  --red: #B91C1C;
  --red-10: rgba(185,28,28,.08);
  --pink: #BE185D;

  --ink: 10,10,12;
  --bar: 255,255,255;
  --t-hi: #1F2421;        /* 14:1 */
  --t-md: #353C38;        /* 10.5:1 */
  --t-lo: #4A524D;        /* 7.6:1 */

  --sh-card: 0 1px 2px rgba(10,10,12,.06), 0 6px 18px rgba(10,10,12,.06);
  --sh-dialog: 0 18px 48px rgba(10,10,12,.16);
  --glow-grn: 0 0 0 rgba(0,0,0,0);
  --focus: 0 0 0 3px rgba(4,120,87,.35);
}
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0s; --t-base: 0s; --t-slow: 0s; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
}
