:root {
  --paper: #f7f3ec;
  --paper-deep: #eee6dc;
  --ink: #3f172e;
  --body: #534d49;
  --muted: #756d67;
  --line: #b9a79a;
  --terracotta: #b8644b;
  --max: 1050px;
  --gutter: clamp(20px, 5vw, 72px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--body); font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 20; transform: translateY(-140%); background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 15px 0; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--paper) 94%, transparent); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(63, 23, 46, .04); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 700; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: Inter, sans-serif; font-size: .86rem; }
.nav-links { display: flex; gap: 26px; color: var(--muted); font-size: .9rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
main { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.hero { padding: clamp(76px, 10vw, 126px) 0 42px; text-align: center; }
.hero h1 { max-width: 1050px; margin: 0 auto 22px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.25vw, 3.2rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
.hero h1 span { display: block; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 0 auto 10px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.authors a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.authors a:hover, .authors a:focus-visible { text-decoration-color: var(--terracotta); }
sup { color: var(--terracotta); font-family: Inter, sans-serif; font-size: .65em; font-weight: 750; line-height: 0; }
.affiliations { margin: 0 auto 28px; color: var(--muted); font-size: .92rem; }
.affiliations small { display: inline-block; margin-top: 6px; }
.acceptance { margin: 0 auto 28px; color: var(--terracotta); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 3px; padding: 9px 18px; background: transparent; color: var(--ink); font-size: .9rem; font-weight: 700; }
.button:hover, .button:focus-visible { border-color: var(--ink); background: var(--paper-deep); }
.button.primary { border-color: var(--terracotta); background: var(--terracotta); color: #fff; }
.button.primary:hover, .button.primary:focus-visible { border-color: var(--ink); background: var(--ink); }
.figure-frame { margin: 0; border: 1px solid var(--line); background: #fff; }
.figure-frame img { width: 100%; height: auto; background: #fff; }
.figure-frame figcaption { padding: 12px 16px 14px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: .9rem; line-height: 1.45; text-align: center; }
.teaser { margin-bottom: clamp(56px, 8vw, 92px); }
.paper-section { padding: clamp(54px, 8vw, 92px) 0 0; }
.section-title { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.section-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
h2 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.7vw, 3.25rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
h3 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
p { max-width: 820px; margin: 0 0 18px; }
.paper-section > p, .method-copy { font-size: 1rem; }
.paper-section strong { color: var(--ink); }
.method-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 6vw, 72px); margin-top: 24px; }
.method-copy ol { margin: 0; padding-left: 22px; }
.method-copy li { padding-left: 7px; margin-bottom: 10px; }
.method-copy li::marker { color: var(--terracotta); font-weight: 700; }
.metric-list { max-width: 100%; margin: 28px 0 34px; border-top: 1px solid var(--line); }
.metric-list p { display: flex; justify-content: space-between; max-width: none; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.08rem; }
.metric-list span { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.table-wrap, .ablation-table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 640px; border-collapse: collapse; color: var(--body); font-size: .92rem; }
th, td { padding: 13px 14px; border: 0; text-align: right; white-space: nowrap; }
thead th { color: var(--ink); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
th:first-child, td:first-child { text-align: left; }
tbody th { color: var(--ink); font-weight: 700; }
.ours-row { background: rgba(184, 100, 75, .09); }
.analysis-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.ablation-table-wrap { margin-top: 30px; }
.ablation-table-wrap h3 { margin: 20px 0 4px; }
.ablation-table-wrap p { margin-bottom: 16px; color: var(--muted); font-size: .92rem; }
.ablation-table-wrap table { margin-bottom: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.citation { padding-bottom: clamp(70px, 9vw, 110px); }
.code-panel { position: relative; border: 1px solid var(--line); background: #f0ebe4; }
.copy-button { position: absolute; right: 12px; top: 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); padding: 7px 12px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.copy-button:hover, .copy-button:focus-visible { border-color: var(--ink); }
pre { margin: 0; overflow-x: auto; padding: 24px 20px; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; line-height: 1.6; }
.site-footer { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .site-header { width: min(var(--max), calc(100% - 36px)); }
  .nav-links { gap: 14px; }
  .nav-links a:nth-child(2) { display: none; }
  .method-copy { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 3.7rem); }
  .hero h1 span { display: inline; }
  .hero h1 span:first-child::after { content: " "; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:last-child { grid-column: 1 / -1; height: auto; }
  .ablation-table-wrap table { min-width: 680px; }
}
@media (max-width: 480px) {
  main, .site-header { width: calc(100% - 36px); }
  .nav-links a:nth-child(4) { display: none; }
  .hero-actions .button { width: 100%; }
  .section-title { gap: 12px; }
  .section-title::after { min-width: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img:last-child { grid-column: auto; }
  .figure-frame figcaption { font-size: .84rem; }
  pre { padding: 64px 14px 18px; font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
