:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --fg: #102033;
  --muted: #5c6b7b;
  --line: #d9e1ea;
  --panel: #ffffff;
  --brand: #0f4f8f;
  --brand-dark: #0b3764;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1218;
    --fg: #edf3f8;
    --muted: #a8b7c5;
    --line: #263544;
    --panel: #141c24;
    --brand: #7db7ff;
    --brand-dark: #a6ccff;
  }
}

* {
  box-sizing: border-box;
}

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

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

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

.hero {
  padding: 48px 0 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 32px 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
}

.lede {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.25rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 650;
  background: var(--panel);
}

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

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

.grid article {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.grid h2 {
  margin-top: 0;
}

.grid p,
.updated {
  color: var(--muted);
}

.text-page {
  max-width: 760px;
}

.text-page h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

ul {
  padding-left: 22px;
}

@media (max-width: 760px) {
  .page {
    padding: 32px 0;
  }

  .hero {
    padding-top: 24px;
  }

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