/* ============================================================
   Editorial layout — homepage only
   ============================================================

   The rest of the site is built from stacked full-width sections.
   This file is the opposite: one continuous 12-column grid that
   every block on the homepage shares, so photographs can sit at
   deliberately different scales, hang off-axis, break the page
   edge, or overlap each other — while their captions stay locked
   to the same column rhythm.

   Anatomy of the track list:

     bleed-start │ margin │ 1 2 3 4 5 6 7 8 9 10 11 12 │ margin │ bleed-end
                          content-start        content-end

   The two margin tracks are `1fr` with a floor, so the twelve
   content columns stay centred and capped at --content-max while
   an element placed `bleed-start / bleed-end` still runs the full
   width of the viewport. The columns carry a `col` line name, so
   placement reads as `grid-column: col 5 / content-end`.

   Every unit on the page is an `.ed-block` — a subgrid spanning
   bleed to bleed. Subgrid is what makes the composition possible:
   the block's children inherit the parent's columns AND its line
   names, so a caption three columns wide lines up with a photo
   nine columns wide even though they live in different blocks.
   It also gives each block its own private row axis, so two
   frames can share a row and overlap without disturbing the
   blocks above or below them.
   ============================================================ */

.editorial,
.hero__content {
  --ed-gutter: clamp(14px, 1.4vw, 26px);
  --ed-edge: var(--space-5);

  display: grid;
  grid-template-columns:
    [bleed-start] minmax(var(--ed-edge), 1fr)
    [content-start] repeat(12, [col] minmax(0, calc((var(--content-max) - 11 * var(--ed-gutter)) / 12)))
    [content-end] minmax(var(--ed-edge), 1fr)
    [bleed-end];
  column-gap: var(--ed-gutter);
}

.editorial {
  row-gap: 0;
  padding-block: var(--space-9) var(--space-8);
}

/* ============================================================
   Hero lockup

   The homepage opens on a photograph and no prose at all. What
   stands at its foot is a single hairline rule with two things
   hanging off it: the nameplate on the left, the frame's own
   record on the right. Together they answer who and what without
   a sentence between them.

   The plate is a subgrid of the same twelve columns the editorial
   flow uses, so the nameplate starts on exactly the line the frame
   captions further down start on — one left margin runs the whole
   page.

   On the name appearing twice: the header wordmark is uppercase at
   caption size with an accent-coloured surname. This is larger, in
   one colour, and carries a mono second line. Same words, different
   voice — a masthead under a logo, which is how print does it.
   ============================================================ */

.hero__plate {
  grid-column: content-start / content-end;
  display: grid;
  grid-template-columns: subgrid;
  /* Bottom-aligned so the two small lines — PHOTOGRAPHY and the
     exposure — share a baseline. The tops are left ragged on
     purpose; matching both edges would turn a lockup into a table. */
  align-items: end;
  row-gap: var(--space-5);
  border-top: 1px solid var(--color-border-strong);
  padding-top: var(--space-4);
}

/* Auto-placement in a subgrid drops a child into one twelfth of the
   page, so the stacked reading has to be stated. */
.hero__plate > * {
  grid-column: content-start / content-end;
  min-width: 0;
  margin: 0;
}

@supports not (grid-template-columns: subgrid) {
  .hero__plate {
    display: block;
  }
  .hero__plate > * + * {
    margin-top: var(--space-5);
  }
}

/* ---------- Nameplate ---------- */

