:root {
  /* Palette — light */
  --color-bg: #ffffff;
  --color-surface: #f7f8fa;
  --color-surface-2: #f0f1f3;
  --color-border: #e5e7eb;
  --color-text: #1f2328;
  --color-text-muted: #57606a;
  --color-accent: #58a6ff;
  --color-accent-hover: #4090f0;
  --color-accent-on: #ffffff;   /* contrast colour for icons/text ON accent bg */
  --color-danger: #d93025;
  --color-danger-hover: #b5271f;
  --color-success: #1a7f37;
  --color-warning: #9a6700;

  /* Status colors */
  --status-idea: #7c5cd8;
  --status-planning: #3b82d4;
  --status-developing: #0969da;
  --status-testing: #9a6700;
  --status-ready: #1a7f37;
  --status-done: #57606a;
  --status-paused: #d93025;

  /* Typography */
  --font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-base: 15px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 26px;
  --font-size-2xl: 34px;
  --line-height: 1.6;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Sidebar */
  --sidebar-width: 220px;

  /* Transition */
  --transition: 150ms ease;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
}

[data-theme="dark"] {
  --color-bg: #0d1117;
  --color-surface: #161b22;
  --color-surface-2: #21262d;
  --color-border: #30363d;
  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --color-accent: #58a6ff;
  --color-accent-hover: #79b8ff;
  --color-accent-on: #ffffff;
  --color-danger: #f85149;
  --color-danger-hover: #ff7b72;
  --color-success: #3fb950;
  --color-warning: #d29922;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}
