/* ==========================================================================
   EDITORIAL MODERNISM — the opening spread, rebuilt (2026-09-30).
   Load after x-editorial-modernism.css.

   One image: a black-and-white plate bled across the whole spread, the
   headline blown up in front of it, the deck and the fold control
   as a small block in the white space. The running head and folio are the
   navigation. Two faces only, as before: Oswald for display and apparatus,
   Literata for the deck.

   The spread is drawn in one unit, --u (1/1685 of the spread's width), so
   the headline keeps its place against the photograph at every width. Below
   a 52rem window it stops being a spread: text, then the plate, full width.

   Scoped to .emh; the shell is never restyled.
   ========================================================================== */

.em-page .emh {
  --u: calc(100cqi / 1685);
  --emh-paper: #F8F7F4;          /* the photograph's own sky, so nothing shows a seam */

  position: relative;
  isolation: isolate;
  container-type: inline-size;
  max-width: none;
  margin: 0 calc(-1 * var(--s6));
  padding: 0;
  aspect-ratio: 1685 / 934;
  background: var(--emh-paper);
  box-shadow: none;
  margin-bottom: 3.5rem;           /* room for the plate's caption, set below the spread */
}
.emh > *, .emh__title > * { position: absolute; margin: 0; }
.emh__title { margin: 0; }

/* ---- running head: set in the paper colour and differenced, so it reads
        dark on the paper and light where it crosses the photograph ---------- */
.emh__run {
  left: calc(48 * var(--u)); right: calc(38 * var(--u));
  top: calc(44 * var(--u)); transform: translateY(-50%);
  z-index: 2;
  display: flex; align-items: center; gap: calc(34 * var(--u));
  color: var(--emh-paper); mix-blend-mode: difference;
  font: 400 max(calc(10.5 * var(--u)), 11px)/1 var(--em-cond);
  letter-spacing: 0.22em; text-transform: uppercase;
}
.emh__mast { font: 500 max(calc(13 * var(--u)), 12px)/1 var(--em-serif); letter-spacing: 0.28em; margin-right: calc(24 * var(--u)); }
.em-hero.emh .emh__run a {
  display: inline-flex; align-items: center; min-height: 32px;
  color: inherit; text-decoration: none; background: none;
}
.em-hero.emh .emh__run a:hover { background: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.emh__line { flex: 1; height: 1px; background: currentColor; }
.emh__folio { display: inline-flex; align-items: center; gap: calc(22 * var(--u)); white-space: nowrap; }
.emh__folio i { width: calc(22 * var(--u)); height: 1px; background: currentColor; }

/* ---- the headline: kicker, and one word across the spread ------------- */
.emh__kick {
  left: calc(50 * var(--u)); top: calc(228 * var(--u));
  z-index: 2;
  font: 500 max(calc(20.4 * var(--u)), 13px)/1 var(--em-cond);
  letter-spacing: 0.36em; text-transform: uppercase;
}
/* Cap height 294u, sized so the word's ink runs from 49u to 1648u. */
.emh__word {
  left: calc(28 * var(--u)); top: calc(213.5 * var(--u));
  z-index: 2;
  font: 700 calc(363 * var(--u))/1 var(--em-cond);
  letter-spacing: -0.06em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--em-ink);
}

/* ---- the text block ---------------------------------------------------- */
.emh__deck {
  left: calc(58 * var(--u)); top: calc(590 * var(--u));
  z-index: 2;
  max-width: max(calc(420 * var(--u)), 17em);
  font: 400 max(calc(20 * var(--u)), 15px)/1.33 var(--em-serif);
  color: var(--em-ink);
}
.emh__tog { left: calc(58 * var(--u)); top: calc(690 * var(--u)); z-index: 2; }
.em-hero.emh .emh__btn {
  display: inline-flex; align-items: center; gap: calc(22 * var(--u));
  height: 44px; padding: 0; margin-left: 0;
  background: none; box-shadow: none; color: var(--em-ink);
  font: 600 max(calc(10.5 * var(--u)), 11px)/1 var(--em-cond);
  letter-spacing: 0.3em; text-transform: uppercase;
}
/* The arrow is drawn, not typed, so the script can swap the label freely. */
.em-hero.emh .emh__btn::after {
  content: ""; width: max(calc(22 * var(--u)), 18px); height: 10px;
  background:
    linear-gradient(currentColor, currentColor) left center / 100% 1px no-repeat,
    linear-gradient(45deg, transparent 49%, currentColor 49% 58%, transparent 58%) right top / 7px 5px no-repeat,
    linear-gradient(-45deg, transparent 42%, currentColor 42% 51%, transparent 51%) right bottom / 7px 5px no-repeat;
}
.em-hero.emh .emh__btn[aria-pressed="true"] { background: none; color: var(--em-ink); text-decoration: underline; text-underline-offset: 6px; }

/* ---- the plate: bled right and to the top, no border ------------------- */
.emh__fig { inset: 0; z-index: 1; overflow: visible; }
.emh__fig > img { position: absolute; inset: 0; }
.emh__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.emh__cap {
  position: absolute;
  left: calc(58 * var(--u)); top: calc(100% + 14px);
  width: max-content; max-width: min(64em, calc(100cqi - 116 * var(--u)));
  font: 400 12px/1.5 var(--em-cond);
  letter-spacing: 0.04em; color: var(--em-grey);
}
.emh__cap b { color: var(--em-ink); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

/* "Show the fold" crosses the photograph, so the gutter is differenced too. */
.em-page.em-fold .emh::after { z-index: 3; border-left-color: #fff; mix-blend-mode: difference; }

/* ------------------------------------------------------------- narrow ----- */
@media (max-width: 60rem) {
  .em-page .emh { margin-inline: calc(-1 * var(--s4)); }
}

/* Too narrow for a spread: one page, text first, the plate bled beneath. */
@media (max-width: 52rem) {
  .em-page .emh { aspect-ratio: auto; }
  .emh > *, .emh__title > * { position: static; }
  .emh__run {
    flex-wrap: wrap; gap: 4px 16px; padding: 16px 16px 0;
    transform: none; mix-blend-mode: normal; color: var(--em-ink);
  }
  .emh__line, .emh__folio { display: none; }
  .emh__mast { margin-right: auto; }
  .emh__title { display: block; padding: 40px 16px 0; }
  .emh__kick { display: block; }
  .emh__word { display: block; margin-top: 8px; font-size: 20.5cqi; line-height: 0.86; margin-left: -0.05em; }
  .emh__deck { padding: 20px 16px 0; max-width: 30em; }
  .emh__tog { padding: 4px 16px 0; }
  .em-page .emh { margin-bottom: 0; }
  .emh__fig { margin-top: 24px; }
  .emh__fig > img { position: static; }
  /* On one page the empty sky is dropped: the plate keeps the man, the wall and the overhang. */
  .emh__photo { height: auto; aspect-ratio: 4 / 3; object-position: 78% 100%; }
  .emh__cap { position: static; width: auto; min-width: 0; padding: 12px 16px 24px; }
}

/* NAV ON TOP (founder, 2026-10-01): on desktop the hero rises behind the empty top bar, as
   the other Aesthetic heroes do, so its own nav runs along the top of the page and the
   action bar sits under it. */
@media (min-width: 60.0625rem) { .em-page .emh { margin-top: -56px; } }
