:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --border: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111a2e;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #60a5fa;
    --border: #1e293b;
  }
}

* {
  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;
}

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

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

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

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

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

nav a {
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--primary);
}

.hero {
  padding: 56px 0 32px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 640px;
}

section {
  padding: 24px 0;
}

h2 {
  font-size: 22px;
  margin: 0 0 16px;
}

.card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

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

.links a {
  margin-right: 16px;
  font-weight: 600;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
}

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

dd {
  margin: 0;
}

.doc h1 {
  font-size: 30px;
  margin: 40px 0 4px;
}

.doc h2 {
  margin-top: 32px;
}

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

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

footer .wrap {
  padding-top: 20px;
  padding-bottom: 32px;
}

@media (max-width: 560px) {
  .card {
    flex-direction: column;
  }

  dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  dd {
    margin-bottom: 10px;
  }
}
