:root {
  color-scheme: light;
  --ink: #17212b;
  --muted-ink: #52606d;
  --soft-ink: #6c7784;
  --line: #d8dee5;
  --paper: #ffffff;
  --wash: #f4f7f8;
  --blue: #9fc0d7;
  --blue-deep: #2d6387;
  --teal: #a8d8d4;
  --teal-deep: #157b73;
  --coral: #f3a097;
  --coral-deep: #a54035;
  --gold: #f5cc91;
  --green: #4c9f62;
  --shadow: 0 18px 55px rgba(23, 33, 43, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--blue-deep);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--coral-deep);
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 222, 229, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 740;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(21, 123, 115, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  color: #122126;
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted-ink);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.hero {
  padding: 86px 0 52px;
  background:
    linear-gradient(180deg, rgba(168, 216, 212, 0.24), rgba(255, 255, 255, 0) 68%),
    radial-gradient(circle at 84% 18%, rgba(245, 204, 145, 0.46), transparent 30%),
    radial-gradient(circle at 15% 18%, rgba(159, 192, 215, 0.34), transparent 32%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-copy {
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 1120px;
  font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  font-weight: 820;
}

h2 {
  font-size: clamp(1.35rem, 1.95vw, 1.75rem);
  font-weight: 780;
}

h3 {
  font-size: 1.05rem;
  font-weight: 760;
}

.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted-ink);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  color: var(--muted-ink);
  font-size: 1rem;
}

.authors a {
  font-weight: 650;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}

.affiliations {
  margin: 8px 0 0;
  color: var(--soft-ink);
  font-size: 0.94rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-width: 116px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 740;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}

.stat-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  color: var(--ink);
  font-size: 2.05rem;
  font-weight: 820;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted-ink);
  font-size: 0.94rem;
}

.figure-band {
  padding: 28px 0 74px;
  border-bottom: 1px solid var(--line);
}

.section {
  padding: 82px 0;
}

.section.muted {
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 1120px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted-ink);
  font-size: 1.05rem;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  min-height: 244px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--gold);
  color: #35230b;
  font-weight: 840;
}

.step:nth-child(2) .step-number {
  background: var(--teal);
}

.step:nth-child(3) .step-number {
  background: var(--coral);
}

.step p,
.example-block p {
  margin: 12px 0 0;
  color: var(--muted-ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.split > div > p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 1.03rem;
}

.figure-stack,
.analysis-grid {
  display: grid;
  gap: 18px;
}

.analysis-grid {
  grid-template-columns: 1fr;
}

.paper-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.paper-figure.wide {
  box-shadow: var(--shadow);
}

.paper-figure img {
  width: 100%;
  background: white;
}

.figure-scroll {
  overflow-x: auto;
}

.figure-scroll img {
  min-width: 780px;
}

figcaption {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-ink);
  font-size: 0.93rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child,
td:nth-child(2),
th:nth-child(2) {
  text-align: left;
}

thead th {
  background: #eef4f4;
  color: var(--ink);
  font-weight: 760;
}

tbody th {
  color: var(--ink);
  font-weight: 720;
  vertical-align: middle;
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

.highlight-row td {
  background: rgba(168, 216, 212, 0.26);
  color: #17362f;
  font-weight: 740;
}

.note {
  margin: 14px 0 0;
  color: var(--soft-ink);
  font-size: 0.93rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.example-block {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  background: white;
}

.example-block.accent-blue {
  border-top-color: var(--blue);
}

.example-block.accent-teal {
  border-top-color: var(--teal);
}

.example-block.accent-coral {
  border-top-color: var(--coral);
}

.citation-section {
  padding-top: 58px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(245, 204, 145, 0.16)),
    white;
}

.bibtex {
  margin: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101820;
  color: #edf6f7;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: white;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(1.65rem, 3.2vw, 1.95rem);
  }

  .hero-grid,
  .split,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .stat-panel {
    max-width: none;
  }

  .steps,
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell,
  .nav-inner {
    width: min(100% - 28px, 1120px);
  }

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 46px 0 40px;
  }

  h1 {
    font-size: clamp(1.35rem, 5.2vw, 1.6rem);
  }

  h2 {
    font-size: clamp(1.05rem, 4.3vw, 1.25rem);
  }

  .lead {
    margin-top: 18px;
  }

  .authors {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .dot {
    display: none;
  }

  .stat-panel,
  .steps,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .figure-band {
    padding: 56px 0;
  }

  .step,
  .example-block {
    min-height: unset;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
