:root {
  --ink: #20282c;
  --muted: #657178;
  --line: #dce6e9;
  --aegean: #147895;
  --aegean-dark: #0a526c;
  --tint: #f2f8f9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Latin Modern Roman", "Latin Modern", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}

main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding-block: 56px 32px;
}

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

a:hover,
a:focus-visible {
  color: var(--aegean-dark);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

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

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

sup {
  line-height: 0;
}

/* Header */

.hero {
  text-align: center;
}

h1 {
  margin-bottom: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.acronym {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  letter-spacing: 0.04em;
}

.full-title {
  display: block;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
}

.authors {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.venue {
  margin-bottom: 22px;
  color: var(--muted);
  font-style: italic;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  padding: 7px 22px;
  border: 1px solid var(--aegean);
  border-radius: 999px;
  font-size: 0.98rem;
}

.button:hover,
.button:focus-visible {
  color: #fff;
  background: var(--aegean);
  text-decoration: none;
}

/* Figures */

figure {
  margin: 0 0 30px;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.teaser {
  margin: 44px 0 10px;
  padding-bottom: 34px;
}

.teaser img {
  width: 100%;
}

.teaser figcaption {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.wide img {
  width: 100%;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.results-grid img {
  width: 100%;
  border-radius: 4px;
}

.results figcaption {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.narrow img {
  width: min(520px, 100%);
  margin: 0 auto;
}

.narrow figcaption {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

/* Sections */

section {
  padding-top: 30px;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.6rem;
  font-weight: 500;
}

/* BibTeX */

.bibtex {
  position: relative;
}

.bibtex pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 6px;
  background: var(--tint);
  font-size: 0.84rem;
  line-height: 1.5;
}

.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.copy:hover,
.copy:focus-visible {
  color: var(--aegean-dark);
  border-color: var(--aegean);
}

@media (max-width: 690px) {
  main {
    width: min(100% - 32px, 900px);
    padding-top: 34px;
  }
}
