/* Page styles for a signed essay (the same file sits beside each of the four).

   1. The kit's reading styles use the class .essay, and so does the landing page's list of essays
      (a.essay, a row that links to one). On an <article class="essay"> the list's rules leak in:
      its three-column grid below 1100 pixels, its padding, its arrow and its hover rule. This block
      undoes them. It does nothing once the two are told apart in the kit. */
article.essay { position: static; padding: 0; align-items: start; counter-reset: sec 1 count; }
article.essay::before, article.essay::after { content: none; }
@media (max-width: 1099.98px) { article.essay { grid-template-columns: minmax(0, 1fr); } }
article.essay strong { font-weight: 600; }

/* 2. The opening: the title, then the published summary as a deck. */
.top--essay .top__title { font-size: clamp(40px, 4.9vw, 78px); }
.top--essay .lede { font: 400 clamp(20px, 1.75vw, 27px)/1.4 var(--serif); color: var(--charcoal); max-width: 38ch; }

/* 3. Section headings carry the numeral the page index shows for them: a short rule, the numeral, the heading. */
article.essay h2 { counter-increment: sec; scroll-margin-top: 112px; }
article.essay h2::before { content: counter(sec, upper-roman); display: block; width: 56px; margin-bottom: 0.8em; padding-top: 0.85em; border-top: 1px solid var(--charcoal);
  font: 500 12px/1 var(--sans); letter-spacing: 0.16em; font-variant-numeric: lining-nums; color: var(--stone); }

/* 4. Where the essay counts things off (three questions, five ways it fails), a numeral hangs in the margin. */
article.essay p.count { counter-increment: count; }
@media (min-width: 1100px) {
  article.essay p.count { position: relative; }
  article.essay p.count::before { content: counter(count); position: absolute; right: calc(100% + 0.5em); top: 0.04em;
    font: 400 1.3em/1.25 var(--serif); font-variant-numeric: lining-nums; color: var(--stone); }
}

/* 5. Plates in the narrative: the caption is a phrase of the essay, set plainly. A wide plate keeps the
      drawing's own shape at every width; a plate in the rail stands beside three paragraphs, not two,
      so that it does not push them apart; a pull quote marked short stands beside one. */
article.essay .essay__plate figcaption { font: 400 15px/1.45 var(--sans); color: var(--stone); }
article.essay > .essay__plate--wide .plate__box { aspect-ratio: 2 / 1; max-height: 62vh; width: 100%; }   /* never taller than most of a screen */
@media (min-width: 1100px) {
  article.essay > .essay__plate:not(.essay__plate--wide) { grid-row: span 3; max-width: 400px; }
  article.essay > .pull--short { grid-row: span 1; }
}

/* 6. The list of the other essays. */
.more a { display: block; text-decoration: none; transition: color 200ms var(--ease), transform 500ms var(--settle); }
.more a:hover { color: var(--brass-deep); transform: translateX(8px); }
.more__t { display: block; }
.more__d { display: block; margin-top: 6px; max-width: 62ch; font: 400 clamp(15px, 1.1vw, 17px)/1.5 var(--sans); letter-spacing: 0; color: var(--stone); }
.more > li > b { font: 400 15px/1 var(--serif); letter-spacing: 0; text-transform: none; }

/* 7. The page index: essay headings are longer than the kit's page names. */
.index a span { width: 372px; }
.index ol::before { left: -382px; }
