:root {
  color-scheme: light;
  --ink: #2c252a;
  --muted: #716871;
  --paper: #fbf7fa;
  --surface: #ffffff;
  --surface-soft: #fffafd;
  --line: #eadde6;
  --accent: #9b5f83;
  --accent-strong: #7b4267;
  --active: #d68bb1;
  --lavender: #f0eaf8;
  --blush: #f8e9f0;
  --shadow: 0 10px 28px rgba(88, 54, 77, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.site-header {
  min-height: 42vh;
  display: grid;
  grid-template-rows: auto 1fr;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.nav,
.hero,
main,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.hero-actions,
.material-links,
.tag-row,
.filters {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0;
}

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

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

.hero {
  align-self: center;
  padding: 52px 0 62px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 760;
}

.intro {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.material-links a,
.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

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

.button.ghost {
  background: transparent;
}

main {
  padding: 24px 0 64px;
}

.controls {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 14px;
  padding: 14px 0;
  background: rgba(251, 247, 250, 0.94);
  backdrop-filter: blur(18px);
}

.search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155, 95, 131, 0.12);
}

.filters {
  align-self: end;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  color: var(--muted);
  font-size: 0.92rem;
}

.filter-button.active {
  border-color: #e4bfd3;
  background: var(--blush);
  color: var(--accent-strong);
}

.layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

.talk-list,
.viewer {
  min-width: 0;
}

.section-heading {
  margin: 16px 0 14px;
}

.section-heading h2,
.viewer h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 750;
}

.talk-cards {
  display: grid;
  gap: 12px;
}

.talk-card {
  width: 100%;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.talk-card:hover,
.talk-card:focus-visible {
  transform: translateY(-1px);
  border-color: #e5c3d5;
  outline: none;
}

.talk-card.active {
  border-left-color: var(--active);
  background: #fffafd;
  box-shadow: 0 8px 20px rgba(88, 54, 77, 0.07);
}

.talk-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.talk-card p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fbf3f7;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.viewer {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.viewer-copy {
  padding: 24px;
}

.viewer-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.tag {
  background: var(--lavender);
  color: #5f4d70;
}

.material-links {
  flex-wrap: wrap;
  gap: 10px;
}

.material-links a.primary-link {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.material-links a.secondary-link {
  background: var(--blush);
}

.slide-frame {
  position: relative;
  min-height: 64vh;
  border-top: 1px solid var(--line);
  background: #303030;
}

.slide-frame iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #303030;
}

.frame-fallback {
  position: absolute;
  inset: auto 24px 24px;
  z-index: 0;
  color: #fff;
  font-size: 0.92rem;
}

.frame-fallback a {
  color: #fff;
  font-weight: 800;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background: var(--surface);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 920px) {
  .site-header {
    min-height: auto;
  }

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

  .controls,
  .layout {
    grid-template-columns: 1fr;
  }

  .controls,
  .viewer {
    position: static;
  }

  .slide-frame {
    min-height: 62vh;
  }
}

@media (max-width: 620px) {
  .nav,
  .hero,
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 68px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.7rem);
  }

  .hero-actions,
  .material-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .material-links a {
    width: 100%;
  }

  .viewer-copy {
    padding: 22px;
  }

  .slide-frame {
    min-height: 58vh;
  }

  .site-footer {
    flex-direction: column;
  }
}
