:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --paper: #fffdfa;
  --paper-soft: #f1f5f7;
  --ink: #1d2430;
  --muted: #657083;
  --line: #dde3ea;
  --accent: #2f6f73;
  --accent-strong: #144f56;
  --accent-soft: #e2f1f1;
  --shadow: 0 24px 70px rgba(28, 39, 55, 0.12);
  --radius: 22px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 115, 0.1), transparent 26rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 42%, #f3f1ea 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(29, 36, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 48, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 60%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  padding: 9px 13px;
  color: #fff;
  background: var(--accent-strong);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 247, 243, 0.78);
  border-bottom: 1px solid rgba(221, 227, 234, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  width: min(var(--max), calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.92rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

main,
.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 0 42px;
  text-align: center;
}

.venue {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 13px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 111, 115, 0.18);
  border-radius: 999px;
}

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

h1 {
  max-width: 1040px;
  margin: 0 auto 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.4vw, 3.85rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.authors {
  margin-bottom: 4px;
  color: #394354;
  font-size: 1.08rem;
  font-weight: 650;
}

.affiliations,
.hero-summary,
.section-heading p,
.card p,
.metrics p,
.paper-figure figcaption,
.teaser figcaption,
.footer {
  color: var(--muted);
}

.affiliations {
  margin-bottom: 24px;
}

.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 28px 0;
}

.resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  color: var(--accent-strong);
  font-size: 0.94rem;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(47, 111, 115, 0.22);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(28, 39, 55, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.resource-button:hover,
.resource-button:focus {
  background: #fff;
  border-color: rgba(47, 111, 115, 0.42);
  transform: translateY(-1px);
}

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

.hero-summary {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.14rem;
}

.teaser,
.section {
  background: rgba(255, 253, 250, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.teaser {
  margin: 10px auto 36px;
  padding: clamp(16px, 3vw, 28px);
}

.teaser img,
.paper-figure img {
  width: 100%;
  background: #fff;
  border: 1px solid #e7ebef;
  border-radius: 16px;
}

.teaser figcaption,
.paper-figure figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.94rem;
}

.section {
  margin: 28px 0;
  padding: clamp(24px, 5vw, 46px);
}

.section.narrow {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

.section.narrow p {
  font-size: 1.05rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.cards,
.metrics,
.figure-grid {
  display: grid;
  gap: 16px;
}

.three,
.metrics {
  grid-template-columns: repeat(3, 1fr);
}

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

.card,
.metrics article {
  padding: 22px;
  background: linear-gradient(180deg, #fff, #fafafa);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.card-index {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.metrics span {
  display: block;
  margin-bottom: 8px;
  color: #263143;
  font-weight: 800;
}

.paper-figure {
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.citation-title {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.copy-button {
  padding: 9px 13px;
  color: var(--accent-strong);
  font-weight: 750;
  cursor: pointer;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 111, 115, 0.18);
  border-radius: 999px;
}

pre {
  margin: 10px 0 0;
  padding: 18px;
  overflow: auto;
  color: #243043;
  font-size: 0.86rem;
  line-height: 1.55;
  background: #f3f6f8;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 38px;
}

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

@media (max-width: 860px) {
  .three,
  .metrics,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 50px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .resource-button {
    width: 100%;
  }

  .citation-title,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
