:root {
  --bg: #fafafa;
  --fg: #222;
  --fg-muted: #666;
  --link: #0066cc;
  --link-hover: #004499;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --fg: #e0e0e0;
    --fg-muted: #999;
    --link: #6cb6ff;
    --link-hover: #a0d0ff;
  }
}

[data-theme="light"] {
  --bg: #fafafa;
  --fg: #222;
  --fg-muted: #666;
  --link: #0066cc;
  --link-hover: #004499;
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --fg: #e0e0e0;
  --fg-muted: #999;
  --link: #6cb6ff;
  --link-hover: #a0d0ff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  font-size: 1.5rem;
  font-weight: normal;
  margin: 0 0 2rem 0;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.muted {
  color: var(--fg-muted);
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--fg-muted);
  color: var(--fg);
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
}

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