:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #ff7a1a;
}

* { box-sizing: border-box; }

html { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 247, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner,
.page,
.footer-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
}

.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav a:not(.brand) { color: var(--text); font-size: 14px; }

.page { padding: 72px 0 88px; }

.hero {
  min-height: 380px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

h1, h2, h3 { line-height: 1.18; letter-spacing: 0; }
h1 { margin: 26px 0 12px; font-size: clamp(40px, 8vw, 68px); }
h2 { margin: 52px 0 14px; font-size: 28px; }
h3 { margin: 30px 0 10px; font-size: 20px; }
p, li { font-size: 17px; }
.lede { max-width: 650px; margin: 0; color: var(--muted); font-size: 21px; }
.eyebrow { color: var(--accent); font-weight: 650; }
.meta { color: var(--muted); }

.links {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
}

.links a { font-size: 17px; }

.document {
  padding: 48px 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.document h1 { margin-top: 0; font-size: 42px; }
.document ul, .document ol { padding-left: 24px; }
.lang-separator { margin: 56px 0; border: 0; border-top: 1px solid var(--line); }

footer { border-top: 1px solid var(--line); }
.footer-inner {
  padding: 24px 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 680px) {
  .nav-inner { gap: 14px; }
  .nav a:not(.brand) { font-size: 13px; }
  .page { padding-top: 42px; }
  .document { padding: 32px 22px; }
  .document h1 { font-size: 34px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --surface: rgba(28, 28, 30, 0.82);
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.14);
  }
  .nav { background: rgba(0, 0, 0, 0.82); }
  a { color: #2997ff; }
}
