@font-face {
  font-family: "STIX Two Text";
  src: url("assets/fonts/stix-two-text-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "STIX Two Text";
  src: url("assets/fonts/stix-two-text-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #172d26;
  --muted: #46554d;
  --green: #205549;
  --plum: #604e75;
  --line: #cecfc3;
  --serif: "STIX Two Text", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p, dl { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid #76559d; outline-offset: 4px; }
button, summary { font: inherit; cursor: pointer; }
.wrap { width: min(1220px, 90%); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -6rem; padding: .6rem 1rem; z-index: 2; background: white; }
.skip:focus { top: 1rem; }
header { border-bottom: 1px solid var(--line); }
nav, footer, .citation-heading, .viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
nav { min-height: 66px; }
.wordmark, .nav-links, footer div, .actions { display: flex; align-items: center; }
.wordmark { gap: .62rem; font: 600 1.55rem var(--serif); letter-spacing: -.04em; text-decoration: none; }
.nav-links, footer div { gap: clamp(.9rem, 2.3vw, 2.2rem); font-size: .93rem; }
.nav-links a, footer a { padding-block: .45rem; text-decoration: none; }
.nav-links a:hover, footer a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0,1.07fr) minmax(0,1fr); align-items: start; gap: clamp(2.2rem, 5vw, 5.6rem); padding-block: clamp(2.6rem,5.6vw,5rem); }
.meta { color: var(--green); font: 650 .76rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; text-wrap: balance; }
h1 { margin: 1.05rem 0; line-height: .98; font-size: clamp(3rem,4.25vw,4rem); letter-spacing: -.052em; }
.title-main { display: block; }
h1 em { display: block; color: var(--plum); margin-top: .45rem; font-weight: 400; font-size: .54em; letter-spacing: -.028em; line-height: 1.05; }
.authors { display: block; margin: 1.35rem 0 .12rem; font-size: 1.02rem; font-weight: 650; }
.authors sup, .institutions sup { color: var(--plum); font-size: .68em; }
.authors span, .institutions span { margin-inline: .45rem; color: #667467; }
.institutions, .intro, .steps p, .summary { color: var(--muted); }
.institutions { font-size: .9rem; }
.summary { max-width: 46ch; margin-top: 1.2rem; font-size: 1.07rem; text-wrap: pretty; }
.actions { flex-wrap: wrap; gap: .7rem; margin-top: 1.45rem; }
.actions a, button { font: 650 .92rem/1.25 var(--sans); }
.primary, .secondary, button { padding: .72rem 1.1rem; border: 1px solid var(--green); border-radius: 4px; text-decoration: none; background: transparent; color: var(--green); }
.primary { background: var(--green); color: white; }
.primary:hover { background: #123d33; color: white; }
.secondary:hover, button:hover { background: #e7ebe1; color: var(--ink); }
.actions span { margin-left: .35rem; }
.example { container-type: inline-size; align-self: center; border-block: 1px solid var(--line); border-top: 2px solid var(--green); padding: 1rem 0 .1rem; }
.example h2 { margin-bottom: .7rem; font-size: clamp(.9375rem,5cqi,1.6875rem); letter-spacing: -.035em; }
.photos, .answers dl { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(0,1fr); column-gap: .4rem; }
.photos figure > a, .paper-figure > a { display: block; cursor: zoom-in; }
.photos figure > a { height: 100%; }
.photos img { width: 100%; }
.photos figure:first-of-type img { height: 100%; object-fit: cover; object-position: 20% center; }
.answers { margin-top: .65rem; border-top: 1px solid var(--line); padding-block: .15rem; font-size: .92rem; }
.answers summary { padding-block: .6rem; color: var(--green); font-weight: 650; }
.answers p { margin: .35rem 0 .65rem; }
.answers dl { grid-template-columns: minmax(0,1.75fr) minmax(max-content,1fr); margin: .35rem 0 .7rem; }
.answers dt { font-weight: 650; }
caption small { margin-left: .4rem; color: var(--muted); font: 450 .78rem var(--sans); }
.answers dd { margin: .12rem 0 0; }
.answers .source { color: var(--muted); font-size: .8rem; }
.credits { margin-top: 1rem; color: var(--muted); font-size: .85rem; }
.credits p { margin-block: .4rem; }
.answers a, .inline { color: var(--green); }
.inline { font-size: .92rem; }
.section { border-top: 1px solid var(--line); padding-block: clamp(2.6rem,4.8vw,4.25rem); scroll-margin-top: 1.5rem; }
h2 { font-size: clamp(2.15rem,3.9vw,3.7rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading .meta { margin-bottom: .6rem; }
.intro { max-width: 70ch; margin-top: .9rem; font-size: 1.03rem; text-wrap: pretty; }
.paper-figure { margin-top: 1.5rem; }
.paper-figure > a { padding: clamp(.35rem,1.35vw,1rem); background: white; border: 1px solid var(--line); }
.paper-figure img { width: 100%; }
.paper-figure figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; color: var(--muted); font-size: .87rem; }
.paper-figure figcaption a { flex: none; color: var(--green); }
.method-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(15rem,.85fr); gap: clamp(1.5rem,3.25vw,3.2rem); margin-top: 1.6rem; align-items: start; }
.method-layout .paper-figure { margin: 0; }
.steps { display: grid; gap: 1.05rem; }
.steps > div { border-left: 3px solid #8e73ab; padding-left: 1rem; }
.steps > div:nth-child(2) { border-color: #528577; }
.steps > div:nth-child(3) { border-color: #bf8651; }
h3 { font-size: 1.47rem; line-height: 1.18; letter-spacing: -.025em; }
.steps p { font-size: .96rem; margin-top: .25rem; }
.result-tables { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.6rem,4vw,3.6rem); margin: 1.65rem 0 1.2rem; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding-bottom: .7rem; font: 500 1.38rem var(--serif); }
th, td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); }
thead th:not(:first-child), td { text-align: right; }
thead th { border-top: 1px solid #667769; color: var(--green); font-size: .86rem; }
tbody th { font-weight: 500; }
.ours { background: #e6ede2; color: #173f33; }
.ours th, .ours td { font-weight: 700; }
pre { margin: 1.25rem 0 0; padding: clamp(1rem,2.25vw,1.8rem); background: #1f352c; color: #edf2e9; border-radius: 4px; overflow: auto; font: .88rem/1.65 ui-monospace, Consolas, monospace; }
footer { border-top: 1px solid var(--line); padding-block: 1.1rem 2.1rem; }
footer .wordmark { font-size: 1.15rem; }
#viewer { width: min(94vw, 1480px); max-width: none; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
#viewer::backdrop { background: rgb(15 26 20 / 75%); }
body:has(#viewer[open]) { overflow: hidden; }
.viewer-head { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.viewer-head h2 { font: 600 1.02rem/1.3 var(--sans); letter-spacing: 0; }
.viewer-head div { display: flex; gap: .4rem; }
.viewer-head button { padding: .55rem .75rem; white-space: nowrap; }
.viewer-stage { overflow: auto; max-height: 74vh; max-height: 74dvh; background: white; overscroll-behavior: contain; }
.viewer-stage img { display: block; width: auto; height: auto; max-height: 74vh; max-height: 74dvh; max-width: 100%; margin: 0 auto; }
.viewer-stage.zoomed img { max-width: none; max-height: none; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { max-width: 44rem; }
  .example { width: min(100%, 44rem); }
  .result-tables, .method-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  nav { min-height: 56px; }
  .nav-links { gap: .9rem; font-size: .88rem; }
  .wordmark { font-size: 1.25rem; gap: .3rem; }
  .wordmark img { width: 31px; }
  .hero { padding-block: 2rem; }
  h1 { font-size: clamp(2.45rem,9.6vw,3.4rem); }
  h1 em { font-size: .55em; }
  .authors { margin-top: 1.05rem; }
  .summary { font-size: 1rem; margin-top: .95rem; }
  .steps { grid-template-columns: 1fr; }
  .paper-figure figcaption { align-items: start; font-size: .83rem; gap: .55rem; }
  th, td { padding: .6rem .2rem; font-size: .88rem; }
  thead th { font-size: .76rem; }
  .citation-heading { flex-wrap: wrap; }
  pre { font-size: .78rem; }
  .viewer-head { padding: .65rem; gap: .4rem; }
  .viewer-head h2 { font-size: .88rem; }
  .viewer-head button { padding: .45rem; font-size: .83rem; }
}
@media (max-width: 480px) {
  .answers dl { grid-template-columns: max-content 1fr; gap: .25rem .3rem; font-size: .85rem; }
  .answers dl > div { display: contents; }
  .answers dd { margin: 0; }
}
