:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #566274;
  --paper: #f7f7f5;
  --soft: #f7f7f5;
  --warm-bg: #e8e8e2;
  --line: #cfcfc8;
  --blue: #205493;
  --teal: #00838a;
  --code-green: #00592e;
  --release-red: #d60036;
  --we: #53225c;
  --d: #d60036;
  --s: #00592e;
  --i: #b8b8ff;
  --t: #000000;
  --c: #ebd999;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: var(--blue);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(22px, calc((100vw - 1160px) / 2));
  background: rgba(247, 247, 245, 0.94);
  border-bottom: 1px solid rgba(207, 207, 200, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  font-size: 0.94rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

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

main {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

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

.venue {
  margin: 0 0 10px;
  color: var(--i);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(3.7rem, 11vw, 7.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.paper-title {
  max-width: 860px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(1.22rem, 2.1vw, 1.9rem);
  font-weight: 720;
  line-height: 1.24;
}

.authors {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.authors sup,
.affiliations sup {
  margin-left: 1px;
  color: var(--we);
  font-size: 0.72em;
  font-weight: 820;
}

.affiliations {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-weight: 760;
}

.link-row a:first-child {
  color: #ffffff;
  background: var(--we);
  border-color: var(--we);
}

.link-row a:nth-child(2) {
  color: #ffffff;
  background: var(--code-green);
  border-color: var(--code-green);
}

.link-row a:nth-child(3) {
  color: #ffffff;
  background: var(--release-red);
  border-color: var(--release-red);
}

.teaser {
  padding: 16px 0 30px;
}

.teaser img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.section {
  padding: 54px 0;
}

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

.about-section {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 46px;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.24;
}

.section-heading p,
.lead-copy p,
.method-grid p,
.taxonomy-card p {
  color: var(--muted);
  font-size: 1.03rem;
}

.lead-copy {
  max-width: 880px;
}

.lead-copy strong {
  color: var(--ink);
  font-weight: 760;
}

.lead-copy p:last-child,
.method-grid p:last-child,
.section-heading p:last-child,
.taxonomy-card p:last-child {
  margin-bottom: 0;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.method-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm-bg);
}

.method-grid article:nth-child(1),
.method-grid article:nth-child(2) {
  grid-column: span 6;
}

.method-grid article:nth-child(3) {
  grid-column: 2 / span 5;
}

.method-grid article:nth-child(4) {
  grid-column: 7 / span 5;
}

.method-grid h3 {
  color: var(--ink);
}

.taxonomy-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.taxonomy-card {
  min-height: 176px;
  padding: 20px;
  border-radius: 8px;
  color: #ffffff;
}

.taxonomy-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 36px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
}

.taxonomy-card h3 {
  margin-bottom: 9px;
  color: #ffffff;
}

.taxonomy-card p {
  color: rgba(255, 255, 255, 0.88);
}

.tax-we {
  background: var(--we);
}

.tax-d {
  background: var(--d);
}

.tax-s {
  background: var(--s);
}

.tax-i {
  background: var(--i);
}

.tax-t {
  background: var(--t);
}

.tax-c {
  background: var(--c);
}

.tax-i,
.tax-c {
  color: #000000;
}

.tax-i span,
.tax-c span {
  border-color: rgba(0, 0, 0, 0.72);
  color: #000000;
}

.tax-i h3,
.tax-c h3 {
  color: #000000;
}

.tax-i p,
.tax-c p {
  color: rgba(0, 0, 0, 0.86);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.example-card h3 {
  min-height: 60px;
  margin-bottom: 14px;
  text-align: center;
}

.comparison-gif {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  background: #111827;
  object-fit: contain;
}

.caption-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 14px;
}

.caption-pair a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.38;
  text-align: center;
  text-decoration: none;
}

.caption-pair a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm-bg);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

caption {
  padding: 14px 16px;
  color: var(--muted);
  text-align: left;
  font-size: 0.92rem;
  font-weight: 650;
  caption-side: top;
}

th,
td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  border-top: 0;
  color: var(--ink);
  background: var(--warm-bg);
  font-size: 0.84rem;
  font-weight: 800;
}

tbody tr:nth-child(even) td {
  background: #eeeeea;
}

td {
  color: var(--muted);
  font-size: 0.94rem;
}

td:first-child {
  color: var(--ink);
  font-weight: 720;
}

.rubric-table th,
.rubric-table td {
  width: 33.333%;
}

.results-table th:not(:first-child),
.results-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.results-table td:first-child,
.results-table th:first-child {
  min-width: 230px;
}

.highlight-row td {
  color: #000000;
  background: var(--c);
  font-weight: 780;
}

.citation pre {
  margin: 0;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--i);
  color: #000000;
  font-size: 0.93rem;
  line-height: 1.45;
}

.site-footer {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 24px 0 42px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

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

.site-footer a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 54px;
  }

  .method-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article:nth-child(n) {
    grid-column: auto;
  }

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

  .example-card h3 {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  main,
  .site-footer {
    width: min(100% - 30px, 1160px);
  }

  .topbar {
    padding: 12px 15px;
  }

  .section {
    padding: 42px 0;
  }

  .taxonomy-flow,
  .caption-pair {
    grid-template-columns: 1fr;
  }

  .taxonomy-card {
    min-height: auto;
  }

  table {
    min-width: 720px;
  }
}
