/* ==========================================================================
   Code-Top Design System Tokens (Precision Industrial Software Aesthetic)
   ========================================================================== */
:root {
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Dark Palette (Default) */
  --bg-page: #090d16;
  --bg-surface: #111827;
  --bg-elevated: #161f30;
  --bg-nav: rgba(9, 13, 22, 0.85);
  --bg-code: #0d1320;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #3b82f6;
  --accent-primary-hover: #60a5fa;
  --accent-primary-soft: rgba(59, 130, 246, 0.12);

  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.12);

  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.12);

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.45);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --bg-code: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-primary-soft: rgba(37, 99, 235, 0.08);

  --accent-emerald: #059669;
  --accent-emerald-soft: rgba(5, 150, 105, 0.09);

  --accent-amber: #d97706;
  --accent-amber-soft: rgba(217, 119, 6, 0.1);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.18);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px -10px rgba(15, 23, 42, 0.08);
}
