/* The editorial — Issue 01, The Launch Issue. A magazine laid out for the web:
   cover, founder's note, contents, five chapters (each with a full-screen opener), the details,
   the planner and credits. Uses site.css tokens (--bg, --fg, --muted, --dot, --serif, --sans,
   --line, --surface, --deep, --on-deep) so the Espresso / Cacao switch recolours it too.
   Readability: Bodoni stays at weight 500; small text is never under 14px. Motion stays calm. */

.page-editorial main { overflow-x: clip; }
.ed { --ed-gap: clamp(14px, 1.6vw, 24px); --ed-space: clamp(56px, 8vw, 132px); --bone: #F4EFE6; }
.ed figure { margin: 0; }
.ed img { display: block; width: 100%; height: auto; }

/* ---------- Small type: folios, captions, labels (14px and up) ---------- */
.ed-folio, .ed-fig figcaption, .ed-strip figcaption, .ed-mag-top, .ed-mag-lines span, .ed-mag-begin,
.ed-toc .n, .ed-next-k, .ed-colophon dt, .ed-issues .n, .ed-founder-photo figcaption {
  font-family: var(--sans); font-size: .875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
}
.ed-folio { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--muted); }
.ed-folio span + span::before { content: ""; display: inline-block; width: 26px; height: 1px; margin-right: 14px; vertical-align: middle; background: currentColor; opacity: .55; }
.ed-h2 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .95; letter-spacing: -.015em; font-size: clamp(2.6rem, 1.5rem + 3.8vw, 5.2rem); }
.ed-h2 em { font-style: italic; }
.ed-h2--sm { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.ed-standfirst { margin: 0; font-family: var(--serif); font-weight: 500; font-style: italic; line-height: 1.24; font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2.15rem); text-wrap: pretty; }
.ed-copy { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1.32; max-width: 26ch; }
.ed-dek { margin: 4px 0 0; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: var(--muted); }
.ed-quote { margin: 0; align-self: center; }
.ed-quote p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; line-height: 1.12; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem); text-wrap: balance; max-width: 16ch; }

/* ---------- Cover ---------- */
.ed-mag { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); min-height: max(640px, min(calc(100svh - 84px), 1000px)); border-bottom: 1px solid var(--line); }
.ed-mag-media { position: relative; overflow: hidden; background: var(--surface); }
.ed-mag-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ed-mag-panel { display: grid; grid-template-rows: auto 1fr auto auto; gap: clamp(24px, 3vw, 40px); padding: clamp(24px, 3.4vw, 56px) clamp(20px, 4vw, 72px); }
.ed-mag-top { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--muted); }
.ed-mag-title { align-self: center; display: grid; gap: clamp(10px, 1.4vw, 18px); }
.ed-mag-no { margin: 0; display: flex; align-items: flex-start; gap: 12px; font-family: var(--serif); font-weight: 500; line-height: .78; letter-spacing: -.03em;
  font-size: clamp(6rem, 3rem + 9vw, 13rem); color: var(--fg); }
.ed-mag-no span { font-family: var(--sans); font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1; padding-top: .6em; color: var(--dot); }
.ed-mag-title h1 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .95; letter-spacing: -.02em; font-size: clamp(2.8rem, 1.5rem + 3.8vw, 5.6rem); text-wrap: balance; }
.ed-mag-title h1 em { font-style: italic; }
.ed-mag-sub { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 1rem + .8vw, 1.8rem); color: var(--muted); }
.ed-mag-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ed-mag-lines li { border-bottom: 1px solid var(--line); }
.ed-mag-lines a { display: grid; gap: 4px; padding: 14px 0; text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.25; }
.ed-mag-lines span { color: var(--dot); }
.ed-mag-lines a:hover, .ed-mag-lines a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ed-mag-begin { justify-self: start; text-decoration: none; padding: 10px 0; border-bottom: 1px solid currentColor; }
@media (max-width: 899px) {
  .ed-mag { grid-template-columns: 1fr; min-height: 0; }
  .ed-mag-media { aspect-ratio: 4 / 5; max-height: 78svh; width: 100%; }
  .ed-mag-panel { padding-block: 28px 40px; }
}

