/*
  A talk page (talks/<slug>/index.html, tools/build-talks.js): one talk's
  video and its whole transcript, as an ordinary scrolling document.

  Not a slide of the deck: no waves, no rail, no paging. It borrows the
  deck's tokens, cards and buttons (variables.css, base.css, cards.css) and
  the video card (talks.css), on the deck's dark navy, so a reader who
  arrives from a search and clicks through to the portfolio doesn't feel
  they've changed sites. The text sits at a reading measure, 46rem.
*/

.talk-page {
  min-height: 100vh;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(242, 117, 92, 0.16), transparent 70%),
    radial-gradient(50rem 30rem at -10% 20%, rgba(217, 164, 65, 0.1), transparent 70%),
    var(--bg-page);
  background-attachment: fixed;
}

.talk-page__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) 0;
}

.talk-page__home {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.talk-page__home:hover {
  color: var(--text-accent);
}

.talk-page__main {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-6);
}

.talk-page__kicker {
  margin: 0 0 var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.talk-page__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.talk-page__summary {
  margin: 0 0 var(--space-5);
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* The video card from the Talks screen, at the column's full width. */
.talk-page__video {
  padding: var(--space-2);
  margin-bottom: var(--space-5);
}

.talk-page__video .talk__media {
  margin: 0;
}

.talk-page__transcript {
  padding: var(--space-5);
}

.talk-page__transcript h2 {
  margin: 0 0 var(--space-4);
  font-size: 1.6rem;
  color: var(--card-text);
}

.talk-page__words {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.talk-page .talk-page__words p {
  margin: 0 0 1em;
  color: var(--card-text);
}

.talk-page .talk-page__words p.transcript__q {
  color: var(--card-text-muted);
}

.talk-page__words p:last-child {
  margin-bottom: 0;
}

.talk-page__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
}

@media (max-width: 640px) {
  .talk-page__bar,
  .talk-page__main {
    padding-inline: var(--space-3);
  }

  .talk-page__main {
    padding-top: var(--space-4);
  }

  .talk-page__transcript {
    padding: var(--space-4) var(--space-3);
  }
}
