:root {
  --text: #1f2933;
  --muted: #5f6b76;
  --line: #d9dee5;
  --soft: #f7f8fa;
  --link: #1f5fae;
  --accent: #1b7f79;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.site-name {
  color: var(--text);
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

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

.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 52px 0 34px;
  text-align: center;
}

.venue {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 10px;
  color: var(--accent);
  background: #eef7f6;
  border: 1px solid #cfe7e4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  max-width: 930px;
  margin: 0 auto 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 700;
}

.subtitle {
  max-width: 820px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 19px;
}

.authors {
  margin-bottom: 6px;
  font-size: 18px;
}

.affiliations,
.notes {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 32px;
}

.links a {
  min-width: 96px;
  padding: 8px 14px;
  color: #ffffff;
  background: #333333;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.links a:hover {
  background: #111111;
  text-decoration: none;
}

.lead-figure {
  max-width: 860px;
  margin: 0 auto;
}

figure {
  margin: 28px 0 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.2;
  text-align: center;
}

.section > p,
.plain-list {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.plain-list {
  padding-left: 24px;
}

.plain-list li {
  margin-bottom: 8px;
}

.stats-table {
  width: 100%;
  margin: 22px 0 28px;
  border-collapse: collapse;
  font-size: 15px;
}

.stats-table th,
.stats-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: center;
}

.stats-table th {
  background: var(--soft);
  font-weight: 700;
}

.stats-table tbody th {
  text-align: left;
}

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

.figure-grid figure {
  margin-top: 0;
}

.bibtex-box {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  background: #f5f5f5;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.bibtex-box pre {
  margin: 0;
  overflow-x: auto;
  padding: 44px 18px 18px;
  font-size: 14px;
  line-height: 1.5;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  color: #ffffff;
  background: #333333;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #111111;
}

.footer {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 31px;
  }

  .subtitle {
    font-size: 17px;
  }

  .authors {
    font-size: 16px;
  }

  h2 {
    font-size: 26px;
  }

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

  .stats-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
