/* Ain't No Fluff — palette tokens and layout.
   Light is the baseline; dark is selected by [data-theme="dark"];
   system mode follows prefers-color-scheme. */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #c2410c;
  --border: #e5e7eb;
}

:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --text: #e5e5e5;
  --muted: #9ca3af;
  --accent: #f97316;
  --border: #262626;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"],
  :root:not([data-theme]) {
    --bg: #0a0a0a;
    --surface: #1a1a1a;
    --text: #e5e5e5;
    --muted: #9ca3af;
    --accent: #f97316;
    --border: #262626;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Single centered column */
.page {
  max-width: 680px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
}

/* Flex header: wordmark left, toggle right */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.theme-icon[hidden] {
  display: none;
}

/* Hero */
.hero {
  padding: 3rem 0 2.25rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 5.5vw, 2.75rem);
  line-height: 1.15;
}

.hero-lede {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Games */
.games {
  padding: 1.5rem 0 2.5rem;
}

.games h2 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
}

.games-empty {
  margin: 0;
  padding: 1.25rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
}

/* Muted footer */
.site-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}
