:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --fg: #0f172a;
  --fg-muted: #475569;
  --border: #e2e8f0;
  --accent: #1e40af;
  --accent-hover: #1e3a8a;
  --code-bg: #0f172a;
  --code-fg: #e2e8f0;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 780px; }

a { color: var(--accent); text-decoration: none; transition: color .18s; }
a:hover { color: var(--accent-hover); }

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 2.8rem;
  text-align: center;
}

/* -------- HERO -------- */
.hero {
  padding: 72px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.venue {
  display: inline-block;
  padding: 6px 14px;
  background: #eef2ff;
  color: var(--accent);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto 10px;
}
.subtitle-line {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}
.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.authors sup { color: var(--accent); font-weight: 600; }
.affiliation {
  color: var(--fg-muted);
  font-size: .95rem;
  margin-bottom: 4px;
}
.affiliation-note {
  color: var(--fg-muted);
  font-size: .82rem;
  margin-bottom: 28px;
}
.affiliation-note sup { color: var(--accent); font-weight: 600; }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--fg);
  color: #fff;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* -------- TEASER (main figure) -------- */
.teaser {
  padding: 56px 0 8px;
  background: var(--bg);
}
.teaser figure img {
  max-width: 900px;
  margin: 0 auto;
}
.teaser + .section { padding-top: 48px; }

/* -------- SECTIONS -------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section p { color: var(--fg-muted); font-size: 1.08rem; line-height: 1.8; }
.section > .container > figure + figure,
.section > .container > figure + .two-col,
.section > .container > .two-col + figure,
.section > .container > .two-col + .two-col {
  margin-top: 64px;
}

/* -------- FIGURES -------- */
figure { margin: 0; text-align: center; }
figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
  display: block;
  box-shadow: var(--shadow);
}
figure.wide { max-width: 1000px; margin: 0 auto; }

figure .video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
figure .video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
figcaption {
  font-size: .96rem;
  color: var(--fg-muted);
  margin-top: 20px;
  line-height: 1.7;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: start;
}

/* -------- CODE -------- */
pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 22px 26px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: .92rem;
  line-height: 1.7;
  box-shadow: var(--shadow);
}

/* -------- FOOTER -------- */
footer {
  padding: 40px 0;
  text-align: center;
  font-size: .92rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
footer p { margin-bottom: 6px; }
footer .muted { font-size: .85rem; color: #94a3b8; }

/* -------- RESPONSIVE -------- */
@media (max-width: 640px) {
  .hero { padding: 48px 0 30px; }
  .section { padding: 64px 0; }
  h2 { margin-bottom: 2rem; }
  .authors { gap: 10px 18px; font-size: .95rem; }
  .btn { padding: 9px 14px; font-size: .85rem; }
  .two-col { gap: 32px; }
  .section > .container > figure + figure,
  .section > .container > figure + .two-col,
  .section > .container > .two-col + figure,
  .section > .container > .two-col + .two-col {
    margin-top: 44px;
  }
}
