@font-face {
  font-family: Inter;
  src: url("assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Publication Markers";
  src: url("assets/publication-markers.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+2020;
}

:root {
  --ink: #182b42;
  --muted: #495969;
  --blue: #2265a5;
  --orange: #ad512b;
  --line: #dce5ec;
  --tint: #f4f8fb;
  --width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: #fff; font: 1.25rem/1.7 Inter, Arial, sans-serif; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--blue); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.container { width: min(var(--width), calc(100% - 80px)); margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 10px 16px; background: #fff; }
.skip-link:focus { top: 10px; }

.hero { width: min(1440px, calc(100% - 64px)); padding: 64px 0 56px; text-align: center; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: .9375rem; font-weight: 650; line-height: 1.5; letter-spacing: 1.4px; text-transform: uppercase; }
h1 { max-width: 1400px; margin: 0 auto 32px; color: #363636; font-size: clamp(2.25rem, 4vw, 3.375rem); font-weight: 600; line-height: 1.15; letter-spacing: -1.1px; text-wrap: balance; }
.publication-authors { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; font-size: 1.4375rem; line-height: 1.6; color: #4a4a4a; }
.author-block { display: inline-block; white-space: nowrap; }
.author-name { color: hsl(204, 86%, 53%); }
.publication-header sup { font-family: "Publication Markers", Inter, sans-serif; font-size: .7em; vertical-align: super; line-height: 0; }
.publication-affiliations { margin-top: 14px; color: #4a4a4a; font-size: 1.25rem; line-height: 1.7; }
.affiliation-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; }
.publication-affiliations sup { margin-right: 3px; }
.author-notes { margin: 16px 0 0; color: #4a4a4a; font-size: 1rem; }
.author-notes sup + sup { margin-left: 12px; }
.publication-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; text-decoration: none; font-size: 1rem; font-weight: 550; line-height: 1.5; }
.button:hover { background: var(--tint); border-color: #a5b7c8; }
.button-primary { border-color: var(--ink); color: #fff; background: var(--ink); }
.button-primary:hover { background: #2a4665; border-color: #2a4665; }
.button:disabled { cursor: default; color: #7a8792; background: #f5f7f9; }
.publication-links .button.is-dark { min-height: 46px; padding: 10px 24px; border-color: transparent; color: #fff; background: #363636; font-size: 1.125rem; font-weight: 400; gap: 10px; }
.publication-links .button.is-rounded { border-radius: 999px; }
.publication-links .button.is-dark:hover:not(:disabled) { background: #292929; }
.publication-links .button.is-dark:disabled { color: #fff; background: #363636; }
.publication-links .icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 22px; }

.section { padding: 88px 0; }
.section-heading { margin-bottom: 36px; }
.section-heading h2 { margin: 0 0 16px; font-size: 2.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -.8px; text-wrap: balance; }
.section-heading p { margin: 0; color: var(--muted); max-width: 850px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.centered { text-align: center; }
.centered p { margin-inline: auto; }
.gallery-section { padding-top: 28px; }
.gallery-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; max-width: 1000px; margin: 0 auto 28px; }
.gallery-note { color: var(--muted); font-size: 1rem; margin: 0; }
.segmented { display: inline-flex; gap: 4px; max-width: 100%; padding: 5px; border-radius: 8px; background: #eef3f7; overflow-x: auto; }
.segmented button { flex: 0 0 auto; min-height: 46px; border: 0; padding: 10px 18px; background: transparent; border-radius: 5px; color: var(--muted); font-size: 1.0625rem; font-weight: 550; line-height: 1.5; white-space: nowrap; }
.segmented button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(24 43 66 / 10%); }
.image-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 1000px; margin: 0 auto; }
.sample { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.sample figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 1.125rem; font-weight: 600; line-height: 1.5; margin-bottom: 14px; }
.sample figcaption span { color: var(--muted); font-size: 1rem; font-weight: 450; }
.sample.updated figcaption { color: var(--blue); }
.image-button { display: block; width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; border-radius: 6px; }
.sample .image-button { margin-top: auto; overflow: hidden; background: #edf1f4; }
.sample img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.query { max-width: 1000px; margin: 24px auto 0; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.query-label { display: block; color: var(--muted); font-size: .9375rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.query p { margin: 0; font-size: 1.25rem; line-height: 1.7; }
.example-picker { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; max-width: 1000px; margin: 24px auto 0; }
.example-picker button { display: flex; align-items: center; gap: 12px; min-height: 64px; border: 1px solid transparent; border-radius: 6px; padding: 8px 14px 8px 8px; background: #fff; color: var(--muted); font-size: 1rem; line-height: 1.45; text-align: left; }
.example-picker button[aria-pressed="true"] { color: var(--blue); border-color: #aec9e0; background: var(--tint); }
.example-picker img { width: 48px; height: 48px; flex-shrink: 0; object-fit: cover; border-radius: 3px; }
.caption { margin: 24px auto 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.75; max-width: 1000px; }

.takeaways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.takeaway { padding: 34px 40px; }
.takeaway + .takeaway { border-left: 1px solid var(--line); }
.takeaway-label { margin: 0 0 12px; font-size: 1.0625rem; line-height: 1.5; color: var(--muted); }
.takeaway-value { margin: 0; font-size: 2.75rem; font-weight: 600; line-height: 1.2; letter-spacing: -1.2px; color: var(--blue); white-space: nowrap; }
.takeaway-value span { color: var(--muted); font-size: 1.875rem; font-weight: 400; }
.takeaway:last-child .takeaway-value { color: var(--orange); }
.takeaway p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 1.125rem; line-height: 1.65; }
.prose { color: var(--muted); font-size: 1.25rem; line-height: 1.8; }
.prose strong { color: var(--ink); font-weight: 600; }
.abstract { padding: 72px 0 0; }
.abstract h2 { margin: 0 0 24px; font-size: 2.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -.8px; text-align: center; }
.paper-figure { margin: 0; }
.paper-figure img { width: 100%; }
.paper-figure figcaption { max-width: 850px; color: var(--muted); font-size: 1.0625rem; line-height: 1.75; margin-top: 20px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 40px; }
.step-number { font-size: .9375rem; font-weight: 600; letter-spacing: .7px; color: var(--blue); }
.steps h3 { font-size: 1.375rem; line-height: 1.4; margin: 10px 0 14px; font-weight: 600; }
.steps p { font-size: 1.125rem; line-height: 1.75; margin: 0; color: var(--muted); }
.ase-section { background: var(--tint); }
.ase-section .paper-figure { background: #fff; padding: 20px; border-radius: 6px; }

.results-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.results-tabs button { flex-shrink: 0; min-height: 52px; padding: 14px 0; border: 0; border-bottom: 3px solid transparent; background: transparent; font-size: 1.125rem; color: var(--muted); font-weight: 550; line-height: 1.5; white-space: nowrap; }
.results-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 1.125rem; line-height: 1.55; white-space: nowrap; font-variant-numeric: tabular-nums; }
th, td { padding: 18px 20px; text-align: right; border-bottom: 1px solid var(--line); }
thead th { background: var(--tint); color: var(--muted); font-size: 1rem; font-weight: 600; }
th:first-child { width: 36%; min-width: 260px; text-align: left; white-space: normal; }
#results-ood table { min-width: 1000px; }
#results-ood th:first-child { width: 24%; min-width: 220px; }
tbody th { font-weight: 450; }
tbody tr:last-child > * { border-bottom: 0; }
tr.divider > * { border-top: 2px solid #c9d8e4; }
tr.highlight > * { background: #edf5fc; }
td strong { color: var(--blue); font-weight: 700; }
.result-summary { max-width: 1000px; font-size: 1.125rem; line-height: 1.8; color: var(--muted); margin: 24px 0 0; }
.result-summary strong { color: var(--ink); font-weight: 600; }
.score-note { max-width: 1000px; margin: 24px 0 0; font-size: 1rem; line-height: 1.75; color: var(--muted); }

.citation-section { max-width: 1000px; padding-top: 0; }
.citation-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.citation-header h2 { font-size: 2.25rem; margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -.8px; }
.citation-header button { min-width: 130px; }
pre { margin: 0; padding: 28px; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.85; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.copy-status { min-height: 28px; margin: 10px 0 0; color: var(--muted); font-size: 1rem; }
.footer { padding: 56px 0 64px; background: #fafafa; border-top: 1px solid var(--line); color: var(--muted); font-size: 1.125rem; line-height: 1.8; }
.footer-icons { display: flex; justify-content: center; gap: 16px; margin-bottom: 28px; }
.footer .icon-link { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: #363636; font-size: 28px; text-decoration: none; }
.footer .icon-link:hover { background: #ececec; color: var(--blue); }
.footer-content p { margin: 0 0 24px; }
.footer-content p:last-child { margin-bottom: 0; }
.footer-content strong { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 32px; margin-top: 28px; font-size: 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

.lightbox { max-width: min(1400px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); padding: 20px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); }
.lightbox::backdrop { background: rgb(14 25 40 / 78%); }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.lightbox-toolbar p { margin: 0; font-size: 1rem; line-height: 1.5; }
.lightbox-toolbar button { min-height: 44px; padding: 8px 18px; }
.lightbox img { max-height: calc(100dvh - 160px); max-width: 100%; width: auto; margin-inline: auto; object-fit: contain; }
body:has(.lightbox[open]) { overflow: hidden; }

@media (max-width: 900px) {
  .container { width: calc(100% - 48px); }
  .takeaway { padding: 28px 24px; }
  .takeaway-value { font-size: 2.25rem; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps p { max-width: 720px; }
}

@media (max-width: 600px) {
  body { font-size: 1.125rem; }
  .container { width: calc(100% - 32px); }
  .hero { padding: 40px 0 44px; }
  h1 { font-size: clamp(2rem, 7.5vw, 2.625rem); letter-spacing: -.6px; margin-bottom: 28px; }
  .publication-authors { font-size: 1.25rem; gap: 6px 10px; }
  .publication-affiliations { font-size: 1.125rem; margin-top: 20px; }
  .publication-affiliations .author-block { white-space: normal; }
  .affiliation-row { gap: 8px 16px; }
  .affiliation-row + .affiliation-row { margin-top: 8px; }
  .author-notes { font-size: 1rem; margin-top: 20px; }
  .publication-links { gap: 10px; }
  .publication-links .button.is-dark { padding: 10px 20px; font-size: 1.0625rem; }
  .section { padding: 60px 0; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2, .abstract h2, .citation-header h2 { font-size: 1.875rem; letter-spacing: -.5px; }
  .section-heading p { font-size: 1.125rem; }
  .eyebrow { font-size: .9375rem; letter-spacing: 1px; }
  .gallery-section { padding-top: 16px; }
  .gallery-toolbar { align-items: stretch; gap: 16px; margin-bottom: 24px; }
  .segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .segmented button { min-width: 0; min-height: 72px; font-size: 1rem; padding: 12px 2px; white-space: normal; }
  .gallery-note { font-size: 1rem; }
  .image-pair { gap: 16px; }
  .sample figcaption { font-size: 1.0625rem; }
  .sample figcaption span { font-size: 1rem; }
  .query p { font-size: 1.125rem; }
  .example-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .example-picker button { min-width: 0; padding: 8px; font-size: 1rem; gap: 8px; }
  .example-picker img { width: 40px; height: 40px; }
  .caption, .paper-figure figcaption { font-size: 1rem; }
  .takeaways { grid-template-columns: 1fr; }
  .takeaway { padding: 28px 12px; }
  .takeaway + .takeaway { border-left: 0; border-top: 1px solid var(--line); }
  .takeaway-value { font-size: 2.375rem; }
  .takeaway-value span { font-size: 1.625rem; }
  .takeaway-label { font-size: 1rem; }
  .takeaway p:last-child { font-size: 1.125rem; }
  .abstract { padding-top: 56px; }
  .prose { font-size: 1.125rem; }
  .steps { margin-top: 32px; }
  .steps h3 { font-size: 1.25rem; }
  .ase-section .paper-figure { padding: 8px; }
  .results-tabs { gap: 24px; }
  .results-tabs button { font-size: 1.0625rem; }
  table { font-size: 1.0625rem; }
  th, td { padding: 16px; }
  .result-summary { font-size: 1.125rem; }
  .citation-section { padding-top: 0; }
  .citation-header { gap: 12px; }
  .citation-header .button { padding-inline: 16px; }
  pre { padding: 20px; font-size: .9375rem; }
  .footer { padding: 44px 0 48px; }
  .lightbox { padding: 16px; }
  .lightbox-toolbar { align-items: flex-start; gap: 12px; }
  .lightbox-toolbar button { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
