:root {
  --bg: #ffffff;
  --text: #14181d;
  --muted: #5b6672;
  --line: #e3e7ec;
  --surface: #f5f7f9;
  --link: #0b63ce;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --text: #e8edf2;
    --muted: #97a3b0;
    --line: #232a33;
    --surface: #131920;
    --link: #7fb6ff;
  }
}

* { box-sizing: border-box; }

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

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

.site-header,
.document,
.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header { padding-top: 20px; padding-bottom: 8px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand img { border-radius: 7px; }

.document { padding-bottom: 32px; overflow-wrap: anywhere; }
.document h1 { font-size: 2rem; line-height: 1.2; margin: 24px 0 8px; }
.document h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.document h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.document h1 + p { color: var(--muted); }

.document table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

.document th,
.document td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.document th { background: var(--surface); }

.document code {
  background: var(--surface);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a[aria-current="page"] { color: var(--text); }
