:root {
  color-scheme: light;
  --ink: #253046;
  --muted: #566176;
  --blue: #285cad;
  --purple: #7551a3;
  --line: #dce2eb;
  --surface: #f6f8fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
button { font: inherit; }
[hidden] { display: none !important; }
svg { display: block; }
sub, sup { line-height: 0; }

.navigation {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}
.navigation a { text-decoration: none; }
.navigation a:hover { color: var(--blue); text-decoration: underline; }
.wordmark { font-weight: 750; letter-spacing: 0.08em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 24px; }
.nav-links a { color: var(--muted); }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 8px 16px; background: #fff; z-index: 1; }
.skip-link:focus { top: 12px; }

.hero { max-width: 1100px; margin: 0 auto; padding: 48px 24px 44px; text-align: center; }
h1 {
  margin: 0 auto;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.035em;
}
h1 span { color: var(--blue); }
.authors { display: flex; flex-direction: column; gap: 4px; margin: 40px 0 0; color: var(--blue); font-size: 20px; line-height: 1.6; }
.author-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; margin: 0; }
.author { white-space: nowrap; }
.author sup { margin-left: 2px; color: var(--ink); font-size: 0.7em; }
.affiliations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 720px; margin: 28px auto 32px; font-size: 16px; line-height: 1.5; }
.affiliation { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.affiliation img { display: block; width: auto; height: 64px; max-width: 100%; object-fit: contain; }
.affiliation:hover { text-decoration: none; }
.affiliation:hover .affiliation-name { text-decoration: underline; }
.affiliation-name sup { margin-right: 4px; font-size: 0.7em; }
.resource-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 17px;
  border: 1px solid #363636;
  border-radius: 24px;
  background: #363636;
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.6;
  text-decoration: none;
}
a.resource-button:hover { background: #292929; border-color: #292929; text-decoration: none; }
.resource-button[aria-disabled="true"] { cursor: default; }
.resource-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wide { max-width: 1120px; margin-left: auto; margin-right: auto; }
.teaser { margin-top: 0; margin-bottom: 0; padding: 6px 24px 46px; }
.teaser a { display: block; border-radius: 8px; }
.teaser img { display: block; width: 100%; height: auto; }
figcaption { max-width: 850px; margin: 20px auto 0; color: var(--muted); text-align: center; font-size: 15px; line-height: 1.6; }
figcaption strong { color: var(--ink); }
.section { padding: 54px 24px; scroll-margin-top: 20px; }
.band { background: var(--surface); }
.prose { max-width: 800px; margin: 0 auto; }
h2 { margin: 0 0 26px; font-size: 29px; line-height: 1.3; letter-spacing: -0.025em; font-weight: 700; text-align: center; }
p { margin: 0 0 18px; }
.prose > :last-child { margin-bottom: 0; }
.method-steps { padding-left: 24px; margin: 20px 0 28px; }
.method-steps li { padding-left: 5px; margin-bottom: 12px; }
.method-steps li::marker { color: var(--blue); font-weight: 700; }
.equation-block { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 27px 12px; margin: 26px 0 20px; }
math { font-size: 1.2em; }
.method-note { color: var(--muted); font-size: 15px; }
.results-gallery { max-width: 1120px; margin: 0 auto; }
.results-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 900px; margin: 0 auto 28px; border-bottom: 2px solid var(--blue); }
.results-tabs button { position: relative; margin-bottom: -2px; padding: 13px 14px; border: 2px solid #bdcadc; border-bottom-color: var(--blue); border-radius: 8px 8px 0 0; background: #e9eef5; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.results-tabs button:hover { color: var(--blue); border-color: var(--blue); background: #dce9fa; }
.results-tabs button[aria-selected="true"] { color: #fff; border-color: var(--blue); background: var(--blue); }
.results-tabs button:focus-visible { z-index: 1; }
.result-figure { max-width: 900px; margin: 0 auto; }
.result-figure a { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: zoom-in; }
.result-figure img { display: block; width: 100%; height: auto; }
.result-figure figcaption { max-width: 900px; margin: 0 auto 20px; text-align: left; font-size: 20px; }

footer { border-top: 1px solid var(--line); padding: 26px 24px; text-align: center; color: var(--muted); font-size: 13px; }
footer p { margin-bottom: 4px; }
footer a { text-decoration: none; }

@media (max-width: 800px) {
  .author-row { display: grid; grid-template-columns: repeat(2, max-content); }
  .author-row:last-child .author:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .navigation { padding: 16px 18px; gap: 12px; }
  .nav-links { gap: 12px; font-size: 12px; }
  .wordmark { font-size: 13px; }
  .hero { padding: 34px 20px 36px; }
  .title-break { display: none; }
  .authors { font-size: 17px; margin: 32px 0 0; }
  .author-row { gap: 4px 20px; }
  .affiliations { max-width: 440px; margin: 24px auto 28px; gap: 16px; font-size: 13px; }
  .affiliation { gap: 12px; }
  .affiliation img { height: 48px; }
  .resource-button { padding: 7px 12px; gap: 7px; font-size: 14px; }
  .teaser { padding: 0 14px 35px; }
  figcaption { font-size: 13px; margin-top: 14px; }
  .results-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .results-tabs button { margin-bottom: 0; padding: 10px 8px; border-radius: 6px; border-bottom-color: #bdcadc; font-size: 14px; }
  .result-figure figcaption { font-size: 18px; }
  .result-figure a { padding: 7px; }
  .section { padding: 38px 20px; }
  h2 { font-size: 25px; margin-bottom: 22px; }
  math { font-size: 1em; }
  .equation-block { padding: 24px 8px; }
}

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