/* ---------- From the founder ---------- */
.ed-founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 112px); align-items: center; padding-block: var(--ed-space); max-width: 1220px; }
.ed-founder-photo { max-width: 400px; display: grid; gap: 10px; }
.ed-founder-photo figcaption { color: var(--muted); }
.ed-founder-body { display: grid; gap: clamp(16px, 2vw, 24px); max-width: 60ch; }
.ed-dropcap { margin: 0; font-size: 1.06rem; line-height: 1.65; }
.ed-dropcap::first-letter { float: left; margin: .1em .1em 0 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.9em; line-height: .86; color: var(--cacao); } /* option E: small italic initial over two lines, in cacao */
.ed-founder-sign { display: flex; align-items: center; gap: 16px; }
.ed-founder-sign img { width: auto; height: 52px; }
.ed-founder-sign span { font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
@media (max-width: 699px) { .ed-founder { grid-template-columns: 1fr; } .ed-founder-photo { max-width: 240px; } }

/* ---------- Contents ---------- */
.ed-toc { padding-block: 0 var(--ed-space); }
.ed-toc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--fg); margin-bottom: clamp(24px, 3vw, 40px); }
.ed-toc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ed-gap); }
.ed-toc-list a { display: grid; gap: 8px; text-decoration: none; }
.ed-toc-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); margin-bottom: 6px; }
.ed-toc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.ed-toc-list a:hover .ed-toc-img img { transform: scale(1.03); }
.ed-toc .n { color: var(--dot); }
.ed-toc .t { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.3rem); line-height: 1; }
.ed-toc .d { font-size: .98rem; color: var(--muted); line-height: 1.4; }
.ed-toc-list a:hover .t, .ed-toc-list a:focus-visible .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.ed-toc-more { list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 32px; }
.ed-toc-more a { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 1.25rem; text-decoration: none; }
.ed-toc-more a:hover, .ed-toc-more a:focus-visible { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 899px) {
  .ed-toc-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .ed-toc-list a { grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 18px; row-gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); align-content: center; }
  .ed-toc-img { grid-row: 1 / 4; margin: 0; }
  .ed-toc .n, .ed-toc .t, .ed-toc .d { grid-column: 2; }
}

/* ---------- Chapters and their openers ---------- */
.ed-chapter { padding-bottom: var(--ed-space); }
.ed-chapter--light { background: var(--surface); }
.ed-chapter--dark { background: var(--deep); color: var(--on-deep); }
.ed-opener { position: relative; margin-bottom: var(--ed-space); }
.ed-opener--full { height: max(520px, min(94svh, 64vw)); overflow: hidden; color: var(--bone); background: var(--deep); }
.ed-opener-frame { position: absolute; inset: 0; overflow: hidden; }
.ed-opener-frame > img, .ed-opener-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ed-opener--film .ed-opener-frame > img, .ed-opener--film .ed-opener-frame > video { object-position: var(--pos, 50% 50%); }
.ed-opener--full::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 16, 12, .3) 0%, rgba(20, 16, 12, 0) 24%, rgba(20, 16, 12, 0) 48%, rgba(20, 16, 12, .62) 100%); }
.ed-opener--full .ed-opener-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 10px;
  padding: 0 max(20px, env(safe-area-inset-right, 0px), 5vw) clamp(28px, 5vw, 72px) max(20px, env(safe-area-inset-left, 0px), 5vw); }
