:root {
  --ink: #1f2328;
  --muted: #5f6670;
  --line: #e1e4e8;
  --tint: #f6f8fa;
  --accent: #2b7bc6;
  --ours: #eaf3fc;
  --max: 1080px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.hero { padding: 64px 0 28px; text-align: center; }
.venue { margin: 0 0 12px; color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
h1 { max-width: 920px; margin: 0 auto 22px; font: 600 clamp(1.9rem, 4.4vw, 3.2rem)/1.15 var(--serif); letter-spacing: -.02em; }
.accent { color: var(--accent); }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.4rem; margin: 0; font-size: 1.05rem; font-weight: 500; }
.affiliation { margin: 4px 0 0; color: var(--muted); }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.btn { padding: 8px 18px; border-radius: 999px; background: #24292f; color: #fff; font-size: .9rem; font-weight: 500; }
a.btn:hover { background: var(--accent); text-decoration: none; }
.btn.disabled { opacity: .45; cursor: default; }

section { padding: 44px 0 8px; }
h2 { margin: 0 0 18px; font: 600 clamp(1.6rem, 3vw, 2.1rem)/1.2 var(--serif); text-align: center; }
h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.35; }
.prose { max-width: 820px; margin: 0 auto 22px; text-align: justify; hyphens: auto; }

figure { margin: 24px 0; }
figcaption { max-width: 900px; margin: 12px auto 0; color: var(--muted); font-size: .9rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards article { padding: 20px; border: 1px solid var(--line); border-radius: 10px; }
.cards p { margin: 0; color: var(--muted); font-size: .92rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stats div { padding: 20px; border-radius: 10px; background: var(--tint); text-align: center; }
.stats strong { display: block; color: var(--accent); font: 600 2.2rem/1.2 var(--serif); }
.stats span { color: var(--muted); font-size: .85rem; }

.table-title { margin: 28px 0 8px; font-size: 1.05rem; }
.table-wrap { overflow-x: auto; margin-bottom: 8px; }
.authors sup, .affiliation sup { font-size: .7em; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; padding-top: 10px; color: var(--muted); font-size: .85rem; text-align: left; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
tbody th, th.method { text-align: left; font-weight: 500; }
thead th { background: var(--tint); font-weight: 600; }
thead th[colspan] { border-left: 1px solid var(--line); }
tbody td:nth-child(4n+2), thead tr:nth-child(2) th:nth-child(4n+1) { border-left: 1px solid var(--line); }
tr.ours { background: var(--ours); }

.legend { width: min(100%, 800px); margin: 0 auto 10px; }
.qual { display: grid; grid-template-columns: 0.47fr 1fr; gap: 14px; align-items: start; }

.bibtex { position: relative; border-radius: 10px; background: #1f2328; }
.bibtex pre { margin: 0; padding: 20px; overflow-x: auto; color: #e6e8eb; font: .85rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.bibtex button { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border: 1px solid #555c66; border-radius: 6px; background: none; color: #fff; font: inherit; font-size: .8rem; cursor: pointer; }

footer { padding: 40px 0; color: var(--muted); font-size: .8rem; text-align: center; }

@media (max-width: 760px) {
  .hero { padding-top: 40px; }
  .cards, .stats, .qual { grid-template-columns: 1fr; }
  .prose { text-align: left; }
}
