:root {
  color-scheme: light;
  --ink: #000;
  --rule: #e2e2e2;
  --pale: #f4f4f4;
  --reading-width: 56rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 4.25rem; }
body { margin: 0; background: #fff; color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong { color: var(--ink); }
a { color: var(--ink); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 3; top: -4rem; left: 1rem; padding: .4rem .7rem; background: #fff; }
.skip:focus { top: .6rem; }
.site-header { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--rule); }
.section-navigation {
  display: flex;
  width: calc(100% - 3rem);
  max-width: var(--reading-width);
  min-height: 3.3rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.35rem;
}
.section-navigation a { text-decoration: none; }
.section-navigation a:hover, .section-navigation a:focus-visible { text-decoration: underline; }
.site-name { font: 700 1.13rem/1.4 var(--serif); }
.section-links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem clamp(.75rem, 2.3vw, 1.35rem); }
.section-links a { font-size: .88rem; font-weight: 580; white-space: nowrap; }
main { width: calc(100% - 3rem); max-width: var(--reading-width); margin-inline: auto; padding-bottom: 3rem; }
.project-header { text-align: center; padding: clamp(2.3rem, 5vw, 3.6rem) 0 1.65rem; }
.venue { margin-bottom: .45rem; color: var(--ink); font-size: .82rem; font-weight: 730; letter-spacing: .115em; }
.project-name { display: block; font: 700 clamp(3.15rem, 6.7vw, 4.55rem)/1.04 var(--serif); letter-spacing: -.055em; }
.paper-title {
  display: block;
  max-width: 36em;
  margin: .62rem auto 0;
  padding-inline: .25rem;
  color: var(--ink);
  font: 510 clamp(1.14rem, 2.05vw, 1.43rem)/1.4 var(--sans);
  letter-spacing: -.014em;
  text-wrap: balance;
}
.authors, .author-notes { display: flex; justify-content: center; flex-wrap: wrap; }
.authors { gap: .15rem 1.13rem; margin-top: 1.35rem; font-size: .97rem; font-weight: 660; }
.authors sup { padding-left: .11rem; color: var(--ink); font-size: .7em; }
.affiliation { margin-top: .17rem; color: var(--ink); font-size: .91rem; }
.author-notes { gap: .07rem .82rem; margin-top: .12rem; color: var(--ink); font-size: .8rem; }
.paper-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.paper-button {
  display: inline-flex;
  min-width: 5.3rem;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: .35rem .85rem;
  border: 1px solid #bdbdbd;
  border-radius: .34rem;
  background: #fff;
  color: var(--ink);
  font: 650 .9rem/1.35 var(--sans);
  text-decoration: none;
}
a.paper-button { background: #fadce1; border-color: #c38490; }
a.paper-button:hover { background: #f7d2d9; border-color: #a55e6e; }
a.paper-button.primary { background: #dae2f4; border-color: #7890b4; }
a.paper-button.primary:hover { background: #ccd9f9; border-color: #526f9c; }
.paper-button:disabled { background: #f7f7f7; color: var(--ink); border: 1px dashed #bdbdbd; opacity: 1; cursor: default; }

.section { border-top: 1px solid var(--rule); padding: 1.7rem 0 2rem; }
.video-section { padding-top: .75rem; }
.video-section h2 { font: 680 1.03rem/1.35 var(--sans); margin: 0 0 .55rem; }
video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid var(--rule);
  border-radius: .38rem;
}
h2 { margin-bottom: .7rem; font: 700 1.65rem/1.2 var(--serif); letter-spacing: -.012em; }
.section-intro { max-width: 76ch; }
.prose > p + p { margin-top: .75rem; }
#motivation > h2, #abstract > h2, #method > h2 { text-align: center; }
#method figcaption { text-align: center; }
.paper-figure { margin-top: 1.35rem; }
.paper-figure a { display: block; }
.paper-figure img { display: block; width: 100%; height: auto; }
.motivation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
.motivation-grid .paper-figure { margin: 0; }
.motivation-grid .paper-figure img { aspect-ratio: 1.79; object-fit: contain; }
.motivation-grid figcaption { margin-top: .55rem; }
.motivation-grid figcaption a { display: inline; }
.qualitative-title { margin-top: 1.55rem; font-size: 1.03rem; }
.comparison { margin-top: .55rem; }
figcaption { margin-top: .6rem; color: var(--ink); font-size: .88rem; }
.benchmark-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin: 1.05rem 0 1.6rem; }
.benchmark h3 { margin: 0 0 .35rem; font-size: 1rem; }
.benchmark h3 small { margin-left: .13rem; color: var(--ink); font-size: .84rem; font-weight: 450; }
table { width: 100%; border-collapse: collapse; border-block: 1px solid #b8b8b8; font-size: .88rem; text-align: right; font-variant-numeric: tabular-nums; }
th, td { padding: .36rem .45rem; border-bottom: 1px solid var(--rule); }
th:first-child { text-align: left; }
tbody th { font-weight: 450; }
thead th { color: var(--ink); border-bottom-color: #b8b8b8; }
.ours th, .ours td { color: var(--ink); font-weight: 700; background: var(--pale); }
.citation-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
#copy-citation { background: none; border: 0; color: var(--ink); padding: .12rem .25rem; font: .88rem var(--sans); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
pre { margin: 0; padding: .85rem 1rem; background: var(--pale); border: 1px solid var(--rule); border-radius: .25rem; overflow-x: auto; font: .84rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.availability { margin-top: .65rem; font-size: .88rem; color: var(--ink); }
.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: 42rem) {
  .motivation-grid, .benchmark-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 30rem) {
  html { scroll-padding-top: 5.9rem; }
  main, .section-navigation { width: calc(100% - 2rem); }
  .section-navigation { align-items: flex-start; flex-direction: column; justify-content: center; gap: .3rem; padding: .5rem 0; }
  .section-links { column-gap: .85rem; }
  .section-links a { font-size: .8rem; }
  .project-header { padding: 2.05rem 0 1.2rem; }
  .authors { gap: .05rem .68rem; margin-top: 1rem; font-size: .92rem; }
  .paper-title { padding-inline: 0; }
  .paper-actions { margin-top: .85rem; }
  .section { padding: 1.3rem 0 1.55rem; }
  .video-section { padding-top: .65rem; }
  table { font-size: .8rem; }
  th, td { padding-inline: .28rem; }
}

.table-note { margin-top: .45rem; color: var(--ink); font-size: .79rem; }
