:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #25282f;
  --muted: #5d6470;
  --line: #d9dde3;
  --soft: #f5f7f9;
  --accent: #236999;
  --accent-warm: #d97706;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  overflow-x: hidden;
}

main {
  flex: 1;
}

body > :last-child {
  margin-bottom: 0;
}

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

video {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111827;
}

.container {
  width: min(100% - 40px, 1060px);
  margin: 0 auto;
}

.container.narrow {
  max-width: 840px;
}

.hero {
  padding: 58px 0 18px;
  text-align: center;
}

.venue {
  margin: 0 0 16px;
  color: var(--accent-warm);
  font-size: 1.05rem;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 6vw, 4.25rem);
  line-height: 1.04;
  font-weight: 500;
}

h1 span {
  font-weight: 800;
}

.hero h2 {
  margin: 0 auto 22px;
  color: #383d46;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 1.16;
  font-weight: 500;
}

.authors {
  color: var(--muted);
  font-size: 1.05rem;
}

.authors p {
  margin-bottom: 6px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #f4f4f4;
  color: var(--accent-warm);
  font-weight: 800;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  background: #ececec;
}

.section {
  padding: 34px 0;
}

.teaser {
  padding-top: 18px;
}

.teaser video {
  max-width: 920px;
  margin: 0 auto;
}

h2 {
  margin-bottom: 18px;
  text-align: center;
  font-size: 2rem;
  line-height: 1.15;
}

.section p {
  color: var(--muted);
  font-size: 1.03rem;
}

.tldr {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.section-copy {
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
}

.pipeline-figure {
  max-width: 980px;
  margin: 24px auto 0;
}

.pipeline-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.video-grid {
  display: grid;
  gap: 18px;
}

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

.wide-video {
  grid-column: 1 / -1;
}

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

.stacked {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto;
}

figure {
  margin-bottom: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.25;
}

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

th:first-child,
td:first-child {
  width: 1%;
}

th {
  background: var(--soft);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
}

td:not(:first-child) {
  text-align: center;
}

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

thead tr:first-child th {
  border-bottom: 1px solid var(--line);
}

thead tr:first-child th:not(:first-child) {
  border-left: 1px solid var(--line);
}

tbody td:nth-child(2),
tbody td:nth-child(5) {
  border-left: 1px solid var(--line);
}

pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 7px;
  background: #1f232b;
  color: #f7fafc;
  font-size: 0.9rem;
  line-height: 1.45;
}

.citation-box {
  position: relative;
}

.citation-box pre {
  padding-top: 52px;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(247, 250, 252, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7fafc;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.copy-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1060px);
  }

  .hero {
    padding-top: 38px;
  }

  .two-up,
  .three-up,
  .stacked {
    grid-template-columns: 1fr;
  }
}

.half-width {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}
