:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5f6963;
  --paper: #faf9f6;
  --surface: #ffffff;
  --line: #d9ddd6;
  --blue: #7085FF;
  --blue-dark: #5146D1;
  --blue-medium-light: #6366f1;
  --gold: #c79a2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 44px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 78px);
  padding: 36px 24px 76px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-medium-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 8vw, 6.6rem);
}

h2 {
  font-size: 1.45rem;
}

.lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--blue-dark);
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: #ffffff;
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue-dark);
  background: transparent;
}

.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.metrics,
.section-grid,
.evidence,
.citation {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 24px;
}

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

.metrics > div {
  min-height: 132px;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  font-size: 2rem;
  font-weight: 850;
}

.metric-label {
  margin-top: 8px;
  color: var(--muted);
}

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

.section-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.evidence {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 34px;
  align-items: center;
}

.evidence figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.evidence img {
  width: 100%;
}

.citation {
  padding-bottom: 84px;
}

pre {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 20px;
  border-left: 5px solid var(--gold);
  background: #202721;
  color: #f5f2e9;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .evidence {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    padding-top: 20px;
  }

  .metrics,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .metrics > div {
    min-height: 108px;
  }
}