:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6368;
  --line: #e6e4df;
  --accent: #2f5d50;
  --accent-soft: #e7efec;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121413;
    --surface: #1a1d1c;
    --text: #ecebe8;
    --muted: #a3a8a6;
    --line: #2b302e;
    --accent: #8cc2b0;
    --accent-soft: #1f2b27;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
}

nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding: 56px 0 72px; }

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 34em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.card p { margin: 0; color: var(--muted); }

.pill {
  display: inline-block;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}

.doc h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}

.doc h2 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
}

.doc .updated { color: var(--muted); margin: 0 0 24px; }

.lang-switch {
  display: flex;
  gap: 8px;
  margin: 0 0 32px;
  font-size: 15px;
}

.lang-switch a {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

hr.section {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 32px;
}

footer.site a { color: var(--muted); }
