:root {
  color-scheme: light;
  --text: #202824;
  --muted: #68716c;
  --line: #e3e9e5;
  --link: #25634b;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.68; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
a { color: var(--link); }
a:hover { color: #154c39; }
button { font: inherit; }
.container { width: min(100% - 48px, 980px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 12px; background: #fff; border: 1px solid var(--text); }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-name { color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 11px 26px; }
.site-header nav a { color: #4f5953; text-decoration: none; font-size: 14px; font-weight: 500; }
.site-header nav a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }

.intro { max-width: 860px; margin: 66px auto 44px; text-align: center; }
.venue { margin: 0 0 15px; color: var(--link); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 860px; margin: 0 auto 23px; font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(34px, 4vw, 46px); line-height: 1.18; letter-spacing: -.035em; font-weight: 600; }
.authors { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 19px; row-gap: 2px; font-size: 16px; }
.authors span { white-space: nowrap; }
.authors a { color: var(--text); text-decoration-color: #b8cac0; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.authors a:hover { color: var(--link); text-decoration-color: currentColor; }
.authors a:focus-visible { outline: 3px solid #83bda9; outline-offset: 3px; }
.authors sup, .affiliations sup { font-size: .68em; }
.affiliations { max-width: 800px; margin: 10px auto 0; font-size: 13px; color: var(--muted); }
.corresponding { margin: 1px 0 0; font-size: 12px; color: var(--muted); }
.resource-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 25px 0 25px; }
.resource-links a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 102px; padding: 8px 14px; border: 1px solid #cbd6cf; border-radius: 5px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.resource-links a:hover { border-color: #8f9996; background: #f6f8f7; }
.resource-links a:focus-visible, .paper-figure a:focus-visible, .copy-button:focus-visible { outline: 3px solid #83bda9; outline-offset: 3px; }
.resource-links img { display: block; width: 19px; height: 19px; }
.one-line { max-width: 730px; margin: 0 auto; color: #46584d; font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); line-height: 1.35; }

.paper-figure { max-width: 920px; margin: 24px auto 0; }
.paper-figure > a { display: block; line-height: 0; }
.paper-figure img { display: block; width: 100%; height: auto; border: 1px solid #ededed; background: #fff; }
.paper-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.paper-figure figcaption strong { color: #464b50; font-weight: 600; }
.lead-figure { margin-top: 0; }

.content-section { margin-top: 68px; padding-top: 48px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.content-section h2 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(29px, 3vw, 34px); font-weight: 500; line-height: 1.16; letter-spacing: -.025em; }
.content-section h3 { margin: 42px 0 16px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.content-section > p { max-width: 900px; margin: 0 0 16px; color: #3f4a43; }
.content-section .paper-figure { margin-top: 24px; }

.gallery-intro { margin-bottom: 25px !important; }
.demo-groups { display: grid; gap: 30px; max-width: 860px; margin: 24px auto 0; }
.demo-group { min-width: 0; }
.demo-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.demo-group h4 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.demo-group-heading span { color: var(--muted); font-size: 13px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: 16px; }
.demo { margin: 0; min-width: 0; }
.demo video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid #dfe3e4; background: #171c1a; }
.demo figcaption { margin-top: 8px; color: #526158; font-size: 13px; font-weight: 600; }
.scaling-figure { max-width: 800px; margin-inline: auto; }

.citation-section { margin-bottom: 88px; }
.bibtex-box { position: relative; margin-top: 24px; border: 1px solid #dce1e2; border-radius: 6px; background: #f7f8f8; }
.bibtex-box pre { margin: 0; padding: 52px 20px 20px; overflow-x: auto; font: 13px/1.65 Consolas, "Liberation Mono", Menlo, monospace; }
.copy-button { position: absolute; top: 10px; right: 10px; border: 1px solid #c9ced1; border-radius: 4px; background: #fff; color: #3e4548; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.copy-button:hover { background: #eef2f0; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }

@media (max-width: 650px) {
  .container { width: min(100% - 32px, 980px); }
  .header-inner { padding: 13px 0; flex-direction: column; gap: 6px; }
  .site-header nav { justify-content: center; column-gap: 18px; }
  .site-header nav a { font-size: 13px; }
  .intro { margin: 49px auto 38px; }
  h1 { font-size: clamp(30px, 8vw, 36px); }
  .authors { font-size: 15px; column-gap: 13px; }
  .affiliations { font-size: 12px; }
  .one-line { font-size: 19px; }
  .content-section { margin-top: 52px; padding-top: 38px; }
  .content-section h2 { font-size: 29px; }
  .content-section h3 { margin-top: 36px; font-size: 23px; }
  .demo-grid { grid-template-columns: 1fr; gap: 24px; }
  .demo-groups { gap: 26px; }
  .paper-figure figcaption { font-size: 13px; }
  .footer-inner { padding: 22px 0; flex-direction: column; justify-content: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .resource-links a { transition: none; }
}
