:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #56616f;
  --line: #d9e1e8;
  --panel: #f6f8fa;
  --accent: #116b7a;
  --accent-2: #8b5e34;
  --disabled: #7b8794;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

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

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

.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 72%);
}

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

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 36px;
  align-items: center;
  /* min-height: 94vh; */
  min-height: auto;
  padding: 54px 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  max-width: 13ch;
}

.subtitle {
  margin: 20px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
}

.authors,
.affiliations,
.author-notes {
  color: var(--muted);
  font-size: 0.98rem;
}

.authors,
.affiliations {
  margin: 18px 0 0;
}

.author-notes {
  margin: 8px 0 0;
}

.authors strong {
  color: var(--ink);
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--disabled);
  font: inherit;
  font-weight: 700;
  cursor: not-allowed;
}

.button span {
  color: var(--muted);
  font-weight: 600;
}

.actions a.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.hero-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

section {
  padding: 56px 0;
}

section.alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

p {
  margin: 0;
}

.abstract {
  max-width: auto;
  color: #29323d;
  font-size: 1.04rem;
}

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

.point {
  border-left: 4px solid var(--accent);
  padding: 2px 0 2px 16px;
}

.point:nth-child(2) {
  border-left-color: var(--accent-2);
}

.point:nth-child(3) {
  border-left-color: #4c6f41;
}

.point p {
  color: var(--muted);
}

.section-heading {
  max-width: 820px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1rem;
}

.benchmark-stack {
  display: grid;
  gap: 30px;
}

.table-block {
  display: grid;
  gap: 10px;
}

.table-block h3 {
  margin-top: 0;
}

.table-note {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.benchmark-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.benchmark-table th,
.benchmark-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.benchmark-table th:first-child,
.benchmark-table td:first-child {
  text-align: left;
}

.benchmark-table thead th {
  background: #eef3f5;
  color: var(--ink);
  font-weight: 750;
}

.benchmark-table tbody tr:last-child td {
  border-bottom: 0;
}

.benchmark-table .group td {
  background: #f5f7f8;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.benchmark-table .ours td {
  background: #edf8f7;
  color: var(--ink);
  font-weight: 750;
}

.benchmark-table .best {
  color: var(--accent);
  font-weight: 800;
}

.benchmark-table .second {
  color: #496d2f;
  font-weight: 750;
}

.benchmark-table .third {
  color: var(--accent-2);
  font-weight: 750;
}

.benchmark-table .ours .best {
  color: var(--accent);
}

.benchmark-table .ours .second {
  color: #496d2f;
}

.figure-stack {
  display: grid;
  gap: 28px;
}

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

figure.result {
  margin: 0;
}

figure.result img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

figure.result figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.citation {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #29323d;
  font-size: 0.92rem;
}

footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

  h1 {
    max-width: 12ch;
  }

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

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 24px, var(--max));
  }

  section {
    padding: 42px 0;
  }

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

  .button {
    width: 100%;
  }
}
