:root {
  --ink: #10243d;
  --muted: #617188;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: #dce4ee;
  --blue: #1769e0;
  --blue-dark: #0b4daf;
  --cyan: #35c4d7;
  --orange: #ff8959;
  --yellow: #f3c35b;
  --shadow: 0 24px 70px rgba(23, 56, 94, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 780;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.brand-mark::before {
  top: -5px;
  right: -5px;
}

.brand-mark::after {
  bottom: -5px;
  left: -5px;
  background: var(--cyan);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--blue);
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: 40px;
  padding: 74px 0 84px;
}

.journal {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .99;
}

.lead {
  max-width: 690px;
  margin-bottom: 26px;
  color: #3b4d63;
  font-size: 20px;
  line-height: 1.58;
}

.authors {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 15px;
}

.actions,
.citation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid rgba(23, 105, 224, .25);
  outline-offset: 3px;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(23, 105, 224, .23);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button.quiet {
  color: var(--blue);
  background: transparent;
}

.doi {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-visual svg {
  width: 100%;
  max-width: 620px;
  height: auto;
}

.community path {
  opacity: .13;
}

.community-a path {
  fill: var(--cyan);
}

.community-b path {
  fill: var(--yellow);
}

.community-c path {
  fill: var(--orange);
}

.edges path {
  fill: none;
  stroke: #8292a5;
  stroke-linecap: round;
  stroke-width: 3;
}

.nodes circle {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 4;
}

.nodes .feature-node {
  fill: var(--blue);
  stroke: var(--white);
  stroke-width: 5;
}

.visual-label rect {
  fill: var(--white);
}

.visual-label circle {
  fill: var(--blue);
}

.visual-label text {
  fill: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.proof-strip div {
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
}

.proof-strip span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.method-section,
.evidence-section,
.citation-section,
.followup-section {
  padding-block: 118px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 58px;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.07;
}

.section-heading p,
.evidence-copy > p,
.followup-section p {
  color: var(--muted);
  font-size: 19px;
}

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

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

.method-flow .step {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 760;
}

.method-flow h3 {
  margin-bottom: 7px;
  font-size: 23px;
  letter-spacing: -.02em;
}

.method-flow p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
}

.evidence-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--ink);
}

.evidence-copy ul {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-copy li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: 15px;
}

.evidence-copy > p {
  color: #b7c4d3;
}

.result-panel {
  align-self: center;
  padding: 50px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-label {
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.result-panel h3 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.18;
}

.result-panel p {
  color: var(--muted);
}

.result-panel a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.citation-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 38px;
  color: #263a52;
  font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.citation-actions {
  padding: 24px 38px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.copy-status {
  min-height: 24px;
  margin: 0;
  padding: 0 38px 20px;
  color: var(--blue);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.followup-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.followup-section div {
  max-width: 760px;
}

.followup-section a {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  gap: 22px;
}

footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual svg {
    max-width: 480px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .evidence-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .followup-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  main > section,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    height: 70px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 20px;
    padding: 30px 0 70px;
  }

  .hero-visual svg {
    max-width: 360px;
  }

  .journal {
    margin-bottom: 16px;
    font-size: 11px;
  }

  h1 {
    font-size: 47px;
  }

  .lead {
    font-size: 17px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .proof-strip {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .proof-strip div {
    min-height: 130px;
    padding: 20px;
  }

  .proof-strip strong {
    font-size: 30px;
  }

  .method-section,
  .evidence-section,
  .citation-section,
  .followup-section {
    padding-block: 78px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  h2 {
    font-size: 39px;
  }

  .method-flow li {
    grid-template-columns: 48px 1fr;
    gap: 10px;
  }

  .evidence-section {
    width: 100%;
    padding-inline: 16px;
  }

  .result-panel {
    padding: 30px 24px;
  }

  .result-panel h3 {
    font-size: 29px;
  }

  pre {
    padding: 24px;
    font-size: 12px;
  }

  .citation-actions {
    padding: 20px 24px;
  }

  .copy-status {
    padding-inline: 24px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 28px;
  }
}

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

  .button {
    transition: none;
  }
}
