:root {
  color-scheme: light;
  --text: #202124;
  --muted: #5f6368;
  --soft: #f5f5f5;
  --line: #e5e7eb;
  --link: #276ef1;
  --dark: #222222;
  --panel: #ffffff;
  --shadow: 0 12px 30px rgba(32, 33, 36, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family:
    "Google Sans", "Noto Sans", "Inter", "Aptos", Arial, sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.narrow {
  width: min(100% - 32px, 960px);
}

.text-column {
  width: min(100% - 32px, 860px);
}

.has-text-centered {
  text-align: center;
}

.hero {
  padding: 64px 0 22px;
}

.publication-header {
  border-bottom: 1px solid transparent;
}

.venue {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  margin: 24px auto 0;
  color: var(--text);
  font-size: 1.1rem;
  text-align: center;
}

.conference-logo-link {
  display: inline-flex;
  flex-shrink: 0;
}

.conference-logo {
  display: block;
  width: 104px;
  height: auto;
}

.publication-title {
  max-width: 960px;
  margin: 0 auto 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.05rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.publication-subtitle {
  max-width: 830px;
  margin: 0 auto 18px;
  color: #3c4043;
  font-size: 1.32rem;
  line-height: 1.42;
}

.publication-authors {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 1.12rem;
}

.publication-affiliation {
  margin-top: 8px;
  color: #6f747b;
  font-size: 1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--dark);
  border-radius: 999px;
  background: var(--dark);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
}

.button.primary {
  background: var(--link);
  border-color: var(--link);
}

.button.primary:hover {
  background: #185abc;
  border-color: #185abc;
}

.teaser {
  padding: 28px 0 52px;
}

.teaser-video {
  display: block;
  width: 100%;
  max-height: 620px;
  border-radius: 4px;
  background: #111111;
  box-shadow: var(--shadow);
}

.teaser-caption {
  max-width: 850px;
  margin: 18px auto 0;
  color: #3c4043;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.speed-note {
  display: inline-block;
  color: var(--muted);
  font-size: 1rem;
}

.section {
  padding: 58px 0;
}

.section.light,
.abstract-section {
  background: var(--soft);
}

h2 {
  margin: 0 0 22px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 14px 0 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.abstract-section p,
.text-column p {
  text-align: justify;
}

.section-intro {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.pipeline,
.metrics,
.video-grid {
  display: grid;
  gap: 18px;
}

.method-overview-figure {
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.method-overview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.pipeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.pipeline article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pipeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dark);
  color: #ffffff;
  font-weight: 800;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics article {
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
}

.metrics strong {
  display: block;
  margin-bottom: 10px;
  color: var(--link);
  font-size: 2.55rem;
  line-height: 1;
}

.metrics p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-grid article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111111;
}

.video-grid h3,
.video-grid p {
  padding: 0 18px;
}

.video-grid h3 {
  margin-top: 18px;
}

.video-grid p {
  margin-bottom: 20px;
}

.pdf-viewer {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  border-radius: 6px;
  background: #f7f7f7;
  border: 1px solid var(--line);
  color: #202124;
}

code {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
}

.hero-support {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  margin: 20px auto 0;
}

.support-label {
  color: #8b8393;
  font-size: 0.8rem;
}

.support-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.supporter-logo {
  display: block;
  flex-shrink: 0;
  height: auto;
  object-fit: contain;
}

.uw-logo {
  width: 46px;
}

.amazon-logo {
  width: 96px;
}

.support-plus {
  color: #a096ac;
  font-size: 0.85rem;
}

.support-name {
  color: #4b5973;
  font-size: 0.85rem;
  font-weight: 550;
}

.support-name:hover {
  color: #4b2e83;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .publication-title {
    font-size: 2.35rem;
  }

  .publication-subtitle {
    font-size: 1.12rem;
  }

  .pipeline,
  .metrics,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdf-viewer {
    min-height: 560px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 42px;
  }

  .publication-title {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .publication-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .pipeline,
  .metrics,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .abstract-section p,
  .text-column p {
    text-align: left;
  }

  .venue {
    font-size: 1rem;
  }

  .conference-logo {
    width: 90px;
  }

  .hero-support {
    max-width: 320px;
    gap: 10px 12px;
  }

  .uw-logo {
    width: 38px;
  }

  .amazon-logo {
    width: 80px;
  }
}
