/* ==========================================================================
   LeanLab by Haziq — Canonical Design Tokens (Single Source of Truth)
   Visual World: Night Aura / Architectural Cloud Paper · Strict 8pt Grid
   ========================================================================== */
:root {
  color-scheme: dark;

  /* Surfaces */
  --ll-bg: #0c0d0f;
  --ll-tile: #111214;
  --ll-tile-2: #14161a;
  --ll-elev: #181a21;
  --ll-paper: #f2f2ec;
  --ll-paper-ink: #1e2520;
  --ll-paper-muted: #505850;
  --ll-paper-rule: #cfd3ca;

  /* Ink & Borders */
  --ll-ink: #f0f1f3;
  --ll-muted: #9b9fa8;
  --ll-stroke: #262830;
  --ll-stroke-strong: #3d404e;
  --ll-mint: #afddd1;
  --ll-warn: #f8dcac;
  --ll-danger: #ef9f8a;

  /* Legacy short aliases for seamless compatibility */
  --bg: var(--ll-bg);
  --tile: var(--ll-tile);
  --tile-2: var(--ll-tile-2);
  --paper: var(--ll-paper);
  --paper-ink: var(--ll-paper-ink);
  --paper-muted: var(--ll-paper-muted);
  --paper-rule: var(--ll-paper-rule);
  --ink: var(--ll-ink);
  --muted: var(--ll-muted);
  --stroke: var(--ll-stroke);
  --mint: var(--ll-mint);

  /* Strict 8pt Spacing Scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;

  /* Concentric Radii */
  --r-outer: 16px;
  --r-inner: 8px;

  /* Typography */
  --font-display: 'LeanLab Compact', 'Bricolage Grotesque', Geist, sans-serif;
  --font-ui: Geist, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; min-width: 0; }
html, body {
  margin: 0; padding: 0;
  background: var(--ll-bg); color: var(--ll-ink);
  font: 15px/1.45 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
*:focus-visible { outline: 2px solid #d5dcfa; outline-offset: 2px; }
