:root {
  --font-sans: Inter, "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --duration-fast: 160ms;
  --duration-base: 260ms;
  --duration-slow: 420ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --bg: #f7f7f3;
  --bg-elevated: #ffffff;
  --bg-subtle: #efefe9;
  --bg-tint: #f0f5f3;
  --text: #171713;
  --text-soft: #4c4c45;
  --text-muted: #77776d;
  --line: #ddddd4;
  --line-strong: #c7c7bc;
  --accent: #1f6d54;
  --accent-hover: #185541;
  --accent-soft: #dfeee8;
  --accent-contrast: #ffffff;
  --blue: #3468a7;
  --blue-soft: #e3edf9;
  --violet: #7858a6;
  --violet-soft: #eee8f7;
  --orange: #af6429;
  --orange-soft: #f7eadd;
  --danger: #a54036;
  --danger-soft: #f5e4e1;
  --positive: #1f7a55;
  --negative: #b9473d;
  --shadow-sm: 0 1px 2px rgba(24, 24, 19, 0.04), 0 8px 24px rgba(24, 24, 19, 0.04);
  --shadow-md: 0 2px 4px rgba(24, 24, 19, 0.04), 0 20px 48px rgba(24, 24, 19, 0.08);
  --focus: 0 0 0 3px rgba(31, 109, 84, 0.24);
}

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #111210;
  --bg-subtle: #171814;
  --bg-tint: #101713;
  --text: #f5f5f1;
  --text-soft: #c5c5bc;
  --text-muted: #96968b;
  --line: #292a25;
  --line-strong: #3c3d36;
  --accent: #7bc9a8;
  --accent-hover: #9bd9be;
  --accent-soft: #18372b;
  --accent-contrast: #07130e;
  --blue: #86ade0;
  --blue-soft: #16273d;
  --violet: #b7a0d8;
  --violet-soft: #2a2037;
  --orange: #e1a16f;
  --orange-soft: #3b281a;
  --danger: #e69b93;
  --danger-soft: #3b201f;
  --positive: #7fd0aa;
  --negative: #ed9188;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.25), 0 24px 64px rgba(0, 0, 0, 0.28);
  --focus: 0 0 0 3px rgba(123, 201, 168, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
