:root {
  --ink: #10243e;
  --muted: #5d6c7e;
  --paper: #f7f8f4;
  --card: #ffffff;
  --blue: #2058a7;
  --green: #178c65;
  --orange: #f08a37;
  --line: #dce4e7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.hero {
  padding: 1.5rem max(1.5rem, calc((100vw - 1180px) / 2)) 5rem;
  color: white;
  background:
    radial-gradient(circle at 82% 20%, rgba(240, 138, 55, .42), transparent 26rem),
    linear-gradient(135deg, #0e2747 0%, #174b70 55%, #17775e 100%);
}

nav, .nav-links, .actions, footer { display: flex; align-items: center; }
nav { justify-content: space-between; margin-bottom: 5rem; }
.brand { font: 700 1.4rem "Literata", serif; text-decoration: none; }
.nav-links { gap: 1.5rem; font-size: .92rem; }
.nav-links a { text-decoration: none; opacity: .82; }

.hero-grid, .split, .responsible-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow, .section-kicker {
  margin: 0 0 .8rem;
  color: #92e0c6;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: "Literata", serif;
  line-height: 1.13;
  letter-spacing: -.035em;
}

h1 { max-width: 780px; font-size: clamp(3.2rem, 6vw, 4.8rem); }
h2 { max-width: 900px; font-size: clamp(2rem, 3.5vw, 3rem); }
.lede { max-width: 760px; font-size: 1.25rem; opacity: .85; }
.authors { max-width: 800px; margin-top: 2rem; font-size: .86rem; opacity: .72; }

.actions { flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  padding: .7rem 1rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.button.primary { color: var(--ink); background: white; border-color: white; }

.hero-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}
.metric { min-height: 150px; padding: 1.5rem; border: 1px solid rgba(255,255,255,.12); }
.metric strong { display: block; font-size: 2.2rem; }
.metric span { font-size: .86rem; opacity: .76; }

.section { padding: 6rem max(1.5rem, calc((100vw - 1180px) / 2)); }
.section > p:not(.section-kicker) { max-width: 800px; color: var(--muted); font-size: 1.1rem; }
.section-kicker { color: var(--green); }
.tinted { background: #eaf1ef; }
.wide-image {
  display: block;
  width: 100%;
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.split img { width: 100%; border-radius: 16px; }
.split p, .split li, .responsible p { color: var(--muted); }

.table-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.table-grid .table-wrap { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
caption {
  padding: 1rem 1.1rem;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}
th, td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #36516d; background: #f1f5f4; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--blue); }
code { padding: .12rem .28rem; border-radius: 4px; background: #edf2f3; font-size: .82em; }
.results-table table { min-width: 900px; }
.note { margin-top: 1rem; color: var(--muted); font-size: .86rem !important; }

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
figure { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: white; }
figure img { width: 100%; }
figcaption { color: var(--muted); font-size: .86rem; }

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.example-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.example-card h3 {
  margin: 1.25rem 0 .25rem;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.example-card p { margin: 0; color: var(--ink); font-size: .92rem; }
.example-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.example-meta span { color: var(--green); font-size: .78rem; font-weight: 700; }

.responsible { color: white; background: #122d47; }
.responsible .section-kicker { color: #92e0c6; }
.responsible p { color: rgba(255,255,255,.72); }
.responsible-grid div { display: grid; gap: .65rem; }
.responsible-grid a { color: white; font-weight: 600; }

footer {
  justify-content: space-between;
  padding: 2rem max(1.5rem, calc((100vw - 1180px) / 2));
  color: var(--muted);
  background: white;
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .hero-grid, .split, .responsible-grid, .table-grid, .figure-grid, .example-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 3rem; }
  nav { margin-bottom: 3rem; }
  h1 { font-size: 3.4rem; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .example-meta { align-items: flex-start; flex-direction: column; gap: .35rem; }
  footer { align-items: flex-start; flex-direction: column; gap: .4rem; }
}
