:root {
  /* Type scale */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --text-xs: 0.75rem;     /* ~12px */
  --text-sm: 0.8125rem;   /* 13px */
  --text-base: 0.9375rem; /* 15px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 2rem;       /* 32px */
  --leading-tight: 1.25;
  --leading-normal: 1.55;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Radii & borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Light palette (calm editorial neutrals) */
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-subtle: #f1efe9;
  --text: #181816;
  --text-muted: #5e5d56;
  --border: #e3e0d6;
  --accent: #2f5d50;
  --accent-contrast: #ffffff;

  /* Semantic meaning */
  --danger: #a63428;
  --warning: #9a6514;
  --success: #246a4a;

  /* Layout sizes */
  --sidebar-width: 228px;
  --topbar-height: 56px;
  --bottom-nav-height: 60px;
  --tap-min: 44px;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #121312;
    --surface: #181a18;
    --surface-subtle: #202320;
    --text: #ecece7;
    --text-muted: #9e9e95;
    --border: #2a2d29;
  }
}

:root[data-theme="dark"] {
  --bg: #121312;
  --surface: #181a18;
  --surface-subtle: #202320;
  --text: #ecece7;
  --text-muted: #9e9e95;
  --border: #2a2d29;
}

:root[data-theme="light"] {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-subtle: #f1efe9;
  --text: #181816;
  --text-muted: #5e5d56;
  --border: #e3e0d6;
}