:root {
  --bg: #ffffff;
  --text: #1b1d22;
  --muted: #5d6270;
  --accent: #b7791f;
  --border: #e3e5ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121317;
    --text: #e8e9ec;
    --muted: #9a9fab;
    --accent: #e3b04b;
    --border: #2a2c33;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

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

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

h2 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.lead {
  font-size: 18px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.lang {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 4px;
}

code {
  font-size: 14px;
  word-break: break-word;
}

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