*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0b0b12;
  --surface: #141420;
  --surface-elevated: #1c1c2e;
  --border: #2a2a3e;
  --text: #e6e6f0;
  --text-secondary: #8585a0;
  --text-muted: #55556a;
  --accent: #d4a853;
  --accent-hover: #e0bb65;
  --accent-subtle: rgba(212, 168, 83, 0.1);
  --success: #4ade80;
  --shadow: rgba(0, 0, 0, 0.4);
  --glow: rgba(212, 168, 83, 0.08);

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f4f1;
    --surface: #ffffff;
    --surface-elevated: #eeeee9;
    --border: #dddad2;
    --text: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-muted: #a0a0a0;
    --accent: #b08328;
    --accent-hover: #9a7020;
    --accent-subtle: rgba(176, 131, 40, 0.08);
    --success: #22c55e;
    --shadow: rgba(0, 0, 0, 0.08);
    --glow: rgba(176, 131, 40, 0.06);

    color-scheme: light;
  }
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Smooth transitions when system theme changes */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}
