.speech-cover, .speech-gallery {
  --cover-bg: #21161b;
  --cover-accent: #ff819a;
  background: var(--cover-bg);
  color: #fff8f6;
}

.speech-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(19.5rem, 33vw, 29rem);
  overflow: hidden;
}

.speech-cover-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.speech-cover::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, var(--cover-bg), transparent 42%),
    linear-gradient(90deg, #21161b 2%, #21161bee 32%, #21161b59 66%, transparent);
  content: '';
}

.speech-cover-copy { padding-block: 2.7rem; }
.speech-cover .eyebrow { color: var(--cover-accent); }

.speech-cover h1 {
  font-size: clamp(3rem, 7.3vw, 6.75rem);
  line-height: .99;
  letter-spacing: -.064em;
  word-spacing: .045em;
}

.speech-cover h1 span { color: var(--cover-accent); }

.speech-cover h1 + p {
  max-width: 33rem;
  margin-top: 1.15rem;
  color: #f2dce2;
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.speech-gallery { padding-block: 0 clamp(2.25rem, 5.4vw, 4.5rem); }
.speech-gallery a:focus-visible { outline-color: #ffd6a3; }

.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .65rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-top: .85rem;
  border-top: 1px solid #c9aab368;
}

.gallery-heading h2 {
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  letter-spacing: -.035em;
}

.gallery-heading .text-link, .gallery-type { color: var(--cover-accent); }
.gallery-heading .text-link:hover, .gallery-frame figcaption a:hover { color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.gallery-image-link {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #36232c;
}

.gallery-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-frame figcaption { padding: .85rem 0 0; }

.gallery-type {
  margin-bottom: .4rem;
  font-size: .875rem;
  font-weight: 700;
}

.gallery-frame h3 { color: #fff8f6; }

.gallery-frame h3 + p {
  margin-top: .45rem;
  color: #dec8cf;
  font-size: .9375rem;
}

.speech-section { background: var(--white); }

.speech-layout {
  display: grid;
  grid-template-columns: minmax(12rem, .7fr) minmax(0, 1.8fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6.5rem);
}

.speech-contents {
  position: sticky;
  top: 7rem;
  padding: 1.15rem 1.25rem;
  border-top: .2rem solid var(--red);
  background: var(--paper);
}

.speech-contents h2 {
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.speech-contents ul {
  margin: .7rem 0 0;
  padding: 0;
  list-style: none;
}

.speech-contents li + li { border-top: 1px solid var(--line); }

.speech-contents a {
  display: block;
  padding: .55rem 0;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.speech-contents a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.speech-text { max-width: 46rem; }
.speech-text h2 { text-wrap: initial; }
.speech-text .lead {
  max-width: 37rem;
  font-family: Georgia, serif;
  font-size: clamp(1.22rem, 2.1vw, 1.65rem);
  line-height: 1.48;
}

.speech-chapter {
  margin-top: clamp(2.2rem, 5vw, 3.55rem);
  padding-top: clamp(1.35rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.speech-chapter h3, .speech-timeline h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  text-wrap: balance;
}

.speech-chapter p, .speech-timeline p {
  max-width: 65ch;
  margin-top: .75rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.speech-chapter > p {
  max-width: 68ch;
  font-family: Georgia, serif;
  font-size: clamp(1.0625rem, 1.48vw, 1.2rem);
  line-height: 1.67;
  color: var(--ink);
}

.speech-chapter .text-link { font-family: system-ui, sans-serif; }

.speech-chapter blockquote {
  margin-block: 1.35rem;
  padding: .9rem 1rem;
  border-left: .25rem solid var(--red);
  background: var(--rose);
}

.speech-chapter blockquote p {
  margin: 0;
  color: var(--red-dark);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.speech-sources { background: var(--rose); }
.sources-heading h2 { font-size: clamp(2.2rem, 3.7vw, 3.65rem); }

.speech-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--control-line);
}

.speech-timeline li {
  padding-block: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.speech-timeline time {
  display: block;
  margin-bottom: .35rem;
  color: var(--red-dark);
  font-weight: 750;
}

.speech-timeline .text-link { margin-top: .35rem; }

@media (max-width: 46rem) {
  .speech-layout, .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .speech-cover h1 { font-size: clamp(2.35rem, 9.5vw, 4.85rem); }
  .speech-cover-image { object-position: 64% center; }
  .speech-cover::after {
    background:
      linear-gradient(0deg, var(--cover-bg), transparent 52%),
      linear-gradient(90deg, #21161bf5, #21161bc7 49%, #21161b40);
  }
  .speech-contents { position: static; }
  .gallery-frame + .gallery-frame {
    padding-top: 1.4rem;
    border-top: 1px solid #c9aab368;
  }
}

@media (min-width: 34rem) and (max-width: 46rem) {
  .speech-contents ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
  }
  .speech-contents li:nth-child(2) { border-top: 0; }
}