.hero__nameplate {
  font-family: var(--font-display);
  /* Substantial, not a headline. The photograph is still the loudest
     thing on the screen and should stay that way. */
  font-size: clamp(1.55rem, 1.05rem + 2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.02;
  /* Caps need positive tracking; the global heading rule sets -0.01em,
     which is right for mixed case and too tight for this. */
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* Mono, small, and widely tracked — it belongs to the data half of the
   rule as much as to the name, which is what ties the two together. */
.hero__nameplate-sub {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- Frame record ---------- */

.hero__coords {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 0.85rem + 0.8vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-text);
  /* The lock-on animation in js/main.js cycles each digit through 0-9
     before it settles. Not every mono fallback in the stack ships
     equal-width figures, and without this the line would twitch its
     width eight times a second while it resolves. */
  font-variant-numeric: tabular-nums;
}

/* One span per digit, built by js/main.js. A digit that is still
   cycling sits at muted weight and steps up to full strength as it
   locks, so the value resolves left to right in light as well as in
   text — the readout looks like it is acquiring a fix rather than
   shuffling for its own sake.

   Only ever applied to the aria-hidden copy of the line; the value
   screen readers get is the real one, present and correct from the
   first frame. */
.hero__coords-digit {
  color: var(--color-text-muted);
  transition: color 260ms ease;
}

.hero__coords-digit.is-locked {
  color: inherit;
}

.hero__exif {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  line-height: 1.7;
  /* No text-transform: renders exactly as typed, so "1/160s" and "38mm"
     keep lowercase units — matches .ed-meta__note. */
  color: var(--color-text-muted);
}

@media (min-width: 900px) {
  .hero__nameplate {
    grid-column: content-start / span 6;
  }

  .hero__frame-data {
    grid-column: span 5 / content-end;
    text-align: right;
  }
}

/* Mobile baseline: every block collapses to a single stacked column
   inside the content band. All the asymmetric placement below is
   additive, gated behind the desktop breakpoint. */
.ed-block {
  grid-column: content-start / content-end;
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
  margin-bottom: var(--space-8);
}

/* Every block is a subgrid, and auto-placement inside a subgrid drops a
   child into a SINGLE track — one twelfth of the page, a few pixels wide
   on a phone. So the stacked reading has to be stated, not assumed:
   full width by default, and the desktop composition overrides it with
   more specific selectors further down. */
.ed-block > * {
  grid-column: content-start / content-end;
  min-width: 0;
}

/* Without subgrid the blocks can't inherit the column rhythm, so they
   fall back to an honest single-column stack rather than a broken
   approximation of the composition. */
@supports not (grid-template-columns: subgrid) {
  .ed-block {
    display: block;
  }
  .ed-block > * + * {
    margin-top: var(--space-5);
  }
}

/* ---------- Frames ---------- */

.ed-figure {
  margin: 0;
  min-width: 0;
}

/* Hard corners. A print has hard corners; a rounded rectangle in a
   tidy grid is the loudest thing a page-builder theme says out loud.
   The gallery page keeps its radius — this is the deliberate contrast. */
.ed-frame {
  position: relative;
  overflow: hidden;
  background: transparent;
  --reveal-radius: 0px;
}

.ed-frame__btn {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in;
}

.ed-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.ed-frame__btn:hover img,
.ed-frame__btn:focus-visible img {
  transform: scale(1.03);
}

/* ---------- Frame metadata ----------
   Set in mono, at the size of a caption on a contact sheet. The mono
   register is doing real work here: it's a third voice against the
   display/body pairing, and it's the typographic signal that these
   numbers are field data rather than decoration. */

.ed-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
}

.ed-meta__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
}

.ed-meta__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.15;
  color: var(--color-text);
}

.ed-meta__note {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--color-text-faint);
  /* No text-transform: notes render exactly as typed, so units stay
     lowercase ("0.4s", "48mm") while "ISO" and place names keep their caps. */
}

/* A hairline above the meta block ties it to the frame it describes */
.ed-meta--ruled {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-4);
}

/* Small standing label — "On the work", "About". Shares the mono
   register with the frame numbers so the page has one quiet voice for
   every piece of apparatus, and the display face is reserved for the
   things worth reading. */
.ed-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ============================================================
   Block 01 — Opening frame
   Full-bleed photograph, caption hanging under its left edge.
   ============================================================ */

.ed-block--open {
  grid-column: bleed-start / bleed-end;
}

.ed-block--open .ed-figure {
  grid-column: bleed-start / bleed-end;
}

.ed-block--open .ed-frame {
  aspect-ratio: 4 / 5;
}

.ed-block--open .ed-meta {
  grid-column: content-start / content-end;
}

/* ============================================================
   Block 02 — Statement
   Pushed off-centre and left-aligned with a ragged right edge.
   A centred pull-quote is the single most template-shaped object
   on a photography homepage; this one hangs in the right two
   thirds with its label out in the margin.
   ============================================================ */

.ed-block--statement {
  margin-block: var(--space-9);
}

/* Sized between --fs-xl and --fs-2xl. The display scale's top step is
   built for a headline of a few words; a statement runs to a sentence
   or two, and at 2xl it stacks into a wall six lines deep. This lands
   large enough to be the loudest text on the page and still be read as
   prose. */
