:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #59636e;
  --line: #d1d9e0;
  --link: #0b5cad;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --text: #e6e8eb;
    --muted: #9ba3ad;
    --line: #30363d;
    --link: #6cb6ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
}

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

header,
main,
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 16px;
}

nav [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

h1 {
  margin: 28px 0 4px;
  font-size: 28px;
  line-height: 1.25;
}

h2 {
  margin: 32px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.updated {
  margin-top: 0;
  color: var(--muted);
}

li {
  margin: 6px 0;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

h3 {
  margin: 24px 0 4px;
  font-size: 17px;
}

.muted {
  color: var(--muted);
}

details {
  margin: 4px 0;
}

summary {
  color: var(--link);
  cursor: pointer;
}

pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

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

.table-scroll {
  overflow-x: auto;
}
