/* =====================================================================
   Tinusha Savidya — site styles
   Grey-lady typography with a lilac twist. Shared by the public site
   and the publish portal's live canvas.
   ===================================================================== */

:root {
  /* a cooler, whiter paper: reads clean on cheap screens instead of grey */
  --paper: #FAFAF7;
  --paper-2: #F0EFEA;
  --ink: #121212;
  --ink-2: #333;
  --muted: #5f5f5f;
  --faint: #807d78;
  --hair: #DCD9D2;
  /* lilac, not violet: a warmer, pinker purple for text (5.5:1 on paper) … */
  --accent: #804DB3;
  --accent-deep: #5E3488;
  --lilac: #F4EFF9;
  --lilac-2: #E6D8F3;
  /* … and a pale lilac for the mark and ornaments, where contrast is not needed */
  --lilac-mark: #B592DC;
  --night: #15131B;

  /* each web font falls back to a local face resized to the same metrics (fonts.css), so nothing jumps when it loads */
  --serif: 'Newsreader', 'Newsreader Fallback', 'Iowan Old Style', Georgia, serif;
  --display: 'Noto Serif Display', 'Noto Serif Display Fallback', 'Newsreader', Georgia, serif;
  --sans: 'Libre Franklin', 'Libre Franklin Fallback', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  --nameplate: 'Old Standard TT', 'Old Standard TT Fallback', 'Noto Serif Display', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --measure: 37rem;
  --wide: 68rem;
  --max: 82rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --text-size: clamp(1.125rem, 1.03rem + 0.33vw, 1.3rem);
}

