:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #626262;
  --rule: #d4d4d4;
  --soft-rule: #e9e9e9;
  --link: #243b53;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --measure: 820px;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.72 var(--serif); text-rendering: optimizeLegibility; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: #000; text-decoration-thickness: 2px; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #171717; outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .6rem .8rem; background: #fff; border: 1px solid var(--ink); font: 600 .85rem var(--sans); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--rule); }
.nav-shell { width: min(1120px, calc(100% - 3rem)); min-height: 62px; margin: auto; display: flex; align-items: center; gap: 2rem; font: 500 .82rem/1.3 var(--sans); letter-spacing: .01em; }
.site-name { color: var(--ink); font-family: var(--serif); font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-shell nav { display: flex; align-items: center; gap: 1.35rem; }
.nav-shell nav a, .portfolio-link { color: #343434; text-decoration: none; padding: 1.35rem 0 1.25rem; border-bottom: 2px solid transparent; }
.nav-shell nav a[aria-current="page"] { color: #000; border-bottom-color: #171717; }
.portfolio-link { margin-left: auto; color: var(--muted); white-space: nowrap; }
.page-shell { width: min(var(--measure), calc(100% - 3rem)); margin: 0 auto; padding: 2.6rem 0 6rem; }
.document-tools { margin-bottom: 4.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font: .76rem/1.5 var(--sans); }
.document-tools span:last-child { white-space: nowrap; }
.paper-content > h1:first-child { margin: 0 0 1.2rem; max-width: 780px; font: 700 clamp(2.15rem, 5vw, 3.45rem)/1.08 var(--serif); letter-spacing: -.025em; }
.paper-content > h1:first-child + p { margin: 0 0 .45rem; font: 500 1rem var(--sans); }
.paper-content > h1:first-child + p + p { margin: 0 0 3.8rem; color: var(--muted); font: .84rem/1.5 var(--sans); }
.paper-content h2 { margin: 4.2rem 0 1.35rem; padding-top: .15rem; border-top: 1px solid var(--ink); font: 700 1.55rem/1.25 var(--serif); letter-spacing: -.01em; }
.paper-content h3 { margin: 2.8rem 0 1rem; font: 700 1.16rem/1.35 var(--serif); }
.paper-content p { margin: 0 0 1.15rem; }
.paper-content blockquote { margin: 1.8rem 0; padding: .15rem 0 .15rem 1.4rem; border-left: 2px solid #777; color: #303030; font-style: italic; }
.paper-content blockquote p { margin: 0; }
.paper-content ul, .paper-content ol { padding-left: 1.4rem; }
.paper-content li { margin-bottom: .45rem; }
.paper-content code { font: .83em/1.5 var(--mono); overflow-wrap: anywhere; }
.paper-content pre { margin: 1.7rem 0; padding: 1rem 0; overflow-x: auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fafafa; }
.paper-content pre code { display: block; min-width: max-content; padding: 0 1rem; }
.paper-content hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
.paper-content img { max-width: 100%; height: auto; filter: grayscale(1); }
.table-wrap { width: 100%; overflow-x: auto; margin: 1.7rem 0 2.6rem; }
table { width: 100%; min-width: 560px; border-collapse: collapse; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); font: .83rem/1.45 var(--sans); font-variant-numeric: tabular-nums; }
caption { caption-side: top; padding: 0 0 .65rem; text-align: left; color: var(--ink); font: 600 .85rem/1.45 var(--sans); }
th, td { padding: .58rem .65rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--soft-rule); }
th { border-bottom: 1px solid var(--ink); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
th[align="right"], td[align="right"] { text-align: right; }
.paper-content > h2#abstract { margin-top: 0; border-top: 0; }
.paper-content > h2#abstract + p { font-size: 1.03rem; line-height: 1.75; }
.paper-content > h2#references ~ p { padding-left: 1.5rem; text-indent: -1.5rem; font-size: .93rem; }
.results > h1:first-child, .methodology > h1:first-child, .validity > h1:first-child, .reproducibility > h1:first-child, .artifacts > h1:first-child, .human-review > h1:first-child { font-size: 2.45rem; }
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font: .78rem/1.6 var(--sans); }
.site-footer > div { width: min(1120px, calc(100% - 3rem)); margin: auto; padding: 1.5rem 0 2.5rem; display: flex; justify-content: space-between; gap: 1rem; }
@media (max-width: 820px) {
  .nav-shell { width: min(100% - 2rem, 1120px); min-height: 0; padding: .8rem 0; flex-wrap: wrap; gap: .4rem 1rem; }
  .nav-shell nav { order: 3; width: 100%; overflow-x: auto; gap: 1.1rem; border-top: 1px solid var(--soft-rule); }
  .nav-shell nav a { padding: .75rem 0 .35rem; }
  .portfolio-link { font-size: .75rem; }
  .page-shell { width: min(100% - 2rem, var(--measure)); padding-top: 1.8rem; }
  .document-tools { margin-bottom: 3rem; display: block; }
  .document-tools span { display: block; }
  .document-tools span + span { margin-top: .55rem; }
  .paper-content h2 { margin-top: 3.2rem; }
  table { min-width: 620px; }
  .site-footer > div { width: min(100% - 2rem, 1120px); display: block; }
  .site-footer span { display: block; }
}
@media (max-width: 480px) {
  body { font-size: 16px; line-height: 1.68; }
  .paper-content > h1:first-child { font-size: 2rem; }
  .results > h1:first-child, .methodology > h1:first-child, .validity > h1:first-child, .reproducibility > h1:first-child, .artifacts > h1:first-child, .human-review > h1:first-child { font-size: 1.9rem; }
}
@media print {
  .site-header, .document-tools, .site-footer, .skip-link { display: none !important; }
  .page-shell { width: auto; margin: 0; padding: 0; }
  body { font-size: 10.5pt; }
  a { color: inherit; text-decoration: none; }
  h2, h3, caption { break-after: avoid; }
  table, blockquote, pre { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
}
