:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --fg: #1c1c1e;
  --muted: #666;
  --border: #e2e2e2;
  --accent: #2a5bd7;
  --card-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #f2f2f2;
    --muted: #a0a0a0;
    --border: #2c2c2e;
    --accent: #7aa2ff;
    --card-bg: #1c1c1e;
  }
}

* { 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 {
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.intro {
  color: var(--muted);
  margin-bottom: 2rem;
}

.app-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.app-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.app-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-card li {
  padding: 0.35rem 0;
}

.app-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.app-card a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.doc-back a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.doc-back a:hover {
  text-decoration: underline;
}

.doc-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.doc-app {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.doc-header h1 {
  margin: 0 0 0.5rem;
}

.doc-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.doc-content h2 {
  margin-top: 2rem;
}

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

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1.5rem;
}