.ed-statement {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.9rem);
  line-height: 1.22;
  color: var(--color-text);
  text-wrap: pretty;
}

.ed-statement__label {
  padding-top: 0.6em;
}

/* ============================================================
   Block 03 — Duo
   Two frames at different scales and different vertical offsets.
   The whitespace between them is the composition; resist the urge
   to close the gap.
   ============================================================ */

.ed-block--duo .ed-frame--tall {
  aspect-ratio: 4 / 5;
}

.ed-block--duo .ed-frame--small {
  aspect-ratio: 1 / 1;
}

/* ============================================================
   Block 04 — Overlap
   A small frame sitting into the bottom-right corner of a larger
   one. Both live in row 1 of the block's private row axis, so the
   negative margin that creates the overlap can't reach the blocks
   above or below; the block reserves the same distance as padding.
   ============================================================ */

.ed-block--overlap .ed-frame--wide {
  aspect-ratio: 3 / 2;
}

.ed-block--overlap .ed-frame--inset {
  aspect-ratio: 4 / 5;
}

/* ============================================================
   Block 05 — Right bleed
   The frame runs off the right edge of the page. Its caption sits
   in the left margin, top-aligned to the frame.
   ============================================================ */

.ed-block--bleed-right .ed-frame {
  aspect-ratio: 3 / 2;
}

/* ============================================================
   Block 06 — About
   Portrait and text, but deliberately not top-aligned: the text
   column starts a third of the way down the portrait, so the pair
   reads as a spread rather than two equal boxes side by side.
   ============================================================ */

.ed-about__portrait {
  aspect-ratio: 4 / 5;
}

.ed-about__body h2 {
  font-size: var(--fs-lg);
  margin-top: var(--space-3);
}

.ed-about__body p {
  margin-top: var(--space-4);
}

/* ============================================================
   Index — categories as a typographic list
   Four equal image cards in a row is page-builder grammar. An
   archive index isn't: numbered rows, oversized names, a count
   in mono, and nothing else. There were hover thumbnails here
   once; they were desktop-and-mouse only, so most visitors never
   met them, and at a size that fits inside a row they could not
   say much about a category anyway. The list is stronger as type.
   ============================================================ */

.ed-index {
  grid-column: content-start / content-end;
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.ed-index__row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: clamp(1.1rem, 2.4vw, 2.1rem);
  border-bottom: 1px solid var(--color-border);
}

.ed-index__n {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
}

.ed-index__name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  transition: transform var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}

.ed-index__row:hover .ed-index__name,
.ed-index__row:focus-visible .ed-index__name {
  transform: translateX(clamp(0.5rem, 1.4vw, 1.4rem));
}

.ed-index__count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
  white-space: nowrap; /* "28 frames" never splits across two lines */
  transition: color var(--dur-fast) var(--ease-out);
}

.ed-index__row:hover .ed-index__count {
  color: var(--color-accent);
}

/* Phones: one name per line, count tucked underneath, on every row.
   Side by side, a long name ("Landscapes", "Automotive") squeezed the
   count onto two lines while short ones didn't, so rows didn't match.
   Stacking keeps the names at full size and every row identical,
   whatever the label length. */
@media (max-width: 639px) {
  .ed-index__row {
    grid-template-columns: 2.25rem 1fr;
    grid-template-areas:
      "n name"
      ". count";
    column-gap: var(--space-4);
    row-gap: var(--space-2);
  }

  .ed-index__n {
    grid-area: n;
  }

  .ed-index__name {
    grid-area: name;
  }

  .ed-index__count {
    grid-area: count;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-index__name {
    transition: none;
  }
  .ed-index__row:hover .ed-index__name {
    transform: none;
  }
}

/* ============================================================
   Filmstrip — the Instagram row
   Edge to edge, tight gutters, running off both sides of the
   viewport. A centred six-up grid of squares reads as a widget;
   a strip that overruns the page reads as a contact sheet.
   ============================================================ */

.ed-strip {
  grid-column: bleed-start / bleed-end;
  margin-bottom: var(--space-8);
}

.ed-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
  margin-bottom: var(--space-5);
}

