:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #e0457b;
  --border: #eee;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141a;
    --fg: #f0f0f0;
    --muted: #999;
    --border: #2a2a30;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
}

.lang-switch a {
  margin-left: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a.active {
  color: var(--accent);
  font-weight: 600;
}

.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.content h1 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.content h2 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.content p {
  margin: 0.5rem 0;
  color: var(--fg);
}

.content p.version {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0;
}

.content ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.25rem;
}

.content li {
  margin: 0.25rem 0;
}

.home-links {
  list-style: none;
  padding: 0;
}

.home-links li {
  margin: 0.75rem 0;
}

.home-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
}
