/** Shared topic artboard layout. Topic design selects the measured accents. */
.content-page--topic {
  --topic-mosaic-paper: var(--color-highlight);
  --topic-mosaic-ink: var(--color-ink);
  --topic-reading-size: clamp(0.9375rem, 0.9375vw, 1.125rem);
}

.topic-design--alpine {
  --topic-mosaic-paper: var(--color-peach-accent);
  --topic-mosaic-ink: #c24129;
}

.topic-design--archive {
  --topic-mosaic-paper: var(--color-mist);
  --topic-mosaic-ink: #516f2b;
}

.topic-design--permafrost {
  --topic-mosaic-paper: var(--color-quote);
}

.content-page--topic .hero__heading {
  max-inline-size: 100.625rem;
}

.content-page--topic .hero__heading h1 {
  max-inline-size: 48.25rem;
  line-height: 1.33;
  text-wrap: wrap;
}

.content-page--topic .text-facts__content,
.content-page--topic .text-media.surface--dark .text-media__body {
  font-size: var(--topic-reading-size);
}

.content-page--topic .text-facts__content h3 {
  font-size: clamp(1.25rem, 1.302vw, 1.5625rem);
}

.content-page--topic .fact dd {
  white-space: pre-line;
}

.content-page--topic .editorial-mosaic .quotation {
  color: var(--topic-mosaic-ink);
  background: var(--topic-mosaic-paper);
}

.content-page--topic .editorial-mosaic .quotation blockquote {
  line-height: 1.3;
}

.content-page--topic .editorial-mosaic .text-section h3 {
  color: var(--topic-mosaic-ink);
}

.content-page--topic .editorial-mosaic .text-section .prose p {
  max-inline-size: 29.25rem;
  margin-inline: auto;
  font-size: var(--topic-reading-size);
}

.content-page--topic .text-media--left.surface--default h2,
.content-page--topic .text-media.surface--dark h2 {
  font-size: clamp(1.75rem, 2.083vw, 2.5rem);
}

.content-page--topic .text-media.surface--dark h2 {
  font-weight: 700;
}

.content-page--topic .text-media.surface--dark figcaption {
  font-size: var(--topic-reading-size);
  font-style: italic;
}

.topic-design--permafrost .text-media--left.surface--default h2 {
  font-size: var(--font-heading);
}

.topic-design--permafrost .text-media.surface--dark h2 {
  font-size: clamp(2rem, 3.125vw, 3.75rem);
}

.topic-design--permafrost .text-media.surface--dark .text-media__body p:first-child {
  font-size: clamp(1.25rem, 1.5625vw, 1.875rem);
  font-weight: 500;
}

.content-page--topic .link-collection--horizontal .content-card__title {
  font-size: clamp(1.125rem, 1.6vw, 2rem);
}

.content-page--topic .text-media--right.surface--default {
  --text-media-reading-width: 43rem;
}

.content-page--topic .text-media--right.surface--default h2 {
  font-size: var(--font-section);
  font-weight: 400;
  letter-spacing: var(--tracking-open);
}

.content-page--topic .text-media--right.surface--default .text-media__body {
  font-size: clamp(1.125rem, 1.5625vw, 1.875rem);
  letter-spacing: var(--tracking-open);
}

.content-page--topic .text-media--right.surface--default .text-media__figure {
  position: relative;
  max-inline-size: 48.25rem;
}

.content-page--topic .text-media--right.surface--default .text-media__figure img {
  aspect-ratio: 772 / 656;
}

.content-page--topic .text-media--right.surface--default .button-link {
  min-block-size: clamp(2.5rem, 2.865vw, 3.4375rem);
  color: var(--color-paper);
  background: var(--color-dark);
  font-size: var(--topic-reading-size);
  letter-spacing: var(--tracking-open);
}

@media (min-width: 48rem) {
  .content-page--topic .text-facts__layout {
    grid-template-columns: minmax(10rem, 17.375rem) minmax(0, 1fr);
    gap: clamp(1rem, 1.25vw, 1.5rem);
  }

  .content-page--topic .text-media--right.surface--default .text-media__layout {
    grid-template-columns: minmax(0, 45.25%) minmax(0, 1fr);
    grid-template-areas:
      "heading heading"
      "body figure"
      "action figure";
  }

  .content-page--topic .text-media--right.surface--default .text-media__heading {
    max-inline-size: none;
    margin-block-end: var(--space-3);
  }

  .content-page--topic .text-media--right.surface--default .text-media__body {
    padding-block-start: var(--space-4);
  }

  .content-page--topic .text-media--right.surface--default .button-link {
    margin-block-start: var(--space-3);
  }
}
