/* Essay typography follows the shared site colours and page chrome. */
.essay-page .article-main {
  max-width: 46rem;
}

.essay-page .article-title {
  font-size: clamp(2.8rem, 8vw, 5.7rem);
}

.essay-source,
.essay-endnote {
  color: var(--muted);
  font: 0.85rem/1.65 var(--sans);
}

.essay-source {
  margin: 1.5rem 0 0;
}

.essay-body {
  font-size: clamp(1.06rem, 2vw, 1.18rem);
  line-height: 1.8;
  overflow-wrap: break-word;
}

.essay-body p {
  margin: 0 0 1.4rem;
}

.essay-body h2 {
  margin: 3.5rem 0 1.3rem;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  scroll-margin-top: 2rem;
}

.essay-body blockquote {
  margin: 1.7rem 0;
  padding: 0.1rem 0 0.1rem 1.35rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
}

.essay-body blockquote p:last-child {
  margin-bottom: 0;
}

.essay-body blockquote cite {
  font-style: normal;
}

.essay-body .essay-figure {
  margin: 2.25rem auto;
  max-width: 100%;
  break-inside: avoid;
}

.essay-figure > a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.essay-figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.essay-body .essay-figure--message {
  max-width: 24rem;
}

.essay-body .essay-figure--portrait {
  max-width: 29rem;
}

.essay-body .essay-figure--detail {
  max-width: 20rem;
}

.essay-figure figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font: 0.85rem/1.6 var(--sans);
  text-align: center;
}

.essay-endnote {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.essay-endnote p {
  margin: 0;
}

@media (max-width: 28rem) {
  .essay-body blockquote {
    padding-left: 1rem;
  }
}

@media print {
  .essay-body {
    font-size: 11pt;
    line-height: 1.6;
  }

  .essay-body h2 {
    break-after: avoid;
  }

  .essay-body blockquote {
    break-inside: avoid;
  }

  .essay-body p {
    orphans: 3;
    widows: 3;
  }
}
