:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5c686d;
  --paper: #ffffff;
  --soft: #f2f4f2;
  --line: #d7ddda;
  --teal: #087c79;
  --teal-dark: #075b5a;
  --coral: #c9553d;
  --gold: #e5b84a;
  --deep: #182b2e;
  --deep-soft: #243c3e;
  --max-width: 1180px;
  --content-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.narrow-shell {
  max-width: var(--content-width);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 221, 218, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.wordmark-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  padding: 76px 0 38px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1020px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 600;
}

.institutions {
  margin: 24px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.authors {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.resource-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.resource-link {
  min-height: 38px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.resource-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.resource-link.is-pending {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.resource-link small {
  color: #7d878a;
  font-size: 10px;
  font-weight: 650;
}

.resource-link:not(.is-pending) small {
  color: #c4cdcf;
}

.hero-demo {
  padding-bottom: 92px;
}

.section-heading.compact-heading {
  max-width: none;
  margin-bottom: 20px;
  text-align: left;
}

.lead {
  max-width: 820px;
  margin: 24px auto 0;
  color: #39484c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.55;
  text-align: center;
}

.band {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.band-soft {
  background: var(--soft);
}

.band-ink {
  border-top: 0;
  background: var(--deep);
  color: #f5f7f6;
}

.band-ink .section-heading p,
.band-ink .media-item p {
  color: #b9c7c7;
}

.band-ink .eyebrow {
  color: #f2c55c;
}

.band-ink .media-frame {
  border-color: #486163;
  background: var(--deep-soft);
}

.band-results {
  border-color: #c7d6d3;
  background: #e9f0ee;
}

.band-citation {
  background: #f6f1e6;
}

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

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.split-heading > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

.split-heading > p {
  margin: 0 0 3px;
}

.media-grid {
  display: grid;
  gap: 34px 20px;
}

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

.media-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.media-item {
  min-width: 0;
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #cbd3d0;
  border-radius: 6px;
  background: #e5e9e7;
}

.media-frame-hero {
  border-color: #bfc9c5;
  box-shadow: 0 18px 50px rgba(23, 33, 38, 0.12);
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  gap: 15px;
  color: var(--ink);
  background: #e5e9e7;
}

.band-ink .media-placeholder {
  color: #f5f7f6;
  background: var(--deep-soft);
}

.media-placeholder::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 3px;
  background: var(--coral);
}

.media-index {
  min-width: 44px;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.band-ink .media-index {
  color: #65c8c1;
}

.media-placeholder strong,
.media-placeholder span {
  display: block;
}

.media-placeholder strong {
  font-size: 17px;
  line-height: 1.2;
}

.media-placeholder div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.band-ink .media-placeholder div > span {
  color: #b9c7c7;
}

.media-item h3 {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.media-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(23, 33, 38, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #e2e6e4;
  text-align: center;
  white-space: nowrap;
}

thead th {
  background: #edf1ef;
  color: #3e4b4f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: normal;
}

tbody th {
  text-align: left;
  font-weight: 700;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table {
  min-width: 850px;
}

.comparison-table .yes {
  color: var(--teal-dark);
  font-size: 17px;
  font-weight: 900;
}

.comparison-table .no {
  color: #9ca5a5;
  font-size: 15px;
}

tr.ours th,
tr.ours td {
  background: #e2f0ed;
  font-weight: 800;
}

.paper-figure {
  margin: 0;
}

.paper-figure > a {
  display: block;
  line-height: 0;
}

.paper-figure img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.paper-figure figcaption {
  max-width: 920px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.result-callouts {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #9bb8b3;
  border-bottom: 1px solid #9bb8b3;
}

.result-callouts div {
  min-width: 0;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid #9bb8b3;
}

.result-callouts div:last-child {
  border-right: 0;
}

.result-callouts strong {
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 600;
  white-space: nowrap;
}

.result-callouts span {
  color: #45575a;
  font-size: 12px;
  line-height: 1.35;
}

.results-table {
  min-width: 1060px;
}

.results-table thead tr:first-child th:not(:first-child) {
  color: var(--teal-dark);
}

.results-table .best,
.results-table .best-other {
  font-weight: 850;
}

.results-table .best {
  color: var(--teal-dark);
}

.table-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.abstract-copy {
  margin: 0;
  color: #334247;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
}

.abstract-copy p {
  margin: 0 0 16px;
}

.abstract-copy p:last-child {
  margin-bottom: 0;
}

pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid #d6ccb7;
  border-radius: 6px;
  background: #fffdf8;
  color: #263236;
  font: 13px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.footer-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

.footer-inner > img {
  width: min(390px, 54%);
  height: auto;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .split-heading > p {
    margin-top: 0;
  }

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

  .result-callouts {
    grid-template-columns: 1fr;
  }

  .result-callouts div {
    border-right: 0;
    border-bottom: 1px solid #9bb8b3;
  }

  .result-callouts div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .section-shell,
  .header-inner {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .header-inner {
    min-height: 54px;
  }

  .wordmark {
    font-size: 12px;
  }

  .wordmark-mark {
    width: 26px;
    height: 26px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .hero {
    padding: 46px 0 30px;
  }

  .hero h1 {
    font-size: 31px;
    line-height: 1.16;
  }

  .hero h1 span {
    font-size: 31px;
  }

  .institutions {
    font-size: 15px;
  }

  .hero-demo {
    padding-bottom: 64px;
  }

  .lead {
    font-size: 18px;
  }

  .band {
    padding: 62px 0;
  }

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

  .section-heading h2 {
    font-size: 29px;
  }

  .media-grid-two,
  .media-grid-three,
  .media-grid-four {
    grid-template-columns: 1fr;
  }

  .media-grid {
    gap: 28px;
  }

  .media-placeholder {
    padding: 14px;
  }

  .media-index {
    min-width: 36px;
    font-size: 24px;
  }

  .abstract-copy {
    font-size: 17px;
  }

  .footer-inner {
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
  }

  .footer-inner > img {
    width: min(320px, 100%);
  }
}

@media (max-width: 420px) {
  .site-nav a:first-child {
    display: none;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero h1 span {
    font-size: 27px;
  }
}

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