:root {
  --ink: #17212b;
  --muted: #5c6773;
  --line: #d9e2ea;
  --paper: #ffffff;
  --wash: #f5f8fa;
  --accent: #0c6b5f;
  --accent-dark: #084a42;
  --accent-soft: #e3f4f0;
  --gold: #d6a13d;
  --shadow: 0 18px 48px rgba(20, 36, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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.6;
}

a {
  color: inherit;
}

.site-header {
  background:
    linear-gradient(180deg, rgba(245, 248, 250, 0.96), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 20% 0%, rgba(12, 107, 95, 0.13), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(214, 161, 61, 0.16), transparent 30%);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 64px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin: 0 auto 22px;
  font-size: clamp(2.35rem, 6vw, 4.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.3;
}

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

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin-bottom: 6px;
  font-size: 1.03rem;
  font-weight: 650;
}

.affiliation {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  min-width: 144px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(20, 36, 48, 0.08);
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

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

.button.disabled {
  cursor: default;
  color: #71808d;
  background: #edf2f5;
}

.section {
  padding: 74px 0;
}

.band {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.container.narrow {
  width: min(860px, calc(100% - 40px));
}

.teaser {
  padding-top: 48px;
}

.teaser img,
.wide-figure,
.figure-pair img,
.qualitative img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.caption {
  max-width: 820px;
  margin: 18px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.96rem;
}

.lead {
  max-width: 860px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid,
.results-grid,
.stats {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.feature-grid article,
.results-grid article,
.stats div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feature-grid p,
.results-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.figure-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.stats {
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0;
}

.stats div {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric {
  display: block;
  color: var(--accent);
  font-size: 2.25rem;
  font-weight: 850;
  line-height: 1;
}

.label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.results-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 26px;
}

.qualitative {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1b24;
  color: #edf7f5;
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.footer p {
  margin-bottom: 6px;
}

.footer a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 860px) {
  .nav {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

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

  .section {
    padding: 54px 0;
  }

  .feature-grid,
  .figure-pair,
  .results-grid,
  .qualitative,
  .stats {
    grid-template-columns: 1fr;
  }

  .stats div {
    min-height: 104px;
  }
}

@media (max-width: 520px) {
  .nav,
  .hero,
  .container,
  .container.narrow,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .button {
    width: 100%;
  }
}