/* ---------- per-story colour themes ---------- */
[data-theme="cream"] { --paper: #F3EDE1; --paper-2: #E9E1D1; --hair: #D8CDB8; --lilac: #F1EAF3; }
[data-theme="white"] { --paper: #FFFFFF; --paper-2: #F3F2EF; --hair: #E2DFD9; }
[data-theme="lilac"] { --paper: #F7F3FB; --paper-2: #EDE5F6; --hair: #DDD1EC; --lilac: #EFE7F8; --lilac-2: #E3D4F2; }
[data-theme="night"] { --paper: #15131B; --accent: #BD98E1; }
[data-theme="ink"] { --paper: #0E0E0E; --accent: #BD98E1; }
[data-tone="light"][style*="--paper"] {
  --paper-2: color-mix(in srgb, var(--paper) 93%, #000);
  --hair: color-mix(in srgb, var(--paper) 82%, #000);
}
[data-tone="dark"] {
  --ink: #ECE9F3; --ink-2: #CFCBD8; --muted: #A8A3B3; --faint: #847F8F;
  --paper-2: color-mix(in srgb, var(--paper) 90%, #fff);
  --hair: color-mix(in srgb, var(--paper) 78%, #fff);
  --lilac: color-mix(in srgb, var(--accent) 16%, var(--paper));
  --lilac-2: color-mix(in srgb, var(--accent) 30%, var(--paper));
  --accent-deep: color-mix(in srgb, var(--accent) 60%, #fff);
  color-scheme: dark;
}
[data-accent] {
  --accent-deep: color-mix(in srgb, var(--accent) 78%, var(--ink));
  --lilac: color-mix(in srgb, var(--accent) 7%, var(--paper));
  --lilac-2: color-mix(in srgb, var(--accent) 17%, var(--paper));
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 4rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img, video { max-width: 100%; height: auto; }
/* responsive photos are <picture> wrappers; the <img> inside is the box */
picture { display: contents; }
/* blurred placeholder (set by the build) shows until the photo arrives */
.prose .fig img, .hero-img, .card-media :is(img, video), .next-media img, .wall img { background-image: var(--lqip, none); background-size: cover; background-position: center; background-repeat: no-repeat; }

/* contemporary text setting: balanced headlines and deks, no orphans in paragraphs */
:is(h1, h2, h3, h4, .hero-title, .card-title, .page-title, .next-title, .hero-dek, .card-dek, .page-dek, .next-dek, blockquote, .pullquote) { text-wrap: balance; }
:is(p, li, figcaption, .sidenote) { text-wrap: pretty; }
/* dates: lining, tabular figures, so they line up in lists (set in the text face, which has them) */
time, .hit-date { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--lilac-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem .8rem; font: 600 .8rem var(--sans); z-index: 100; }
.skip:focus { left: .5rem; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .17em; cursor: pointer; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--ink); border-radius: 50%;
  transition: background .2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .8rem/1 var(--sans); letter-spacing: .02em;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 3px; padding: .9rem 1.3rem; cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--accent); }

/* ---------- reading progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* =====================================================================
   Masthead
   ===================================================================== */
.masthead { font-family: var(--sans); }
.masthead-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0 .6rem;
  max-width: var(--max); margin: 0 auto; padding: .5rem var(--gutter);
}
.masthead-tools { display: flex; align-items: center; gap: .25rem; }
/* the row of links under the nameplate */
.masthead-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(1.8rem, 6vw, 3.6rem); list-style: none; margin: 0; padding: 0 var(--gutter); }
.masthead-nav :is(a, button) {
  display: block; cursor: pointer; background: none; border: 0; padding: .5rem .15rem;
  font: 500 .86rem/1.3 var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .4em;
}
.masthead-nav :is(a, button):hover, .masthead-nav a[aria-current="page"] { text-decoration-color: var(--lilac-mark); }
/* the nameplate: a small slender cross + name in a Scotch Roman, set like a broadsheet's */
.logo { width: 1em; height: 1em; flex: none; color: var(--lilac-mark); }
.masthead-name, .footer-name {
  display: inline-flex; align-items: baseline; gap: .32em;
  font-family: var(--nameplate); font-weight: 700; text-transform: uppercase;
  text-decoration: none; color: var(--ink); letter-spacing: -.012em; line-height: 1; white-space: nowrap;
}
.masthead-name .logo, .footer-name .logo { width: .6em; height: .6em; position: relative; top: -.055em; } /* optically centred on the capitals */
.masthead--compact { border-bottom: 1px solid var(--hair); background: var(--paper); }
.masthead--compact .masthead-name { font-size: clamp(1.02rem, .55rem + 2.1vw, 1.6rem); padding: .15rem 0; }

.masthead--home { text-align: center; }
.masthead-date { margin: 0; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.masthead-motto { margin: .55rem 0 0; font: italic 400 1.05rem/1.3 var(--serif); color: var(--ink-2); padding: 0 var(--gutter); }
.masthead-title { margin: .5rem 0 0; font-weight: inherit; padding: 0 var(--gutter); }
.masthead--home .masthead-name { font-size: min(6.2vw, 5.4rem); }
.masthead--home .masthead-nav { margin-top: .9rem; }
.masthead-rule {
  max-width: calc(var(--max) - 2 * var(--gutter)); margin: .45rem auto 0; width: calc(100% - 2 * var(--gutter));
  height: 6px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  background: var(--lilac-2); /* the lilac between the rules */
}

@media (max-width: 40rem) {
  .masthead-date { display: none; }
  .masthead--home .masthead-bar { grid-template-columns: 1fr 1fr; }
  .masthead--home .masthead-name { font-size: 7vw; }
}

/* ---------- on stories, search and links appear when the name is pointed at ---------- */
/* Article pages only; everywhere else they always show.
   Mouse and trackpad only: touch screens have no hover, so there they always show.
   Hidden with opacity + clip-path, so the keyboard can still reach them and the pointer can't.
   The delay on hiding gives the pointer time to travel from the name to them; it is kept
   (without the fade) when motion is reduced, hence !important. */
@media screen and (hover: hover) and (pointer: fine) {
  @supports selector(:has(a)) {
    .page-article .masthead :is(.masthead-tools, .masthead-nav) {
      opacity: 0; clip-path: inset(50%);
      transition: opacity .25s ease .8s, clip-path 0s linear 1.05s !important;
    }
    .page-article .masthead:has(.masthead-name:hover, .masthead-tools:hover, .masthead-nav:hover, :focus-visible) :is(.masthead-tools, .masthead-nav) {
      opacity: 1; clip-path: inset(-1rem);
      transition: opacity .25s ease, clip-path 0s !important;
    }
    html[data-rd-motion] .page-article .masthead :is(.masthead-tools, .masthead-nav) { transition: opacity 0s linear 1s, clip-path 0s linear 1s !important; }
    html[data-rd-motion] .page-article .masthead:has(.masthead-name:hover, .masthead-tools:hover, .masthead-nav:hover, :focus-visible) :is(.masthead-tools, .masthead-nav) { transition: none !important; }
  }
}
@media screen and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  @supports selector(:has(a)) {
    .page-article .masthead :is(.masthead-tools, .masthead-nav) { transition: opacity 0s linear 1s, clip-path 0s linear 1s !important; }
    .page-article .masthead:has(.masthead-name:hover, .masthead-tools:hover, .masthead-nav:hover, :focus-visible) :is(.masthead-tools, .masthead-nav) { transition: none !important; }
  }
}

/* ---------- header set on the photo (immersive, cover, poster) ---------- */
.masthead-over .masthead--compact {
  position: absolute; left: 0; right: 0; z-index: 40; border: 0; pointer-events: none;
  padding-bottom: 2.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .62) 0, rgba(0, 0, 0, .46) 62%, rgba(0, 0, 0, 0) 100%);
}
.masthead-over .masthead--compact :is(.masthead-bar > *, .masthead-nav li) { pointer-events: auto; }
.masthead-over .masthead--compact :is(.masthead-name, .icon-btn, .masthead-nav a, .masthead-nav button) { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.masthead-over .masthead--compact .logo { color: #DCC6F2; }
.masthead-over .masthead--compact .icon-btn:hover { background: rgba(255, 255, 255, .16); }
.masthead-over .masthead--compact :focus-visible { outline-color: #fff; }
.masthead-over .hero--immersive:not(.hero--noimage) .hero-stage,
.masthead-over .hero--cover:not(.hero--noimage) .hero-stage { height: 100svh; }
.masthead-over .hero--poster .hero-img { height: min(76svh, 54rem); }
@keyframes fade { from { opacity: 0; } }

/* ---------- popups: search & saved ---------- */
.modal {
  width: min(44rem, calc(100vw - 2rem)); max-height: min(78vh, 46rem); margin: 9vh auto auto;
  padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(20, 12, 40, .28);
  font-family: var(--sans);
}
.modal[open] { display: flex; flex-direction: column; animation: pop .22s cubic-bezier(.2, .7, .2, 1); }
.modal::backdrop { background: rgba(18, 16, 24, .38); }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
.modal-search { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem .7rem 1.2rem; border-bottom: 1px solid var(--hair); }
.modal-search-icon { color: var(--faint); display: grid; }
.modal-search input {
  flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); padding: .5rem 0;
  font: 400 clamp(1.4rem, 1.1rem + 1vw, 1.8rem)/1.2 var(--display); font-stretch: 87.5%;
}
.modal-search input:focus { outline: none; }
.modal-search input::-webkit-search-cancel-button { display: none; }
.modal-status, .modal-note { margin: 0; padding: .8rem 1.2rem 0; font-size: .75rem; color: var(--muted); }
.modal-status:empty { display: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem .8rem .2rem 1.2rem; }
.modal-title { margin: 0; font: 700 1.9rem/1 var(--display); font-stretch: 62.5%; }
.modal-list { overflow-y: auto; padding: .4rem 1.2rem 1.2rem; }
.modal-list:empty { padding: 0; }
.hit {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: .85rem 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink);
}
.hit:last-child { border-bottom: 0; }
.hit-img { width: 4.5rem; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: var(--paper-2); display: block; }
.hit-title { display: block; font: 500 1.12rem/1.2 var(--display); font-stretch: 87.5%; }
.hit:hover .hit-title { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
.hit-sub { display: block; margin-top: .25rem; font: 400 .85rem/1.4 var(--serif); color: var(--ink-2); }
.hit-sub mark, .hit-title mark { background: var(--lilac-2); color: inherit; }
.hit-date { display: block; margin-top: .3rem; font-size: .7rem; color: var(--faint); }
.hit-remove { border: 0; background: none; color: var(--faint); cursor: pointer; padding: .4rem; border-radius: 50%; display: grid; }
.hit-remove:hover { color: var(--accent); background: var(--lilac); }
.modal-empty { padding: 2rem 0 1rem; text-align: center; font: italic 1.1rem var(--serif); color: var(--muted); }
/* search: anchored just below the search button (site.js sets --pop-top / --pop-left) */
.modal--search {
  position: fixed; inset: var(--pop-top, 4rem) auto auto var(--pop-left, 1rem); margin: 0; max-width: none;
  width: min(30rem, calc(100vw - var(--pop-left, 1rem) - .5rem));
  max-height: min(38rem, calc(100vh - var(--pop-top, 4rem) - .75rem));
  max-height: min(38rem, calc(100dvh - var(--pop-top, 4rem) - .75rem));
}
.modal--search .modal-search { padding: .35rem .5rem .35rem .9rem; }
.modal--search .modal-search input { font-size: 1.3rem; }
.modal--search .modal-list { padding-left: .9rem; padding-right: .9rem; }
.modal--search .modal-status { padding-left: .9rem; }
.modal--search .hit { grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: .8rem; }
.modal--search .hit-img { width: 3.5rem; }
@media (max-width: 40rem) {
  .modal--saved { margin-top: 0; width: 100vw; max-width: 100vw; max-height: 88vh; border-radius: 0 0 12px 12px; }
  .modal--search { left: .5rem; width: calc(100vw - 1rem); }
  .hit { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
  .hit-img { width: 3.5rem; }
}

/* ---------- a story's pop-up notice: one full screen in the story's own colours ----------
   dialog: over the story (closable). main: instead of the story (locked). div: portal preview.
   No entrance animation: the story must not show through, even for a moment. */
.story-notice { background: var(--paper); color: var(--ink); text-align: center; }
dialog.story-notice { position: fixed; inset: 0; z-index: 95; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; }
dialog.story-notice[open], main.story-notice, div.story-notice { display: flex; flex-direction: column; }
dialog.story-notice::backdrop { background: var(--paper, #FAFAF7); }
html[data-notice-seen] dialog.story-notice { display: none; }
/* the story behind doesn't scroll while the notice is over it */
html:not([data-notice-seen]):has(dialog.story-notice[open]) { overflow: hidden; }
main.story-notice { min-height: 100vh; min-height: 100dvh; }
/* a long notice on a small screen scrolls; margin:auto centres a short one without clipping a long one */
.story-notice-scroll { flex: 1; min-height: 0; display: flex; overflow-y: auto; overscroll-behavior: contain; padding: max(2.5rem, env(safe-area-inset-top)) var(--gutter) max(2.5rem, env(safe-area-inset-bottom)); }
.story-notice-scroll:focus { outline: none; }
.story-notice-box { width: 100%; max-width: 34rem; min-width: 0; margin: auto; overflow-wrap: break-word; }
.story-notice-brand { display: flex; width: fit-content; max-width: 100%; align-items: baseline; gap: .32em; margin: 0 auto 2.2rem; font: 700 1.05rem/1.2 var(--nameplate); letter-spacing: -.012em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.story-notice-brand .logo { width: .6em; height: .6em; position: relative; top: -.055em; }
.story-notice-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 34vh; margin: 0 auto 1.8rem; }
.story-notice-title { margin: 0 0 1.1rem; font: italic 400 clamp(2rem, 1.4rem + 2.6vw, 3.1rem)/1.1 var(--display); text-wrap: balance; }
.story-notice-text { font: 400 calc(1.2rem * var(--rd-scale, 1))/1.6 var(--serif); color: var(--ink-2, var(--ink)); }
.story-notice-text p { margin: 0 0 .9em; }
.story-notice-text ul { display: table; margin: 0 auto .9em; padding-left: 1.2em; text-align: left; }
.story-notice-text li::marker { color: var(--accent); }
.story-notice-text > :last-child { margin-bottom: 0; }
.story-notice-text a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .17em; }
.story-notice-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: .8rem; margin-top: 2.2rem; }
.story-notice-actions form { display: flex; margin: 0; }
.story-notice-actions :is(.btn, .story-notice-link) { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; overflow-wrap: anywhere; min-height: 2.9rem; padding: .7rem 1.5rem; font: 600 calc(.85rem * var(--rd-scale, 1))/1.3 var(--sans); letter-spacing: .02em; text-align: center; text-decoration: none; border-radius: 3px; }
.story-notice-link { border: 1px solid var(--ink); }
.story-notice-link:hover { border-color: var(--accent); color: var(--accent); }
.story-notice-foot { margin: 1.5rem 0 0; font: 500 .8rem var(--sans); color: var(--muted); }
.story-notice-foot a { text-underline-offset: .17em; }
.story-notice-note { margin: 1.8rem 0 0; padding: .6rem .8rem; border: 1px dashed var(--accent); border-radius: 4px; font: 600 .74rem/1.4 var(--sans); color: var(--ink); }
@media (max-width: 30rem) {
  .story-notice-actions { flex-direction: column; }
  .story-notice-actions form .btn { flex: 1; }
}

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(12, 10, 16, .96); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .2s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 4rem); max-height: calc(100vh - 7rem); object-fit: contain; }
.lightbox-cap { position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0; text-align: center; font: 400 .82rem var(--sans); color: rgba(255, 255, 255, .7); padding: 0 2rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; color: #fff; }
.lightbox-close:hover { background: rgba(255, 255, 255, .12); }
.lightbox :focus-visible { outline-color: #fff; }
.prose .fig img[role="button"]:focus-visible, .wall img[role="button"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* =====================================================================
   Article — the reading experience
   ===================================================================== */

.article { padding-bottom: 1rem; }
.article[data-measure="narrow"] { --measure: 32rem; }
.article[data-measure="wide"] { --measure: 44rem; }

.prose {
  hanging-punctuation: first allow-end last;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: content-box;
  font-family: var(--serif);
  font-size: var(--text-size);
  line-height: 1.6;
  letter-spacing: .003em;
  color: var(--ink);
  font-variant-numeric: oldstyle-nums proportional-nums;
  counter-reset: chapter;
}
.article[data-font="sans"] .prose { font-family: var(--sans); font-size: calc(var(--text-size) * .9); line-height: 1.65; letter-spacing: 0; font-variant-numeric: normal; }
.article[data-font="display"] .prose { font-family: var(--display); font-weight: 380; font-stretch: 92%; font-size: calc(var(--text-size) * .98); line-height: 1.58; }
.article > .prose { margin-top: 2.4rem; }
.prose::after { content: ''; display: table; clear: both; }

.prose > * { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose a {
  color: inherit; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: .17em;
  text-decoration-skip-ink: auto;
  transition: color .15s, text-decoration-color .15s;
}
.prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose strong, .prose b { font-weight: 650; }
.prose mark { background: var(--lilac-2); color: inherit; padding: .02em .12em; border-radius: 2px; }
.prose .accent { color: var(--accent); }
.prose .smallcaps { font-family: var(--display); font-stretch: 92%; font-variant-caps: all-small-caps; font-synthesis: none; letter-spacing: .05em; }
.prose code { font-family: var(--mono); font-size: .82em; background: var(--lilac); padding: .1em .3em; border-radius: 3px; }
.prose pre { font-family: var(--mono); font-size: .78em; line-height: 1.55; background: var(--paper-2); padding: 1.1em 1.3em; overflow-x: auto; border-radius: 3px; margin: 1.6em 0; }
.prose pre code { background: none; padding: 0; font-size: 1em; }
.prose sup, .prose sub { font-size: .7em; line-height: 0; }

/* headings */
.prose h2 {
  clear: both;
  font-family: var(--display); font-weight: 600; font-stretch: 87.5%;
  font-size: 1.55em; line-height: 1.15; letter-spacing: -.005em;
  margin: 2em 0 .55em;
}
.prose h3 { font-family: var(--serif); font-weight: 650; font-size: 1.12em; line-height: 1.3; margin: 1.8em 0 .4em; }
.prose h4 {
  font-family: var(--sans); font-weight: 700; font-size: .7em; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 2.2em 0 .7em;
}
/* chapter headings get an automatic roman numeral */
.prose h2.chapter {
  counter-increment: chapter; text-align: center;
  font-weight: 700; font-stretch: 62.5%; font-size: 2.1em; line-height: 1.02; margin: 2.4em 0 1em;
}
.prose h2.chapter::before {
  content: counter(chapter, upper-roman); display: block; margin-bottom: .45em;
  font: italic 400 .42em/1 var(--serif); letter-spacing: .1em; color: var(--accent);
}

/* text sizes & typefaces (any paragraph or heading) */
.prose .is-small { font-size: .84em; line-height: 1.55; }
.prose .is-large { font-size: 1.32em; line-height: 1.42; letter-spacing: -.004em; }
.prose .is-huge { font-family: var(--display); font-weight: 400; font-stretch: 87.5%; font-size: 2.25em; line-height: 1.12; letter-spacing: -.015em; margin: 1.1em 0 .8em; }
.prose .is-giant { font-family: var(--display); font-weight: 700; font-stretch: 62.5%; font-size: clamp(3.2rem, 1.5rem + 8vw, 8.5rem); line-height: .94; letter-spacing: -.01em; margin: .5em 0; text-wrap: balance; }
.prose .font-serif { font-family: var(--serif); font-stretch: normal; }
.prose .font-display { font-family: var(--display); font-stretch: 92%; }
.prose .font-condensed { font-family: var(--display); font-stretch: 62.5%; font-weight: 700; }
.prose .font-sans { font-family: var(--sans); font-stretch: normal; letter-spacing: 0; }
.prose .font-mono { font-family: var(--mono); font-size: .88em; letter-spacing: 0; }
.prose .font-hand { font-family: var(--hand); font-weight: 500; font-size: 1.35em; line-height: 1.25; letter-spacing: 0; font-stretch: normal; }
.prose .is-italic { font-style: italic; }
.prose .is-huge.font-hand, .prose .is-giant.font-hand { font-weight: 600; }
/* handwriting is set a size up, so each text size is scaled up with it */
.prose .is-small.font-hand { font-size: 1.13em; }
.prose .is-large.font-hand { font-size: 1.78em; }
.prose .is-huge.font-hand { font-size: 3.05em; line-height: 1.12; }
.prose .is-giant.font-hand { font-size: clamp(4.1rem, 1.9rem + 10.5vw, 11.5rem); line-height: 1; }
/* pull quotes and margin notes scale from their own size */
.prose :is(.pullquote, .sidenote) { --size-k: 1; }
.prose :is(.pullquote, .sidenote).is-small { --size-k: .8; }
.prose :is(.pullquote, .sidenote).is-large { --size-k: 1.25; }
.prose :is(.pullquote, .sidenote).is-huge { --size-k: 1.55; }
.prose :is(.pullquote, .sidenote).is-giant { --size-k: 1.9; }
.prose span.font-hand { color: var(--accent); }

/* a size or typeface on selected words (story text and headlines): only those words change */
:is(.prose, .hero-title, .page-title) span:is(.is-small, .is-large, .is-huge, .is-giant) { font-family: inherit; font-weight: inherit; font-stretch: inherit; letter-spacing: inherit; line-height: 1.1; margin: 0; }
:is(.prose, .hero-title, .page-title) span.is-small { font-size: .8em; }
:is(.prose, .hero-title, .page-title) span.is-large { font-size: 1.32em; }
:is(.prose, .hero-title, .page-title) span.is-huge { font-size: 1.8em; }
:is(.prose, .hero-title, .page-title) span.is-giant { font-size: 2.6em; }
:is(.prose, .hero-title, .page-title) span.font-serif { font-family: var(--serif); font-stretch: normal; }
:is(.prose, .hero-title, .page-title) span.font-display { font-family: var(--display); font-stretch: 92%; }
:is(.prose, .hero-title, .page-title) span.font-condensed { font-family: var(--display); font-stretch: 62.5%; font-weight: 700; }
:is(.prose, .hero-title, .page-title) span.font-sans { font-family: var(--sans); font-stretch: normal; letter-spacing: 0; }
:is(.prose, .hero-title, .page-title) span.font-mono { font-family: var(--mono); font-size: .88em; letter-spacing: 0; }
:is(.prose, .hero-title, .page-title) span.font-hand { font-family: var(--hand); font-size: 1.25em; font-stretch: normal; font-style: normal; letter-spacing: 0; line-height: 1; }
.prose span.font-hand { font-weight: 500; }
:is(.prose, .hero-title, .page-title) span.font-mono.is-small { font-size: .7em; }
:is(.prose, .hero-title, .page-title) span.font-mono.is-large { font-size: 1.16em; }
:is(.prose, .hero-title, .page-title) span.font-mono.is-huge { font-size: 1.58em; }
:is(.prose, .hero-title, .page-title) span.font-mono.is-giant { font-size: 2.3em; }
:is(.prose, .hero-title, .page-title) span.font-hand.is-small { font-size: 1em; }
:is(.prose, .hero-title, .page-title) span.font-hand.is-large { font-size: 1.65em; }
:is(.prose, .hero-title, .page-title) span.font-hand.is-huge { font-size: 2.25em; }
:is(.prose, .hero-title, .page-title) span.font-hand.is-giant { font-size: 3.25em; }

/* headline formatting */
:is(.hero-title, .page-title) span.font-hand { padding-right: .08em; } /* the slant would eat the next space */
:is(.hero-title, .page-title) strong { font-weight: 900; }
.hero[data-headline="italic"] .hero-title em, .hero[data-headline="whisper"] .hero-title em { font-style: normal; }
:is(.hero-title, .page-title) .accent { color: var(--accent); }
:is(.hero-title, .page-title) .smallcaps { font-variant-caps: all-small-caps; font-synthesis: none; letter-spacing: .05em; }
:is(.hero-title, .page-title) mark { background: var(--lilac-2); color: inherit; padding: 0 .08em; border-radius: 2px; }
.hero--immersive .hero-title mark, .hero--cover .hero-title mark { color: #121212; text-shadow: none; }

/* lists */
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin: 0 0 .45em; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose ol li::marker { font-family: var(--sans); font-size: .8em; font-weight: 600; }

/* quotations — Gatopardo-style display italic */
.prose blockquote {
  margin: 1.5em 0 1.6em; padding: 0 0 0 1.3em;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-variation-settings: 'opsz' 72;
  font-size: 1.3em; line-height: 1.32; letter-spacing: -.012em;
  color: var(--ink);
}
.prose blockquote p { margin: 0 0 .6em; }
/* opening quotation marks hang outside the text edge (the build wraps them); Safari does it natively */
.prose .hang { margin-left: -.42em; }
.prose .pullquote .hang { margin-left: -.36em; }
@supports (hanging-punctuation: first) { .prose .hang, .prose .pullquote .hang { margin-left: 0; } }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite, .prose blockquote footer { display: block; margin-top: .6em; font: normal 500 .55em/1.4 var(--sans); letter-spacing: .02em; color: var(--muted); }

/* pull quote */
.prose .pullquote {
  clear: both;
  margin: 1.9em 0 2em; padding: .9em 0 1em;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair);
  font-family: var(--display); font-weight: 500; font-stretch: 75%;
  font-size: calc(clamp(1.85em, 1.2em + 2.4vw, 2.6em) * var(--size-k)); line-height: 1.04; letter-spacing: -.014em; text-align: center;
}
.prose .pullquote::before {
  content: '“'; display: block; height: .42em; margin-bottom: .12em;
  font: 700 1.5em/1 var(--display); color: var(--accent);
}
/* a real display moment: it may run a little wider than the text column */
@media (min-width: 60rem) {
  .prose > .pullquote:not([data-align]) { margin-left: -3.5rem; margin-right: -3.5rem; }
}
.prose .pullquote p { margin: 0; }
.prose .pullquote cite { display: block; margin-top: .7em; font: normal 600 .4em/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prose .pullquote[data-align="left"], .prose .pullquote[data-align="right"] { clear: none; width: 46%; font-size: calc(1.7em * var(--size-k)); line-height: 1.06; text-align: left; padding: .7em 0 .8em; }
.prose .pullquote[data-align="left"] { float: left; margin: .3em 1.5em 1em 0; }
.prose .pullquote[data-align="right"] { float: right; margin: .3em 0 1em 1.5em; }
@media (min-width: 72rem) {
  .prose > .pullquote[data-align="left"] { margin-left: -8rem; }
  .prose > .pullquote[data-align="right"] { margin-right: -8rem; }
}
.prose .pullquote.font-hand { font-family: var(--hand); font-weight: 600; font-size: calc(2.3em * var(--size-k)); line-height: 1.1; border: 0; color: var(--accent); }
.prose .pullquote.font-hand::before { display: none; }

/* callout */
.prose .callout {
  background: var(--lilac); border-left: 2px solid var(--accent);
  padding: 1.1em 1.4em; margin: 1.8em 0;
  font-size: .9em; line-height: 1.55;
}
.prose .callout > :last-child { margin-bottom: 0; }

/* verse — poems, lyrics, anything where line breaks matter */
.prose .verse { margin: 2em 0 2.2em; padding-left: 2.2em; font-style: italic; font-variation-settings: 'opsz' 36; }
.prose .verse p { margin: 0 0 1.3em; line-height: 1.6; }
.prose .verse p:last-child { margin-bottom: 0; }
.prose .verse[style*="center"] { padding-left: 0; }

/* margin notes */
.prose .sidenote {
  display: block; margin: 1.2em 0; padding: .1em 0 .1em .9em;
  border-left: 2px solid var(--accent);
  font: 400 calc(.74em * var(--size-k))/1.5 var(--sans); color: var(--muted);
  font-variant-numeric: lining-nums;
}
.prose .sidenote.font-hand { font: 500 calc(1.05em * var(--size-k))/1.2 var(--hand); color: var(--accent); }
.prose .sidenote > :last-child { margin-bottom: 0; }
@media (min-width: 76rem) {
  .prose .sidenote {
    float: right; clear: right; width: 12.5rem;
    margin: .35em -15.5rem 1em 0; padding: .55em 0 0; border-left: 0; border-top: 1px solid var(--accent);
  }
  .prose .sidenote.font-hand { border-top: 0; transform: rotate(-2deg); }
}

/* section breaks */
.prose hr { clear: both; border: 0; height: auto; margin: 2.3em 0; text-align: center; overflow: visible; }
.prose hr::after { content: '⁂'; font-size: 1.15em; color: var(--accent); letter-spacing: .4em; }
.prose hr[data-mark]::after { content: attr(data-mark); letter-spacing: 0; font-size: 1.3em; }
.prose hr.line::after { content: ''; display: block; width: 4.5rem; margin: 0 auto; border-top: 1px solid var(--ink); }
.prose hr.dots::after { content: '•  •  •'; font-size: .7em; letter-spacing: .5em; white-space: pre; }
.prose hr.space { margin: 3.5em 0; }
.prose hr.space::after { content: ''; }

/* alignment set from the editor */
.prose [style*="text-align: center"], .prose [style*="text-align:center"] { text-align: center; }

/* drop caps & lead-in */
.article[data-dropcap] .prose > p:first-of-type::first-letter,
.prose p.dropcap::first-letter {
  float: left;
  font-family: var(--display); font-stretch: 62.5%; font-weight: 700; font-style: normal;
  font-size: 4.55em; line-height: .78; margin: .06em .1em -.05em 0;
  color: var(--ink);
}
.article[data-dropcap="accent"] .prose > p:first-of-type::first-letter,
.prose p.dropcap::first-letter { color: var(--accent); }
.article[data-leadin] .prose > p:first-of-type::first-line {
  /* real small capitals: Noto Serif Display's own small-cap glyphs (the text face has none), never squashed capitals */
  font-family: var(--display); font-stretch: 92%; font-weight: 480;
  font-variant-caps: all-small-caps; font-synthesis: none; letter-spacing: .055em;
}

/* end mark — a small square after the last paragraph */
.article .prose > p:last-of-type::after {
  content: ''; display: inline-block; width: .48em; height: .48em; margin-left: .4em;
  background: var(--accent); vertical-align: .02em;
}
.article .prose > p.is-giant:last-of-type::after, .article .prose > p.is-huge:last-of-type::after { width: .2em; height: .2em; }

/* ---------- colour bands: full-width sections with their own colour ---------- */
.prose .band {
  clear: both; position: relative;
  --paper: var(--band-bg);
  width: 100vw; margin: 3rem calc(50% - 50vw);
  padding: var(--band-pad, 4.5rem) calc(50vw - 50%);
  background: var(--band-bg); color: var(--band-ink, var(--ink));
}
.prose .band[data-pad="s"] { --band-pad: 2.4rem; }
.prose .band[data-pad="l"] { --band-pad: 8rem; }
.prose .band > :first-child { margin-top: 0; }
.prose .band > :last-child { margin-bottom: 0; }
.prose .band[data-theme="paper"] { --band-bg: #EFECE7; --band-ink: #121212; }
.prose .band[data-theme="cream"] { --band-bg: #EFE7D6; --band-ink: #121212; }
.prose .band[data-theme="lilac"] { --band-bg: #EDE7FA; --band-ink: #121212; --hair: #D5CAEE; }
/* The accent band turns --accent white for what's inside it, so its own background has to come
   from a copy taken higher up: var(--accent) here would resolve to that white. */
.prose { --story-accent: var(--accent); }
:is([data-theme="night"], [data-theme="ink"]):not(.band, [style*="--accent"]) .prose { --story-accent: #804DB3; }
.prose .band[data-theme="accent"] { --band-bg: var(--story-accent); --band-ink: #fff; }
.prose .band[data-theme="night"] { --band-bg: #15131B; --band-ink: #ECE9F3; }
.prose .band[data-theme="ink"] { --band-bg: #0E0E0E; --band-ink: #F1F0EE; }
.prose .band[data-theme="image"] {
  --band-bg: #1c1a20; --band-ink: #fff;
  background: linear-gradient(rgba(12, 10, 16, .48), rgba(12, 10, 16, .48)), var(--band-image, none) center / cover no-repeat;
  background-attachment: scroll, fixed;
  min-height: 70vh; display: flex; flex-direction: column; justify-content: center;
  text-shadow: 0 1px 20px rgba(0, 0, 0, .3);
}
@media (hover: none) { .prose .band[data-theme="image"] { background-attachment: scroll, scroll; } }
.prose .band[data-tone="dark"] { color: var(--band-ink, #fff); }
.prose .band[data-theme="accent"] { --accent: #fff; --lilac: rgba(255, 255, 255, .14); --lilac-2: rgba(255, 255, 255, .24); }
.prose .band[data-theme="accent"] .pullquote { border-color: rgba(255, 255, 255, .5); }

/* ---------- columns & sticky photo stories ---------- */
.prose .cols {
  clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2.4rem;
  margin: 2.2em 0; align-items: start;
}
.prose .cols[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 2rem; font-size: .92em; }
.prose .cols[data-ratio="2-1"] { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.prose .cols[data-ratio="1-2"] { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.prose .cols[data-width="wide"] {
  --w: min(var(--wide), 100vw - 2 * var(--gutter));
  width: var(--w); margin-left: calc((100% - var(--w)) / 2); margin-right: calc((100% - var(--w)) / 2);
}
.prose .cols[data-align="center"] { align-items: center; }
.prose .col > :first-child { margin-top: 0; }
.prose .col > :last-child { margin-bottom: 0; }
.prose .col > .fig { margin: 0 0 1.2em; }
.prose .col > .fig[data-size] { width: 100%; margin-left: 0; margin-right: 0; float: none; }
.prose .cols[data-variant="sticky"] { align-items: start; }
.prose .cols[data-variant="sticky"] > .col:first-child { position: sticky; top: 9vh; }
.prose .cols[data-variant="sticky"] > .col:last-child > p:first-child { margin-top: 12vh; }
.prose .cols[data-variant="sticky"] > .col:last-child > * { margin-bottom: 1.4em; }
@media (max-width: 46rem) {
  .prose .cols, .prose .cols[data-cols="3"], .prose .cols[data-ratio] { grid-template-columns: 1fr; }
  .prose .cols[data-variant="sticky"] > .col:first-child { position: static; }
  .prose .cols[data-variant="sticky"] > .col:last-child > p:first-child { margin-top: 0; }
}

/* ---------- figures ---------- */
.prose .fig { margin: 2.1em 0; }
.prose .fig > img, .prose .fig > picture > img, .prose .fig > video { display: block; width: 100%; height: auto; background: var(--paper-2); }
.prose .fig > audio { display: block; width: 100%; }
.prose .fig > img, .prose .fig > picture > img { cursor: zoom-in; }
.prose figcaption {
  margin-top: .65rem;
  font: 400 .8125rem/1.5 var(--sans); color: var(--muted);
  font-variant-numeric: lining-nums;
}
/* a caption can take the same size and typeface classes as text, scaled to caption size */
.prose .fig > figcaption { font-size: calc(.8125rem * var(--cap-k, 1)); }
.prose .fig > figcaption.is-small { --cap-k: .86; }
.prose .fig > figcaption.is-large { --cap-k: 1.3; }
.prose .fig > figcaption.is-huge { --cap-k: 1.75; }
.prose .fig > figcaption.is-giant { --cap-k: 2.5; }
.prose .fig > figcaption:is(.is-huge, .is-giant) { margin-top: .65rem; margin-bottom: 0; line-height: 1.2; }
.prose .fig > figcaption.font-hand { font-size: calc(1.1rem * var(--cap-k, 1)); }
.credit {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--faint);
  white-space: nowrap;
}

.prose .fig[data-size="narrow"] { width: 68%; margin-left: auto; margin-right: auto; }

.prose .fig[data-size="wide"] {
  clear: both;
  --w: min(var(--wide), 100vw - 2 * var(--gutter));
  width: var(--w);
  margin-left: calc((100% - var(--w)) / 2);
  margin-right: calc((100% - var(--w)) / 2);
}
.prose .fig[data-size="full"], .prose .fig[data-size="overlay"] {
  clear: both;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.prose .fig[data-size="full"] figcaption,
.prose .fig[data-size="overlay"] figcaption { max-width: var(--wide); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }

/* wrapped (float) images */
.prose .fig[data-size="left"], .prose .fig[data-size="right"] { width: 46%; margin-top: .35em; margin-bottom: 1em; }
.prose .fig[data-size="left"] { float: left; margin-right: 1.6em; margin-left: 0; }
.prose .fig[data-size="right"] { float: right; margin-left: 1.6em; margin-right: 0; }
.prose .fig[data-width="s"] { width: 34%; }
.prose .fig[data-width="l"] { width: 58%; }
/* wide screens: hang the photo into the margin, its outer edge on the same line as wide photos */
@media (min-width: 72rem) {
  .prose > .fig:is([data-size="left"], [data-size="right"]) { --hang: calc((min(var(--wide), 100vw - 2 * var(--gutter)) - 100%) / 2); width: calc(var(--hang) + 40%); }
  .prose > .fig[data-size="left"] { margin-left: calc(-1 * var(--hang)); margin-right: 1.8em; }
  .prose > .fig[data-size="right"] { margin-right: calc(-1 * var(--hang)); margin-left: 1.8em; }
  .prose > .fig:is([data-size="left"], [data-size="right"])[data-width="s"] { width: calc(var(--hang) + 26%); }
  .prose > .fig:is([data-size="left"], [data-size="right"])[data-width="l"] { width: calc(var(--hang) + 52%); }
}

/* margin figures */
.prose .fig[data-size="margin"] { width: 55%; }
@media (min-width: 76rem) {
  .prose .fig[data-size="margin"] { float: right; clear: right; width: 13rem; margin: .4em -15.5rem 1em 0; }
}

/* crops */
.prose .fig[data-crop] > img, .prose .fig[data-crop] > picture > img, .prose .fig[data-crop] > video { object-fit: cover; }
.prose .fig[data-crop="wide"] > :is(img, video), .prose .fig[data-crop="wide"] > picture > img { aspect-ratio: 16 / 9; }
.prose .fig[data-crop="cinema"] > :is(img, video), .prose .fig[data-crop="cinema"] > picture > img { aspect-ratio: 21 / 9; }
.prose .fig[data-crop="square"] > :is(img, video), .prose .fig[data-crop="square"] > picture > img { aspect-ratio: 1; }
.prose .fig[data-crop="portrait"] > :is(img, video), .prose .fig[data-crop="portrait"] > picture > img { aspect-ratio: 4 / 5; }

/* frames */
.prose .fig[data-frame="border"] > img, .prose .fig[data-frame="border"] > picture > img { padding: .55rem; border: 1px solid var(--ink); background: var(--paper); }
.prose .fig[data-frame="shadow"] > img, .prose .fig[data-frame="shadow"] > picture > img { box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 24px 60px rgba(20, 10, 40, .22); }
.prose .fig[data-frame="rounded"] > :is(img, video), .prose .fig[data-frame="rounded"] > picture > img { border-radius: 16px; }
.prose .fig[data-frame="polaroid"] > img, .prose .fig[data-frame="polaroid"] > picture > img { padding: .8rem .8rem 3.2rem; background: #fff; box-shadow: 0 10px 34px rgba(0, 0, 0, .14); transform: rotate(-1.6deg); }
.prose .fig[data-frame="polaroid"] > img:nth-of-type(even), .prose .fig[data-frame="polaroid"] > picture:nth-of-type(even) > img { transform: rotate(1.4deg); }
.prose .fig[data-frame="polaroid"] figcaption { font-size: calc(1.25rem * var(--cap-k, 1)); line-height: 1.2; color: var(--ink-2); text-align: center; margin-top: -2.6rem; position: relative; }
.prose .fig[data-frame="polaroid"] figcaption:not([class*="font-"]) { font-family: var(--hand); font-weight: 500; }
.prose .fig[data-frame="polaroid"]:has(> img + img) figcaption, .prose .fig[data-frame="polaroid"]:has(> picture + picture) figcaption { margin-top: .6rem; }
.prose .fig[data-frame="polaroid"] .credit { display: none; }
.prose .fig[data-frame="circle"] > img, .prose .fig[data-frame="circle"] > picture > img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.prose .fig[data-frame="circle"] figcaption { text-align: center; }

/* filters */
.prose .fig[data-filter="mono"] > :is(img, video), .prose .fig[data-filter="mono"] > picture > img { filter: grayscale(1) contrast(1.06); }
.prose .fig[data-filter="sepia"] > :is(img, video), .prose .fig[data-filter="sepia"] > picture > img { filter: sepia(.6) saturate(.85) contrast(.96); }
.prose .fig[data-filter="fade"] > :is(img, video), .prose .fig[data-filter="fade"] > picture > img { filter: saturate(.55) brightness(1.07) contrast(.9); }
.prose .fig[data-filter="tint"] > :is(img, video), .prose .fig[data-filter="tint"] > picture > img { filter: grayscale(1) sepia(1) hue-rotate(218deg) saturate(1.7) brightness(.95); }

/* caption beside the photo */
@media (min-width: 46rem) {
  .prose .fig[data-caption="side"] { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 1.4rem; align-items: end; }
  .prose .fig[data-caption="side"] > figcaption { margin: 0; padding: .6rem 0 0; border-top: 1px solid var(--accent); }
  .prose .fig[data-caption="side"][data-size="full"] > figcaption { padding-right: var(--gutter); }
}

/* galleries — any figure with 2+ images */
.prose .fig:has(> img + img), .prose .fig:has(> picture + picture) { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.prose .fig:has(> img + img + img), .prose .fig:has(> picture + picture + picture) { grid-template-columns: repeat(3, 1fr); }
.prose .fig:has(> img + img) > img, .prose .fig:has(> picture + picture) > picture > img { height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.prose .fig:has(> img + img)[data-crop="wide"] > img, .prose .fig:has(> picture + picture)[data-crop="wide"] > picture > img { aspect-ratio: 16 / 9; }
.prose .fig:has(> img + img)[data-crop="square"] > img, .prose .fig:has(> picture + picture)[data-crop="square"] > picture > img { aspect-ratio: 1; }
.prose .fig:has(> img + img) > figcaption, .prose .fig:has(> picture + picture) > figcaption { grid-column: 1 / -1; margin-top: .15rem; }
.prose .fig[data-frame="polaroid"]:has(> img + img), .prose .fig[data-frame="polaroid"]:has(> picture + picture) { gap: 1.6rem; }

/* text on image */
.prose .fig[data-size="overlay"] { display: grid; margin-top: 2.6em; margin-bottom: 2.6em; }
.prose .fig[data-size="overlay"] > :is(img, video), .prose .fig[data-size="overlay"] > picture > img { grid-area: 1 / 1; height: min(92vh, 62rem); min-height: 26rem; object-fit: cover; cursor: default; }
.prose .fig[data-size="overlay"]::before {
  content: ''; grid-area: 1 / 1; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .38), rgba(0, 0, 0, .12) 70%);
}
.prose .fig[data-size="overlay"] > .fig-overlay {
  grid-area: 1 / 1; z-index: 2; align-self: center; justify-self: center;
  width: min(40rem, 100% - 2 * var(--gutter)); text-align: center; color: #fff;
  font: italic 400 1.6em/1.25 var(--serif); font-variation-settings: 'opsz' 72; letter-spacing: -.01em;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .35);
}
.prose .fig[data-size="overlay"] > .fig-overlay p { margin: 0 0 .5em; }
.prose .fig[data-size="overlay"] > .fig-overlay > :last-child { margin-bottom: 0; }
.prose .fig[data-size="overlay"][data-position="bottom-left"] > .fig-overlay { align-self: end; justify-self: start; text-align: left; margin: 0 0 3rem var(--gutter); }
.prose .fig[data-size="overlay"][data-position="bottom"] > .fig-overlay { align-self: end; margin-bottom: 3rem; }
.prose .fig[data-size="overlay"][data-position="top-left"] > .fig-overlay { align-self: start; justify-self: start; text-align: left; margin: 3rem 0 0 var(--gutter); }
.prose .fig[data-size="overlay"][data-position^="bottom"]::before { background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%); }
.prose .fig[data-size="overlay"][data-position="top-left"]::before { background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 60%); }
.prose .fig[data-size="overlay"] > figcaption { grid-row: 2; }

/* embeds */
.prose .embed-frame { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); }
.prose .embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 40rem) {
  .prose .fig[data-size="left"], .prose .fig[data-size="right"], .prose .fig[data-size="margin"],
  .prose .pullquote[data-align] {
    float: none; width: 100%; margin-left: 0; margin-right: 0;
  }
  .prose .fig[data-size="narrow"] { width: 85%; }
  .prose .fig[data-size="wide"], .prose .cols[data-width="wide"] { --w: 100vw; }
  .prose .fig[data-size="wide"] figcaption { padding: 0 var(--gutter); }
  .prose .fig:has(> img + img + img), .prose .fig:has(> picture + picture + picture) { grid-template-columns: repeat(2, 1fr); }
  .prose .band { padding-top: calc(var(--band-pad, 4.5rem) * .6); padding-bottom: calc(var(--band-pad, 4.5rem) * .6); }
}

/* gentle reveal while scrolling (only when the story asks for it).
   Browsers with scroll-driven animations do it in CSS, tied to the scroll position;
   others get the same look from a small script (site.js adds .reveal / .is-in). */
@keyframes reveal-fade { from { opacity: 0; } }
@keyframes reveal-rise { from { opacity: 0; translate: 0 26px; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-rd-motion]) .article[data-motion] :is(.prose > *, .prose .band > *, .prose .col > *):not(.band, .cols) {
      animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
    html:not([data-rd-motion]) .article[data-motion="rise"] :is(.prose > *, .prose .band > *, .prose .col > *):not(.band, .cols) { animation-name: reveal-rise; }
  }
}
.reveal { opacity: 0; transition: opacity .9s ease, translate 1s var(--ease); }
[data-motion="rise"] .reveal { translate: 0 26px; }
.reveal.is-in { opacity: 1; translate: none; }

/* article footer */
.article-end { max-width: var(--measure); margin: 2.8rem auto 0; padding: 0 var(--gutter); box-sizing: content-box; font-family: var(--sans); }
.article-sign { margin: 0; font: 500 1.9rem/1 var(--hand); color: var(--accent); }
.article-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.6rem; }
.article-tags button { cursor: pointer; border: 0; font: 500 .72rem var(--sans); padding: .38rem .7rem; background: var(--lilac); color: var(--accent-deep); border-radius: 99px; }
.article-tags button:hover { background: var(--lilac-2); }

.more { max-width: var(--max); margin: 5rem auto 0; padding: 0 var(--gutter) 2rem; }
.more .grid-3 { margin-top: 3rem; padding-top: 2.2rem; border-top: 1px solid var(--hair); }
.next {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  text-decoration: none; color: var(--ink); padding-top: 2.4rem; border-top: 1px solid var(--ink);
}
.next-media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); }
.next-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .5s var(--ease); }
.next:hover .next-media img { filter: brightness(1.07) saturate(1.05); }
.next-label { display: block; font: italic 400 1.05rem var(--serif); color: var(--muted); margin-bottom: .6rem; }
.next-title { display: block; font: 700 clamp(2rem, 1.3rem + 2.6vw, 3.6rem)/1.0 var(--display); font-stretch: 62.5%; text-wrap: balance; }
.next-title > span { background: linear-gradient(currentColor, currentColor) 0 92% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.next:hover .next-title > span, .next:focus-visible .next-title > span { background-size: 100% 2px; }
.next-dek { display: block; margin-top: .8rem; font: 400 1.1rem/1.45 var(--serif); color: var(--ink-2); max-width: 30rem; }
.next:not(:has(.next-media)) { grid-template-columns: 1fr; }
@media (max-width: 46rem) { .next { grid-template-columns: 1fr; } }

/* =====================================================================
   Article openings ("heroes")
   ===================================================================== */

.hero { position: relative; --ts: 1; }
.hero[data-tsize="s"] { --ts: .78; }
.hero[data-tsize="l"] { --ts: 1.22; }
.hero[data-tsize="xl"] { --ts: 1.5; }
.hero-title {
  margin: 0; color: inherit; text-wrap: balance;
  font-family: var(--display); font-optical-sizing: auto;
}
.hero-dek {
  margin: .9rem 0 0; font: 400 1.35rem/1.35 var(--serif); color: var(--ink-2); text-wrap: pretty;
  font-variation-settings: 'opsz' 24;
}
.hero-dek:empty { display: none; }
.hero-byline {
  margin: 1.2rem 0 0; font: 400 .82rem/1.5 var(--sans); color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 .1rem;
}
.hero-author { font-weight: 700; color: var(--ink); }
.hero-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 .55rem; opacity: .6; }
.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--paper-2); }
.hero-media { margin: 0; }
.hero-caption { margin-top: .6rem; font: 400 .8rem/1.45 var(--sans); color: var(--muted); }

/* headline voices × size */
.hero[data-headline="italic"] .hero-title { font-style: italic; font-weight: 700; font-stretch: 87.5%; letter-spacing: -.012em; line-height: 1.08; font-size: calc(clamp(2.1rem, 1.5rem + 2.4vw, 3.15rem) * var(--ts)); }
.hero[data-headline="display"] .hero-title { font-weight: 330; font-stretch: 92%; letter-spacing: -.018em; line-height: 1.07; font-size: calc(clamp(2.3rem, 1.4rem + 3.2vw, 4rem) * var(--ts)); }
.hero[data-headline="bold"] .hero-title { font-weight: 720; font-stretch: 80%; letter-spacing: -.012em; line-height: 1.04; font-size: calc(clamp(2.2rem, 1.4rem + 3vw, 3.8rem) * var(--ts)); }
.hero[data-headline="condensed"] .hero-title { font-weight: 700; font-stretch: 62.5%; letter-spacing: -.004em; line-height: 1.0; font-size: calc(clamp(2.6rem, 1.6rem + 3.8vw, 4.7rem) * var(--ts)); }
.hero[data-headline="whisper"] .hero-title { font-style: italic; font-weight: 280; font-stretch: 90%; letter-spacing: -.02em; line-height: 1.06; font-size: calc(clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem) * var(--ts)); }

/* actions row (Standard layout) */
.hero-actions {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--hair);
  font-family: var(--sans);
}
.act-spacer { flex: 1; }
.act {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  border: 0; background: none; padding: 0; font: 500 .8rem var(--sans); color: var(--ink);
}
.act svg { width: 18px; height: 18px; }
.act[data-action="listen"] > svg { width: 2.2rem; height: 2.2rem; padding: .6rem; border: 1px solid var(--hair); border-radius: 50%; transition: border-color .2s, background .2s; }
.act[data-action="listen"]:hover > svg { border-color: var(--accent); color: var(--accent); }
.act-sep { color: var(--faint); }
.act-pill { padding: .5rem .9rem; border: 1px solid var(--hair); border-radius: 99px; }
.act-round { width: 2.3rem; height: 2.3rem; justify-content: center; border: 1px solid var(--hair); border-radius: 50%; }
.act-pill:hover, .act-round:hover { border-color: var(--ink); }
.act[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

/* 1 · STANDARD */
.hero--standard { padding-top: clamp(2rem, 5vw, 3.6rem); }
.hero--standard .hero-text { max-width: max(var(--measure), 36rem); margin: 0 auto; padding: 0 var(--gutter); box-sizing: content-box; }
.hero--standard[data-align="center"] .hero-text { text-align: center; }
.hero--standard[data-align="center"] .hero-byline { justify-content: center; }
.hero--standard .hero-media { max-width: var(--wide); margin: 2rem auto 0; padding: 0 var(--gutter); }
.hero--standard .hero-img { aspect-ratio: 3 / 2; height: auto; }
.hero--standard .hero-caption { text-align: right; }
.hero--standard .hero-text--after .hero-byline { margin-top: 1.6rem; }
@media (max-width: 40rem) { .hero--standard .hero-media { padding: 0; } .hero--standard .hero-caption { padding: 0 var(--gutter); text-align: left; } }

/* 2 · IMMERSIVE & 3 · COVER */
.hero--immersive .hero-stage, .hero--cover .hero-stage {
  position: relative; height: calc(100svh - 5.7rem); min-height: 32rem; max-height: 75rem; overflow: hidden; background: #1c1a20; color: #fff;
}
.hero--immersive .hero-img, .hero--cover .hero-img { position: absolute; inset: 0; }
.hero--immersive .hero-shade, .hero--cover .hero-shade { position: absolute; inset: 0; }
.hero--immersive .hero-shade { background: linear-gradient(to top, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .32) 38%, rgba(0, 0, 0, 0) 62%); }
.hero--immersive[data-shade="none"] .hero-shade { background: none; }
.hero--immersive[data-shade="light"] .hero-shade { background: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 45%); }
.hero--immersive[data-shade="dark"] .hero-shade { background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, .25) 100%); }
.hero--immersive .hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(2rem, 5vw, 3.6rem); max-width: calc(46rem * var(--ts) + 2 * var(--gutter)); }
.hero--immersive[data-align="center"] .hero-text { max-width: none; text-align: center; padding-left: 15%; padding-right: 15%; }
@media (min-width: 64rem) { .hero--immersive:not([data-align="center"]) .hero-text { left: 1.5vw; } }
.hero--immersive .hero-title, .hero--cover .hero-title { color: #fff; text-shadow: 0 1px 30px rgba(0, 0, 0, .25); }
.hero--immersive .hero-dek, .hero--cover .hero-dek { color: rgba(255, 255, 255, .92); max-width: 34rem; }
.hero--immersive[data-align="center"] .hero-dek { margin-left: auto; margin-right: auto; }
.hero--immersive .hero-foot { max-width: var(--measure); margin: 0 auto; padding: .7rem var(--gutter) 0; box-sizing: content-box; }
.hero--immersive.hero--noimage .hero-stage, .hero--cover.hero--noimage .hero-stage { background: var(--night); }
/* published without a photo: a dark title block instead of an empty full screen (the editor keeps its drop zone) */
.hero--immersive.hero--noimage .hero-stage:not(:has(.hero-img)), .hero--cover.hero--noimage .hero-stage:not(:has(.hero-img)) {
  height: auto; min-height: 0; padding: clamp(5rem, 12vw, 9rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero--immersive.hero--noimage .hero-stage:not(:has(.hero-img)) .hero-text { position: relative; margin: 0 auto; max-width: calc(52rem * var(--ts)); }

.hero--cover .hero-stage { display: grid; place-items: center; text-align: center; }
.hero--cover .hero-shade { background: rgba(10, 8, 16, .36); }
.hero--cover[data-shade="none"] .hero-shade { background: none; }
.hero--cover[data-shade="light"] .hero-shade { background: rgba(10, 8, 16, .2); }
.hero--cover[data-shade="dark"] .hero-shade { background: rgba(10, 8, 16, .58); }
.hero--cover .hero-text { position: relative; z-index: 1; max-width: 64rem; padding: 0 var(--gutter); }
.hero--cover .hero-title { font-size: calc(clamp(3rem, 1.4rem + 6.4vw, 8rem) * var(--ts)) !important; line-height: .96 !important; }
.hero--cover .hero-dek { margin-left: auto; margin-right: auto; font-size: 1.4rem; }
.hero--cover .hero-byline { justify-content: center; color: rgba(255, 255, 255, .75); }
.hero--cover .hero-author { color: #fff; }
.hero--cover[data-align="left"] .hero-stage { place-items: end start; text-align: left; }
.hero--cover[data-align="left"] .hero-text { padding-bottom: 4rem; }
.hero--cover[data-align="left"] .hero-byline { justify-content: flex-start; }
.hero--cover[data-align="left"] .hero-dek { margin-left: 0; }
.hero--cover .hero-foot { max-width: var(--max); margin: .6rem auto 0; padding: 0 var(--gutter); text-align: right; }

/* 4/5 · SPLIT */
.hero--split, .hero--split-reverse {
  display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 5.7rem); max-height: 70rem;
}
.hero--split .hero-text, .hero--split-reverse .hero-text { display: grid; place-items: center; padding: 3rem clamp(1.5rem, 5vw, 5rem); text-align: center; }
.hero--split[data-align="left"] .hero-text, .hero--split-reverse[data-align="left"] .hero-text { text-align: left; place-items: center start; }
.hero--split .hero-text-inner, .hero--split-reverse .hero-text-inner { max-width: calc(34rem * var(--ts)); }
.hero--split .hero-byline, .hero--split-reverse .hero-byline { justify-content: center; }
.hero[data-align="left"] .hero-byline { justify-content: flex-start; }
.hero--split .hero-media, .hero--split-reverse .hero-media { display: flex; flex-direction: column; min-height: 22rem; }
.hero--split .hero-img, .hero--split-reverse .hero-img { flex: 1 1 0; min-height: 0; height: auto; }
/* the caption sits under the photo at reading size, clear of the floating buttons */
.hero--split .hero-caption, .hero--split-reverse .hero-caption {
  margin: 0; padding: .7rem 4.6rem .8rem clamp(1rem, 2vw, 1.5rem); font-size: .8rem; line-height: 1.45;
}
.hero--split-reverse .hero-media { order: -1; }
.hero--split-reverse .hero-caption { padding-left: var(--gutter); padding-right: 1.5rem; }
.hero--split .hero-dek, .hero--split-reverse .hero-dek { font-size: 1.3rem; }
.hero--split.hero--noimage, .hero--split-reverse.hero--noimage { grid-template-columns: 1fr; min-height: 0; }
@media (max-width: 52rem) {
  .hero--split, .hero--split-reverse { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero--split .hero-media, .hero--split-reverse .hero-media { order: -1; min-height: 0; }
  .hero--split .hero-img, .hero--split-reverse .hero-img { flex: none; aspect-ratio: 4 / 5; max-height: 80svh; }
  .hero--split .hero-caption, .hero--split-reverse .hero-caption { padding: .6rem var(--gutter) 0; }
  .hero--split .hero-text, .hero--split-reverse .hero-text { padding: 2.2rem var(--gutter) .5rem; }
}

/* 6 · OVERLAP */
.hero--overlap { padding-top: clamp(2rem, 5vw, 4rem); }
.hero--overlap .hero-grid {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center;
}
.hero--overlap .hero-media { grid-column: 5 / -1; grid-row: 1; }
.hero--overlap .hero-img { aspect-ratio: 4 / 3; height: auto; }
.hero--overlap .hero-caption { text-align: right; }
.hero--overlap .hero-text { grid-column: 1 / 10; grid-row: 1; position: relative; z-index: 2; padding: 2rem 0; }
.hero--overlap .hero-title {
  display: inline; background: var(--paper); padding: 0 .14em 0 0;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-size: calc(clamp(2.8rem, 1.4rem + 5.4vw, 6.6rem) * var(--ts)) !important; line-height: 1.12 !important;
}
.hero--overlap .hero-dek, .hero--overlap .hero-byline { max-width: 23rem; background: var(--paper); padding: .8rem 1.2rem .2rem 0; margin-top: 0; }
.hero--overlap .hero-dek { margin-top: 1.4rem; }
.hero--overlap.hero--noimage .hero-text { grid-column: 1 / -1; }
@media (max-width: 52rem) {
  .hero--overlap .hero-grid { grid-template-columns: 1fr; padding: 0; }
  .hero--overlap .hero-media, .hero--overlap .hero-text { grid-column: 1; }
  .hero--overlap .hero-text { grid-row: 2; margin-top: -4.5rem; padding: 0 var(--gutter); }
  .hero--overlap .hero-caption { display: none; }
}

/* 7 · COLUMN */
.hero--column {
  text-align: center;
  background: linear-gradient(to bottom, var(--paper) 0, var(--lilac) 14rem, var(--lilac-2) calc(100% - 9rem), var(--paper) calc(100% - 9rem));
  padding-top: clamp(2.2rem, 5vw, 3.8rem);
}
.hero--column .hero-text { max-width: calc(46rem * var(--ts)); margin: 0 auto; padding: 0 var(--gutter); }
.hero--column .hero-columnist { margin: 0; font: italic 400 1.15rem/1.3 var(--serif); color: var(--accent-deep); }
.hero--column .hero-rule { display: block; width: 5rem; height: 1px; margin: 1rem auto 1.6rem; background: var(--hair); }
.hero--column .hero-byline { justify-content: center; margin-top: 1.4rem; }
.hero--column[data-align="left"] { text-align: left; }
.hero--column[data-align="left"] .hero-rule { margin-left: 0; }
.hero--column .hero-media { max-width: 44rem; margin: 2.4rem auto 0; padding: 0 var(--gutter); }
.hero--column .hero-img { aspect-ratio: 3 / 2; height: auto; }
.hero--column .hero-caption { text-align: left; }
.hero--column.hero--noimage { background: linear-gradient(to bottom, var(--paper), var(--lilac) 60%, var(--paper)); padding-bottom: 1rem; }

/* 8 · POSTER */
.hero--poster .hero-media { position: relative; }
.hero--poster .hero-img { height: min(68svh, 50rem); min-height: 22rem; }
.hero--poster .hero-caption { max-width: var(--max); margin: .55rem auto 0; padding: 0 var(--gutter); text-align: right; }
.hero--poster .hero-text { max-width: calc(50rem * var(--ts)); margin: 0 auto; padding: clamp(2.4rem, 5vw, 4rem) var(--gutter) 0; text-align: center; }
.hero--poster .hero-byline { justify-content: center; }
.hero--poster .hero-dek { max-width: 38rem; margin-left: auto; margin-right: auto; }
.hero--poster[data-align="left"] .hero-text { text-align: left; max-width: var(--max); }
.hero--poster[data-align="left"] .hero-dek { margin-left: 0; }

/* 9 · TINTED */
.hero--tinted { padding-bottom: 1rem; }
.hero--tinted .hero-band {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: end;
  padding: clamp(3rem, 7vw, 6rem) max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) 0;
  background: linear-gradient(to bottom, var(--lilac) 0, var(--lilac-2) 100%);
  background-size: 100% calc(100% - 5rem); background-repeat: no-repeat;
}
.hero--tinted .hero-text { padding-bottom: 7rem; }
.hero--tinted .hero-media { display: grid; }
.hero--tinted .hero-media::before { content: ''; grid-area: 1 / 1; border: 1px solid var(--accent); transform: translate(1.1rem, 1.1rem); }
.hero--tinted .hero-img { grid-area: 1 / 1; position: relative; aspect-ratio: 4 / 5; height: auto; }
.hero--tinted .hero-caption { grid-row: 2; margin-top: 1.7rem; }
.hero--tinted.hero--noimage .hero-band { grid-template-columns: 1fr; background-size: 100% 100%; }
.hero--tinted.hero--noimage .hero-text { padding-bottom: 3.5rem; max-width: 54rem; }
.hero--tinted[data-align="center"] .hero-text { text-align: center; }
.hero--tinted[data-align="center"] .hero-byline { justify-content: center; }
@media (max-width: 52rem) {
  .hero--tinted .hero-band { grid-template-columns: 1fr; background-size: 100% calc(100% - 8rem); }
  .hero--tinted .hero-text { padding-bottom: 0; }
  .hero--tinted .hero-media { margin-right: 1.1rem; }
}

/* 10 · NIGHT */
.hero--night { background: var(--night); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.hero--night .hero-text { max-width: calc(50rem * var(--ts)); margin: 0 auto; padding: 0 var(--gutter); }
.hero--night[data-align="left"] { text-align: left; }
.hero--night[data-align="left"] .hero-text { max-width: 62rem; }
.hero--night .hero-dek { color: rgba(255, 255, 255, .78); max-width: 38rem; margin-left: auto; margin-right: auto; }
.hero--night[data-align="left"] .hero-dek { margin-left: 0; }
.hero--night .hero-byline { justify-content: center; color: rgba(255, 255, 255, .6); }
.hero--night .hero-author { color: #fff; }
.hero--night .hero-media { max-width: 62rem; margin: clamp(2.4rem, 5vw, 3.6rem) auto 0; padding: 0 var(--gutter); }
.hero--night .hero-img { aspect-ratio: 16 / 10; height: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero--night .hero-caption { color: rgba(255, 255, 255, .55); text-align: left; }
.hero--night .credit { color: rgba(255, 255, 255, .4); }
.layout-night .masthead--compact { background: var(--night); border-color: #2a2731; }
.layout-night .masthead--compact :is(.masthead-name, .icon-btn, .masthead-nav a, .masthead-nav button) { color: #fff; }
.layout-night .masthead--compact .icon-btn:hover { background: rgba(255, 255, 255, .1); }

/* 11 · TYPOGRAPHIC */
.hero--typographic { padding: clamp(3rem, 8vw, 7rem) 0 0; }
.hero--typographic .hero-text { max-width: 60rem; margin: 0 auto; padding: 0 var(--gutter); }
.hero--typographic .hero-title { font-size: calc(clamp(2.8rem, 1.4rem + 5.4vw, 6.4rem) * var(--ts)) !important; line-height: .98; }
.hero--typographic[data-headline="italic"] .hero-title { font-size: calc(clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem) * var(--ts)) !important; }
.hero--typographic .hero-dek { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); max-width: 40rem; margin-top: 1.6rem; }
.hero--typographic .hero-meta { margin-top: 2.2rem; padding: .8rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair); }
.hero--typographic .hero-byline { margin: 0; }
.hero--typographic[data-align="center"] .hero-text { text-align: center; }
.hero--typographic[data-align="center"] .hero-dek { margin-left: auto; margin-right: auto; }
.hero--typographic[data-align="center"] .hero-byline { justify-content: center; }

/* =====================================================================
   Cards & the front page
   ===================================================================== */
.front { max-width: var(--max); margin: 0 auto; padding: 1.8rem var(--gutter) 2rem; }
.front-empty { padding: 6rem 0; text-align: center; font: italic 1.2rem var(--serif); color: var(--muted); }

.card { position: relative; }
.card-media { display: block; overflow: hidden; background: var(--paper-2); }
.card-media :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .5s var(--ease); }
/* photos brighten a touch instead of zooming */
.card:hover .card-media :is(img, video) { filter: brightness(1.07) saturate(1.05); }
.card-title { margin: 0; font-family: var(--display); font-weight: 500; font-stretch: 87.5%; line-height: 1.12; letter-spacing: -.008em; }
/* the underline draws in from the left, line by line */
.card-title a {
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 96% / 0 1.5px no-repeat;
  transition: background-size .45s var(--ease), color .2s;
}
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card:hover .card-title a, .card-title a:focus-visible { background-size: 100% 1.5px; }
.card-dek { margin: .5rem 0 0; font: 400 1rem/1.42 var(--serif); color: var(--ink-2); }
.card-meta { margin: .65rem 0 0; font: 400 .8rem var(--serif); color: var(--faint); font-variant-numeric: lining-nums tabular-nums; }
.card-dot { margin: 0 .4em; }

.front-top {
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 0 2.4rem;
  padding-bottom: 2.4rem; border-bottom: 1px solid var(--ink);
}
.card--lead .card-media { aspect-ratio: 3 / 2; }
.card--lead .card-body { padding-top: 1.2rem; max-width: 44rem; }
.card--lead .card-title { font-size: clamp(2rem, 1.3rem + 2.3vw, 3.1rem); font-weight: 650; font-style: italic; line-height: 1.05; }
/* the lead wears its story's design: the headline voice of its opening, and its page colour */
.card--lead[data-voice="display"] .card-title { font-style: normal; font-weight: 340; font-stretch: 92%; letter-spacing: -.02em; font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.5rem); }
.card--lead[data-voice="bold"] .card-title { font-style: normal; font-weight: 760; font-stretch: 80%; letter-spacing: -.014em; }
.card--lead[data-voice="condensed"] .card-title { font-style: normal; font-weight: 700; font-stretch: 62.5%; letter-spacing: -.004em; line-height: .98; font-size: clamp(2.5rem, 1.5rem + 3.2vw, 3.9rem); }
.card--lead[data-voice="whisper"] .card-title { font-style: italic; font-weight: 300; font-stretch: 90%; letter-spacing: -.02em; font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.5rem); }
.card--lead[data-tinted] { background: var(--card-bg); }
.card--lead[data-tinted] .card-body { padding: 1.3rem 1.6rem 1.6rem; max-width: none; }
.card--lead[data-tone="dark"] { --ink: #ECE9F3; --ink-2: #CFCBD8; --faint: #A8A3B3; color: var(--ink); }
.card--lead[data-tone="dark"]:not([style*="--accent"]) { --accent: #BD98E1; }
.card--lead .card-dek { font-size: 1.2rem; margin-top: .7rem; }
.front-side { border-left: 1px solid var(--hair); padding-left: 2.4rem; }
.card--side { padding: 0 0 1.3rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--hair); }
.card--side:last-child { border-bottom: 0; margin-bottom: 0; }
.card--side .card-media { aspect-ratio: 16 / 10; margin-bottom: .8rem; }
.card--side .card-title { font-size: 1.32rem; }
.card--side .card-dek { font-size: .93rem; }
/* only the first side card gets a full-width photo; the ones under it carry a thumbnail */
.card--side ~ .card--side:has(.card-media) { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 1rem; align-items: start; }
.card--side ~ .card--side .card-media { order: 2; aspect-ratio: 1; margin: .2rem 0 0; }

/* the newsletter sign-up: a thin lilac strip between the side stories (and a line in the footer) */
.newsletter { margin: 0 0 1.3rem; padding: .8rem .9rem .9rem; background: var(--lilac); border-block: 1px solid var(--lilac-2); }
.newsletter[hidden] { display: none; }
.newsletter:last-child { margin-bottom: 0; }
.newsletter-title { margin: 0 0 .55rem; font: 500 1.08rem/1.3 var(--serif); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.newsletter-form input {
  flex: 1 1 11rem; min-width: 0; height: 2.5rem; padding: 0 .7rem;
  font: 400 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--faint); border-radius: 3px;
}
.newsletter-form input::placeholder { color: var(--muted); opacity: 1; }
.newsletter-form input[aria-invalid="true"] { border: 2px solid var(--accent); }
.newsletter-form .btn { height: 2.5rem; padding-block: 0; }
.newsletter-form .btn:disabled { opacity: .55; cursor: progress; }
.newsletter-status { margin: .55rem 0 0; font: 500 .8rem/1.4 var(--sans); color: var(--ink-2); }
.newsletter-status:empty { margin: 0; }
.newsletter-status:focus { outline: none; }
.newsletter.is-done :is(.newsletter-title, .newsletter-form) { display: none; }
.newsletter.is-done .newsletter-status { margin: 0; font: 500 1.08rem/1.3 var(--serif); color: var(--ink); }

.front-row { padding: 2.4rem 0; border-bottom: 1px solid var(--hair); }
.front-row:last-child, .front-row:has(+ .front-band) { border-bottom: 0; }
/* broadsheet column rules between the cards of a picture row */
@media (min-width: 64rem) {
  .grid-4 > .card + .card::before { content: ''; position: absolute; top: 0; bottom: 0; left: -.9rem; width: 1px; background: var(--hair); }
}

.grid-4 { display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: 2rem 1.8rem; }
.grid-3 { display: grid; grid-template-columns: repeat(var(--count, 3), minmax(0, 1fr)); gap: 2rem 2rem; }
.grid-4[style*="--count:3"] .card--grid .card-title { font-size: 1.5rem; }
.grid-4[style*="--count:3"] .card--grid .card-dek { font-size: 1.02rem; }
.card--grid .card-media { aspect-ratio: 3 / 2; margin-bottom: .85rem; }
.card--grid .card-title { font-size: 1.28rem; }
.card--grid .card-dek { font-size: .95rem; }
.grid-3 .card--grid .card-title { font-size: 1.45rem; }

.front-band { margin: 0 calc(50% - 50vw); padding: 3rem 0; background: var(--lilac); border-top: 1px solid var(--lilac-2); }
/* a page that ends on the band: the band meets the footer, no empty gap */
.front-ends-band .front { padding-bottom: 0; }
.front-ends-band .front-band { padding-bottom: 3.4rem; }
.front-ends-band .site-footer { margin-top: 0; }
.front-ends-band .footer-inner { padding-top: 2.6rem; }
.grid-3--band[style*="--count:2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3--band[style*="--count:2"] .card--band .card-title { font-size: clamp(1.8rem, 1.3rem + 1.1vw, 2.3rem); }
.grid-3--band[style*="--count:2"] .card--band .card-dek { font-size: 1.08rem; max-width: 30rem; }
.band-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.card--band { padding-right: 1rem; }
.card--band + .card--band { border-left: 1px solid var(--lilac-2); padding-left: 2rem; }
.card--band .card-title { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); font-stretch: 62.5%; font-weight: 700; line-height: 1.02; }
.card--band .card-dek { font-size: .98rem; }

.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.list .card--list {
  display: grid; grid-template-columns: minmax(0, 1fr) 9rem; gap: 1.4rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--hair);
}
.list .card--list:nth-child(-n + 2) { padding-top: 0; }
.list .card--list:nth-last-child(-n + 2):nth-child(odd), .list .card--list:last-child { border-bottom: 0; }
.list:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.card--list .card-media { order: 2; aspect-ratio: 3 / 2; }
.card--list .card-title { font-size: 1.45rem; }
.card--list:not(:has(.card-media)) { grid-template-columns: 1fr; }

@media (max-width: 64rem) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4[style*="--count:3"] > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 52rem) {
  .list { grid-template-columns: 1fr; }
  .list .card--list:nth-child(2) { padding-top: 1.5rem; }
  .list .card--list:nth-last-child(-n + 2):nth-child(odd):not(:last-child) { border-bottom: 1px solid var(--hair); }
  .front-top { grid-template-columns: 1fr; }
  .front-side { border-left: 0; padding-left: 0; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--hair); }
  .grid-3, .grid-3--band[style*="--count:2"] { grid-template-columns: 1fr; }
  .card--band + .card--band { border-left: 0; padding-left: 0; border-top: 1px solid var(--lilac-2); padding-top: 1.6rem; }
}
@media (max-width: 40rem) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-4[style*="--count:3"] > :first-child { grid-column: auto; }
  .list .card--list { grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 1rem; }
  .card--list .card-title { font-size: 1.2rem; }
  .card--list .card-dek { display: none; }
}

/* front page: heavier headlines, easier to read. Noto Serif Display has no optical-size axis,
   so small headlines get the optical corrections by hand: more weight, a wider cut, looser spacing. */
.front .card-title { font-weight: 700; }
:is(.card--side, .card--grid, .card--list) .card-title { font-stretch: 90%; letter-spacing: 0; }
.front .card--band .card-title { font-weight: 680; }

/* ---------- static pages ---------- */
.page-head { margin-bottom: 2.2rem; }
.page-title {
  margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 62.5%;
  font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem); line-height: 1; letter-spacing: -.004em;
}
.page-dek { margin: .8rem 0 0; font: 400 1.2rem/1.45 var(--serif); color: var(--ink-2); max-width: 40rem; }
.page-updated { margin: 1rem 0 0; font: 500 .75rem var(--sans); color: var(--faint); letter-spacing: .02em; }
.static { padding: 3rem 0 3rem; min-height: calc(100svh - 22rem); box-sizing: border-box; }
.page-head--static { max-width: var(--measure); margin: 0 auto 2.2rem; padding: 0 var(--gutter); box-sizing: content-box; }
.page-head--static .page-title { font-stretch: 75%; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); }
.prose--page h2 { font-size: 1.3em; }

/* =====================================================================
   Gallery — a wall of photographs, hung three to a row, one on phones.
   Every picture keeps its own shape and sits on the middle line of its row.
   ===================================================================== */
.gallery { padding: 2.6rem 0 clamp(2rem, 5vw, 4rem); min-height: calc(100svh - 22rem); box-sizing: border-box; }
.gallery .page-head--static { text-align: center; margin-bottom: clamp(2rem, 4.5vw, 3.6rem); }
.gallery .page-dek { margin-inline: auto; }
.gallery > .prose { margin-bottom: clamp(2rem, 4.5vw, 3.6rem); }
.wall {
  --space: clamp(1.75rem, 5vw, 5rem);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(2.25rem, 6.5vw, 6.5rem) var(--space);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--space);
  list-style: none; position: relative;
}
.wall li { flex: 0 0 calc((100% - 2 * var(--space)) / 3); min-width: 0; margin: 0; }
.wall img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.wall-empty { margin: 0; padding: 3rem var(--gutter); text-align: center; font: italic 400 1.2rem/1.5 var(--serif); color: var(--muted); }
/* one to a row (keep the width in step with site.js) */
@media (max-width: 45rem) {
  .wall { padding-inline: clamp(1.5rem, 7vw, 3rem); }
  .wall li { flex-basis: min(100%, 34rem); }
}

/* =====================================================================
   Footer — columns of links under a double rule
   ===================================================================== */
.site-footer { margin-top: 3rem; font-family: var(--sans); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 2.2rem; }
.footer-inner::before { content: ''; display: block; height: 4px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; margin: 1rem 0 1.5rem; }
.footer-name { font-size: 1.7rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-head { margin: 0 0 .7rem; font: 700 .76rem/1.2 var(--sans); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.footer-col li { margin: 0; }
.footer-col a, .footer-topic {
  display: inline-block; padding: .22rem 0; font: 400 .86rem/1.35 var(--sans); color: var(--ink);
  text-decoration: none; text-align: left; background: none; border: 0; cursor: pointer;
}
.footer-topic::first-letter { text-transform: uppercase; }
.footer-col a, .footer-topic, .footer-more {
  background: linear-gradient(var(--accent), var(--accent)) 0 88% / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.footer-col a:hover, .footer-topic:hover, .footer-more:hover { color: var(--accent); background-size: 100% 1px; }
.footer-more { display: inline-block; padding: .22rem 0; margin-top: .3rem; border: 0; cursor: pointer; font: italic 400 .95rem/1.35 var(--serif); color: var(--accent-deep); text-align: left; }
.footer-col--reader { border-left: 1px solid var(--hair); padding-left: 1.8rem; }
.footer-actions a, .footer-actions button {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .32rem 0; background: none; border: 0; cursor: pointer;
  font: 700 .98rem/1.3 var(--sans); color: var(--ink); text-align: left; text-decoration: none;
}
.footer-actions svg { width: 17px; height: 17px; flex: none; }
/* the footer's sign-up: a small underlined field on the nameplate's line, adding no height */
.newsletter--footer { position: relative; display: flex; align-items: center; gap: .8rem; margin: 0; padding: 0; background: none; border: 0; }
.newsletter--footer .newsletter-title { margin: 0; font: 400 .8rem/1.3 var(--sans); color: var(--muted); }
.newsletter--footer .newsletter-form { flex-wrap: nowrap; gap: .6rem; }
.newsletter--footer .newsletter-form input {
  flex: 0 1 auto; width: 13rem; height: 1.8rem; padding: 0; font-size: .8rem;
  background: none; border-width: 0 0 1px; border-radius: 0;
}
.newsletter--footer .newsletter-form input[aria-invalid="true"] { border-width: 0 0 2px; }
.newsletter--footer .btn { height: 1.8rem; padding: 0; font-size: .8rem; background: none; color: var(--ink); }
.newsletter--footer .btn:hover { color: var(--accent); }
/* messages hang in the gap under the line, so nothing moves */
.newsletter--footer .newsletter-status { position: absolute; top: 100%; right: 0; width: max-content; max-width: min(30rem, 85vw); margin: .3rem 0 0; font-size: .72rem; line-height: 1.3; text-align: right; }
.newsletter--footer .newsletter-form input:focus-visible { outline-offset: 0; }
/* narrower screens: the field and button say enough, and fit beside the name */
@media (max-width: 64rem) {
  .newsletter--footer .newsletter-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .newsletter--footer .newsletter-form input { width: 11rem; }
}
@media (max-width: 40rem) {
  .newsletter--footer { flex: 1 0 100%; flex-wrap: wrap; row-gap: 0; }
  .newsletter--footer .newsletter-form { flex: 1; }
  .newsletter--footer .newsletter-form input { flex: 1; width: auto; font-size: 1rem; } /* 16px: phones don't zoom in */
  .newsletter--footer .newsletter-status { position: static; flex-basis: 100%; width: auto; max-width: none; text-align: left; }
  .newsletter--footer .newsletter-status:empty { margin: 0; }
}
.footer-bottom { margin: 1.8rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hair); font-size: .75rem; color: var(--muted); text-align: center; }
@media (max-width: 64rem) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--reader { border-left: 0; padding-left: 0; }
}
/* phones: the whole footer fits on one screen. No story list; topics run as a wrapping line,
   with Publication and Reader side by side under them. */
@media (max-width: 40rem) {
  .site-footer { margin-top: 2rem; }
  .footer-inner, .front-ends-band .footer-inner { padding-bottom: 0; }
  .front-ends-band .footer-inner { padding-top: 1.4rem; }
  .footer-top { gap: .5rem; margin: .8rem 0 1rem; }
  .footer-name { font-size: 1.4rem; padding-block: .1rem; } /* a comfortable tap target */
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.2rem; }
  .footer-col--stories { display: none; }
  .footer-col--topics, .footer-col--publication, .footer-col--reader { border-top: 1px solid var(--hair); padding-top: .8rem; }
  .footer-col--topics { grid-column: 1 / -1; }
  .footer-col--topics ul { display: flex; flex-wrap: wrap; column-gap: 1.1rem; }
  .footer-head { margin-bottom: .35rem; font-size: .68rem; }
  .footer-actions a, .footer-actions button { gap: .5rem; padding: .22rem 0; font: 600 .86rem/1.35 var(--sans); }
  .footer-actions svg { width: 15px; height: 15px; }
  .footer-bottom { margin-top: .9rem; padding: .7rem 0 3.2rem; } /* room for the floating buttons */
}

/* =====================================================================
   Floating dock — listen · share · save · margins · reading settings
   ===================================================================== */
.dock {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; flex-direction: column; gap: .5rem; pointer-events: none;
}
.dock-group { display: flex; flex-direction: column; gap: .5rem; }
.dock-btn { pointer-events: auto; }
.dock-story { opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.dock-story .dock-btn { pointer-events: none; }
.dock-story.is-visible, .dock-story:focus-within { opacity: 1; transform: none; }
.dock-story.is-visible .dock-btn, .dock-story:focus-within .dock-btn { pointer-events: auto; }
/* phones: one row along the bottom, so less of the text column is covered */
@media (max-width: 40rem) {
  .dock, .dock-group { flex-direction: row; gap: .35rem; }
  .dock { right: max(.6rem, env(safe-area-inset-right)); bottom: max(.6rem, env(safe-area-inset-bottom)); }
  .dock .dock-btn { width: 2.55rem; height: 2.55rem; }
  .masthead-over .hero--immersive .hero-text { padding-bottom: 4.4rem; }
  .site-footer { padding-bottom: .5rem; }
}
.dock-btn {
  width: 2.9rem; height: 2.9rem; display: grid; place-items: center; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 86%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 20px rgba(30, 20, 60, .09);
  transition: color .2s, background .2s, transform .2s;
}
.dock-btn:hover { color: var(--accent); transform: translateY(-1px); }
.dock-btn[aria-pressed="true"], .dock-btn[aria-expanded="true"], .dock-btn.is-playing { background: var(--accent); color: #fff; border-color: var(--accent); }
.dock-top { opacity: .75; }

/* paragraph currently being read aloud */
.prose .is-speaking { background: var(--lilac); box-shadow: -.6em 0 0 var(--lilac), .6em 0 0 var(--lilac); border-radius: 2px; transition: background .3s; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); font: 500 .8rem var(--sans);
  padding: .75rem 1.1rem; border-radius: 4px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s cubic-bezier(.2, .7, .2, 1);
  max-width: calc(100vw - 2rem);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a, .toast button { color: #D2BCEF; margin-left: .5rem; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

.preview-flag { position: sticky; top: 0; z-index: 70; background: var(--accent); color: #fff; font: 600 .74rem var(--sans); text-align: center; padding: .45rem; letter-spacing: .04em; }

/* =====================================================================
   Reading settings — panel
   ===================================================================== */
.rd-panel {
  position: fixed; z-index: 85; right: max(4.6rem, calc(env(safe-area-inset-right) + 4.6rem)); bottom: 1rem;
  width: min(23rem, calc(100vw - 5.6rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 1.1rem 1.1rem; border: 1px solid var(--hair); border-radius: 12px;
  background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(20, 12, 40, .28);
  font: 400 .82rem/1.4 var(--sans); animation: pop .22s cubic-bezier(.2, .7, .2, 1);
}
.rd-panel[hidden] { display: none; }
.rd-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: .6rem 0 .3rem; margin-right: -.5rem; background: var(--paper); }
.rd-head h2 { margin: 0; font: 700 1.15rem/1.2 var(--sans); }
.rd-panel fieldset { border: 0; margin: 0; padding: .65rem 0 0; min-width: 0; }
.rd-panel legend, .rd-label { float: left; width: 100%; margin: 0 0 .35rem; padding: 0; font-weight: 700; font-size: .74rem; letter-spacing: .02em; }
.rd-seg { clear: both; display: flex; border: 1px solid var(--hair); border-radius: 7px; overflow: hidden; }
.rd-seg label { flex: 1; position: relative; text-align: center; cursor: pointer; }
.rd-seg label + label { border-left: 1px solid var(--hair); }
.rd-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rd-seg span { display: block; padding: .5rem .2rem; font-size: .76rem; white-space: nowrap; }
.rd-seg input:checked + span { background: var(--ink); color: var(--paper); font-weight: 600; }
.rd-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -3px; }
.rd-step { clear: both; display: flex; align-items: center; gap: .5rem; }
.rd-step output { flex: 1; text-align: center; font-weight: 600; }
.rd-btn { cursor: pointer; border: 1px solid var(--hair); border-radius: 7px; background: none; color: var(--ink); padding: .45rem .9rem; font: 600 .78rem var(--sans); }
.rd-btn:hover { border-color: var(--ink); }
.rd-btn:disabled { opacity: .35; cursor: default; }
.rd-range { clear: both; display: flex; align-items: center; gap: .6rem; }
.rd-range input { flex: 1; min-width: 0; accent-color: var(--accent); }
.rd-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0 0; cursor: pointer; font-weight: 600; }
.rd-switch input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.rd-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--hair); }
.rd-note { margin: .6rem 0 0; font-size: .72rem; color: var(--muted); }
@media (max-width: 40rem) { .rd-panel { right: .5rem; left: .5rem; bottom: .5rem; width: auto; max-height: 70dvh; } }

/* ---------- margin ruler (appears when the pointer reaches the top edge) ---------- */
.ruler { position: fixed; top: 0; left: 0; width: 100%; height: 0; z-index: 75; font: 600 .68rem var(--sans); user-select: none; -webkit-user-select: none; }
.ruler-zone { position: absolute; top: 0; left: 0; right: 0; height: 10px; }
@media (hover: none) { .ruler-zone { display: none; } }
.ruler-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 40px;
  background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--hair); box-shadow: 0 6px 20px rgba(20, 12, 40, .16);
  transform: translateY(-110%); visibility: hidden; transition: transform .22s cubic-bezier(.2, .7, .2, 1), visibility 0s .22s;
}
.ruler.is-open .ruler-bar { transform: none; visibility: visible; transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.ruler-ticks {
  position: absolute; inset: auto 0 0 0; height: 10px; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 100px) 0 100% / 100% 10px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 10px) 0 100% / 100% 5px no-repeat;
}
.ruler-margin { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 17%, transparent); cursor: ew-resize; touch-action: none; }
.ruler-margin--left { left: 0; }
.ruler-margin--right { right: 0; }
.ruler-handle {
  position: absolute; top: 0; bottom: 0; width: 28px; margin-left: -14px; padding: 0; border: 0; background: none; cursor: ew-resize; touch-action: none;
}
.ruler-handle::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 11px; width: 6px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 2px var(--paper); }
.ruler-handle:hover::before { left: 10px; width: 8px; }
.ruler-readout { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: .7rem; white-space: nowrap; }
.ruler-readout button { cursor: pointer; border: 1px solid var(--hair); border-radius: 99px; background: var(--paper); color: var(--ink); font: inherit; padding: .2rem .6rem; }
.ruler-readout button:hover { border-color: var(--ink); }
.ruler-guides { position: fixed; top: 40px; bottom: 0; border-inline: 1px dashed var(--accent); pointer-events: none; opacity: 0; }
.ruler.is-dragging .ruler-guides { opacity: .8; }
.ruler.is-dragging, .ruler.is-dragging * { cursor: ew-resize !important; }

