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

:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2d3a4f;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent: #6ea8fe;
  --accent-dim: #4d87e0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.deck-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deck-link {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.deck-link:hover,
.deck-link:focus-visible {
  border-color: var(--accent);
  background: #1f2937;
  outline: none;
}

.deck-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.35);
}

.deck-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.deck-meta {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.error {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: #3d1f24;
  border: 1px solid #8b3a42;
  color: #fecaca;
}

.loading {
  color: var(--muted);
  margin-top: 2rem;
}