.ed-strip__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.ed-strip__link {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.ed-strip__link:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

/* Scrolls horizontally at every width, and the frame sizes are chosen so
   the row always overruns the viewport — the last frame is cut by the
   right edge rather than fitting neatly inside it. That's the whole
   point: a row that ends flush is a widget, a row that runs off the page
   is a strip of film, and the clipped frame is its own affordance that
   there is more to drag. */
.ed-strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 19vw, 300px);
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-inline: var(--space-5);
}

/* Snap points fight a script that scrolls a fraction of a pixel per frame. */
.ed-strip__track.is-autoplay {
  scroll-snap-type: none;
}

.ed-strip__track::-webkit-scrollbar {
  display: none;
}

.ed-strip__track a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  scroll-snap-align: start;
}

.ed-strip__track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
}

/* "View post" cue. Only where a pointer can actually hover (or for keyboard
   focus): on a touch screen there is no hover, and :hover sticks after a
   tap, so a cue shown there would either never appear or never leave. Touch
   gets no overlay and goes straight to the post on one tap. The strip
   itself stops scrolling on hover/focus (js/main.js), so by the time the
   cue fades in the tile is already holding still; the small transition
   delay keeps it from flashing as the pointer sweeps across moving tiles. */
.ed-strip__track a::before,
.ed-strip__track a::after {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}

/* Scrim behind the text so it reads on bright photos (tulips, sunset). */
.ed-strip__track a::before {
  content: "";
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0) 55%);
}

.ed-strip__track a::after {
  content: "View post \2197";
  left: var(--space-4);
  bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
}

@media (hover: hover) {
  .ed-strip__track a:hover img {
    transform: scale(1.04);
    opacity: 0.8;
  }

  .ed-strip__track a:hover::before,
  .ed-strip__track a:hover::after {
    opacity: 1;
    transition-delay: 120ms;
  }
}

.ed-strip__track a:focus-visible img {
  opacity: 0.8;
}

.ed-strip__track a:focus-visible::before,
.ed-strip__track a:focus-visible::after {
  opacity: 1;
}

.ed-strip__track a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* ============================================================
   Closing block
   Left-aligned, oversized, with the practical details set small
   in the outer column. Replaces the centred gradient CTA banner,
   which is the most recognisable block in the whole genre.
   ============================================================ */

.ed-block--closing {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-7);
}

.ed-closing__title {
  font-size: var(--fs-2xl);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* A real text underline rather than a border-bottom. At this tight
   line-height the link's box ends above the descenders, so a border
   drew straight through the "g". An underline sits on the text itself:
   the offset sets it just below the baseline and skip-ink breaks it
   around the descender instead of crossing it. */
.ed-closing__title a {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: auto;
  transition: text-decoration-color var(--dur-med) var(--ease-out);
}

.ed-closing__title a:hover {
  text-decoration-color: var(--color-accent);
}

.ed-closing__aside {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.ed-closing__aside a:hover {
  color: var(--color-accent);
}

.ed-closing__label {
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.ed-closing__list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-text);
}

.ed-closing__list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: 0.4rem 0;
  border-top: 1px solid var(--color-border);
}

.ed-closing__list li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.ed-closing__n {
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}

/* Quieter second path beside "get in touch": for visitors who want
   the details before writing. Hover colour comes from the
   .ed-closing__aside a:hover rule above. */
.ed-closing__more {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  margin-top: var(--space-3);
  color: var(--color-text);
  transition: color var(--dur-med) var(--ease-out);
}

.ed-closing__more span {
  transition: transform var(--dur-med) var(--ease-out);
}

.ed-closing__more:hover span {
  transform: translateX(3px);
}

/* ============================================================
   Phone & tablet composition
   Fenced to below the desktop breakpoint so none of it can reach
   the desktop layout. The stacked reading needs its own rhythm:
   48px between frames that share a block, 72px between blocks,
   every caption under its own photo — and the two "small" frames
   kept small, hung off opposite sides, so the stack keeps a little
   of the desktop's variation in scale instead of becoming a column
   of identical full-width photos.
   ============================================================ */

