.essay-page {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-bg);
}

/* No top margin: the title is the first thing in the column, under .essay-page's
   --space-xl and the locked 4.5rem header clearance. Its own --space-2xl on top
   of those made ~2.5x the opening inset every other page uses, which read as a
   canyon between the nav and the title. The phone rule below had already cut it
   to --space-sm for the same reason.

   Left-aligned (was centred): the genre and writer index pages set the site's
   index-page pattern, and the artist/writer detail pages are left-aligned too,
   so a centred title here was the outlier. */
.page-title {
  font-size: var(--font-size-page-title);
  margin-bottom: var(--space-lg);
  margin-top: 0;
  font-family: var(--font-heading);
  text-align: left;
}

/* The shared .pill-nav centres its row. With a left-aligned title above it, a
   centred filter row left the hero visibly lopsided, so the pills align to the
   same left edge. Scoped to this page — the shared component is unchanged. */
.essay-hero .pill-nav {
  justify-content: flex-start;
}

/* ---- Small-caps category kicker, shared by lead + rows ---- */
.essay-kicker {
  display: inline-block;
  font-family: var(--font-content);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: var(--space-xs);
}

.essay-kicker:hover {
  color: var(--color-accent-hover);
}

/* ---- Shared byline ---- */
.essay-byline {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-subtle-text);
  margin: var(--space-md) 0 0;
}

.essay-byline a {
  color: var(--color-text);
  text-decoration: none;
}

.essay-byline a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.essay-byline-sep {
  margin: 0 0.4em;
}

/* ============================================================
   Featured lead essay
   ============================================================ */
.essay-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  padding-bottom: var(--space-2xl);
  border-bottom: 2px solid var(--color-black);
  margin-bottom: var(--space-2xl);
}

.essay-lead-image-link {
  display: block;
}

.essay-lead-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.essay-lead-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: var(--line-height-tight);
  margin: 0.25rem 0 var(--space-sm);
}

.essay-lead-title a {
  text-decoration: none;
  color: var(--color-heading);
}

.essay-lead-title a:hover {
  text-decoration: underline;
}

.essay-lead-deck {
  font-style: italic;
  font-size: var(--font-size-lg);
  color: var(--color-gray-text);
  margin: 0 0 var(--space-md);
  line-height: var(--line-height-tight);
}

.essay-lead-excerpt {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: var(--line-height-body);
}

/* Editorial "continue reading" — small caps to match kicker/byline */
.essay-readmore {
  display: inline-block;
  margin-top: var(--space-xs);
  font-family: var(--font-content);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}

/* ============================================================
   Essay river (subsequent essays)
   ============================================================ */
.essay-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem;
  gap: var(--space-xl);
  align-items: start;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-divider);
}

.essay-row:last-child {
  border-bottom: none;
}

.essay-row-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-xs);
}

.essay-row-title a {
  text-decoration: none;
  color: var(--color-heading);
}

.essay-row-title a:hover {
  text-decoration: underline;
}

.essay-row-deck {
  font-style: italic;
  font-size: var(--font-size-md);
  color: var(--color-gray-text);
  margin: 0;
  line-height: var(--line-height-tight);
}

.essay-row-image-link {
  display: block;
}

.essay-row-image {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  display: block;
}

.essay-empty {
  text-align: center;
  color: var(--color-subtle-text);
  padding: var(--space-2xl) 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 54rem) { /* --bp-phone */
  .essay-page {
    padding: var(--space-md);
  }

  /* The desktop rule is already margin-top: 0; this override existed to cut the
     old --space-2xl down for phones and now only re-adds a gap. */
  .page-title {
    margin-top: 0;
  }

  .essay-lead {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
  }

  .essay-lead-image {
    aspect-ratio: 16 / 9;
  }

  .essay-row {
    grid-template-columns: minmax(0, 1fr) 6rem;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
  }

  .essay-row-image {
    width: 6rem;
    height: 6rem;
  }

  .essay-row-title {
    font-size: var(--font-size-lg);
  }
}
