:root {
  /* ─── surfaces ─────────────────────────────────────────── */
  --bg:        #07090b;
  --bg-1:     #0a0d11;
  --panel:     #0e1216;
  --panel-1:   #11161c;
  --raised:    #161c24;
  --rule:      #1c2128;
  --rule-1:    #262d36;

  /* ─── ink ──────────────────────────────────────────────── */
  --ink:       #e6edf3;
  --ink-1:     #b9c2cc;
  --dim:       #7d8590;
  --dim-1:     #5b626d;
  --muted:     #3f464f;

  /* ─── signal ───────────────────────────────────────────── */
  --up:        #2ea043;
  --up-soft:   #1f6f31;
  --down:      #cf222e;
  --down-soft: #8b1820;
  --amber:     #d4a72c;
  --amber-soft:#7f6418;
  --cyan:      #58a6ff;
  --hot:       #ff7b72;

  /* legal/regulator */
  --reg:       #58a6ff;

  /* ─── type ─────────────────────────────────────────────── */
  --ff-mono: "JetBrains Mono", "Berkeley Mono", "IBM Plex Mono", "Fira Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ff-sans: "IBM Plex Sans", "Inter Tight", system-ui, -apple-system, sans-serif;
  --ff-display: "JetBrains Mono", ui-monospace, monospace;

  --fs-xs:   11px;
  --fs-sm:   12px;
  --fs-base: 13px;
  --fs-md:   14px;
  --fs-lg:   16px;
  --fs-xl:   20px;
  --fs-2xl:  28px;
  --fs-3xl:  44px;
  --fs-4xl:  64px;

  --lh-tight: 1.15;
  --lh-base:  1.55;
  --lh-loose: 1.7;

  /* ─── geometry ─────────────────────────────────────────── */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 6px;

  --gutter: 56px;
  --statusbar-h: 26px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ─── motion ───────────────────────────────────────────── */
  --ease-out: cubic-bezier(.2, 0, .2, 1);
  --ease-snap: cubic-bezier(.6, 0, .4, 1);
  --d-fast: 120ms;
  --d-base: 200ms;
  --d-slow: 360ms;

  /* ─── shadow (used sparingly; mostly we use rules) ─────── */
  --shadow-cell: inset 0 0 0 1px var(--rule);
  --shadow-cell-hi: inset 0 0 0 1px var(--rule-1);
  --shadow-focus: 0 0 0 2px var(--amber), 0 0 0 4px rgba(212,167,44,.18);

  /* container */
  --max-w: 1400px;
}

@media (max-width: 880px) {
  :root {
    --gutter: 32px;
    --fs-3xl: 32px;
    --fs-4xl: 44px;
  }
}

@media (max-width: 560px) {
  :root { --gutter: 0; }
}