@media (max-width: 899px) {
  /* Frames that sit side by side on desktop stack here; without this
     the second photo starts flush under the first one's caption. */
  .ed-block > .ed-figure + .ed-figure {
    margin-top: var(--space-7);
  }

  /* The block before already leaves 72px; the statement's own margins
     stacked on top of that made a 176px hole above it. */
  .ed-block--statement {
    margin-block: 0 var(--space-8);
  }

  /* On desktop this caption hangs in the margin beside its photo; in a
     single column it has to follow the photo like every other one. */
  .ed-block--bleed-right .ed-figure {
    order: -1;
  }

  /* Frame 03 hangs right, frame 05 hangs left. */
  .ed-block--duo .ed-figure--small,
  .ed-block--overlap .ed-figure--inset {
    width: 70%;
  }

  .ed-block--duo .ed-figure--small {
    justify-self: end;
  }

  .ed-block--overlap .ed-figure--inset {
    justify-self: start;
  }

  /* The About label sat flush against the bottom of the portrait. */
  .ed-about__body {
    margin-top: var(--space-5);
  }

  /* Side by side on desktop; stacked here, the "Available for" list
     started on the same pixel the closing line's underline sat on. */
  .ed-closing__aside {
    margin-top: var(--space-6);
  }
}

/* ============================================================
   Desktop composition
   Everything above is the stacked mobile reading of the page.
   Below is the actual layout — the off-axis placement, the
   offsets, the overlap, the bleeds.
   ============================================================ */

@media (min-width: 900px) {
  .ed-block {
    grid-column: bleed-start / bleed-end;
    margin-bottom: var(--space-9);
  }

  /* 01 — opening frame */
  .ed-block--open .ed-frame {
    aspect-ratio: 21 / 9;
  }

  .ed-block--open .ed-meta {
    grid-column: col 1 / span 4;
  }

  /* 02 — statement */
  .ed-block--statement {
    margin-block: var(--space-10) var(--space-9);
  }

  .ed-statement__label {
    grid-column: col 1 / span 2;
  }

  .ed-statement {
    grid-column: col 4 / span 8;
  }

  /* 03 — duo. The small frame drops well below the tall one's top
     edge and stops short of its baseline, so the two never read as
     a matched pair. */
  .ed-block--duo .ed-figure--tall {
    grid-column: col 1 / span 6;
  }

  .ed-block--duo .ed-figure--small {
    grid-column: col 9 / content-end;
    margin-top: var(--space-10);
  }

  /* 04 — overlap */
  .ed-block--overlap {
    padding-bottom: var(--space-8);
  }

  .ed-block--overlap .ed-figure--wide {
    grid-row: 1;
    grid-column: col 1 / span 8;
  }

  .ed-block--overlap .ed-figure--inset {
    grid-row: 1;
    grid-column: col 8 / span 4;
    align-self: end;
    margin-bottom: calc(-1 * var(--space-8));
    z-index: 1;
  }

  /* The inset frame needs to read as sitting *on top of* the wide
     one, not punched out of it — a dark rule off the page ground
     separates the two without a drop shadow. */
  .ed-block--overlap .ed-figure--inset .ed-frame {
    outline: var(--space-2) solid var(--color-bg);
  }

  .ed-block--overlap .ed-figure--inset .ed-meta {
    padding-top: var(--space-5);
  }

  /* 05 — right bleed */
  .ed-block--bleed-right .ed-meta {
    grid-column: col 1 / span 3;
    padding-top: 0;
  }

  .ed-block--bleed-right .ed-figure {
    grid-column: col 5 / bleed-end;
  }

  .ed-block--bleed-right .ed-frame {
    aspect-ratio: 16 / 9;
  }

  /* 06 — about */
  .ed-block--about .ed-about__portrait {
    grid-column: col 1 / span 5;
  }

  .ed-block--about .ed-about__body {
    grid-column: col 7 / span 5;
    padding-top: var(--space-9);
  }

  /* Index + strip stay in their own bands */
  .ed-index {
    margin-bottom: var(--space-9);
  }

  .ed-strip {
    margin-bottom: var(--space-9);
  }

  /* 07 — closing */
  .ed-closing__title {
    grid-column: col 1 / span 7;
  }

  .ed-closing__aside {
    grid-column: col 9 / content-end;
    padding-top: var(--space-3);
  }
}

/* The overlap and the right-hand bleed both depend on subgrid to keep
   their placement inside the block. Without it the fallback above has
   already flattened them, so make sure nothing is left half-applied. */
@supports not (grid-template-columns: subgrid) {
  .ed-block--overlap .ed-figure--inset .ed-frame {
    outline: none;
  }
  .ed-block--overlap .ed-figure--inset {
    margin-bottom: 0;
  }
}
