:root {
  color-scheme: light;
  --text: #262a30;
  --muted: #535c67;
  --accent: #2a517c;
  --line: #dfe5eb;
  --surface: #f5f7fa;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 16px/1.65 var(--font);
}

h1, h2, p, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.page {
  width: min(900px, calc(100% - 48px));
  margin-inline: auto;
}

.skip, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}

.skip:focus {
  z-index: 1;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 8px 12px;
  background: #fff;
}

.masthead {
  padding-block: clamp(40px, 6vw, 76px) 34px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

h1 {
  max-width: 850px;
  margin-inline: auto;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 18px;
  margin: 23px 0 4px;
  padding: 0;
  list-style: none;
  font-size: 17px;
  font-weight: 560;
}

.authors li { white-space: nowrap; }
.authors a { text-decoration: none; }
.affiliation, .equal { color: var(--muted); font-size: 14px; }
.equal { margin-top: 2px; }

.resources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 21px;
}

.resources a, .resource-placeholder, .citation-heading button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 15px;
  border: 1px solid #d1dae4;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 570;
  text-decoration: none;
}

.citation-heading button:hover { background: var(--surface); }
.resources a { border-color: var(--accent); background: var(--accent); color: #fff; }
.resources a:hover { background: #204265; }
.resource-placeholder { background: var(--surface); color: var(--muted); }

main.page { padding-bottom: 60px; }
.section { margin-top: 40px; scroll-margin-top: 24px; }

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 680;
  letter-spacing: -.025em;
  line-height: 1.25;
}

video {
  width: 100%;
  aspect-ratio: 15 / 8;
  margin-top: 23px;
  background: #111;
  border-radius: 4px;
  scroll-margin-top: 24px;
}

.diagram { margin-top: 20px; }
.diagram img, .results img { width: 100%; }

.results {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.map-reuse { margin-top: 26px; }
.map-reuse a { display: block; max-width: 620px; margin-inline: auto; }

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.citation-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.citation-heading h2 { margin: 0; }
.citation-heading button { min-height: 34px; cursor: pointer; }

pre {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  overflow: auto;
}

code { font: 13px/1.6 ui-monospace, "SF Mono", Consolas, monospace; }

@media (max-width: 540px) {
  .page { width: calc(100% - 32px); }
  .masthead { padding-block: 34px 26px; }
  .authors { column-gap: 12px; font-size: 15px; }
  .section { margin-top: 30px; }
}

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