.ed-opener--full .ed-folio { color: rgba(244, 239, 230, .92); }
.ed-opener-title { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .86; letter-spacing: -.025em; font-size: clamp(4.2rem, 1.6rem + 10vw, 12rem); }
.ed-opener-title em { font-style: italic; }
.ed-opener--full .ed-opener-title { text-shadow: 0 2px 40px rgba(0, 0, 0, .22); }
.ed-opener-dek { margin: 4px 0 0; max-width: 34ch; font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); line-height: 1.3; }
.ed-opener-frame > .ed-vid-toggle { right: max(16px, env(safe-area-inset-right, 0px), 3vw); top: clamp(16px, 2.4vw, 32px); bottom: auto; }
.ed-opener--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: max(560px, min(92svh, 980px)); border-bottom: 1px solid var(--line); }
.ed-opener--split .ed-opener-media { order: 2; position: relative; overflow: hidden; background: var(--surface); }
.ed-opener--split .ed-opener-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.ed-opener--split .ed-opener-text { align-self: end; display: grid; gap: 12px; padding: clamp(28px, 5vw, 80px) clamp(20px, 4vw, 64px); }
.ed-opener--split .ed-opener-title { font-size: clamp(3.4rem, 1rem + 5vw, 8.4rem); }
.ed-opener--split .ed-opener-dek { color: var(--muted); }
.ed-opener--split-r { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ed-opener--split-r .ed-opener-media { order: 0; }
.ed-opener--split-r .ed-opener-media img { object-position: 50% 50%; }
.ed-quote > span { display: block; font-family: var(--serif); font-weight: 500; line-height: 1.12; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem); max-width: 14ch; text-wrap: balance; }
.ed-quote > span em { font-style: italic; }
.ed-chapter--dark .ed-folio, .ed-chapter--dark .ed-opener-dek, .ed-chapter--dark .ed-dek,
.ed-chapter--dark .ed-fig figcaption > span:first-child { color: color-mix(in srgb, var(--on-deep) 78%, transparent); }
.ed-chapter--dark .ed-fig figcaption { color: var(--on-deep); }
.ed-chapter--dark .ed-opener--split { border-color: color-mix(in srgb, var(--on-deep) 18%, transparent); }
@media (max-width: 699px) {
  .ed-opener--full { height: auto; overflow: visible; color: inherit; background: none; }
  .ed-opener--full::after { content: none; }
  .ed-opener-frame { position: relative; aspect-ratio: 4 / 5; max-height: 82svh; }
  .ed-opener--film .ed-opener-frame { aspect-ratio: 1 / 1; }
  .ed-opener--full .ed-opener-text { position: static; padding: 24px 16px 8px; }
  .ed-opener--full .ed-folio { color: var(--muted); }
  .ed-opener--full .ed-opener-title { text-shadow: none; }
}
@media (min-width: 700px) and (max-width: 899px) {
  .ed-opener--full { height: max(500px, 86svh); }
}
@media (max-width: 899px) {
  .ed-opener--split { grid-template-columns: 1fr; min-height: 0; }
  .ed-opener--split .ed-opener-media { order: 0; aspect-ratio: 4 / 5; max-height: 82svh; }
  .ed-opener--split .ed-opener-text { padding: 28px 16px 8px; }
}

/* Next chapter */
.ed-next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "k k a" "t d a"; align-items: baseline; gap: 6px 28px;
  margin-top: var(--ed-space); padding-top: 24px; border-top: 1px solid currentColor; text-decoration: none; }
.ed-next-k { grid-area: k; color: var(--dot); }
.ed-next-t { grid-area: t; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem); line-height: 1; }
.ed-next-d { grid-area: d; color: var(--muted); }
.ed-next-a { grid-area: a; align-self: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.ed-next:hover .ed-next-t, .ed-next:focus-visible .ed-next-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.ed-chapter--dark .ed-next-k { color: color-mix(in srgb, var(--on-deep) 78%, transparent); }
.ed-chapter--dark .ed-next-d { color: color-mix(in srgb, var(--on-deep) 78%, transparent); }
@media (max-width: 599px) { .ed-next { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k a" "t a" "d a"; } }

/* ---------- Figures and captions ---------- */
.ed-fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 10px; color: var(--fg); letter-spacing: .1em; }
.ed-fig figcaption > span:first-child { color: var(--muted); }
.ed-fig figcaption a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s ease; }
.ed-fig figcaption a:hover, .ed-fig figcaption a:focus-visible { background-size: 100% 1px; }
.ed-crop { display: block; overflow: hidden; aspect-ratio: 4 / 4.3; }
.ed-crop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }

