:root {
  --ink: #18221f;
  --ink-soft: #4d5b56;
  --paper: #ffffff;
  --page: #f6f7f4;
  --line: #d9dfda;
  --teal: #126b60;
  --teal-soft: #e1efea;
  --orange: #e67535;
  --orange-soft: #fbe8dd;
  --blue: #315f8a;
  --blue-soft: #e6edf4;
  --yellow-soft: #fff2c9;
  --max-width: 1060px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 82px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.58;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(24, 34, 31, 0.12);
  background: rgba(246, 247, 244, 0.96);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  line-height: 1;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 650;
}

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

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

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 34px;
  text-align: center;
}

.eyebrow,
.section-index,
.role-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1080px;
  margin: 0 auto 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-weight: 520;
  line-height: 1.08;
}

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

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 520;
  line-height: 1.14;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.25;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  max-width: 1000px;
  margin: 0 auto 12px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 650;
}

.authors a:hover,
.authors a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

sup {
  font-size: 0.66em;
  vertical-align: super;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 15px;
}

.affiliations p {
  margin-bottom: 3px;
}

.affiliations .author-notes {
  flex-basis: 100%;
  margin-top: 6px;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.button,
.copy-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 720;
}

.button-primary {
  color: #fff;
  background: var(--ink);
}

.button-secondary {
  color: var(--ink);
  background: var(--paper);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--teal);
  border-color: var(--teal);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
}

.hero-figure {
  width: min(840px, calc(100% - 96px));
  margin: 8px auto 0;
  padding-bottom: 42px;
}

.hero-figure img {
  width: 100%;
}

figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: end;
}

.split-heading > p {
  padding-bottom: 8px;
}

.role-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: stretch;
}

.role {
  padding: 30px 32px 32px;
  border-top: 4px solid;
  background: var(--paper);
}

.role-main {
  border-color: var(--orange);
}

.role-wrist {
  border-color: var(--blue);
}

.role-main .role-kicker {
  color: #b5521e;
}

.role-wrist .role-kicker {
  color: var(--blue);
}

.role p:not(.role-kicker) {
  color: var(--ink-soft);
}

.join-symbol {
  display: grid;
  place-items: center;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.principle {
  max-width: 780px;
  margin: 26px auto 0;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  text-align: center;
}

.method-section,
.evidence-section {
  background: var(--page);
}

.paper-figure {
  margin: 0;
}

.paper-figure img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
}

.architecture-figure {
  width: min(760px, 100%);
  margin: 0 auto;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto 54px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 126px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  font-weight: 520;
  line-height: 1;
}

.metric strong span {
  font-size: 0.48em;
}

.metric p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.metric-accent {
  background: var(--yellow-soft);
}

.result-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
  margin-bottom: 64px;
}

.result-copy p:not(.section-index) {
  color: var(--ink-soft);
}

.compact-figure {
  max-width: 520px;
  margin-left: auto;
}

.landscape-figure {
  width: min(780px, 100%);
  margin: 0 auto 60px;
}

.failure-band {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}

.failure-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  column-gap: 40px;
  align-items: start;
  margin-bottom: 24px;
}

.failure-copy .section-index {
  grid-column: 1;
}

.failure-copy h3 {
  grid-column: 1;
}

.failure-copy > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--ink-soft);
}

.failure-band img {
  width: 100%;
  background: var(--paper);
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.62fr);
  gap: 24px;
  align-items: start;
  width: min(820px, 100%);
  margin: 0 auto;
}

.heatmap-figure {
  max-width: 350px;
  justify-self: end;
}

.citation-section pre {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  overflow-x: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: #26352f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre;
}

.copy-button {
  justify-self: end;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

footer {
  display: block;
  padding: 30px max(24px, calc((100% - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 13px;
}

footer p {
  margin: 0;
}

@media (max-width: 920px) {
  h1 {
    font-size: 45px;
  }

  .split-heading,
  .result-block,
  .failure-copy,
  .evidence-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .failure-copy > *,
  .failure-copy > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .heatmap-figure,
  .compact-figure {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    justify-self: center;
  }

  .metric-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 0 18px;
  }

  nav {
    display: none;
  }

  .hero-inner,
  .section {
    width: min(100% - 30px, var(--max-width));
  }

  .hero-inner {
    padding-top: 52px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  h2 {
    font-size: 31px;
  }

  h3 {
    font-size: 20px;
  }

  .authors {
    gap: 4px 12px;
    font-size: 15px;
  }

  .hero-figure {
    width: calc(100% - 30px);
  }

  .hero-figure img {
    width: 100%;
  }

  .hero-figure figcaption {
    width: calc(100% - 30px);
    margin-right: auto;
    margin-left: auto;
  }

  .section {
    padding: 64px 0;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .join-symbol {
    height: 52px;
  }

  .join-symbol span {
    transform: rotate(45deg);
  }

  .role {
    padding: 24px 22px;
  }

  .metric {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 132px;
  }

  .metric strong {
    font-size: 34px;
  }

  footer {
    display: block;
    padding: 24px 18px;
  }

}

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