:root {
  color-scheme: light;
  --paper: #f8f9fc;
  --white: #fff;
  --ink: #17233a;
  --muted: #4f5e74;
  --line: #dce3ed;
  --accent: #304bc1;
  --accent-deep: #253b9c;
  --index: #5268b4;
  --wrap: 1120px;
  --heading: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 3px solid #6b82ef; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip-link { background: var(--ink); color: #fff; padding: 8px 14px; position: fixed; top: 10px; left: 10px; transform: translateY(-150%); z-index: 5; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); background: #f8f9fcf5; backdrop-filter: blur(12px); }
.nav-shell { width: min(1280px, calc(100% - 64px)); min-height: 65px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; font-size: 17px; font-weight: 800; letter-spacing: -.05em; }
.wordmark img { margin-right: 8px; }
.wordmark span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: clamp(17px, 3vw, 36px); }
.site-header nav a { font-size: 14px; font-weight: 630; color: var(--muted); }
.site-header nav a:hover, .nav-action:hover { color: var(--accent); }
.nav-action { font-size: 13px; font-weight: 720; white-space: nowrap; }
.nav-action span, .back-top span { margin-left: 4px; }
.nav-toggle { display: none; }

.hero {
  background: radial-gradient(ellipse at 24% 0%, #eaf2fb 0%, transparent 46%),
    radial-gradient(ellipse at 78% 12%, #f1ecf9 0%, transparent 49%), var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 86px);
}
.hero-heading { text-align: center; }
.eyebrow { color: var(--index); font-size: 11px; font-weight: 780; letter-spacing: .135em; line-height: 1.4; }
.hero-eyebrow { display: inline-flex; gap: 9px; align-items: center; padding: 7px 13px; border: 1px solid #cdd8ef; border-radius: 30px; background: #ffffff9e; }
.hero-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: #4966d0; }
.hero h1 { font: 700 clamp(58px, 9.3vw, 121px)/.99 var(--heading); letter-spacing: -.078em; margin: 13px 0 13px; padding-right: .07em; }
.hero h1 span { color: var(--accent); }
.hero-subtitle { font-size: clamp(17px, 2.45vw, 28px); font-weight: 680; letter-spacing: -.033em; }
.hero-credits { margin: 15px auto 0; max-width: 62rem; }
.hero-authors { font-size: clamp(.9375rem, 1.35vw, 1.0625rem); font-weight: 650; line-height: 1.55; text-wrap: balance; }
.hero-authors span, .hero-affiliations span { white-space: nowrap; }
.hero-credits sup { color: var(--accent-deep); font-size: .72em; line-height: 0; font-weight: 700; }
.hero-affiliations { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3px 16px; max-width: 54rem; margin: 7px auto 0; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.hero-affiliations li { text-wrap: balance; }
.hero-lede { color: var(--muted); max-width: 635px; margin: 12px auto 0; font-size: clamp(15px, 1.8vw, 19px); text-wrap: balance; }
.hero-actions { display: flex; justify-content: center; gap: 11px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; font-weight: 700; font-size: 14px; transition: background .16s, border-color .16s; }
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-deep); }
.button.secondary { background: #fff; border-color: #d3ddec; }
.button.secondary:hover { border-color: #9daed7; background: #f1f5ff; }

.specimen-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: clamp(34px, 5vw, 66px); }
.specimen { border: 1px solid var(--chip-border); border-radius: 12px; padding: 7px; background: var(--chip); transition: transform .18s ease, box-shadow .18s ease; }
.specimen:hover { transform: translateY(-4px); box-shadow: 0 11px 24px #14295d1c; }
.specimen-sage { --chip: #eaf4ef; --chip-border: #d1e3db; --chip-text: #204f42; }
.specimen-lilac { --chip: #f0edfa; --chip-border: #ddd5f0; --chip-text: #523c80; }
.specimen-peach { --chip: #fbf0e4; --chip-border: #eadbca; --chip-text: #71451c; }
.specimen-image { aspect-ratio: 1.68; position: relative; overflow: hidden; border-radius: 7px; background: #e5eaf0; }
.specimen-image img { width: 100%; height: 100%; object-fit: cover; }
.specimen-sage img { object-position: 50% 20%; }
.specimen-lilac img { object-position: 50% 96%; }
.specimen-image span { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #fcfdfff2; color: #263451; font-size: 12px; font-weight: 760; }
.specimen-caption { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--chip-text); min-height: 39px; padding: 5px 7px 1px; font-size: clamp(12px,1.6vw,15px); font-weight: 720; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin-top: 28px; padding-block: 20px 25px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; gap: 3px; padding: 2px 12px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { font: 700 clamp(27px, 4vw, 42px)/1 var(--heading); letter-spacing: -.055em; font-variant-numeric: lining-nums tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }

.abstract-section { padding-block: clamp(46px, 7vw, 82px); background: var(--white); border-bottom: 1px solid var(--line); }
.abstract-content { max-width: 820px; }
.abstract-content h2 { font: 700 clamp(34px, 5vw, 48px)/1.06 var(--heading); letter-spacing: -.05em; margin-bottom: 15px; }
.abstract-content p { color: var(--muted); font-size: 1.0625rem; line-height: 1.72; }

.section { padding-block: clamp(52px, 8vw, 99px); }
.section-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.66fr); align-items: end; gap: 28px 65px; margin-bottom: 28px; }
.section-intro h2 { font: 700 clamp(35px, 5vw, 60px)/1.03 var(--heading); letter-spacing: -.056em; text-wrap: balance; }
.section-intro .section-index { margin-bottom: 12px; }
.section-intro > p, .two-paragraphs { color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); }
.two-paragraphs p + p { margin-top: 10px; }
.two-paragraphs strong { color: var(--ink); }
.overview-figure { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.overview-figure img { width: 100%; height: auto; }
.overview-figure > a { display: block; margin: 14px; }
.overview-figure figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 16px; color: var(--muted); font-size: 13px; padding: 11px 18px; border-top: 1px solid var(--line); }
.overview-figure figcaption a { color: var(--accent); font-weight: 680; }

.examples-section { background: #edf2f9; border-block: 1px solid #dbe4ef; }
.example-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.example-tabs button { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 665; border: 1px solid #ccd8eb; color: var(--muted); padding: 8px 13px; border-radius: 7px; background: #ffffffb0; }
.example-tabs button span { font-size: 10px; opacity: .82; }
.example-tabs button:hover { background: #dce5fc; color: var(--ink); }
.example-tabs button[aria-selected=true] { background: #304bc1; border-color: #304bc1; color: #fff; }
.example-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; padding: 23px; border-radius: 12px; background: #fff; border: 1px solid #d7e0ed; }
.example-visual { display: grid; justify-items: center; min-width: 0; border-radius: 8px; overflow: hidden; background: #f0f3f8; }
.example-visual img { width: 100%; height: min(384px, 36vw); object-fit: contain; }
.example-details { align-self: center; padding-block: 18px; padding-right: 12px; }
.example-details h3 { font: 700 clamp(29px,4.1vw,48px)/1.05 var(--heading); letter-spacing: -.035em; margin: 8px 0 11px; }
.example-details > p:not(.eyebrow) { color: var(--muted); }
.answer-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.answer-buttons button { border-radius: 6px; border: 1px solid #bac8e4; background: #f6f8ff; padding: 6px 19px; min-width: 60px; color: var(--ink); font-weight: 700; }
.answer-buttons button:hover { border-color: #7f95d2; }
.answer-buttons button[data-state=correct] { background: #e4f4ea; border-color: #61a783; color: #165139; }
.answer-buttons button[data-state=incorrect] { background: #fff0ec; border-color: #d99180; color: #883923; }
.example-feedback { padding: 9px 13px; margin-top: 14px; border-radius: 6px; border: 1px solid var(--line); font-size: 14px; }
.example-feedback.is-correct { background: #edf8ef; border-color: #c7e3d0; }
.example-feedback.is-incorrect { background: #fff4ee; border-color: #eccebd; }
.example-feedback p { margin-top: 3px; color: var(--muted); }

.results-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 13px; }
.results-highlights div { display: flex; flex-direction: column; gap: 5px; background: #eaf0fc; border: 1px solid #d8e3f5; border-radius: 9px; padding: 16px; }
.results-highlights span { color: var(--muted); font-size: 13px; font-weight: 680; }
.results-highlights strong { color: var(--accent-deep); font: 700 clamp(30px, 5vw, 48px)/1 var(--heading); letter-spacing: -.045em; }
.results-highlights small { font-size: .53em; padding-left: 2px; }
.table-card, .analysis-details { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 16px; padding: 16px 19px; }
.table-toolbar h3 { font-size: 16px; line-height: 1.2; }
.table-toolbar p, .table-toolbar label, .table-note { color: var(--muted); font-size: 13px; }
.table-toolbar p { margin-top: 4px; }
.table-toolbar select { border-radius: 6px; border: 1px solid #c7d3e4; padding: 5px 7px; margin-left: 4px; background: #f7f9fc; color: var(--ink); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
th, td { text-align: right; padding: 9px 14px; border-bottom: 1px solid #e9edf3; }
thead th { font-size: 12px; color: #52617a; background: #f2f5fa; border-top: 1px solid #e5eaf3; }
th[scope=row], #results-table th:nth-child(2), .analysis-details th:first-child { text-align: left; }
th[scope=row] { font-weight: 650; }
table tr:hover { background: #f8faff; }
.human-row, .human-row:hover { background: #eef7f2; color: #275b49; }
.table-note { padding: 11px 19px; }

.analysis-section { background: #f1f4fa; border-top: 1px solid var(--line); }
.analysis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.analysis-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: clamp(16px,2.5vw,25px); background: #fff; }
.analysis-card h3 { font: 700 clamp(21px,2.6vw,29px)/1.08 var(--heading); letter-spacing: -.037em; margin: 6px 0 9px; }
.analysis-card > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.distance-summary { margin: 12px 0 0; font-size: .875rem; }
.distance-summary th, .distance-summary td { padding: 5px 4px; }
.distance-summary thead th { font-size: .875rem; }
.distance-summary thead th:first-child { text-align: left; }
.distance-summary th[scope=row] { white-space: normal; }
.analysis-link { align-self: flex-start; color: var(--accent-deep); font-size: .875rem; font-weight: 700; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
.guidance-figure { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.guidance-figure figcaption span { flex: 1 1 32rem; }
.guidance-figure figcaption strong { color: var(--ink); }
.analysis-card .swatches, .analysis-card .cue-tags { margin-top: auto; padding-top: 14px; }
.swatches, .cue-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches span { width: 21px; height: 21px; border: 1px solid #b8c3d5; border-radius: 4px; background: #111827; }
.swatches span:nth-child(2) { background: #fff; }
.swatches span:nth-child(3) { background: #d9404f; }
.swatches span:nth-child(4) { background: #279f60; }
.swatches span:nth-child(5) { background: #3866d4; }
.cue-tags span { font-size: 12px; color: var(--accent-deep); background: #eef2ff; padding: 3px 8px; border-radius: 4px; }
.analysis-details { margin-top: 13px; }
.analysis-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; font-size: 14px; font-weight: 680; }
.analysis-details > summary::-webkit-details-marker { display: none; }
.analysis-details > summary:focus-visible { outline-offset: -4px; }
.analysis-details > summary span { color: var(--accent); font-size: 19px; line-height: 1; }
.analysis-details[open] > summary span { transform: rotate(45deg); }
.analysis-details > p { color: var(--muted); font-size: 13px; padding: 0 17px 12px; }

footer { border-top: 1px solid var(--line); padding-block: 26px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.back-top { color: var(--accent-deep); font-size: 13px; font-weight: 680; }

@media (max-width: 800px) {
  .wrap, .nav-shell { width: calc(100% - 36px); }
  .nav-action { display: none; }
  .section-intro { grid-template-columns: 1fr; gap: 13px; }
  .section-intro h2 { text-wrap: initial; }
  .section-intro h2 br { display: none; }
  .example-panel { gap: 20px; padding: 17px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 66px; }
  .nav-shell { min-height: 54px; gap: 12px; flex-wrap: wrap; }
  .nav-toggle { display: block; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; font-size: 13px; font-weight: 650; }
  .site-header nav { display: none; width: 100%; flex-wrap: wrap; padding: 0 0 13px; }
  .site-header nav.is-open { display: flex; }
  .hero { padding-top: 37px; }
  .hero h1 { font-size: clamp(49px, 12vw, 76px); }
  .hero-affiliations { grid-template-columns: minmax(0, 1fr); }
  .hero-lede { margin-top: 10px; }
  .specimen-grid { gap: 7px; }
  .specimen { padding: 4px; border-radius: 8px; }
  .specimen-image { aspect-ratio: 1.04; border-radius: 5px; }
  .specimen-image span { top: 5px; left: 5px; width: 21px; height: 21px; border-radius: 4px; font-size: 9px; }
  .specimen-caption { align-items: center; min-height: 36px; line-height: 1.2; font-size: 10px; padding: 4px 3px 0; }
  .specimen-caption b { display: none; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 13px 0; margin-top: 19px; padding-block: 17px; }
  .stats div:nth-child(3) { border-left: none; }
  .stats span { font-size: 12px; }
  .example-tabs { gap: 4px; }
  .example-tabs button { padding: 5px 7px; font-size: 11px; gap: 4px; }
  .example-tabs button span { font-size: 9px; }
  .example-panel, .analysis-grid { grid-template-columns: 1fr; }
  .example-visual img { height: clamp(216px, 75vw, 340px); }
  .example-details { padding: 1px 2px 6px; }
  .results-highlights { gap: 6px; }
  .results-highlights div { padding: 9px 7px; }
  .results-highlights span { font-size: 10px; line-height: 1.25; }
  .results-highlights strong { font-size: clamp(23px, 7vw, 38px); }
  .table-toolbar, .table-note { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
