:root {
  --bg: #fbfbf8;
  --ink: #1f2523;
  --muted: #5f6763;
  --line: #d8ded8;
  --panel: #ffffff;
  --green: #1f7a4d;
  --green-soft: #e8f3ec;
  --red: #b63b34;
  --red-soft: #f7e7e4;
  --blue: #2868a3;
  --blue-soft: #e7eef7;
  --gold: #b07b24;
  --shadow: 0 18px 45px rgba(31, 37, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  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.55;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-mark {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

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

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

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

.venue {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 6px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.subtitle {
  max-width: 860px;
  margin: 0 auto 14px;
  color: #303734;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 650;
  line-height: 1.18;
}

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

.authors sup,
.affiliations sup {
  font-size: 0.68em;
  line-height: 0;
}

.affiliations {
  margin: 0 auto 8px;
  color: #4d5652;
  font-size: 0.95rem;
}

.author-note {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.resource-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 38px;
}

.resource {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #c9d2cb;
  border-radius: 8px;
  background: var(--panel);
  color: #26302b;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(31, 37, 35, 0.06);
}

.resource:hover {
  border-color: var(--green);
  color: var(--green);
}

.teaser,
.wide-figure,
.figure-grid figure,
.video-shell,
.framework-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.teaser img {
  background: #f5f7f5;
}

figcaption {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: left;
}

.section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
}

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

.video-grid article {
  min-width: 0;
}

.video-grid h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  text-align: center;
}

.video-shell video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.framework-figure {
  margin-bottom: 18px;
}

.framework-figure img {
  background: #fff;
}

.prose {
  max-width: 860px;
  margin: 0 auto;
}

.prose p {
  color: #36413b;
  font-size: 1.12rem;
}

.framework-copy {
  max-width: 880px;
  margin: 0 auto;
}

.framework-copy p {
  color: #36413b;
  font-size: 1.05rem;
}

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

.figure-grid figure img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
}

.wide-figure {
  margin-top: 18px;
}

.wide-figure img {
  background: #fff;
}

.citation {
  max-width: 860px;
  margin: 0 auto;
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #cfd7d0;
  border-radius: 8px;
  background: #f5f7f4;
  color: #202724;
  font-size: 0.95rem;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 46px;
  }

  .figure-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  main,
  .nav,
  .footer {
    width: min(100% - 20px, 1120px);
  }

  .resource {
    flex: 1 1 calc(50% - 10px);
  }

  figcaption {
    padding: 12px;
  }
}
