@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Work+Sans:wght@300;400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --parchment:       #F7F3EE;
  --parchment-mid:   #EEE8E0;
  --parchment-light: #E6DDD2;
  --line:            #DDD6CC;
  --ink:             #1C1915;
  --mid:             #6B6358;
  --accent:          #8C6D45;
  --accent-light:    #B09070;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Work Sans', system-ui, sans-serif;
}

html {
  overflow-x: hidden;
}

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.19;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ─── SCROLL FADE-IN ─── */
.fi {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fi.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HEADER ─── */
nav {
  padding: 18px 56px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--parchment);
}

.nav-l { display: flex; align-items: center; gap: 28px; }

.nav-brand {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(28,25,21,.4);
  text-decoration: none;
  transition: color .55s;
}
.nav-brand:hover { color: var(--ink); }

.nav-back {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--mid);
  text-decoration: none;
  transition: color .55s;
  white-space: nowrap;
}
.nav-back:hover { color: var(--accent); }

/* ─── PAGE INNER ─── */
.page-inner {
  padding: 0 56px;
}

/* ─── HERO ─── */
.section-hero {
  padding: 88px 56px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 28px;
  display: block;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.hero-heading em {
  font-style: italic;
  color: var(--accent);
}

.hero-subheading {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 52px;
  letter-spacing: 0;
}

.hero-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.hero-border {
  width: 1px;
  background: var(--line);
  align-self: stretch;
  flex-shrink: 0;
}

.hero-text p {
  font-size: 16px;
  font-weight: 300;
  color: var(--mid);
  margin-bottom: 18px;
  line-height: 1.85;
}
.hero-text p strong { font-weight: 400; color: var(--ink); }

.hero-text .room-open {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 300;
  color: var(--accent);
  margin-top: 4px;
}

/* ─── TOC ─── */
.section-toc {
  padding: 72px 56px;
  max-width: 900px;
  margin: 0 auto;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.toc-card {
  background: var(--parchment-light);
  padding: 32px 28px;
  transition: background 0.3s ease;
  text-decoration: none;
  display: block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.toc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.toc-card:hover { background: var(--parchment-mid); }
.toc-card:hover::after { transform: scaleX(1); }
.toc-card:nth-child(2) { transition-delay: .05s; }
.toc-card:nth-child(3) { transition-delay: .10s; }
.toc-card:nth-child(4) { transition-delay: .15s; }

.toc-numeral {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 300;
  color: rgba(140, 109, 69, 0.45);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.toc-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
}

/* ─── CONVERSATION SECTIONS ─── */
.section-conversation {
  padding: 80px 56px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.conv-numeral-col {
  position: absolute;
  left: -120px;
  top: 80px;
  width: 120px;
  text-align: right;
}

.conv-numeral-large {
  font-family: var(--font-serif);
  font-size: clamp(72px, 9vw, 110px);
  font-weight: 300;
  color: var(--line);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
  display: block;
}

.conv-text-col {
  flex: 1;
  min-width: 0;
}

.conv-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  display: block;
  margin-bottom: 16px;
}

.conv-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}

.conv-tagline {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 32px;
  line-height: 1.5;
}

.conv-meta {
  display: flex;
  gap: 48px;
  margin-bottom: 32px;
}

.conv-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conv-meta-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mid);
}

.conv-meta-value {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
}

.conv-body p {
  font-size: 16px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 16px;
  max-width: 640px;
}

/* ─── AUDIO PLAYER ─── */
.audio-player {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
  max-width: 520px;
}

.ap-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}
.ap-play-btn:hover {
  background: var(--accent);
  color: var(--parchment);
}
.ap-play-btn svg {
  width: 18px;
  height: 18px;
}

.ap-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ap-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.ap-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Scrubber track — taller hit area, thin visual line */
.ap-bar {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: grab;
  position: relative;
  user-select: none;
}
.ap-bar:active { cursor: grabbing; }

.ap-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

.ap-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
}

/* Draggable thumb */
.ap-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transition: transform 0.15s ease;
}
.ap-bar:hover .ap-thumb,
.ap-bar:active .ap-thumb {
  transform: translate(-50%, -50%) scale(1.3);
}

.ap-time {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--accent-light);
  white-space: nowrap;
  min-width: 80px;
}

.ap-no-src .ap-play-btn {
  border-color: var(--line);
  color: var(--line);
  cursor: default;
}
.ap-no-src .ap-label { color: var(--line); }

/* FROM THE RECORDING */
.recording-block {
  border-left: 2px solid var(--accent);
  background: rgba(140,109,69,.04);
  padding: 24px 28px;
  margin-top: 40px;
  max-width: 560px;
}

.recording-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.recording-text p {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 8px;
}

.recording-text .em-dash {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent-light);
  margin: 12px 0;
}

/* Divider */
.section-divider {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 56px;
  display: flex;
  justify-content: center;
}
.section-divider::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--line);
}

/* ─── CLOSING SECTION ─── */
.section-closing {
  padding: 100px 56px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--parchment-mid);
}

.closing-heading {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 36px;
}

.closing-heading em {
  font-style: italic;
  color: var(--accent);
}

.closing-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.85;
  max-width: 560px;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.f-brand { font-size: 10px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); opacity: 0.65; }
.f-note  { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-style: italic; color: var(--accent-light); }
.f-copy  { font-size: 11px; color: var(--text); opacity: 0.55; margin-top: 4px; }

/* ─── STAGGERED FADE-IN ─── */
.section-conversation .conv-label.fi     { transition-delay: 0s; }
.section-conversation .conv-title.fi     { transition-delay: .08s; }
.section-conversation .conv-tagline.fi   { transition-delay: .16s; }
.section-conversation .conv-meta.fi      { transition-delay: .22s; }
.section-conversation .conv-body.fi      { transition-delay: .3s; }
.section-conversation .audio-player.fi   { transition-delay: .36s; }
.section-conversation .recording-block.fi { transition-delay: .44s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  .section-hero,
  .section-toc,
  .section-conversation,
  .section-closing {
    padding-left: 24px;
    padding-right: 24px;
    margin-left: 0;
  }

  .section-divider { padding: 0 24px; margin-left: 0; }
  footer { padding: 40px 24px; margin-left: 0; }

  .hero-body { flex-direction: column; }
  .hero-border { width: 40px; height: 1px; align-self: auto; }

  .toc-grid { grid-template-columns: 1fr 1fr; }

  .conv-numeral-col {
    position: static;
    width: auto;
    text-align: left;
    margin-bottom: 8px;
  }
  .conv-numeral-large { font-size: clamp(60px, 16vw, 90px); }

  .audio-embed { width: 100%; }

  .conv-meta { gap: 28px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .toc-grid { grid-template-columns: 1fr; }
}