/* custom margins chosen by the reader */
html[data-rd-width] { --wide: max(68rem, var(--rd-width)); }
html[data-rd-width] :is(.article, .static) { --measure: var(--rd-width); }
html[data-rd-width] .hero--standard .hero-text { max-width: var(--measure); }
/* when the text gets close to the edges, margin notes and floats move back into the column */
html[data-rd-tight] .prose .sidenote { float: none; width: auto; margin: 1.2em 0; padding: .1em 0 .1em .9em; border-top: 0; border-left: 2px solid var(--accent); transform: none; }
html[data-rd-tight] .prose .fig[data-size="margin"] { float: none; width: 55%; margin: 1.2em auto; }
html[data-rd-tight] .prose > :is(.fig, .pullquote):is([data-size="left"], [data-align="left"]) { margin-left: 0; width: 46%; }
html[data-rd-tight] .prose > :is(.fig, .pullquote):is([data-size="right"], [data-align="right"]) { margin-right: 0; width: 46%; }
html[data-rd-tight] .prose > .pullquote:not([data-align]) { margin-left: 0; margin-right: 0; }

/* ---------- reading preferences ---------- */
html[data-rd-size] .prose { --text-size: calc(clamp(1.125rem, 1.03rem + .33vw, 1.3rem) * var(--rd-scale)); }
html[data-rd-size] :is(.hero-dek, .page-dek) { font-size: calc(1.35rem * var(--rd-scale)) !important; }
html[data-rd-size] .card-dek { font-size: calc(1rem * var(--rd-scale)) !important; }
html[data-rd-size] :is(.prose figcaption, .hero-caption, .media-tools, .transcript) { font-size: calc(.82rem * var(--rd-scale) * var(--cap-k, 1)); }

