:root {
  --accent: #8f4d4d;
  --accent-dark: #6f3939;
  --ink: #24262d;
  --muted: #5f6673;
  --line: #e8eaef;
  --surface: #f7f8fb;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: "Noto Sans", "Google Sans", Arial, sans-serif;
  background: #ffffff;
}

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

a:hover {
  color: var(--accent-dark);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(143, 77, 77, 0.08), rgba(255, 255, 255, 0) 58%),
    #ffffff;
}

.publication-title {
  max-width: 1100px;
  margin: 0 auto 1rem;
  color: var(--ink);
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: 0;
}

.title-prefix {
  display: inline-block;
  margin-right: 0.15em;
}

.title-highlight {
  color: var(--accent);
  white-space: nowrap;
}

.publication-authors {
  margin-top: 0.4rem;
  color: var(--muted);
}

.author-list {
  display: grid;
  gap: 0.28rem;
}

.author-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.35rem;
}

.author-block {
  display: inline-block;
}

.author-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.1rem;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

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

.hat-button {
  border: 0;
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(143, 77, 77, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hat-button span,
.hat-button i {
  color: #ffffff !important;
}

.hat-button:hover,
.hat-button:focus {
  background: var(--accent-dark);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(143, 77, 77, 0.26);
}

.hat-button[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.soon-button {
  border: 1px solid #d9dde5;
  background: #f2f4f7;
  color: #68707f !important;
  cursor: default;
}

.soon-button span,
.soon-button i {
  color: #68707f !important;
}

.soon-button:hover,
.soon-button:focus,
.soon-button:active {
  border-color: #d9dde5;
  background: #f2f4f7;
  color: #68707f !important;
  box-shadow: none;
}

.venue-note {
  margin-top: 0.15rem;
}

.venue-note a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.venue-note a:hover {
  color: var(--accent);
}

.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section.compact {
  padding-top: 1.75rem;
}

.section-title {
  color: var(--ink);
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-weight: 700;
  text-align: center;
}

.teaser-figure {
  margin: 0 auto;
}

.teaser-figure img,
.figure-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.teaser-figure img {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.tldr {
  max-width: 940px;
  margin: 1.25rem auto 0;
  color: #3d424d;
  font-size: 1.18rem;
  line-height: 1.62;
  text-align: center;
}

.content.project-copy {
  color: #3f4652;
  font-size: 1.08rem;
  line-height: 1.72;
}

.figure-panel {
  margin: 1.35rem 0 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.gallery-section {
  background: var(--surface);
}

.gallery-part {
  margin-top: 1.75rem;
}

.gallery-title {
  color: var(--ink);
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: 1.35rem !important;
  font-weight: 700;
  text-align: center;
}

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

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.gallery-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111318;
  object-fit: cover;
}

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

.metric-figure {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.metric-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.58 / 1;
  padding: 0.75rem;
  background: #ffffff;
}

.metric-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.figure-caption {
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.bibtex {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f6f7f9;
  color: #23262d;
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer-note {
  color: var(--muted);
  font-size: 0.95rem;
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 2rem !important;
  }

  .section {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

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

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

  .tldr,
  .content.project-copy {
    font-size: 1rem;
  }
}
