:root {
  color-scheme: light;
  --ink: #14233a;
  --muted: #58677a;
  --line: #d9e2ee;
  --paper: #f6f9fd;
  --blue: #145edb;
  --blue-dark: #0b3f99;
  --accent: #12a8a0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 94, 219, .045) 1px, transparent 1px),
    linear-gradient(rgba(20, 94, 219, .045) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand span { color: var(--blue); }

nav { display: flex; gap: 24px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 650;
}

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

.hero {
  padding: 96px 0 72px;
  max-width: 900px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2 { line-height: 1.12; letter-spacing: -.035em; }

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.45rem, 6vw, 5.25rem);
}

h2 { margin: 0 0 14px; font-size: 1.35rem; }

.lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 20px 50px rgba(33, 55, 86, .08);
}

.cards article { padding: 36px; }
.cards article + article { border-left: 1px solid var(--line); }
.cards p { margin: 0; color: var(--muted); }

.number {
  margin-bottom: 48px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.note {
  margin: 76px 0;
  padding: 42px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  color: white;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.note .eyebrow { color: #8fe5e0; }
.note p { margin: 0; color: #e8f0ff; }

.article-page { padding: 92px 0; }
.article-page h1 { max-width: 820px; font-size: clamp(2.4rem, 5vw, 4.6rem); }

.prose {
  max-width: 760px;
  margin-top: 58px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.prose h2 { margin-top: 36px; color: var(--ink); }
.prose li + li { margin-top: 8px; }
.muted { font-size: .92rem; color: #788699; }

.error-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
}

.error-page h1 { font-size: clamp(2.7rem, 7vw, 5.5rem); }
.error-page p { margin: 22px 0 32px; color: var(--muted); }

.button {
  display: inline-block;
  padding: 13px 20px;
  color: white;
  background: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

footer {
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; padding: 24px 0; flex-direction: column; gap: 16px; }
  nav { max-width: 100%; gap: 16px; flex-wrap: wrap; }
  .hero { padding: 64px 0 48px; }
  .cards { grid-template-columns: 1fr; }
  .cards article + article { border-left: 0; border-top: 1px solid var(--line); }
  .number { margin-bottom: 24px; }
  .note { grid-template-columns: 1fr; gap: 20px; padding: 30px; }
  .article-page { padding: 64px 0; }
  footer { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .cards article { transition: background-color .2s ease, transform .2s ease; }
  .cards article:hover { background: white; transform: translateY(-3px); }
}