/* ---------- Grids: 12 columns on wide screens, one column on phones ---------- */
.ed-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--ed-gap); align-items: start; }
/* Shoot rhythm: spreads sit closer together than chapters */
.ed { --ed-beat: clamp(40px, 6.4vw, 112px); }
.ed-grid + .ed-grid, .ed-grid + .ed-bleed, .ed-bleed + .ed-grid, .ed-grid + .ed-full, .ed-full + .ed-grid, .ed-full + .ed-full, .ed-intro + .ed-grid { margin-top: var(--ed-beat); }
.ed-grid--focus .ed-a { grid-column: 1 / span 7; }
.ed-grid--focus .ed-b { grid-column: 9 / span 4; display: grid; gap: clamp(28px, 4vw, 64px); align-content: start; padding-top: clamp(0px, 8vw, 140px); }
.ed-grid--two > :first-child { grid-column: 1 / span 7; }
.ed-grid--two .ed-drop { grid-column: 9 / span 4; margin-top: clamp(0px, 16vw, 280px); }
.ed-grid--offset .ed-quote { grid-column: 1 / span 5; }
.ed-grid--offset .ed-fig { grid-column: 7 / span 6; }
.ed-grid--pair > :first-child { grid-column: 2 / span 5; }
.ed-grid--pair > :last-child { grid-column: 8 / span 5; }
.ed-grid--pair .ed-drop { margin-top: clamp(0px, 12vw, 220px); }
.ed-grid--three > * { grid-column: span 4; }
.ed-grid--three > :nth-child(2) { margin-top: clamp(0px, 6vw, 110px); }
.ed-grid--reflect { align-items: center; }
.ed-grid--reflect > :first-child { grid-column: 1 / span 4; }
.ed-grid--reflect > :last-child { grid-column: 6 / span 7; }
.ed-grid--even > * { grid-column: span 6; }
.ed-grid--four { gap: clamp(10px, 1.2vw, 18px); }
.ed-grid--four > * { grid-column: span 3; }
.ed-grid--four > :nth-child(even) { margin-top: clamp(0px, 4vw, 72px); }
.ed-grid--big3 { grid-template-rows: auto auto; }
.ed-grid--big3 > .ed-big { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.ed-grid--big3 > :nth-child(2) { grid-column: 9 / span 4; }
.ed-grid--big3 > :nth-child(3) { grid-column: 9 / span 3; align-self: end; }
.ed-grid--single > * { grid-column: 4 / span 6; }
.ed-grid--wide > * { grid-column: 1 / -1; }
.ed-intro--solo { display: block; max-width: 1100px; }
.ed-intro--solo .ed-standfirst { max-width: 30ch; }
.ed-full { margin: 0; }
.ed-full img { width: 100%; height: auto; max-height: 92svh; object-fit: cover; }
.ed-full figcaption { padding-top: 10px; color: var(--muted); font-family: var(--sans); font-size: .875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.ed-wide .ed-fig img { width: 100%; }
@media (max-width: 899px) {
  .ed-grid { grid-template-columns: 1fr; gap: clamp(28px, 7vw, 40px); }
  .ed-grid > *, .ed-grid .ed-a, .ed-grid .ed-b, .ed-grid .ed-fig, .ed-grid .ed-quote { grid-column: 1 / -1 !important; }
  .ed-grid--focus .ed-b, .ed-drop, .ed-grid--three > :nth-child(2) { margin-top: 0 !important; padding-top: 0; }
  .ed-grid .ed-drop { width: 72%; justify-self: end; }
  .ed-grid--three { grid-template-columns: 1fr 1fr; }
  .ed-grid--three > :first-child { grid-column: 1 / -1 !important; }
  .ed-grid--three > :not(:first-child) { grid-column: auto !important; }
  .ed-grid--even, .ed-grid--four { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ed-grid--even > *, .ed-grid--four > * { grid-column: auto !important; }
  .ed-grid--four > :nth-child(even) { margin-top: 28px; }
  .ed-grid--land { grid-template-columns: 1fr; }
  .ed-grid--big3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ed-grid--big3 > .ed-big { grid-column: 1 / -1 !important; grid-row: auto; }
  .ed-grid--big3 > :not(.ed-big) { grid-column: auto !important; }
  .ed-grid--single > * { width: 86%; justify-self: center; }
}
@media (max-width: 599px) {
  .ed-grid--even .ed-fig figcaption, .ed-grid--four .ed-fig figcaption, .ed-grid--three .ed-fig figcaption, .ed-grid--big3 .ed-fig figcaption { letter-spacing: .06em; }
}

/* ---------- Full-width interludes ---------- */
.ed-bleed { position: relative; height: max(420px, min(88svh, 66vw)); overflow: hidden; color: var(--bone); background: var(--deep); }
.ed-bleed img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 60%; }
.ed-bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 16, 12, .5), rgba(20, 16, 12, .08) 65%); }
.ed-bleed-text { position: absolute; z-index: 1; left: max(24px, env(safe-area-inset-left, 0px), 5vw); bottom: clamp(28px, 7vw, 96px); margin: 0; max-width: 12ch;
  font-family: var(--serif); font-weight: 500; line-height: 1; font-size: clamp(2.6rem, 1.4rem + 4.8vw, 6.4rem); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.ed-bleed-text em { font-style: italic; }
.ed-bleed--end img { object-position: 50% 50%; }

/* ---------- Films: a still under a silent clip that fades into it before repeating ---------- */
.ed-vid { position: relative; overflow: hidden; background: var(--surface); }
.ed-vid > img.ed-vid-poster, .ed-vid > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-vid > video, .ed-opener-frame > video { opacity: 1; transition: opacity 1.2s ease; }
.ed-vid.is-fading > video, .ed-opener-frame.is-fading > video { opacity: 0; }
.ed-vid.is-snap > video, .ed-opener-frame.is-snap > video { transition: none; }
.ed-vid-toggle { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(244, 239, 230, .55); background: rgba(22, 19, 16, .32); color: var(--bone); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: .85; transition: opacity .3s ease; }
.ed-vid-toggle:hover, .ed-vid-toggle:focus-visible { opacity: 1; }
.ed-vid-toggle:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.ed-vid-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 12px; transform: translate(-50%, -50%);
  border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.is-paused > .ed-vid-toggle::before { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; transform: translate(-35%, -50%); }

/* ---------- The details ---------- */
.ed-details { padding-block: var(--ed-space); border-bottom: 1px solid var(--line); }
.ed-details-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(20px, 3vw, 36px); }
.ed-strip-ctrl { display: flex; gap: 8px; }
.ed-strip-ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--fg); cursor: pointer; font-size: 1rem; }
.ed-strip-ctrl button:hover { border-color: var(--fg); }
.ed-strip-ctrl button:disabled { opacity: .35; cursor: default; }
.ed-strip { display: flex; gap: var(--ed-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-left: max(16px, env(safe-area-inset-left, 0px), calc((100vw - 1360px) / 2 + 48px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); scroll-padding-left: max(16px, calc((100vw - 1360px) / 2 + 48px)); }
.ed-strip::-webkit-scrollbar { display: none; }
.ed-strip:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.ed-strip figure { flex: none; scroll-snap-align: start; }
.ed-strip img:not(.ed-vid-poster) { height: clamp(300px, 34vw, 480px); width: auto; max-width: none; }
.ed-strip .ed-vid { height: clamp(300px, 34vw, 480px); }
.ed-strip figcaption { padding-top: 10px; color: var(--muted); letter-spacing: .1em; }

/* ---------- The planner ---------- */
.ed-shop-issue { padding-block: var(--ed-space); }
.ed-shop-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 52px); }
.ed-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ed-gap); }
.ed-product { display: grid; gap: 14px; text-decoration: none; color: inherit; }
.ed-product-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.ed-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.ed-product-img--cover { display: grid; place-items: center; }
.ed-product-img--cover img { width: 52%; height: auto; object-fit: contain; box-shadow: 0 30px 50px -28px rgba(30, 20, 10, .5); }
.ed-product:hover .ed-product-img img { transform: scale(1.025); }
.ed-product-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.ed-product-meta b { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; }
.ed-product-meta > span { color: var(--muted); font-size: .95rem; }
.ed-price { margin-left: auto; color: var(--fg) !important; font-weight: 500; }
@media (max-width: 599px) { .ed-products { grid-template-columns: 1fr; } }

