:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1d21;
  --muted: #5d6068;
  --line: #e4e1da;
  --accent: #00205b;
  --accent-soft: #e8edf6;
  --code: #f3f1ec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #181b21;
    --text: #e8e6e1;
    --muted: #a3a6ad;
    --line: #2b2f37;
    --accent: #9db8ea;
    --accent-soft: #1d2638;
    --code: #1c1f26;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 16px 40px;
  text-align: center;
}
.venue {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 500;
}
h1 {
  margin: 0 0 22px;
  font: 600 clamp(28px, 4.4vw, 42px)/1.2 "Source Serif 4", Georgia, serif;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.authors { margin: 0 0 4px; font-size: 18px; }
.author { white-space: nowrap; }
.author + .author::before { content: ",\00a0\00a0"; }
.affs { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.affs span + span::before { content: "\00a0\00a0\00b7\00a0\00a0"; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn svg { width: 16px; height: 16px; }
.btn.disabled { background: transparent; color: var(--muted); border: 1px dashed var(--line); cursor: default; transform: none; }
main { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }
section { padding: 28px 0; border-top: 1px solid var(--line); }
h2 {
  margin: 0 0 14px;
  font: 600 24px/1.3 "Source Serif 4", Georgia, serif;
}
.tldr { border-top: none; }
.tldr p {
  margin: 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  font-size: 18px;
}
.abstract { margin: 0; text-align: justify; hyphens: auto; }
figure { margin: 0 0 28px; }
figure img {
  display: block; width: 100%; height: auto;
  background: #fff; border-radius: 8px; padding: 12px;
  border: 1px solid var(--line);
}
figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thumbs img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .15s ease;
}
.thumbs a:hover img { transform: translateY(-3px); }
.muted { color: var(--muted); font-size: 15px; }
.bib { position: relative; }
.bib pre {
  margin: 0; padding: 18px 20px;
  background: var(--code); border-radius: 10px;
  overflow-x: auto;
  font: 13.5px/1.55 ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.copy {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--muted); font: 500 12.5px "Inter", sans-serif; cursor: pointer;
}
footer { padding: 28px 16px 48px; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .abstract { text-align: left; }
}
