/* BXCODE — canonical design tokens.
   Mirrored by the desktop presentation layer; keep names stable. */
:root {
  color-scheme: dark;

  /* Palette */
  --bx-bg: #000;
  --bx-bg-soft: #080808;
  --bx-surface: #101010;
  --bx-layer: #191919;
  --bx-layer-2: #222;
  --bx-line: #292929;
  --bx-line-soft: rgb(255 255 255 / 7%);
  --bx-line-strong: #404040;
  --bx-brand: #e11d2e;
  --bx-brand-press: #c41626;
  --bx-accent: #ff3347;
  --bx-accent-soft: #ff6776;
  --bx-ink: #f5f5f5;
  --bx-muted: #aaa;
  --bx-control: #8a8a8a;
  --bx-focus: #ff6776;

  /* Typography */
  --bx-font-sans: 'Geist', 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bx-font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --bx-text-ui: var(--bx-font-sans);
  --bx-type-micro: .6875rem;
  --bx-type-meta: .8125rem;
  --bx-type-body: 1rem;
  --bx-type-lead: 1.125rem;
  --bx-type-title: clamp(2rem, 5vw, 3.5rem);

  /* Spacing scale (4 px base) */
  --bx-s1: .25rem;
  --bx-s2: .5rem;
  --bx-s3: .75rem;
  --bx-s4: 1rem;
  --bx-s5: 1.25rem;
  --bx-s6: 1.5rem;
  --bx-s8: 2rem;
  --bx-s10: 2.5rem;
  --bx-s12: 3rem;
  --bx-s16: 4rem;
  --bx-s20: 5rem;
  --bx-s24: 6rem;

  /* Radii */
  --bx-r-xs: 4px;
  --bx-r-control: 8px;
  --bx-r-panel: 12px;
  --bx-r-tile: 16px;
  --bx-r-large: 20px;
  --bx-r-pill: 999px;

  /* Elevation */
  --bx-shadow-sm: 0 1px 2px rgb(0 0 0 / 32%);
  --bx-shadow: 0 8px 24px rgb(0 0 0 / 28%);
  --bx-shadow-lg: 0 24px 64px rgb(0 0 0 / 48%);

  /* Motion */
  --bx-fast: 140ms;
  --bx-enter: 220ms;
  --bx-slow: 420ms;
  --bx-ease: cubic-bezier(.2, .75, .2, 1);
  --bx-ease-out: cubic-bezier(.16, 1, .3, 1);
}
