:root {
  color-scheme: light;
  --ink: #363636;
  --muted: #555;
  --link: hsl(204, 86%, 53%);
  --line: #e5e5e5;
  --light: #fafafa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: hsl(204, 86%, 43%);
}

.container {
  width: min(100% - 2.5rem, 960px);
  margin-inline: auto;
}

.hero {
  background: #fff;
  text-align: center;
}

.hero-body {
  padding: 3rem 0 2.5rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #777;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.publication-title {
  max-width: 900px;
  margin: 0 auto;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.subtitle {
  max-width: 780px;
  margin: 1rem auto 1.6rem;
  color: #555;
  font-family: "Google Sans", sans-serif;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  line-height: 1.4;
}

.publication-authors {
  max-width: 850px;
  margin: 0 auto;
  font-family: "Google Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
}

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

.publication-authors a:hover {
  text-decoration: underline;
}

.affiliations {
  margin: 1rem auto 0;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.75;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.button:hover {
  color: #fff;
}

.button-arxiv {
  border-color: #b31b1b;
  background: #b31b1b;
}

.button-arxiv:hover {
  border-color: #941616;
  background: #941616;
}

.button-github {
  border-color: #24292f;
  background: #24292f;
}

.button-github:hover {
  border-color: #3b424a;
  background: #3b424a;
}

.button-icon {
  min-width: 1.1rem;
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
}

.section {
  padding: 2.5rem 0;
}

.white-bg {
  background: #fff;
}

.light-grey-bg {
  background: var(--light);
}

.comfort-highlight {
  background: #f7f7f7;
  border-block: 1px solid var(--line);
}

.content {
  max-width: 900px;
}

.section-eyebrow {
  margin-bottom: 0.35rem;
  color: #b31b1b;
  text-align: center;
}

h2 {
  margin: 0 0 0.8rem;
  font-family: "Google Sans", "Noto Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.content p {
  color: var(--muted);
}

.lead {
  font-family: "Castoro", Georgia, serif;
  font-size: 1.2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  padding: 1.25rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 2px 2px 8px rgb(0 0 0 / 8%);
}

.stat-value {
  color: #b31b1b;
  font-family: "Google Sans", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.figure {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px #ddd;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.video-feature {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px #ddd;
}

.video-feature video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 4px;
  background: #111;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.video-card {
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 4px;
  background: #111;
}

.video-card figcaption {
  padding: 0.65rem 0.1rem 0.1rem;
}

figcaption,
.note {
  color: var(--muted);
  font-size: 0.9rem;
}

figcaption {
  padding: 0.8rem 0.2rem 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

th,
td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

thead th {
  color: #444;
  font-size: 0.87rem;
}

th:first-child,
td:first-child {
  text-align: left;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.citation pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #f5f5f5;
  color: #363636;
  font-size: 0.85rem;
  line-height: 1.55;
}

footer {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

footer span {
  margin: 0 0.5rem;
  color: #aaa;
}

@media (max-width: 700px) {
  .hero-body {
    padding: 2.5rem 0 2rem;
  }

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

  .section {
    padding: 2rem 0;
  }

  .publication-authors {
    font-size: 1rem;
  }

  th,
  td {
    padding: 0.55rem;
  }
}
