:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #0b0f14;
  --muted: #5c6670;
  /* Brand cyan, matching mobile/src/theme/tokens.js. accent700 in light mode so link text
     clears 4.5:1 on white; the lighter accent400 takes over on the dark background below. */
  --accent: #006f8c;
  --border: #e2e8f0;
  --max: 42rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --surface: #121820;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #243041;
    --accent: #5ce0ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
}

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

.content h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.content h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.content h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.content p,
.content ul {
  margin: 0 0 1rem;
  color: var(--text);
}

.content ul {
  padding-left: 1.25rem;
}

.content li {
  margin-bottom: 0.35rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}
