:root {
  --bg: #fffbf7;
  --ink: #6d5f71;
  --ink-soft: #9d8ea8;
  --paper: rgba(255,255,255,0.6);
  --paper-strong: rgba(255,255,255,0.86);
  --border: rgba(162, 147, 165, 0.15);
  --shadow: 0 22px 56px rgba(189, 176, 198, 0.16);
  --rose: rgba(240, 202, 220, 0.65);
  --lavender: rgba(216, 213, 246, 0.6);
  --butter: rgba(248, 233, 185, 0.5);
  --blue: rgba(195, 215, 236, 0.6);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 18%, rgba(218, 212, 245, 0.7), transparent 24%),
    radial-gradient(circle at 78% 24%, rgba(248, 232, 180, 0.55), transparent 22%),
    radial-gradient(circle at 68% 82%, rgba(243, 208, 226, 0.6), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(195, 215, 236, 0.62), transparent 28%),
    var(--bg);
  background-attachment: fixed;
}

h1, h2, h3, .quote, .kicker, .slide-kicker, .note-text, .intro-sub, .speaker {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.intro-screen, .slide-screen, .outro-screen {
  width: min(800px, 100%);
}

.intro-screen { position: relative; }

.wash {
  position: absolute;
  border-radius: 50% 42% 58% 46% / 45% 54% 46% 55%;
  filter: blur(1.2px);
  opacity: 0.85;
  pointer-events: none;
}
.wash-left {
  width: 240px; height: 320px;
  left: -24px; top: -16px;
  background:
    radial-gradient(circle at 38% 30%, rgba(200, 216, 238, 0.7), transparent 24%),
    radial-gradient(circle at 44% 62%, rgba(210, 208, 244, 0.8), transparent 42%);
}
.wash-right {
  width: 240px; height: 320px;
  right: -24px; bottom: -16px;
  background:
    radial-gradient(circle at 48% 36%, rgba(242, 202, 218, 0.7), transparent 26%),
    radial-gradient(circle at 54% 68%, rgba(250, 236, 192, 0.6), transparent 38%);
}

.intro-card {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 34px;
  padding: 34px 28px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(12px);
}

.kicker, .slide-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

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

h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.9;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 0.94;
  margin-bottom: 14px;
}

.intro-sub {
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.intro-note {
  font-family: Inter, ui-sans-serif, sans-serif;
  color: var(--ink-soft);
  max-width: 34rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

button {
  appearance: none;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
}
.primary-btn { background: rgba(255,255,255,0.82); color: var(--ink); }
.ghost-btn { background: rgba(255,255,255,0.5); color: var(--ink); }

.slide-top, .nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.nav-row { margin-top: 12px; }

.meta-pill {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.slide-card {
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 32px;
  padding: 28px 24px;
  backdrop-filter: blur(12px);
}

.slide-kicker { margin-bottom: 10px; }

.quote {
  font-size: clamp(1.7rem, 4.4vw, 2.8rem);
  line-height: 1.32;
  white-space: pre-wrap;
  margin-bottom: 10px;
}

.quote.cluster {
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  line-height: 1.55;
}

.speaker {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.note-divider {
  border: none;
  border-top: 1px dashed rgba(162, 147, 165, 0.25);
  margin: 16px 0 14px;
}

.note-text {
  color: var(--ink-soft);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.55;
  white-space: pre-wrap;
}

.hidden { display: none !important; }

@media (max-width: 640px) {
  .intro-card, .slide-card { padding: 24px 16px; }
  .slide-top, .nav-row { flex-direction: column; }
  .intro-card { min-height: auto; padding-bottom: 28px; }
  h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .quote { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .quote.cluster { font-size: clamp(1rem, 4vw, 1.35rem); }
  .note-text { font-size: clamp(1.05rem, 3.8vw, 1.4rem); }
  .intro-note { font-size: 0.92rem; }
  .wash-left, .wash-right { width: 160px; height: 220px; }
  .slide-card { padding-bottom: 22px; }
  button { padding: 12px 16px; font-size: 0.95rem; }
  .meta-pill { font-size: 0.78rem; }
  .app-shell { padding: 14px; }
}