/* ---------- Credits ---------- */
.ed-colophon { padding-block: var(--ed-space); border-top: 1px solid var(--fg); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(28px, 5vw, 80px); }
.ed-colophon dl { margin: 0; display: grid; border-top: 1px solid var(--line); }
.ed-colophon dl > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ed-colophon dt { color: var(--muted); }
.ed-colophon dd { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.4; }
.ed-issues { grid-column: 2; display: grid; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
.ed-issues ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ed-issues li { display: grid; grid-template-columns: 8em minmax(0, 1fr) auto; gap: 6px 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ed-issues .n { color: var(--dot); }
.ed-issues .t { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.4rem; }
.ed-issues .d { font-size: .95rem; color: var(--muted); }
@media (max-width: 899px) {
  .ed-colophon { grid-template-columns: 1fr; }
  .ed-issues { grid-column: 1; }
}
@media (max-width: 599px) { .ed-colophon dl > div, .ed-issues li { grid-template-columns: 1fr; } }

/* ---------- Photo viewer ---------- */
[data-lightbox] { cursor: zoom-in; }
.ed-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: calc(56px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(56px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgba(22, 19, 16, .96); color: var(--bone, #F4EFE6); opacity: 0; transition: opacity .35s ease; }
.ed-lightbox.is-open { opacity: 1; }
.ed-lb-figure { margin: 0; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 12px; }
.ed-lb-figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; align-self: center; }
.ed-lb-figure figcaption { font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; color: rgba(244, 239, 230, .92); }
.ed-lb-nav, .ed-lb-close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(244, 239, 230, .35); background: none; color: inherit; font-size: 1.1rem; cursor: pointer; }
.ed-lb-nav:hover, .ed-lb-close:hover { border-color: #F4EFE6; }
.ed-lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); font-size: 1.5rem; }
.ed-lb-count { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font-size: .875rem; letter-spacing: .16em; color: rgba(244, 239, 230, .85); }
@media (max-width: 599px) { .ed-lightbox { grid-template-columns: minmax(0, 1fr); } .ed-lb-nav { display: none; } }
body.ed-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .ed-toc-img img, .ed-product-img img, .ed-vid > video, .ed-opener-frame > video { transition: none; }
}

/* Openers whose subject is on the left carry their title on the right (wide screens) */
@media (min-width: 700px) {
  .ed-opener--right .ed-opener-text { justify-items: end; text-align: right; }
  .ed-opener--right .ed-folio { justify-content: flex-end; }
  .ed-opener--right .ed-opener-dek { justify-self: end; }
  .ed-opener--right::after { background: linear-gradient(180deg, rgba(20, 16, 12, .3) 0%, rgba(20, 16, 12, 0) 24%, rgba(20, 16, 12, 0) 48%, rgba(20, 16, 12, .62) 100%), linear-gradient(270deg, rgba(20, 16, 12, .35), rgba(20, 16, 12, 0) 55%); }
}
@media (max-width: 699px) {
  .ed-opener-title { font-size: clamp(3rem, 15.5vw, 5rem); }
  .ed-chapter--dark .ed-opener--full .ed-folio, .ed-chapter--dark .ed-opener--full .ed-opener-dek { color: color-mix(in srgb, var(--on-deep) 80%, transparent); }
}

/* Cinematic films: a soft filmic grade, a gentle vignette and, on chapter openers, a very slow push-in.
   The grade only touches the moving picture, so the poster and the film match when they swap. */
.ed-vid > video, .ed-vid > img.ed-vid-poster, .ed-opener-frame > video, .ed-opener-frame > img.ed-vid-poster {
  filter: contrast(1.05) saturate(.9) sepia(.06) brightness(.98); }
.ed-vid::after, .ed-opener-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at 50% 45%, rgba(20, 16, 12, 0) 55%, rgba(20, 16, 12, .32) 100%); }
.ed-vid-toggle { z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .ed-opener-frame > video, .ed-opener-frame > img.ed-vid-poster { animation: ed-push 26s ease-in-out infinite alternate; transform-origin: 50% 55%; }
}
@keyframes ed-push { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Cover collage: the reveal film beside two stills from the shoot */
.ed-mag-collage { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: 1fr 1fr; gap: 6px; background: var(--bg); }
.ed-mag-collage > * { position: relative; overflow: hidden; margin: 0; min-height: 0; background: var(--surface); }
.ed-mag-film { grid-row: 1 / span 2; }
.ed-mag-collage img, .ed-mag-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-mag-film > img, .ed-mag-film > video { object-position: 50% 62%; filter: contrast(1.04) saturate(.94) sepia(.05); transition: opacity .3s ease; }
.ed-mag-film.is-fading > video { opacity: 0; }
.ed-mag-film.is-snap > video { transition: none; }
.ed-mag-still:nth-child(2) img { object-position: 50% 30%; }
.ed-mag-still:nth-child(3) img { object-position: 50% 25%; }
.ed-mag-film > .ed-vid-toggle { right: 12px; bottom: 12px; }
@media (max-width: 899px) {
  .ed-mag-collage { aspect-ratio: 4 / 4.4; max-height: none; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

/* Clear chapter boundaries, with the title readable before the film at every size. */
.ed-chapter-heading {
  display: grid; gap: 14px;
  padding: clamp(28px, 4vw, 64px) max(20px, calc((100vw - 1360px) / 2));
  background: var(--deep); color: var(--on-deep);
  border-top: 5px solid var(--dot);
  border-bottom: 1px solid color-mix(in srgb, var(--on-deep) 35%, transparent);
}
.ed-chapter-heading .ed-folio { color: var(--on-deep); font-weight: 500; }
.ed-chapter-heading .ed-opener-title { font-size: clamp(2.8rem, 1.6rem + 6vw, 7rem); line-height: 1.05; }
.ed-chapter-heading .ed-opener-dek { color: var(--on-deep); max-width: 52ch; }
.ed-chapter .ed-opener--full::after { content: none; }
.ed-founder, .ed-toc, .ed-details, .ed-shop-issue, .ed-colophon {
  border-top: 2px solid color-mix(in srgb, var(--fg) 45%, transparent);
}
@media (max-width: 699px) {
  .ed-chapter-heading { gap: 12px; padding: 26px 20px 30px; }
  .ed-chapter-heading .ed-folio { font-size: .875rem; letter-spacing: .09em; }
}
