:root {
  color-scheme: light;
  --text: #222222;
  --muted: #666666;
  --line: #dddddd;
  --link: #2364b7;
  --soft: #f7f7f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--link);
}

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

.top-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 42px;
  font-size: 15px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--link);
  text-decoration: underline;
}

.paper-header {
  text-align: center;
}

h1 {
  max-width: 1080px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.paper-subtitle {
  max-width: 1040px;
  margin: 14px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.1vw, 38px);
  font-weight: 600;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.authors {
  max-width: 1040px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.button-link {
  min-width: 82px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button-link:hover {
  border-color: #b8c9df;
  background: #eef5ff;
  color: var(--link);
}

.teaser {
  margin: 42px 0 44px;
}

.teaser video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000000;
}

.teaser figcaption {
  max-width: 920px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

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

.section h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

.section p {
  margin: 0 0 14px;
  font-size: 17px;
}

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.03em;
}

.dataset-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dataset-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}

.dataset-list span {
  font-weight: 600;
}

.dataset-list small {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.dataset-list a {
  font-size: 15px;
  white-space: nowrap;
}

.footer {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .page {
    width: min(calc(100% - 24px), 1120px);
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .paper-subtitle {
    font-size: 22px;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
  }

  .authors {
    font-size: 15px;
  }

  .button-link {
    flex: 1 1 42%;
  }

  .teaser {
    margin: 32px 0 34px;
  }

  .dataset-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dataset-list small,
  .dataset-list a {
    white-space: normal;
  }
}
