:root {
  color-scheme: light;
  --ink: #111311;
  --muted: #656a65;
  --signal: #c92536;
  --line: #dfe2de;
  --soft: #f5f6f4;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 5px;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.site-header a { text-decoration: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.brand img { object-fit: contain; }

nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
}

nav a:hover { color: var(--ink); }

.hero {
  position: relative;
  display: grid;
  min-height: 455px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 44px 0;
}

.hero-mascot {
  display: block;
  width: min(100%, 440px);
  height: auto;
  justify-self: end;
  mix-blend-mode: multiply;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--signal);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { letter-spacing: 0; }

h1 {
  margin: 0;
  font-size: 76px;
  font-weight: 750;
  line-height: 1;
}

h1 span { color: var(--signal); }

.subtitle {
  max-width: 680px;
  margin: 18px 0 16px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.authors {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.author-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

sup {
  color: var(--signal);
  font-size: 0.72em;
  font-weight: 700;
}

.hero-links {
  display: flex;
  gap: 22px;
  margin-top: 22px;
}

.hero-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hero-links a:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.hero-links img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.overview,
.content-section,
.release,
.reference {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.overview > .eyebrow,
.content-section > .eyebrow,
.release > .eyebrow,
.reference > .eyebrow { padding-top: 7px; }

.section-copy h2 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: 31px;
  font-weight: 650;
  line-height: 1.2;
}

.section-copy { min-width: 0; }

.section-copy > p {
  max-width: 790px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metrics div {
  min-height: 126px;
  padding: 26px 24px 22px 0;
}

.metrics div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.metrics strong,
.metrics span { display: block; }

.metrics strong {
  margin-bottom: 9px;
  font-size: 25px;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.method-flow {
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-flow li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.method-flow li > span {
  padding-top: 4px;
  color: var(--signal);
  font-size: 11px;
}

.method-flow h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.method-flow p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.paper-figure {
  min-width: 0;
  margin: 30px 0 0;
}

.paper-figure a {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
}

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

.result-figure {
  max-width: 690px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 24px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  padding-left: 0;
  text-align: left;
}

.highlight { background: var(--soft); }
.highlight td:first-child { padding-left: 12px; }

.result-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-notes div {
  padding: 19px 20px 19px 0;
}

.result-notes div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.result-notes strong,
.result-notes span { display: block; }

.result-notes strong {
  margin-bottom: 7px;
  font-size: 18px;
}

.result-notes span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.subheading {
  margin: 30px 0 0;
  font-size: 18px;
}

.compact-table { margin-top: 12px; }
.compact-table table { min-width: 520px; }

.section-copy .caveat {
  max-width: 820px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.55;
}

.release-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 25px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.release-scope div { padding: 18px 18px 18px 0; }

.release-scope div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.release-scope strong,
.release-scope span { display: block; }

.release-scope strong {
  margin-bottom: 7px;
  font-size: 14px;
}

.release-scope span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.resource-list { border-bottom: 1px solid var(--line); }

.resource-list a {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none;
}

.resource-list a span:first-child { font-weight: 700; }
.resource-list a span:last-child { color: var(--muted); }
.resource-list a:hover span:last-child { color: var(--signal); }

.reference-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.copy-button:hover {
  border-color: var(--signal);
  color: var(--signal);
}

pre {
  max-width: 100%;
  margin: 4px 0 0;
  padding: 20px;
  overflow-x: auto;
  border-left: 3px solid var(--signal);
  background: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

footer a { text-underline-offset: 4px; }

@media (max-width: 820px) {
  .hero {
    min-height: 430px;
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .hero-mascot { width: 330px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics div:nth-child(3) { border-left: 0; }
  .metrics div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .site-header,
  main,
  footer { width: calc(100% - 36px); }

  .site-header { min-height: 58px; }
  nav { gap: 14px; font-size: 12px; }

  .hero {
    display: block;
    min-height: auto;
    padding: 30px 0 0;
    text-align: center;
  }

  .hero-copy { padding: 0; }

  .hero-mascot {
    width: min(78%, 310px);
    margin: 14px auto 0;
  }

  h1 { font-size: 58px; }

  .subtitle {
    margin-top: 14px;
    font-size: 20px;
  }

  .authors { font-size: 13px; }
  .hero-links { justify-content: center; gap: 18px; }
  .hero-links a { gap: 7px; }

  .overview,
  .content-section,
  .release,
  .reference {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 34px 0;
  }

  .overview > .eyebrow,
  .content-section > .eyebrow,
  .release > .eyebrow,
  .reference > .eyebrow { padding-top: 0; }

  .section-copy h2 { font-size: 26px; }
  .section-copy > p { font-size: 15px; }

  .result-notes,
  .release-scope { grid-template-columns: 1fr; }

  .result-notes div + div,
  .release-scope div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .resource-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .reference-heading { align-items: center; }
  pre { padding: 16px; font-size: 11px; }

  .pipeline-figure img {
    width: 760px;
    max-width: none;
  }
}

@media (max-width: 430px) {
  nav a:first-child { display: none; }
  .hero-links { gap: 12px; }
  .hero-links a { font-size: 12px; }
  .hero-links img { width: 16px; height: 16px; }
  .metrics { grid-template-columns: 1fr; }

  .metrics div,
  .metrics div + div {
    min-height: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metrics div:first-child { border-top: 0; }
  .reference-heading { align-items: flex-start; }
}

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