:root {
  --bg: #f7f8f6;
  --paper: #ffffff;
  --paper-soft: #eef2ef;
  --ink: #17201d;
  --muted: #5f6d68;
  --line: #d9e0dc;
  --accent: #2f6f63;
  --accent-strong: #1f5249;
  --accent-soft: #dfece8;
  --gold: #a6752a;
  --shadow: 0 18px 50px rgba(23, 32, 29, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(217, 224, 220, 0.86);
  background: rgba(247, 248, 246, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

nav a {
  padding: 22px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(223, 236, 232, 0.62), rgba(247, 248, 246, 0.95)),
    var(--bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1160px, 88vw);
  margin: 0 auto;
  padding: 72px 0 52px;
  text-align: center;
}

.venue,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  width: 100%;
  margin-right: auto;
  margin-bottom: 22px;
  margin-left: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.authors {
  margin-bottom: 3px;
  font-size: 1.05rem;
  font-weight: 720;
}

.affiliation {
  margin-bottom: 22px;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--paper);
}

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

.hero-figure,
.paper-figure,
.method-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-figure {
  width: 100%;
  max-width: 1080px;
  margin: 42px 0 0;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  background: #fff;
}

figcaption {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

.hero-figure figcaption {
  padding: 14px 18px 16px;
  text-align: center;
}

.section {
  padding: 86px 0;
  background: var(--bg);
}

.section.alt,
.summary-band {
  background: var(--paper-soft);
}

.section-inner {
  width: min(1120px, 88vw);
  margin: 0 auto;
}

.section-inner > p {
  color: #384540;
  font-size: 1.03rem;
}

.section-inner > p + p,
.section-inner > .paper-figure + p,
.section-inner > .table-wrap + p {
  margin-top: 18px;
}

.section-lead {
  margin-bottom: 30px;
}

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

.contribution-item {
  padding-top: 18px;
  border-top: 3px solid var(--accent);
}

.contribution-item h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  line-height: 1.18;
}

.contribution-item p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.method-step {
  min-height: 270px;
  padding: 22px;
  box-shadow: none;
}

.step-index {
  display: block;
  margin-bottom: 26px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.method-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.table-wrap,
.compact-table {
  overflow-x: auto;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

caption {
  padding: 16px 18px;
  color: var(--muted);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
}

th,
td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f2f5f2;
  color: #33403b;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  color: #293631;
}

.highlight-row {
  background: var(--accent-soft);
}

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

.metrics div {
  min-height: 122px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.metric-value {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

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

.paper-figure {
  margin: 0;
  overflow: hidden;
  box-shadow: none;
}

.paper-figure.standalone {
  max-width: 980px;
  margin: 30px auto 0;
}

.paper-figure.small-plot {
  max-width: 686px;
}

.paper-figure.wide {
  grid-column: 1 / -1;
}

.paper-figure img {
  width: 100%;
  min-height: 260px;
  object-fit: contain;
  background: #fff;
}

.paper-figure figcaption {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.reward-table {
  max-width: 760px;
  margin-top: 28px;
}

.reward-table table {
  min-width: 620px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 40px;
  align-items: start;
}

.compact-table table {
  min-width: 520px;
}

pre {
  overflow-x: auto;
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #16201d;
  color: #eef6f1;
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 0;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

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

  .method-grid,
  .contribution-grid,
  .metrics,
  .figure-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .method-step {
    min-height: auto;
  }

  .paper-figure.wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header,
  .hero-inner,
  .section-inner,
  .site-footer {
    width: auto;
  }

  .hero-inner,
  .section-inner {
    width: min(100% - 32px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 16px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  table {
    font-size: 0.86rem;
  }
}
