:root {
  color-scheme: light;
  --ink: #102a43;
  --muted: #526777;
  --paper: #f4f1e8;
  --white: #fffdf7;
  --blue: #145c73;
  --blue-deep: #0a3545;
  --aqua: #7cd7c4;
  --orange: #ed8c53;
  --line: rgba(16, 42, 67, 0.17);
  --shadow: 0 24px 70px rgba(16, 42, 67, 0.11);
}

* { 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.65;
}

a { color: inherit; }

code {
  padding: 0.08em 0.32em;
  border-radius: 0.3em;
  color: inherit;
  background: rgba(16, 42, 67, 0.08);
  font-size: 0.9em;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 790px;
  color: var(--white);
  background:
    radial-gradient(circle at 83% 18%, rgba(124, 215, 196, 0.35), transparent 25%),
    radial-gradient(circle at 12% 84%, rgba(237, 140, 83, 0.28), transparent 28%),
    linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 650;
}

.nav-links a:hover { color: white; }

.hero-content {
  position: relative;
  z-index: 1;
  padding: 84px 0 150px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1040px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.8vw, 5.15rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 810px;
  margin: 32px 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.authors {
  max-width: 920px;
  margin: 30px 0 5px;
  font-weight: 720;
}

.affiliations,
.author-note {
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.author-note {
  margin-top: 4px;
  font-size: 0.8rem;
}

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

.button {
  display: inline-flex;
  padding: 11px 19px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-weight: 750;
  transition: transform 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.button.primary {
  color: var(--blue-deep);
  background: var(--aqua);
  border-color: var(--aqua);
}

.teaser {
  position: relative;
  z-index: 2;
  margin-top: -74px;
}

.teaser figure {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.teaser-image-link { display: block; }

.teaser img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.teaser figcaption {
  max-width: 1020px;
  margin: 15px auto 1px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.section { padding-block: 110px; }

.section h2 {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.prose-section { padding-top: 92px; }

.abstract-copy {
  max-width: 940px;
  margin: 34px 0 0;
  color: #29485a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.78;
}

.section-intro,
.dark-intro {
  max-width: 790px;
  margin: 26px 0 46px;
  color: var(--muted);
  font-size: 1.12rem;
}

.highlights-band {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.contribution-grid,
.setting-grid,
.task-grid,
.evidence-grid {
  display: grid;
  gap: 18px;
}

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

.contribution-grid article {
  min-height: 245px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.contribution-grid h3,
.setting-grid h3,
.task-grid h3,
.evidence-grid h3 {
  margin: 14px 0 6px;
  font-size: 1.18rem;
}

.contribution-grid p,
.setting-grid p,
.task-grid p,
.evidence-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.step {
  color: var(--orange);
  font-weight: 850;
  letter-spacing: 0.1em;
}

.principle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.principle-row span {
  padding: 8px 14px;
  border: 1px solid rgba(20, 92, 115, 0.3);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(124, 215, 196, 0.14);
  font-size: 0.82rem;
  font-weight: 800;
}

.setting-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}

.setting-grid article {
  min-height: 205px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
}

.task-grid { grid-template-columns: repeat(4, 1fr); }

.task-grid article {
  padding: 28px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 35px rgba(16, 42, 67, 0.06);
}

.task-grid .task-code {
  margin: 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.task-grid p:last-child { font-size: 0.93rem; }

.construction-note {
  max-width: 860px;
  margin: 34px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--orange);
  color: var(--muted);
}

.dark {
  color: var(--white);
  background: var(--ink);
}

.dark .section-label { color: var(--aqua); }
.dark code { background: rgba(255, 255, 255, 0.1); }

.dark-intro {
  color: rgba(255, 255, 255, 0.72);
}

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

.evidence-grid article {
  min-height: 260px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.evidence-grid strong {
  display: block;
  color: var(--aqua);
  font: 500 clamp(1.5rem, 3vw, 2.5rem)/1.1 Georgia, "Times New Roman", serif;
}

.evidence-grid p { color: rgba(255, 255, 255, 0.68); }

.finding-conclusion {
  max-width: 850px;
  margin: 42px 0 0;
  padding: 24px 28px;
  border-left: 3px solid var(--aqua);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(124, 215, 196, 0.06);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 74px;
  align-items: start;
}

.qgo-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.qgo-copy p:first-child { margin-top: 0; }

.method-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}

.method-strip div {
  min-height: 145px;
  padding: 27px;
  border-right: 1px solid var(--line);
}

.method-strip div:last-child { border-right: 0; }

.method-strip span {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.method-strip strong {
  display: block;
  line-height: 1.42;
}

.resources-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.resource-copy {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.resource-copy > div > p:last-child {
  max-width: 510px;
  color: var(--muted);
}

.resource-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.resource-links a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.resource-links a:nth-child(odd) {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.resource-links a:nth-child(even) { padding-left: 24px; }

.resource-links a:hover strong { color: var(--blue); }

.resource-links span {
  color: var(--muted);
  font-size: 0.83rem;
}

.citation-section {
  color: var(--white);
  background: var(--ink);
}

.citation-copy {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.citation-copy > div > p:last-child {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.7);
}

.citation-copy pre {
  max-width: 100%;
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  line-height: 1.65;
}

.citation-copy code {
  padding: 0;
  background: transparent;
  font-size: inherit;
}

footer {
  padding-block: 44px;
  color: rgba(255, 255, 255, 0.7);
  background: var(--blue-deep);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-content p {
  max-width: 620px;
  margin: 0;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .nav-links { display: none; }
  .hero-content { padding: 64px 0 138px; }
  .contribution-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }
  .contribution-grid article,
  .evidence-grid article { min-height: 0; }
  .task-grid,
  .method-strip { grid-template-columns: 1fr 1fr; }
  .method-strip div:nth-child(2) { border-right: 0; }
  .method-strip div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .split,
  .resource-copy,
  .citation-copy {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 26px, 1160px); }
  .hero h1 { font-size: 2.38rem; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .button { justify-content: center; }
  .teaser { margin-top: -48px; }
  .teaser figure { padding: 8px; border-radius: 14px; }
  .teaser img { border-radius: 8px; }
  .teaser figcaption { padding: 0 6px 5px; font-size: 0.82rem; }
  .section { padding-block: 78px; }
  .setting-grid,
  .task-grid,
  .method-strip,
  .resource-links {
    grid-template-columns: 1fr;
  }
  .setting-grid article,
  .task-grid article,
  .contribution-grid article,
  .evidence-grid article { padding: 24px; }
  .method-strip div,
  .method-strip div:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .method-strip div:last-child { border-bottom: 0; }
  .resource-links a,
  .resource-links a:nth-child(odd),
  .resource-links a:nth-child(even) {
    padding-inline: 4px;
    border-right: 0;
  }
  .footer-content { display: block; }
  .footer-content p + p { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
