:root {
  color-scheme: dark;
  --bg: #111418;
  --surface: #191e24;
  --line: #303741;
  --text: #f4f6f8;
  --muted: #a8b0ba;
  --blue: #2f9bf4;
  --green: #30d27c;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 40px), 760px);
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

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

.brand span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #07111a;
  font-size: 14px;
  font-weight: 850;
}

.home { padding: 88px 0 120px; }
.document { padding: 64px 0 96px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 9vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.document h1 { font-size: clamp(36px, 8vw, 52px); }

h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

p { margin: 0 0 18px; }
.intro { max-width: 560px; color: var(--muted); font-size: 19px; }
.updated { margin-top: -6px; color: var(--muted); font-size: 14px; }

.page-links {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.page-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.page-links a:hover { border-color: var(--blue); }

section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

section:first-of-type { margin-top: 44px; }
section p:last-child { margin-bottom: 0; }
ul { margin: 0; padding-left: 22px; }
li + li { margin-top: 8px; }

footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 480px) {
  .site-header, main, footer { width: min(calc(100% - 28px), 760px); }
  .home { padding-top: 64px; }
  .document { padding-top: 48px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}
