/* FORME design tokens.
   Editorial fintech: warm paper ground, off-white working surfaces, charcoal ink.
   Green and red carry trading meaning only. Burnt orange marks focus and selection.
   Light-only by design; every colour below is set explicitly. */
:root {
  color-scheme: light;

  /* Ground and surfaces */
  --paper: #F3F2ED;          /* page background */
  --surface: #FBFAF7;        /* panels */
  --surface-2: #F7F6F1;      /* hover, table stripes, input wells */
  --sunken: #EEEDE6;         /* segmented control track, pressed */
  --field: #FFFEFA;          /* inputs */

  /* Ink */
  --ink: #202521;            /* primary text */
  --ink-2: #4A524B;          /* table body text */
  --muted: #858B83;          /* labels (bold, uppercase) */
  --muted-text: #6C736A;     /* small running text: 4.6:1 on surface */
  --faint: #A6AAA2;          /* disabled, axis text */

  /* Lines */
  --hair: #E3E3DC;
  --hair-2: #ECECE6;

  /* Trading semantics */
  --green: #16845E;  --green-ink: #0F6A4B;  --green-bg: #E5F2EB;  --green-line: #B8D9C9;
  --red: #C4514D;    --red-ink: #A63F3B;    --red-bg: #F8E9E6;    --red-line: #E8C1BA;
  --entry: #5F8796;  --entry-ink: #476E7D;  --entry-bg: #E7EEF0;  --entry-line: #C5D6DB;

  /* Accent: focus, selection, active tab */
  --accent: #C86D45; --accent-ink: #A9552F; --accent-bg: #F5E9E1; --accent-line: #E6C4B1;

  /* Chart */
  --candle-up: #2B9A72;  --candle-up-body: #4FA684;
  --candle-down: #C86B64; --candle-down-body: #D4847C;
  --vwap: #C86D45; --ema: #6F8C7D;

  /* Type */
  --font-ui: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --fs-2xs: 10px;    /* uppercase labels */
  --fs-xs: 11px;     /* table, captions */
  --fs-sm: 12px;
  --fs-md: 13px;     /* body */
  --fs-lg: 15px;
  --fs-xl: 21px;     /* KPI values */
  --fs-2xl: 27px;    /* last traded price */
  --track-label: .11em;

  /* Space (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;

  /* Shape */
  --r-xs: 4px; --r-sm: 6px; --r-md: 9px; --r-lg: 13px;
  --shadow: 0 1px 0 rgba(32,37,33,.03), 0 14px 36px rgba(39,50,41,.045);
  --shadow-pop: 0 2px 6px rgba(32,37,33,.06), 0 18px 40px rgba(32,37,33,.10);
  --ring: 0 0 0 3px rgba(200,109,69,.22);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.45,0,.2,1);
  --dur-fast: 120ms;   /* hover, press */
  --dur: 220ms;        /* state changes, level moves */
  --dur-slow: 450ms;   /* number tweens, panel entry */
  --dur-flash: 650ms;  /* price tick colour */
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; --dur-flash: 0ms; }
}
