:root {
  /* ── Light palette ─────────────────────────────────────────── */
  --color-bg: #f4f4f6;
  --color-surface: #ffffff;
  --color-surface-muted: #f8f8fa;
  --color-surface-soft: #eeeef2;
  --color-surface-strong: #dadde5;
  --color-text: #0a0a0b;
  --color-text-muted: #424650;
  --color-text-placeholder: #717682;
  --color-border: #cfd3dc;
  --color-border-strong: #969daa;
  --color-dot: #7a808d;
  --color-vote-track: #d9dce4;
  --color-hover: #eceef2;
  --color-active: #dedfe7;
  --color-brand: #0a0a0b;
  --color-brand-contrast: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.46);
  --color-grid: rgba(0, 0, 0, 0.045);
  --color-agree: #16a34a;
  --color-agree-bg: rgba(22, 163, 74, 0.09);
  --color-agree-border: rgba(22, 163, 74, 0.32);
  --color-disagree: #dc2626;
  --color-disagree-bg: rgba(220, 38, 38, 0.09);
  --color-disagree-border: rgba(220, 38, 38, 0.32);
  --color-focus-ring: rgba(10, 10, 11, 0.16);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 72px;

  --radius-1: 6px;
  --radius-2: 10px;
  --radius-3: 16px;
  --radius-pill: 999px;

  --line: 1px solid var(--color-border);
  --line-strong: 1px solid var(--color-border-strong);

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-base: 150ms ease;
  --transition-smooth: 220ms cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-soft: 0 1px 6px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-panel: 0 16px 48px rgba(0, 0, 0, 0.11), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 6px 20px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.05);

  --max-width: 1200px;
  --max-width-narrow: 680px;
  --top-nav-height: 60px;
  --desktop-nav-width: 220px;
  --desktop-nav-gap: 28px;
}

:root[data-theme="dark"] {
  /* ── Charcoal dark palette ─────────────────────────────────── */
  --color-bg: #0d0e10;
  --color-surface: #141517;
  --color-surface-muted: #1a1b1f;
  --color-surface-soft: #202228;
  --color-surface-strong: #282b32;

  --color-text: #eeeef1;
  --color-text-muted: #888b96;
  --color-text-placeholder: #50535e;

  --color-border: #282b33;
  --color-border-strong: #383c47;

  --color-dot: #464a56;
  --color-vote-track: #1e2024;
  --color-hover: #191b1f;
  --color-active: #1f2126;

  --color-brand: #eeeef1;
  --color-brand-contrast: #0d0e10;

  --color-overlay: rgba(0, 0, 0, 0.68);
  --color-grid: rgba(255, 255, 255, 0.025);

  --color-agree-bg: rgba(22, 163, 74, 0.12);
  --color-agree-border: rgba(22, 163, 74, 0.38);
  --color-disagree-bg: rgba(220, 38, 38, 0.12);
  --color-disagree-border: rgba(220, 38, 38, 0.38);
  --color-focus-ring: rgba(238, 238, 241, 0.08);

  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.36), 0 1px 4px rgba(0, 0, 0, 0.22);
  --shadow-panel: 0 24px 72px rgba(0, 0, 0, 0.58), 0 8px 24px rgba(0, 0, 0, 0.34);
  --shadow-float: 0 8px 28px rgba(0, 0, 0, 0.44), 0 2px 8px rgba(0, 0, 0, 0.26);

  --line: 1px solid var(--color-border);
  --line-strong: 1px solid var(--color-border-strong);
}
