@font-face {
  font-family: "Google Sans";
  src: url("../fonts/google-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #302a29;
  --muted: #665c57;
  --accent: #803e34;
  --accent-hover: #5d2a25;
  --rule: #ddd3cb;
  --wash: #f5f0eb;
  --paper: #fffdfa;
  --title-font: "Google Sans", Arial, sans-serif;
  --text-font: "Noto Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.55 var(--text-font); }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: .075em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 1; background: white; padding: .5rem; }
.shell { width: min(1072px, calc(100% - 4.5rem)); margin-inline: auto; }
.sitebar, .mast { background: #f8f5f1; }
.sitebar nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 54px; border-bottom: 1px solid var(--rule); }
.sitebar nav div { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.sitebar a { font-size: .875rem; color: var(--muted); text-decoration: none; }
.sitebar a:hover { color: var(--accent); text-decoration: underline; }
.sitebar .brand { color: var(--ink); font: 600 1.15rem var(--title-font); }
.mast { border-bottom: 1px solid var(--rule); padding: clamp(2.1rem,4.35vw,3.65rem) 0 clamp(2.25rem,3.5vw,3rem); }
h1,h2,h3,h4,p,figure { margin: 0; }
.venue { margin-bottom: .65rem; color: var(--accent); font: 600 1rem/1.4 var(--title-font); }
.venue a { text-decoration: none; }
.venue a:hover { text-decoration: underline; }
h1 { max-width: 34ch; font: 600 clamp(2rem,4vw,3rem)/1.125 var(--title-font); text-wrap: balance; }
.paper-header { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); align-items: center; gap: clamp(2rem,4vw,3.5rem); margin-top: 1.9rem; }
.authors { font: 400 1.25rem/1.45 var(--title-font); }
.authors span { white-space: nowrap; }
sup { font-size: .68em; line-height: 0; }
.affiliations { margin: .7rem 0 1.15rem; color: var(--muted); font: 400 1.08rem/1.5 var(--title-font); }
.affiliations p { margin-top: .1rem; }
.corresponding { margin-left: .9rem; }
.resources { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; }
.resources a { font-size: .96rem; }
.resources .paper { background: var(--accent); color: white; padding: .36rem .85rem; border-radius: 3px; text-decoration: none; }
.resources .paper:hover { background: var(--accent-hover); }
video { width: 100%; height: auto; display: block; }
.teaser video, .trial-films video { border: 1px solid var(--rule); border-radius: 3px; }
.teaser.single-caption figcaption { display: block; }
.teaser.single-caption video { aspect-ratio: 530 / 278; object-fit: contain; background: var(--wash); }
.film-section video { aspect-ratio: 16 / 9; object-fit: contain; background: var(--wash); }
.teaser figcaption { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-family: var(--title-font); font-size: .9rem; }
figcaption { margin-top: .5rem; font-size: .94rem; line-height: 1.5; color: var(--muted); }
.body-content, footer.shell { max-width: 960px; }
.paper-section { border-bottom: 1px solid var(--rule); padding: clamp(2.5rem,4.5vw,3.65rem) 0; }
h2,h3 { font-family: var(--text-font); font-weight: 600; line-height: 1.15; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
.section-intro { display: grid; grid-template-columns: 31% 1fr; column-gap: 2.3rem; align-items: baseline; margin-bottom: 2rem; }
.section-intro p { color: var(--muted); }
.method-overview, .experiment-block { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.5rem; align-items: center; }
.explanation p, .experiment-copy p { margin-top: .75rem; }
.plate img { width: 100%; height: auto; display: block; }
.plate > a { display: block; padding: .7rem; border: 1px solid var(--rule); background: white; cursor: zoom-in; }
.architecture { margin-top: 1.75rem; }
.abstract { margin-top: 1rem; }
.abstract p { max-width: 77ch; margin-top: .6rem; }
.result-table { margin: 1.8rem 0 2.35rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; margin-bottom: .4rem; font-weight: 600; }
td, th { padding: .53rem .8rem; border-bottom: 1px solid var(--rule); text-align: right; }
th:first-child { text-align: left; }
thead th { font-size: .86rem; color: var(--muted); font-weight: 550; }
tbody tr:first-child { background: var(--wash); }
.result-table > p { color: var(--muted); font-size: .87rem; margin-top: .5rem; }
.simulation > p { max-width: 78ch; margin: .7rem 0 1.1rem; }
.trials { margin-top: 1.85rem; }
.trial-films { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1rem 0 1.1rem; }
.trial-films video { aspect-ratio: 1; }
.trial-films figcaption { color: var(--ink); text-align: center; font-weight: 500; }
summary { width: fit-content; color: var(--accent); font-weight: 550; cursor: pointer; }
.recordings { border-top: 1px solid var(--rule); padding-top: 1rem; }
.recordings-list { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: .75rem 1.5rem; margin-top: .75rem; }
.recordings-list a { white-space: nowrap; }
.recordings-list { font-size: .91rem; }
h4 { font-weight: 600; font-size: 1rem; }
.film-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.85fr); gap: 2.3rem; align-items: center; }
.film-section p { margin-top: .75rem; color: var(--muted); }
.film-section video { border: 1px solid var(--rule); border-radius: 3px; }
.bib { margin-top: 1.05rem; padding: 1rem 1.15rem; background: var(--wash); border-left: 2px solid #ba9383; }
.bib button { margin: 0 0 .45rem; padding: .3rem .55rem; border: 1px solid #b7a69b; border-radius: 3px; font: inherit; font-size: .8rem; background: var(--paper); color: var(--ink); cursor: pointer; }
.bib pre { margin: 0; font: .85rem/1.6 Consolas, "Liberation Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
footer.shell { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding: 1.6rem 0 2.5rem; }
footer h2 { font-size: 1rem; margin-bottom: .3rem; }
footer p, .back { font-size: .87rem; color: var(--muted); }
.back { white-space: nowrap; }
@media(max-width:800px) {
  .shell { width: calc(100% - 2.5rem); }
  .paper-header { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 1.5rem; }
  .method-overview, .experiment-block { gap: 1.5rem; }
  .recordings-list { grid-template-columns: 1fr 1fr; }
}
@media(max-width:680px) {
  .shell { width: calc(100% - 2.25rem); }
  .sitebar nav div { gap: .75rem; }
  .sitebar a { font-size: .81rem; }
  .paper-header, .method-overview, .experiment-block, .section-intro, .film-section { grid-template-columns: 1fr; }
  .film-section { gap: 1.1rem; }
  .paper-header { margin-top: 1.15rem; gap: 1.4rem; }
  .authors { font-size: 1.125rem; }
  .affiliations { font-size: 1rem; }
  .resources { gap: .45rem .85rem; }
  .section-intro { gap: .6rem; margin-bottom: 1.35rem; }
  .method-overview .explanation { grid-row: 1; }
  .plate > a { padding: .4rem; }
  .trial-films { gap: .55rem; }
  .trial-films figcaption { font-size: .8rem; }
  footer.shell { flex-direction: column; gap: 1rem; }
}
@media(max-width:510px) {
  .trial-films { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem .65rem; }
  .trial-films figure:first-child { grid-column: 1 / -1; width: 100%; }
}
@media(max-width:365px) {
  .shell { width: calc(100% - 1.75rem); }
  .sitebar nav div { gap: .5rem; }
  .sitebar .brand { font-size: 1rem; }
  td, th { padding: .45rem .3rem; }
}
