:root {
  --paper: #f7f8f6;
  --surface: #ffffff;
  --ink: #141716;
  --muted: #5f6864;
  --line: #d7ddda;
  --teal: #087f73;
  --blue: #2767d8;
  --coral: #d94f3d;
  --max: 1180px;
}

* {
  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;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(215, 221, 218, 0.88);
  background: rgba(247, 248, 246, 0.94);
  backdrop-filter: blur(12px);
}

.wordmark {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 26px;
}

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

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

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

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

.venue,
.section-index,
.step-number {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 14px;
  font-size: 72px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0;
}

.paper-title {
  max-width: 920px;
  margin: 0 auto 28px;
  color: #303633;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1.3;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 4px;
}

.authors a,
.authors span {
  font-size: 16px;
}

.authors a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.affiliations {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 4px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.button,
.copy-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button svg,
.copy-button svg {
  width: 17px;
  height: 17px;
}

.button:hover,
.button:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-2px);
}

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

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

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.section-index) {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
}

.video-frame {
  overflow: hidden;
  border: 1px solid #252927;
  border-radius: 4px;
  background: #000000;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 32 / 25;
  object-fit: contain;
}

.caption {
  max-width: 850px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.prose {
  max-width: 850px;
  margin-left: 64px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.72;
}

.prose p {
  margin: 0 0 18px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-left: 64px;
}

.method-grid article {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.method-grid article:nth-child(2) {
  border-color: var(--teal);
}

.method-grid article:nth-child(3) {
  border-color: var(--coral);
}

.method-grid h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.method-grid article > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.citation-block {
  position: relative;
  margin-left: 64px;
}

.citation-block pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #e7ece9;
  background: #171b19;
  font-size: 14px;
  line-height: 1.65;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  padding: 0 12px;
  border-color: #535c57;
  color: #ffffff;
  background: #242a27;
  font-size: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--ink);
  text-underline-offset: 4px;
}

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

  .site-nav {
    min-height: 58px;
    padding: 0 18px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 12px;
  }

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

  .hero-inner {
    padding: 52px 0 42px;
  }

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

  .paper-title {
    font-size: 23px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .prose,
  .method-grid,
  .citation-block {
    margin-left: 0;
  }

  .prose {
    font-size: 18px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .citation-block pre {
    padding: 64px 18px 20px;
    font-size: 12px;
  }

  footer {
    gap: 20px;
  }
}

@media (max-width: 470px) {
  .nav-links a:nth-child(2) {
    display: none;
  }

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

  .authors {
    gap: 6px 16px;
  }

  .button {
    flex: 1 1 130px;
  }

  .copy-button span {
    display: none;
  }
}
