:root {
  color-scheme: light;
  --text: #17202a;
  --muted: #5f6d7a;
  --line: #d8e0e8;
  --link: #1f5d91;
  --link-strong: #123f68;
  --surface: #f6f9fc;
  --code: #0f1d2a;
  --shadow: 0 18px 52px rgba(15, 39, 66, 0.13);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

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

a:hover,
a:focus-visible {
  color: var(--link-strong);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
pre:focus-visible,
video:focus-visible {
  outline: 3px solid rgba(31, 93, 145, 0.28);
  outline-offset: 4px;
}

.page-shell {
  width: min(100% - 36px, 980px);
  margin: 0 auto;
  padding: 54px 0 70px;
}

.hero {
  text-align: center;
}

.venue {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.18;
  color: #101820;
}

h1 {
  max-width: 920px;
  margin: 0 auto 22px;
  font-size: clamp(2.15rem, 6vw, 3.45rem);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.authors {
  max-width: 780px;
  margin: 0 auto 8px;
  font-size: 1.08rem;
}

.affiliation {
  margin: 0;
  color: var(--muted);
}

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

.button {
  min-width: 104px;
  border: 1px solid #b7c8d9;
  border-radius: 6px;
  padding: 9px 18px;
  background: #fff;
  color: var(--link-strong);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.button:hover,
.button:focus-visible {
  background: #edf5fb;
  text-decoration: none;
}

.button.primary {
  border-color: var(--link-strong);
  background: var(--link-strong);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #0c3153;
}

.button.subtle {
  color: var(--muted);
}

.showcase {
  margin: 42px 0 0;
}

.hero-video,
figure img,
.paper-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #e8eef5;
}

.hero-video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.caption,
.video-status,
figcaption {
  max-width: 820px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
}

.video-status:empty {
  display: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 46px 0;
}

.section {
  max-width: 900px;
  margin: 0 auto;
}

.section p {
  margin: 0 0 16px;
}

figure {
  margin: 0 0 22px;
}

.two-column,
.paper-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.result-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.result-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #2b3a48;
}

.paper-thumb {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: var(--surface);
}

.paper-thumb:hover,
.paper-thumb:focus-visible {
  border-color: #97b4ce;
}

.inline-links {
  color: var(--muted);
}

.inline-links span {
  margin: 0 9px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
}

.copy-button {
  border: 1px solid #b7c8d9;
  border-radius: 6px;
  padding: 8px 14px;
  background: #fff;
  color: var(--link-strong);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-button:hover {
  background: #edf5fb;
}

pre {
  margin: 0;
  overflow-x: auto;
  border-radius: 6px;
  padding: 20px;
  background: var(--code);
  color: #eff7ff;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre;
}

.copy-status {
  min-height: 1.4em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 980px);
    padding-top: 34px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(1.78rem, 10vw, 2.4rem);
  }

  .paper-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .two-column,
  .paper-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  pre {
    padding: 16px;
    font-size: 0.78rem;
  }
}

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

  .hero-video {
    box-shadow: none;
  }
}
