:root {
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6b7280;
  --accent: #2563eb;
  --rule: #e5e7eb;
  --table-head: #f3f4f6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --fg: #e7e7ea;
    --muted: #9ca3af;
    --accent: #7aa2ff;
    --rule: #2c2d31;
    --table-head: #1b1c1f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
.lang a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 0.9rem;
  font-size: 0.92rem;
}
.lang a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}
.lang a:hover { color: var(--accent); }

.doc, .hero {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.doc h1 { font-size: 1.9rem; line-height: 1.25; margin: 1.6rem 0 0.6rem; }
.doc h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2rem 0 0.5rem; }
.doc h3 { font-size: 1.1rem; margin: 1.8rem 0 0.4rem; }
.doc p, .doc li { overflow-wrap: break-word; }
.doc a { color: var(--accent); }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.doc blockquote {
  margin: 1rem 0;
  padding: 0.1rem 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--table-head);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.doc table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.93rem;
}
.doc th, .doc td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
  min-width: 8rem;
}
.doc th { background: var(--table-head); }

.hero { padding-top: 4rem; text-align: center; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  margin: 0 0 0.5rem;
}
.tagline { color: var(--muted); font-size: 1.1rem; margin: 0 0 2.5rem; }
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: left;
}
.doc-list li { margin: 0.55rem 0; }
.doc-list a { color: var(--accent); text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.7rem;
}
.site-footer nav a:hover { color: var(--accent); }
.site-footer p { margin: 0.8rem 0 0; }
