:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #d9e0ea;
  --brand: #3268ff;
  --brand-dark: #224bd6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --surface: #171d2a;
    --text: #f7f8fb;
    --muted: #a6adbb;
    --line: #2a3344;
    --brand: #7ea2ff;
    --brand-dark: #9bb7ff;
  }
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--brand-dark);
}

.page,
.document {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.document h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h2 {
  margin: 38px 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}

h3 {
  margin: 26px 0 8px;
  font-size: 1.05rem;
}

p {
  margin: 0 0 14px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.2rem;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid article,
.document {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.grid article {
  padding: 22px;
}

.document {
  padding: 40px;
}

ul {
  padding-left: 22px;
}

@media (max-width: 760px) {
  .page,
  .document {
    width: min(100% - 24px, 960px);
    padding: 32px 0;
  }

  .document {
    padding: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
