:root {
  --text: #2f2f2f;
  --muted: #555;
  --link: #1684f8;
  --button: #363636;
  --light: #f7f7f7;
  --border: #dedede;
  --max-width: 1160px;
  --text-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(80%, var(--max-width));
  margin: 0 auto;
}

.text-container {
  max-width: var(--text-width);
}

.publication-header {
  padding: 88px 0 32px;
  text-align: center;
}

.header-container {
  max-width: 1200px;
}

h1,
h2,
h3 {
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-weight: 500;
}

h1 {
  max-width: 1100px;
  margin: 0 auto 24px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 span {
  white-space: nowrap;
}

.authors {
  max-width: 1100px;
  margin: 0 auto 4px;
  color: var(--link);
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.8;
}

.authors span {
  white-space: nowrap;
}

sup {
  position: relative;
  top: -0.15em;
  font-size: 0.67em;
}

.affiliations {
  margin-bottom: 20px;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

.affiliations span {
  white-space: nowrap;
}

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

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 17px;
  color: #fff;
  background: var(--button);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.link-button:hover {
  color: #fff;
  background: #111;
  text-decoration: none;
}

.link-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.section-tight {
  padding: 34px 0 50px;
}

.one-line-summary {
  margin: 0 auto 38px;
  text-align: center;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 18px;
}

.wide-figure {
  margin: 0 auto;
}

.wide-figure img {
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: 10px;
  color: #444;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.content-section {
  padding: 58px 0;
}

.alt-section {
  background: var(--light);
}

h2 {
  margin: 0 0 28px;
  font-size: 34px;
  line-height: 1.2;
  text-align: center;
}

h3 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.3;
  text-align: center;
}

.abstract-text p,
.text-container > p {
  margin: 0 0 18px;
  text-align: justify;
}

.abstract-text p:last-child,
.text-container > p:last-child {
  margin-bottom: 0;
}

.section-intro {
  max-width: var(--text-width);
  margin: 0 auto 32px;
  text-align: center;
}

.dataset-facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1000px;
  margin: 0 auto 38px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dataset-facts div {
  position: relative;
  padding: 20px 12px;
  text-align: center;
}

.dataset-facts div + div::before {
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 0;
  width: 1px;
  content: "";
  background: var(--border);
}

.dataset-facts strong,
.dataset-facts span {
  display: block;
}

.dataset-facts strong {
  margin-bottom: 3px;
  color: #222;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.2;
}

.dataset-facts span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.compact-figure {
  max-width: 980px;
}

.annotation-figure {
  max-width: 1080px;
}

.task-section {
  margin-top: 58px;
}

.task-section:first-of-type {
  margin-top: 44px;
}

.task-section > p {
  max-width: var(--text-width);
  margin: 0 auto 24px;
  text-align: justify;
}

.result-figure {
  max-width: 1100px;
}

.reconstruction-figure {
  max-width: 920px;
}

.semantic-figure {
  max-width: 980px;
}

.citation-section {
  padding-bottom: 78px;
}

.citation-section .text-container > p {
  text-align: center;
}

.bibtex-box {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 7px;
}

.bibtex-box pre {
  margin: 0;
  padding: 24px 72px 24px 24px;
  overflow-x: auto;
}

.bibtex-box code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #444;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.copy-button:hover {
  background: #e8e8e8;
}

footer {
  padding: 36px 0;
  color: #777;
  background: var(--light);
  font-size: 12px;
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .container {
    width: min(90%, var(--max-width));
  }

  .publication-header {
    padding-top: 58px;
  }

  .authors {
    font-size: 17px;
  }

  .dataset-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .dataset-facts div:nth-child(4),
  .dataset-facts div:nth-child(5) {
    border-top: 1px solid var(--border);
  }

  .dataset-facts div:nth-child(4)::before {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 30px);
  }

  .publication-header {
    padding: 42px 0 25px;
  }

  h1 {
    font-size: 33px;
  }

  h1 span {
    display: block;
    margin-top: 5px;
    font-size: 0.78em;
  }

  .authors {
    font-size: 15px;
    line-height: 1.7;
  }

  .affiliations {
    font-size: 14px;
  }

  .affiliations span {
    white-space: normal;
  }

  .section-tight {
    padding: 25px 0 38px;
  }

  .one-line-summary {
    margin-bottom: 25px;
    font-size: 15px;
  }

  .content-section {
    padding: 42px 0;
  }

  h2 {
    margin-bottom: 20px;
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .abstract-text p,
  .text-container > p,
  .task-section > p {
    text-align: left;
  }

  .dataset-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .dataset-facts div:nth-child(3),
  .dataset-facts div:nth-child(4),
  .dataset-facts div:nth-child(5) {
    border-top: 1px solid var(--border);
  }

  .dataset-facts div:nth-child(3)::before,
  .dataset-facts div:nth-child(5)::before {
    display: none;
  }

  .dataset-facts div:nth-child(4)::before {
    display: block;
  }

  .dataset-facts div:last-child {
    grid-column: 1 / -1;
  }

  .task-section {
    margin-top: 44px;
  }

  figcaption {
    font-size: 12px;
  }

  .bibtex-box pre {
    padding: 52px 16px 18px;
  }

  .bibtex-box code {
    font-size: 9px;
  }
}
