:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --panel: #ffffff;
  --ink: #17211c;
  --muted: #5c6860;
  --line: #d9ded8;
  --accent: #176b5b;
  --accent-dark: #0d3f37;
  --accent-soft: #e2f2ed;
  --rose: #b94663;
  --gold: #ad7a1b;
  --shadow: 0 18px 42px rgba(23, 33, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 222, 216, 0.8);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  min-height: calc(100vh - 54px);
  padding: clamp(56px, 8vw, 96px) 24px 42px;
}

.hero-inner,
.section,
.footer {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-inner {
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 940px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.1vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--accent-dark);
}

h1 strong {
  display: block;
  font-weight: inherit;
}

.authors {
  margin: 22px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.authors p {
  margin: 0;
}

.authors a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.authors span::before {
  content: "/";
  margin: 0 10px;
  color: #a8b0aa;
}

.authors sup {
  color: var(--accent);
  font-size: 0.7em;
  font-weight: 800;
}

.affiliations,
.email {
  margin-top: 6px;
  font-size: 15px;
}

.email {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.lead {
  max-width: 820px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(23, 33, 28, 0.06);
}

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

.button[aria-disabled="true"] {
  cursor: default;
}

.button-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  color: currentColor;
  fill: currentColor;
  flex: 0 0 auto;
}

.hero-figure,
.wide-figure,
.figure-grid figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-figure {
  max-width: 1120px;
  margin: 38px auto 0;
  padding: clamp(10px, 2vw, 18px);
}

.hero-figure img,
.wide-figure img {
  border-radius: 4px;
}

.section {
  padding: clamp(58px, 7vw, 92px) 24px;
}

.section.narrow {
  max-width: 860px;
}

.section-heading {
  max-width: 960px;
  margin-bottom: 28px;
}

h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.section p {
  color: var(--muted);
  font-size: 17px;
}

.wide-figure {
  margin: 0;
  padding: clamp(10px, 2vw, 18px);
}

.method-grid,
.metric-grid,
.figure-grid {
  display: grid;
  gap: 16px;
}

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

.method-grid article,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.method-grid p {
  margin: 0;
  font-size: 15px;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 30px 0 22px;
}

.metric strong {
  display: block;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.metric:nth-child(2) strong {
  color: var(--rose);
}

.metric:nth-child(3) strong {
  color: var(--gold);
}

.metric:nth-child(5) strong {
  color: var(--rose);
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}

.figure-grid {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  margin-top: 18px;
}

.figure-grid figure {
  display: flex;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 14px;
}

.figure-media {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #ffffff;
}

.figure-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

figcaption {
  display: flex;
  min-height: 42px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.online-init {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 18px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.online-init h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.online-init p:last-child {
  margin-bottom: 0;
}

.online-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.online-metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
}

.online-metric span,
.online-metric em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.online-metric strong {
  display: block;
  margin: 8px 0;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
}

pre {
  overflow-x: auto;
  margin: 20px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111814;
  color: #eef7f2;
  font-size: 14px;
  line-height: 1.5;
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 30px 24px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .method-grid,
  .metric-grid,
  .figure-grid {
    grid-template-columns: 1fr 1fr;
  }

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

}

@media (max-width: 640px) {
  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .authors span {
    display: block;
    margin-top: 4px;
  }

  .authors span::before {
    content: "";
    margin: 0;
  }

  .method-grid,
  .metric-grid,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .online-init {
    padding: 18px;
  }

  .button {
    width: 100%;
    max-width: 280px;
  }

  .footer {
    display: block;
  }
}
