:root {
  color-scheme: light;
  --ink: #15304a;
  --text: #283b4b;
  --muted: #596b78;
  --accent: #09657a;
  --line: #dce5e9;
  --pale: #f2f7f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #093e4b; }
a:focus-visible, button:focus-visible, pre:focus-visible {
  outline: 3px solid #b45b14;
  outline-offset: 5px;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }
h1, h2, p, figure, pre { margin: 0; }
h1, h2 { color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -.035em; }
p + p { margin-top: 1rem; }
.page { width: min(1120px, calc(100% - 6rem)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  padding: .6rem 1rem;
  background: #fff;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0; }
.project-name { font-size: .85rem; font-weight: 650; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; column-gap: 1.75rem; }
nav a { font-size: .85rem; color: var(--muted); text-decoration: none; }
.hero { padding: 3.25rem 0 3.4rem; }
.publication { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.5rem; }
.badge {
  border: 1px solid #b5c9d1;
  border-radius: 5px;
  padding: .2rem .65rem;
  font-size: .78rem;
  font-weight: 650;
  color: var(--accent);
}
.publication-year { font-size: .8rem; color: var(--muted); }
h1 {
  max-width: 27ch;
  font-size: clamp(2.35rem, 4.7vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 720;
  text-wrap: balance;
}
.authors { display: flex; flex-wrap: wrap; gap: .45rem .65rem; margin-top: 1.8rem; font-size: 1.1rem; }
.authors a { font-weight: 650; color: var(--ink); text-decoration: none; }
.authors a:hover { text-decoration: underline; }
.affiliation { margin-top: .35rem; max-width: 70ch; font-size: .87rem; color: var(--muted); }
.hero-summary { margin-top: 1.65rem; max-width: 65ch; font-size: 1.14rem; line-height: 1.6; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.3rem; margin-top: 1.8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .62rem 1.05rem;
  color: var(--ink);
  background: #fff;
  font-size: .87rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { color: var(--ink); background: var(--pale); border-color: #9cb5bf; }
.button-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-primary:hover { background: #24465f; color: #fff; border-color: #24465f; }
.button-secondary { border-color: #afc5ce; }
.text-link { font-size: .87rem; font-weight: 600; }
.doi { margin-top: 1.1rem; font-size: .76rem; color: var(--muted); overflow-wrap: anywhere; }
.doi a { color: var(--muted); }
.instrument { padding: 1.5rem; border: 1px solid var(--line); border-radius: 10px; }
.figure-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.figure-heading a { font-size: .75rem; }
.figure-link { display: block; }
.instrument img { display: block; width: 100%; height: auto; }
figcaption { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.6; color: var(--muted); }
figcaption strong { color: var(--text); }
.section { padding: 3.4rem 0; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 1.6rem; }
.section-heading .eyebrow { margin-bottom: .65rem; }
.finding-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 3rem; }
.result-label { color: var(--muted); font-size: .85rem; }
.result-number { color: var(--accent); font-weight: 700; font-size: 3.65rem; line-height: 1.1; letter-spacing: -.045em; margin-top: .6rem; }
.result-unit { display: block; margin-top: .4rem; font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.interval { margin-top: .7rem; font-size: .83rem; color: var(--muted); }
.result > p:last-child { margin-top: 1.3rem; font-size: .92rem; }
.result-context { padding: 1.4rem 1.6rem; border-radius: 7px; background: var(--pale); font-size: .9rem; }
.scope-note { padding-top: 1rem; border-top: 1px solid #ccdde1; font-weight: 600; color: var(--ink); }
.abstract-text { max-width: 90ch; font-size: .98rem; line-height: 1.85; }
.materials > p { max-width: 83ch; }
.resource-links { display: flex; flex-wrap: wrap; gap: .6rem 1.7rem; margin-top: 1.5rem; }
.resource-links a { font-size: .87rem; font-weight: 600; }
.materials .snapshot { margin-top: 1.5rem; color: var(--muted); font-size: .82rem; }
.citation { border-bottom: 0; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.citation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.button-small { padding: .45rem .8rem; font-size: .78rem; }
.citation-code {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f9fa;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: .78rem/1.75 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.copy-status { min-height: 1.65em; margin-top: .6rem; font-size: .8rem; color: var(--accent); }
.copy-status.error { color: #9a3218; }
.site-footer { display: flex; justify-content: space-between; gap: 1.5rem 2rem; border-top: 1px solid var(--line); padding: 1.6rem 0 2.5rem; font-size: .73rem; color: var(--muted); }
.site-footer p { max-width: 55ch; }
.site-footer p + p { margin-top: 0; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .page { width: calc(100% - 3rem); }
  .site-header { padding-top: 1.4rem; }
  nav { column-gap: 1rem; }
  .hero { padding-top: 2rem; }
  h1 { font-size: clamp(2.1rem, 6vw, 3rem); }
  .finding-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .result-number { font-size: 3.4rem; }
  .citation-heading { flex-wrap: wrap; }
  .citation-heading .section-heading { margin-bottom: .9rem; }
  .citation-actions { margin-bottom: 1rem; }
  .site-footer { flex-direction: column; gap: .6rem; }
}

@media (max-width: 450px) {
  .page { width: calc(100% - 2.2rem); }
  .site-header { flex-direction: column; gap: .65rem; }
  h1 { font-size: 2.15rem; }
  .hero { padding: 1.6rem 0 2rem; }
  .hero-summary { font-size: 1rem; }
  .authors { font-size: 1rem; }
  .actions { gap: .8rem; }
  .button { padding-inline: .85rem; font-size: .82rem; }
  .actions > .text-link { margin: .2rem .15rem 0; }
  .instrument { padding: 1rem; }
  .figure-heading { flex-direction: column; gap: .45rem; }
  .section { padding: 2.4rem 0; }
  .result-context { padding: 1.2rem; }
  .citation-code { padding: 1rem; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .page { width: 100%; }
  nav, .skip-link, .citation-actions, .copy-status { display: none; }
  .hero { padding-top: 1rem; }
  h1 { font-size: 30pt; }
  .section { break-inside: avoid; padding-block: 1.5rem; }
  .instrument { break-inside: avoid; }
  a { color: inherit; }
}