html[data-rd-line="relaxed"] :is(.prose, .prose :is(p:not(.is-huge, .is-giant), li, blockquote, .sidenote, figcaption), .hero-dek, .page-dek, .card-dek) { line-height: 1.9 !important; }
html[data-rd-line="loose"] :is(.prose, .prose :is(p:not(.is-huge, .is-giant), li, blockquote, .sidenote, figcaption), .hero-dek, .page-dek, .card-dek) { line-height: 2.25 !important; }
html[data-rd-spacing="wide"] :is(.prose :is(p, li, blockquote, .sidenote, figcaption), .hero-dek, .page-dek, .card-dek) { letter-spacing: .05em !important; word-spacing: .1em !important; }
html[data-rd-spacing="wider"] :is(.prose :is(p, li, blockquote, .sidenote, figcaption), .hero-dek, .page-dek, .card-dek) { letter-spacing: .12em !important; word-spacing: .16em !important; }

html[data-rd-font] :is(.prose, .prose :not(code, pre, pre *), .hero-title, .hero-title *, .hero-dek, .page-title, .page-title *, .page-dek, .card-title, .card-dek) { font-stretch: normal !important; font-variation-settings: normal !important; }
html[data-rd-font="serif"] :is(.prose, .prose :not(code, pre, pre *), .hero-title *, .hero-dek, .page-title *, .page-dek, .card-title, .card-dek) { font-family: var(--serif) !important; }
html[data-rd-font="sans"] :is(.prose, .prose :not(code, pre, pre *), .hero-title, .hero-title *, .hero-dek, .page-title, .page-title *, .page-dek, .card-title, .card-dek) { font-family: var(--sans) !important; }
html[data-rd-font="legible"] :is(.prose, .prose :not(code, pre, pre *), .hero-title, .hero-title *, .hero-dek, .page-title, .page-title *, .page-dek, .card-title, .card-dek) { font-family: 'Atkinson Hyperlegible Next', var(--sans) !important; }

