/* theme.css — theme tokens for light & dark, applied site‑wide */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-card: #f1f5f9;
  --text: #0f172a;
  --text-subtle: #475569;
  --border: #e2e8f0;
  --accent: #0ea5e9;
  --brand: #8b5cf6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2,6,23,0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-elevated: #0f172a;
  --bg-card: #111827;
  --text: #e5e7eb;
  --text-subtle: #9ca3af;
  --border: #1f2937;
  --accent: #38bdf8;
  --brand: #a78bfa;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Global application */
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

/* Utility tokens */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}
.btn-primary {
  background: var(--brand);
  color: white;
  border-color: transparent;
}
a { color: var(--accent); }