/* reader colours override the story's own theme */
html[data-rd-theme="light"] body { --paper: #fff !important; --ink: #121212 !important; --ink-2: #262626 !important; --muted: #4d4d4d !important; --faint: #636363 !important; --paper-2: #f2f2f2 !important; --hair: #d6d6d6 !important; --accent: #5a35b8 !important; --accent-deep: #4a2a9c !important; --lilac: #f3effc !important; --lilac-2: #e4dbf8 !important; color-scheme: light; }
html[data-rd-theme="sepia"] body { --paper: #f4ecd9 !important; --ink: #33291c !important; --ink-2: #443828 !important; --muted: #5f5140 !important; --faint: #6f604d !important; --paper-2: #eae0c8 !important; --hair: #d6c8a8 !important; --accent: #5a35a0 !important; --accent-deep: #48298a !important; --lilac: #ece1d6 !important; --lilac-2: #e0d1d4 !important; color-scheme: light; }
html[data-rd-theme="dark"] body { --paper: #141318 !important; --ink: #e9e7ee !important; --ink-2: #d3d0da !important; --muted: #b0abbb !important; --faint: #96919f !important; --paper-2: #201e27 !important; --hair: #36333f !important; --accent: #b9a2ff !important; --accent-deep: #d3c5ff !important; --lilac: #221d33 !important; --lilac-2: #382e5a !important; color-scheme: dark; }
html[data-rd-theme="contrast"] body { --paper: #000 !important; --ink: #fff !important; --ink-2: #fff !important; --muted: #fff !important; --faint: #e6e6e6 !important; --paper-2: #111 !important; --hair: #fff !important; --accent: #ffe14d !important; --accent-deep: #ffe14d !important; --lilac: #1b1b1b !important; --lilac-2: #3d3500 !important; color-scheme: dark; }
html[data-rd-theme="contrast"] body :is(.prose a, .card-title a, .footer-col a, .footer-bottom a) { color: #ffe14d; text-decoration: underline; }
html[data-rd-theme] body .prose .band { --band-bg: var(--paper-2) !important; --band-ink: var(--ink) !important; background: var(--paper-2) !important; text-shadow: none; }
html[data-rd-theme] body .prose :is(p, h2, h3, h4, blockquote, aside, span)[style*="color"] { color: inherit !important; }
html[data-rd-theme] body .prose mark { background: var(--lilac-2) !important; color: var(--ink); }
html[data-rd-theme] body :is(.hero-title, .page-title) span[style*="color"] { color: inherit !important; }
html[data-rd-theme] body :is(.hero-title, .page-title) mark { background: var(--lilac-2) !important; color: var(--ink); }
html[data-rd-theme] body :is(.hero--night, .layout-night .masthead--compact) { --night: var(--paper); color: var(--ink); }
html[data-rd-theme="light"] body :is(.hero--night, .layout-night .masthead--compact) :is(.hero-dek, .hero-byline, .hero-author, .hero-caption, .credit, .masthead-name, .icon-btn, .masthead-nav a, .masthead-nav button),
html[data-rd-theme="sepia"] body :is(.hero--night, .layout-night .masthead--compact) :is(.hero-dek, .hero-byline, .hero-author, .hero-caption, .credit, .masthead-name, .icon-btn, .masthead-nav a, .masthead-nav button) { color: var(--ink); }

/* the same preferences inside a story's pop-up notice */
html[data-rd-font] .story-notice :is(.story-notice-title, .story-notice-text, .story-notice-text *) { font-stretch: normal !important; font-variation-settings: normal !important; }
html[data-rd-font="serif"] .story-notice :is(.story-notice-title, .story-notice-text, .story-notice-text *) { font-family: var(--serif) !important; }
html[data-rd-font="sans"] .story-notice :is(.story-notice-title, .story-notice-text, .story-notice-text *) { font-family: var(--sans) !important; }
html[data-rd-font="legible"] .story-notice :is(.story-notice-title, .story-notice-text, .story-notice-text *) { font-family: 'Atkinson Hyperlegible Next', var(--sans) !important; }
html[data-rd-line="relaxed"] .story-notice-text { line-height: 1.9; }
html[data-rd-line="loose"] .story-notice-text { line-height: 2.25; }
html[data-rd-spacing="wide"] .story-notice-text { letter-spacing: .05em; word-spacing: .1em; }
html[data-rd-spacing="wider"] .story-notice-text { letter-spacing: .12em; word-spacing: .16em; }
html[data-rd-theme="contrast"] body .story-notice-text a { color: #ffe14d; }

/* reading guide: a line, or a window that dims everything else */
.rd-guide { position: fixed; left: 0; right: 0; top: 0; z-index: 55; height: 2.6rem; pointer-events: none; will-change: transform; }
.rd-guide[data-mode="line"] { background: rgba(150, 110, 240, .17); border-block: 2px solid var(--accent); }
.rd-guide[data-mode="window"] { height: 8.5rem; box-shadow: 0 0 0 100vmax rgba(10, 8, 16, .58); border-block: 1px solid var(--accent); }

/* reduce motion, chosen on the page */
html[data-rd-motion] *, html[data-rd-motion] *::before, html[data-rd-motion] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-rd-motion] .reveal { opacity: 1 !important; translate: none !important; }
html[data-rd-motion]::view-transition-group(*), html[data-rd-motion]::view-transition-old(*), html[data-rd-motion]::view-transition-new(*) { animation: none !important; }

/* ---------- read-aloud player ---------- */
.player {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 65; transform: translateX(-50%);
  display: flex; align-items: center; gap: .35rem; max-width: calc(100vw - 2rem); padding: .4rem .6rem;
  border: 1px solid var(--hair); border-radius: 99px; background: var(--paper); color: var(--ink);
  box-shadow: 0 12px 40px rgba(20, 12, 40, .22); font: 500 .76rem var(--sans);
}
.player[hidden] { display: none; }
.player .icon-btn { width: 2.3rem; height: 2.3rem; }
.player .player-play { background: var(--ink); color: var(--paper); }
.player output { min-width: 4.2rem; text-align: center; white-space: nowrap; color: var(--muted); }
.player select { max-width: 9rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--hair); border-radius: 6px; padding: .35rem .3rem; }
@media (max-width: 40rem) {
  .player { left: .5rem; right: .5rem; bottom: 3.9rem; transform: none; flex-wrap: wrap; justify-content: center; border-radius: 14px; max-width: none; }
}
body.is-listening .toast { bottom: 6rem; }
@media (max-width: 40rem) { .toast { bottom: 4.2rem; } body.is-listening .toast { bottom: 11.5rem; } }
body.is-listening .prose :is(p, li, h2, h3, h4, .pullquote, .sidenote) { cursor: pointer; }
::highlight(spoken-word) { background-color: #804DB3; color: #fff; }

/* ---------- video & audio tools, transcripts ---------- */
.media-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .5rem; font: 500 .76rem var(--sans); color: var(--ink); }
.media-tools button, .media-tools select { cursor: pointer; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--hair); border-radius: 6px; padding: .4rem .65rem; min-height: 2.1rem; }
.media-tools button:hover, .media-tools select:hover { border-color: var(--ink); }
.media-tools button[aria-pressed="true"], .media-tools button[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.media-tools label { display: inline-flex; align-items: center; gap: .35rem; }
.prose .fig:is([data-size="full"], [data-size="overlay"]) :is(.media-tools, .transcript) { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 40rem) { .prose .fig[data-size="wide"] :is(.media-tools, .transcript) { padding-inline: var(--gutter); } }
.prose .transcript { margin: .6rem 0 0; border-block: 1px solid var(--hair); font: 400 .85rem/1.55 var(--sans); text-align: left; }
.prose .transcript summary { cursor: pointer; padding: .55rem 0; font-weight: 700; }
.prose .transcript > p { margin: 0 0 .7em; }
.prose .transcript ol { list-style: none; margin: 0 0 .6rem; padding: 0; max-height: 18rem; overflow-y: auto; }
.prose .transcript li { margin: 0; padding: 0; }
.prose .transcript li button { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .6rem; width: 100%; padding: .35rem .3rem; border: 0; border-radius: 4px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.prose .transcript li button:hover { background: var(--lilac); }
.prose .transcript li button[aria-current="true"] { background: var(--lilac-2); font-weight: 600; }
.prose .transcript time { color: var(--muted); font-variant-numeric: tabular-nums; }
html[data-rd-cue="s"] video::cue { font-size: 85%; }
html[data-rd-cue="l"] video::cue { font-size: 135%; }
html[data-rd-cue="xl"] video::cue { font-size: 175%; }
video::cue { background: rgba(0, 0, 0, .85); color: #fff; }

/* ---------- moving photos (opening and card videos): pause / play over the corner ----------
   site.js adds the button and keeps it on the video's bottom-right corner. */
.vid-toggle { position: absolute; z-index: 3; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(18, 18, 18, .62); color: #fff; cursor: pointer; opacity: .82; transition: opacity .2s var(--ease), background-color .2s var(--ease); }
.vid-toggle:hover, .vid-toggle:focus-visible { opacity: 1; background: rgba(18, 18, 18, .85); }
.vid-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(18, 18, 18, .85); }
.card .vid-toggle { width: 1.9rem; height: 1.9rem; }
.card .vid-toggle svg { width: 13px; height: 13px; }
.hero-video { cursor: pointer; }
@media (forced-colors: active) { .vid-toggle { border-color: ButtonText; background: ButtonFace; color: ButtonText; forced-color-adjust: none; } }

/* ---------- page transitions: a story's card photo grows into its opening photo ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.card-media :is(img, video), .hero-img, .next-media img { view-transition-class: photo; }
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: var(--ease); }
::view-transition-old(.photo), ::view-transition-new(.photo) { height: 100%; width: 100%; object-fit: cover; overflow: clip; }
::view-transition-old(root) { animation-duration: .2s; }
::view-transition-new(root) { animation-duration: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; translate: none !important; }
}

/* =====================================================================
   Print — a story prints like an article clipped from a newspaper
   ===================================================================== */
@page { margin: 16mm 15mm 18mm; }
@media print {
  .dock, .progress, .more, .hero-actions, .toast, .rd-panel, .ruler, .rd-guide, .player, .media-tools, .skip,
  .masthead-tools, .masthead-nav, .masthead-bar > .masthead-date, .preview-flag, .article-tags, .site-footer nav, .footer-name,
  dialog, .transcript, video, audio, .embed-frame, .hero-shade, .vid-toggle, .newsletter { display: none !important; }
  main.story-notice { min-height: 0; }
  .story-notice-actions, .story-notice-foot { display: none !important; }
  :root, body, [data-theme], [data-tone] {
    --paper: #fff; --paper-2: #f2f2f2; --ink: #000; --ink-2: #222; --muted: #444; --faint: #555; --hair: #bbb;
    --accent: #000; --accent-deep: #000; --lilac: #f2f2f2; --lilac-2: #e6e6e6; --lilac-mark: #000; --night: #fff;
    color-scheme: light;
  }
  body { background: #fff !important; color: #000; }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; translate: none !important; }
  main { overflow: visible; }

  /* the nameplate as a slug line at the top, like the page the clipping came from */
  .masthead, .masthead--compact, .masthead-over .masthead--compact { position: static !important; background: none !important; border: 0; padding: 0 0 3mm; margin-bottom: 5mm; border-bottom: .6pt solid #000 !important; }
  .masthead-bar { display: block; padding: 0; max-width: none; }
  .masthead-name, .masthead-over .masthead--compact .masthead-name { color: #000 !important; font-size: 13pt !important; }
  .masthead--home .masthead-name { font-size: 28pt !important; }
  .masthead-rule { background: none; }

  /* the opening, whatever its design, becomes a plain headline block with the photo below */
  .hero, .hero-stage, .hero-band, .hero-grid, .hero-text, .hero-media { all: unset; display: block !important; }
  .hero { margin-bottom: 6mm !important; color: #000 !important; text-align: left !important; }
  .hero-title { display: block; font-size: 30pt !important; line-height: 1.05 !important; color: #000 !important; background: none !important; margin: 0 0 3mm !important; }
  .hero-dek { display: block; font-size: 13pt !important; color: #222 !important; max-width: none !important; margin: 0 0 3mm !important; background: none !important; padding: 0 !important; }
  .hero-byline, .hero-columnist { display: flex !important; font-size: 8.5pt !important; color: #333 !important; background: none !important; padding: 0 !important; margin: 0 0 4mm !important; justify-content: flex-start !important; }
  .hero-author { color: #000 !important; }
  .hero-rule, .hero-meta { border: 0 !important; padding: 0 !important; margin: 0 !important; }
  .hero-img { display: block !important; position: static !important; width: 100% !important; height: auto !important; max-height: 95mm; aspect-ratio: auto !important; object-fit: cover; margin: 0 !important; filter: grayscale(1) contrast(1.05); }
  .hero-caption { display: block; font-size: 7.5pt !important; color: #444 !important; margin: 1.5mm 0 0 !important; padding: 0 !important; text-align: left !important; background: none !important; }
  .hero-foot { all: unset; display: block; }

  .gallery { padding: 0; min-height: 0; }
  .wall { padding: 0; gap: 6mm; max-width: none; }
  .wall li { flex: 0 0 calc((100% - 12mm) / 3); break-inside: avoid; }

  /* the text in two newspaper columns with a rule between */
  .article > .prose { margin-top: 0; }
  .prose, .prose--page { max-width: none !important; padding: 0 !important; columns: 2; column-gap: 7mm; column-rule: .4pt solid #999; font-size: 10pt; line-height: 1.42; orphans: 3; widows: 3; text-align: justify; hyphens: auto; }
  .prose :is(h2, h3, h4) { break-after: avoid; text-align: left; }
  .prose :is(.fig, figure, blockquote, .pullquote, .callout, .verse, pre, .cols) { break-inside: avoid; }
  .prose .fig, .prose .fig[data-size] { float: none !important; width: 100% !important; margin: 3mm 0 !important; }
  .prose .fig img { filter: grayscale(1) contrast(1.05) !important; max-height: 80mm; object-fit: cover; padding: 0 !important; transform: none !important; border-radius: 0 !important; }
  .prose figcaption { font-size: 7.5pt; color: #444; padding: 0 !important; }
  .prose .fig[data-size="overlay"] { display: block; }
  .prose .fig[data-size="overlay"] > .fig-overlay { color: #000; font-size: 12pt; margin: 2mm 0 0 !important; text-align: left; }
  .prose .fig[data-size="overlay"]::before { display: none; }
  .prose .band, .prose .band[data-theme] { all: unset; display: block; margin: 3mm 0; color: #000 !important; }
  .prose .pullquote, .prose .pullquote[data-align] { float: none !important; width: auto !important; margin: 3mm 0 !important; font-size: 14pt !important; column-span: none; }
  .prose .sidenote { float: none !important; width: auto !important; margin: 2mm 0 !important; font-size: 8pt; }
  .prose .is-giant, .prose .is-giant.font-hand { font-size: 30pt; }
  .prose .is-huge, .prose .is-huge.font-hand { font-size: 16pt; }
  .prose .cols { display: block; }
  .prose a { text-decoration: none; }
  .prose a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 7pt; color: #555; word-break: break-all; }
  .prose span[style*="color"], .prose mark, :is(.hero-title, .page-title) * { color: #000 !important; background: none !important; }
  .article .prose > p:last-of-type::after { background: #000; }

  /* where it came from, under the clipping */
  .article-end { max-width: none; padding: 0; margin: 4mm 0 0; }
  .article-sign { font-size: 13pt; color: #000; }
  .site-footer { margin: 6mm 0 0; }
  .footer-inner { padding: 0; max-width: none; }
  .footer-inner::before { border-color: #000; }
  .footer-bottom { border: 0; margin: 2mm 0 0; padding: 0; text-align: left; color: #444; font-size: 7.5pt; }
  .page-article .footer-bottom::after { content: ' · ' attr(data-url); }
}
