/* Maryland Wedding Reviews. The printed annual: Literata, white paper, Maryland flag blocks. */
:root {
  --bg: #ffffff;
  --surface: #efefed;
  --ink: #0d0d0d;
  --muted: #4d4d4d;
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --gold: #f2b705;
  --gold-ink: #0d0d0d;
  --black: #0d0d0d;
  --black-ink: #f4f4f4;
  --red: #c8102e;
  --red-ink: #ffffff;
  --m: clamp(16px, 2.2vw, 32px);
  --axis: 42%;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4rem, 8.6vw, 9rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Literata, Georgia, serif; font-size: var(--step-body); line-height: 1.6; font-optical-sizing: auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--gold); color: var(--ink); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 38ch; }

/* grid children may shrink below their images */
:where(.top, .board, .mast-split, .tile-pair, .plate, .mosaic, .rec-grid, .figures, .mast-mosaic, .letter, .band, .axis-head, .rx-bar, .split-page, .foot-notes, .foot-meta) > * { min-width: 0; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: 18px; margin-top: 24px; align-self: flex-start; transition: background .2s, transform .15s var(--ease); }
.btn:hover { background: var(--black); color: var(--black-ink); }
.btn:active { transform: scale(.98); }
.name-line { font-size: clamp(1.0625rem, .95rem + .4vw, 1.3125rem); max-width: 40ch; margin-top: 20px; line-height: 1.45; }

/* split page: sticky picture in the 0-42% zone, list on the axis */
.split-page { display: grid; grid-template-columns: var(--axis) 1fr; gap: 0; padding: clamp(96px, 12vw, 200px) var(--m) 0; }
.split-aside { padding-right: clamp(24px, 3vw, 48px); }
.split-sticky { position: sticky; top: 24px; }
.split-sticky img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.split-cap { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }
.split-main h2 { font-size: var(--step-head); }
.split-main > .lead { margin: 20px 0 40px; }
.split-main .filter, .split-main .region-count { margin-left: 0; }

/* top row: tiles */
.top { display: grid; grid-template-columns: 60px 1fr auto; gap: 8px; padding: 8px 8px 0; height: 68px; }
.top-mark { background: var(--black); color: var(--black-ink); display: flex; align-items: flex-end; padding: 12px; font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: -0.01em; }
.top-links { background: var(--surface); display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding: 0 16px 0 calc(50% - 68px); overflow-x: auto; scrollbar-width: none; }
.top-links a { text-decoration: none; font-size: 16px; white-space: nowrap; padding: 6px 0; }
.top-links a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); }
.top-links a:hover { text-decoration: underline; }
.top-action { background: var(--black); color: var(--black-ink); display: flex; align-items: center; padding: 0 22px; text-decoration: none; font-size: 16px; transition: background .2s; }
.top-action:hover { background: var(--accent); color: var(--accent-ink); }

/* hero board: two by two */
.board { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 8px; height: calc(100svh - 68px); min-height: 620px; }
.tile { position: relative; overflow: hidden; }
.tile-name { background: var(--surface); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 28px; }
.tile-name h1 { display: flex; flex-direction: column; }
.name-big { font-size: var(--step-display); letter-spacing: -0.05em; line-height: .86; font-weight: 500; }
.name-sub { font-size: var(--step-head); letter-spacing: -0.03em; line-height: 1; margin-top: .25em; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.tile-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile-dark, .tile-gold { padding: 24px; font-size: clamp(1.125rem, .9rem + .7vw, 1.5rem); line-height: 1.3; }
.tile-dark { background: var(--black); color: var(--black-ink); }
.tile-gold { background: var(--gold); color: var(--gold-ink); }
.board .tile-photo:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.board .tile-photo:nth-of-type(3) { grid-column: 1; grid-row: 2; }

/* the axis */
.text-page, .chapters { padding: clamp(96px, 12vw, 200px) var(--m) 0; }
.axis-head { display: grid; grid-template-columns: var(--axis) 1fr; align-items: end; gap: 0; margin-bottom: 56px; }
.axis-head h2 { grid-column: 2; font-size: var(--step-head); }
.axis-head .lead { grid-column: 2; margin-top: 20px; }
.axis-body { margin-left: var(--axis); }

/* chapters mosaic, gutterless */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(220px, 22vw, 340px); margin: 0 calc(var(--m) * -1); }
.mo { position: relative; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface); }
.mo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .9s var(--ease), filter .5s; }
.mo:hover img { transform: scale(1.05); filter: grayscale(0); }
.mo-label { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 16px 24px 14px; display: flex; flex-direction: column; max-width: 88%; }
.mo-name { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; font-weight: 500; }
.mo-count { font-size: var(--step-small); color: var(--muted); margin-top: 4px; }
.mo-0 { grid-column: span 3; grid-row: span 2; }
.mo-1 { grid-column: span 3; }
.mo-2 { grid-column: span 3; }
.mo-3 { grid-column: span 2; }
.mo-4 { grid-column: span 2; }
.mo-field { grid-column: span 2; background: var(--gold); padding: 24px; display: flex; align-items: flex-end; font-size: var(--step-lead); line-height: 1.3; }

/* showcase: square plate */
.showcase { background: var(--surface); margin-top: clamp(96px, 12vw, 200px); padding: clamp(64px, 7vw, 112px) var(--m); }
.showcase-h { font-size: var(--step-head); margin-left: var(--axis); margin-bottom: 48px; }
.plate { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; min-height: 70svh; }
.plate-img { aspect-ratio: 1; overflow: hidden; }
.plate-img img { width: 100%; height: 100%; object-fit: cover; }
.plate-text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.plate-tabs { display: flex; gap: 28px; flex-wrap: wrap; }
.plate-tabs button { font: inherit; font-size: 18px; background: none; border: 0; padding: 4px 0; color: var(--muted); cursor: pointer; }
.plate-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.plate-tabs button:hover { color: var(--ink); }
.plate-title { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); letter-spacing: -0.03em; }
.plate-desc { max-width: 40ch; margin-top: 32px; }
.plate-disclose, .row-disclose, .rec-disclose { font-size: var(--step-small); color: var(--muted); margin-top: 14px; }
.plate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell { display: flex; align-items: center; padding: 0 22px; height: 72px; text-decoration: none; font-size: 18px; transition: transform .2s var(--ease), background .2s; }
.cell:active { transform: scale(.98); }
.cell-ink { background: var(--accent); color: var(--accent-ink); }
.cell-ink:hover { background: var(--black); color: var(--black-ink); }
.cell-tone { background: var(--bg); }
.cell-tone:hover { background: var(--gold); }

/* listings */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-left: var(--axis); margin-bottom: 40px; }
.filter button { font: inherit; font-size: 16px; border: 0; background: var(--surface); color: var(--ink); padding: 10px 16px; cursor: pointer; transition: background .2s, transform .15s; }
.filter button:hover { background: var(--gold); }
.filter button:active { transform: scale(.97); }
.filter button[aria-pressed="true"] { background: var(--black); color: var(--black-ink); }
.region-count { margin: 0 0 14px var(--axis); font-size: var(--step-small); color: var(--muted); }
.rows { list-style: none; padding: 0; margin: 0; }
.row { padding: 40px 24px; margin-left: -24px; }
.row-area { font-size: var(--step-small); color: var(--muted); margin-bottom: 6px; }
.row:nth-child(even) { background: var(--surface); }
.row[hidden] { display: none; }
.row-side { font-size: var(--step-small); color: var(--muted); padding-top: 8px; padding-right: 24px; }
.row h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); letter-spacing: -0.02em; }
.row h3 a { text-decoration: none; padding: 6px 0; } /* taller hit area, same layout */
.row h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.row-facts { margin-top: 6px; color: var(--ink); max-width: 64ch; }
.row-what { margin-top: 10px; max-width: 52ch; font-size: var(--step-lead); line-height: 1.35; }
.row-links { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 16px; }
.row-links a { display: inline-block; padding: 10px 0; }
.stars { color: var(--gold); letter-spacing: 1px; }
.row-rec { background: var(--gold) !important; padding: 40px 24px 48px !important; }
.row-rec + .row-rec { margin-top: 8px; }
.rec-tag { background: var(--black); color: var(--black-ink); padding: 4px 10px; font-size: 15px; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.row-rec .row-disclose { color: var(--ink); }

/* letter */
.letter { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; padding: clamp(120px, 12vw, 200px) var(--m) 0; }
.letter-h { grid-column: 5 / span 7; font-size: var(--step-head); margin-bottom: 48px; }
.letter-photo { grid-column: 1 / span 3; grid-row: 2; }
.letter-photo img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.letter-body { grid-column: 5 / span 6; grid-row: 2; max-width: 38ch; }
.letter-body p + p { margin-top: 20px; }
.letter-open { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.letter-sign { margin-top: 40px !important; font-size: 16px; }

/* faq bands */
.faq { margin-top: clamp(120px, 12vw, 200px); }
.band { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; padding: 56px var(--m); }
.band h3 { grid-column: 1 / span 5; font-size: clamp(1.375rem, 1.1rem + .9vw, 2rem); font-weight: 600; }
.band p { grid-column: 7 / span 6; max-width: 56ch; }
.band-head { background: var(--red); color: var(--red-ink); min-height: 40svh; align-items: end; }
.band-head h2 { grid-column: 1 / -1; font-size: clamp(2.75rem, 7vw, 7rem); letter-spacing: -0.04em; }
.band-a { background: var(--surface); }
.band-b { background: var(--bg); }

/* category masthead */
.mast-img { height: 45svh; min-height: 300px; overflow: hidden; margin: 8px 8px 0; }
.mast-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.mast-text { padding: 40px var(--m) 0 calc(var(--axis) + var(--m) * .2); }
.mast-text h1 { font-size: clamp(2.5rem, 5.6vw, 6rem); letter-spacing: -0.045em; line-height: .95; }
.mast-text .lead { margin-top: 28px; max-width: 44ch; }
.mast-split { display: grid; grid-template-columns: var(--axis) 1fr; padding-left: var(--m); }
.mast-split > :not(.mast-fig) { grid-column: 2; }
.mast-fig { grid-column: 1; grid-row: 1 / span 2; align-self: start; font-size: var(--step-small); color: var(--muted); display: flex; flex-direction: column; padding-top: .4em; }
.mast-n { font-size: clamp(4rem, 8.6vw, 9rem); line-height: .8; letter-spacing: -0.05em; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.mast-mosaic { overflow: hidden; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: 48svh; min-height: 320px; margin: 8px 8px 0; }
.mast-mosaic img { min-height: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.mast-mosaic img:first-child { grid-row: span 2; }
.mast-mosaic img:nth-child(4) { grid-column: 2 / span 2; }

/* recommended band */
.rec-band { background: var(--black); color: var(--black-ink); margin-top: clamp(80px, 9vw, 160px); padding: clamp(64px, 7vw, 112px) var(--m); }
.rec-band h2 { font-size: var(--step-head); margin-left: var(--axis); margin-bottom: 48px; }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rec { text-decoration: none; display: flex; flex-direction: column; background: #1c1c1c; transition: background .25s; }
.rec:hover { background: var(--red); }
.rec img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.rec-name { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.05; padding: 24px 24px 0; }
.rec-facts { padding: 8px 24px 0; }
.rec-disclose { padding: 0 24px 24px; color: #c9c9c9; }

/* vendor figures */
.figures { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; padding: 8px; margin-top: 64px; }
.fig { padding: 24px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: transform .25s var(--ease); }
a.fig:hover { transform: translateY(-4px); }
.fig-n { font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -0.05em; line-height: .9; font-weight: 500; }
.fig-gold { background: var(--gold); color: var(--gold-ink); }
.fig-black { background: var(--black); color: var(--black-ink); }
.fig-red { background: var(--red); color: var(--red-ink); }
.fig-tone { background: var(--surface); }

/* review explorer */
.rx-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.rx-label { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 6px; }
.rx input, .rx select { font: inherit; font-size: 18px; width: 100%; border: 0; background: var(--surface); padding: 16px 18px; color: var(--ink); border-radius: 0; }
.rx input:focus, .rx select:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.rx-tries { margin-top: 16px; font-size: 16px; color: var(--muted); }
.rx-tries button { font: inherit; font-size: 16px; border: 0; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; margin: 4px 4px 0 0; cursor: pointer; transition: background .2s; }
.rx-tries button:hover { background: var(--black); color: var(--black-ink); }
.rx-count { margin: 32px 0 8px; font-size: var(--step-small); color: var(--muted); }
.rv { padding: 28px 24px; margin-left: -24px; }
.rv-title, .rv-text { max-width: 68ch; }
.rv:nth-child(even) { background: var(--surface); }
.rv-meta { font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.rv-name { font-weight: 600; }
.rv-src { color: var(--muted); }
.rv-stars { color: var(--muted); }
.rv-title { font-weight: 600; margin-top: 10px; }
.rv-text { margin-top: 10px; }
.rv mark { background: var(--gold); color: var(--ink); }
.rx-more { font: inherit; font-size: 18px; margin-top: 24px; border: 0; background: var(--black); color: var(--black-ink); padding: 18px 28px; cursor: pointer; transition: background .2s, transform .15s; }
.rx-more:hover { background: var(--accent); }
.rx-more:active { transform: scale(.98); }

/* footer: contact as the headline */
.foot { background: var(--red); color: var(--red-ink); margin-top: clamp(120px, 12vw, 200px); min-height: 80svh; padding: 40px var(--m) 32px; display: flex; flex-direction: column; }
.foot a { color: inherit; }
.foot-notes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; font-size: 15px; }
.foot-notes p:nth-child(1) { grid-column: 1 / span 3; }
.foot-notes p:nth-child(2) { grid-column: 4 / span 4; }
.foot-notes p:nth-child(3) { grid-column: 8 / span 2; }
.foot-notes p:nth-child(4) { grid-column: 11 / span 2; text-align: right; }
.foot-mark { font-weight: 600; text-decoration: none; }
.foot-line { margin-top: auto; padding-top: 18vh; padding-bottom: .12em; font-size: clamp(3.5rem, 11vw, 11.5rem); letter-spacing: -0.05em; line-height: .95; font-weight: 500; text-decoration: none; display: block; }
.foot-line:hover { text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 12px; text-decoration-color: var(--gold); }
.foot-meta { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; margin-top: 32px; font-size: 14px; }
.foot-meta p:first-child a { margin-right: 14px; }
.foot-meta p:last-child { text-align: right; }
.foot-disclose { font-size: 14px; }
.foot-credits { margin-top: 24px; font-size: 13px; max-width: 75ch; }

/* motion */
.tile-shutter img { animation: shutter 1.1s var(--ease) both; }
@keyframes shutter { from { clip-path: inset(0 0 0 100%); transform: scale(1.12); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
.tile-dark p, .tile-gold p { animation: rise .8s var(--ease) .3s both; }
.tile-gold p { animation-delay: .4s; }
.board .tile-photo:nth-of-type(3) img { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateX(-2%); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js-rise [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-rise [data-rise].in { opacity: 1; transform: none; }
.js-rise .mosaic [data-rise]:nth-child(2) { transition-delay: .07s; }
.js-rise .mosaic [data-rise]:nth-child(3) { transition-delay: .14s; }
.js-rise .mosaic [data-rise]:nth-child(4) { transition-delay: .21s; }
.js-rise .mosaic [data-rise]:nth-child(5) { transition-delay: .28s; }
.js-rise .rec-grid [data-rise]:nth-child(2) { transition-delay: .09s; }
.row, .rv, .fig, .band, .strip img { animation: rise .6s var(--ease) both; }
.strip img:nth-child(2) { animation-delay: .08s; } .strip img:nth-child(3) { animation-delay: .16s; }
.fig:nth-child(3) { animation-delay: .08s; } .fig:nth-child(4) { animation-delay: .16s; } .fig:nth-child(5) { animation-delay: .24s; }
.mast-mosaic img:first-child, .mast-img img { animation: shutter 1.1s var(--ease) both; }
.mast-mosaic img:nth-child(n+2) { animation: rise .8s var(--ease) both; }
.mast-mosaic img:nth-child(3) { animation-delay: .08s; } .mast-mosaic img:nth-child(4) { animation-delay: .16s; }
/* sticky pictures are not animated: a stalled timeline must never leave them faded */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-rise [data-rise] { opacity: 1; transform: none; }
}

/* phone */
@media (max-width: 860px) {
  :root { --axis: 0%; }
  .top { grid-template-columns: 64px 1fr; height: auto; }
  .top-mark { height: 52px; }
  .top-links { grid-column: 1 / -1; grid-row: 2; padding: 4px var(--m); flex-wrap: wrap; gap: 0 18px; }
  .top-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .top-action { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .board { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; min-height: 0; gap: 6px; padding: 6px; }
  .tile-name { min-height: 34svh; }
  .name-big { font-size: min(19vw, 9rem); }
  .name-sub { font-size: 9vw; }
  .board .tile-photo:nth-of-type(2), .board .tile-photo:nth-of-type(3) { grid-column: 1; grid-row: auto; aspect-ratio: 4 / 3; }
  .board .tile-photo:nth-of-type(3) { display: none; }
  .tile-pair { gap: 6px; }
  .tile-dark, .tile-gold { min-height: 180px; font-size: 18px; padding: 20px; }
  .axis-head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .axis-head h2, .axis-head .lead { grid-column: 1; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .mo-0 { grid-column: span 2; grid-row: span 1; }
  .mo-1, .mo-2, .mo-3, .mo-4, .mo-field { grid-column: span 1; }
  .mo-field { grid-column: span 2; }
  .mo-label { padding: 10px 20px; }
  .mo-name { font-size: 22px; }
  .plate { grid-template-columns: 1fr 1fr; gap: 0 24px; min-height: 0; }
  .plate-text { gap: 24px; }
  .plate-desc { margin-top: 16px; }
  .plate-actions { grid-template-columns: 1fr; }
  .cell { height: 60px; }
  .showcase-h, .rec-band h2 { margin-left: 0; }
  .row, .rv { padding: 24px var(--m); margin: 0 calc(var(--m) * -1); }
  .row h3 { font-size: 22px; }
  .split-page { grid-template-columns: 1fr; }
  .split-aside { padding: 0 0 32px; }
  .split-sticky { position: static; }
  .split-cap { display: none; }
  .split-sticky img { aspect-ratio: 16 / 9; }
  .aside-wide { display: none; }
  .row-rec { padding: 24px var(--m) !important; }
  .letter { grid-template-columns: 1fr; }
  .letter-h, .letter-photo, .letter-body { grid-column: 1; grid-row: auto; }
  .letter-photo { width: 96px; margin-bottom: 24px; }
  .letter-open { font-size: 24px; }
  .band { grid-template-columns: 1fr; padding: 32px var(--m); gap: 12px; }
  .band h3, .band p { grid-column: 1; }
  .band-head { min-height: 30svh; }
  .band-head h2 { font-size: 13vw; }
  .mast-text { padding: 28px var(--m) 0; }
  .mast-split { grid-template-columns: 1fr; }
  .mast-split > * { grid-column: 1 !important; }
  .mast-fig { display: none; } /* the lead already states the count; above the h1 it read as an eyebrow */
  .mast-text h1 { font-size: 9.5vw; }
  .mast-mosaic { grid-template-columns: 1fr 1fr; height: 40svh; }
  .mast-mosaic img:first-child { grid-row: span 1; grid-column: span 2; }
  .mast-mosaic img:nth-child(n+4) { display: none; }
  .figures { grid-template-columns: repeat(min(var(--n, 4), 2), minmax(0, 1fr)); }
  .fig { min-height: 170px; padding: 16px; }
  .rec-grid { grid-template-columns: 1fr 1fr; }
  .rec-name { font-size: 28px; padding: 18px 18px 0; } .rec-facts { padding: 6px 18px 0; } .rec-disclose { padding: 0 18px 18px; }
  .rx-bar { grid-template-columns: 1fr; }
  .axis-body, .filter, .region-count { margin-left: 0; }
  .filter button { flex: 1 1 auto; min-height: 44px; } /* rows fill edge to edge instead of leaving a ragged right */
  .filter::after { content: ''; flex: 999 1 auto; } /* the last row keeps natural widths */
  .foot-notes { grid-template-columns: 1fr; gap: 6px; }
  .foot-notes a, .foot-meta p:first-child a { display: inline-block; padding: 10px 0; }
  .foot-line { padding-top: 12vh; }
  .foot-notes p { grid-column: 1 !important; text-align: left !important; }
  .foot-line { font-size: 15vw; }
  .foot-meta { grid-template-columns: 1fr; gap: 10px; font-size: 13px; }
  .foot-meta p:last-child { text-align: left; }
}
.plate[hidden] { display: none; }

.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 64px 8px 0; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.strip img:hover { filter: none; }
@media (max-width: 860px) { .strip { margin-top: 48px; } }
@media (max-width: 560px) { .strip { margin: 40px 6px 0; } }

/* tablet: the board photo would otherwise fill a whole screen */
@media (min-width: 561px) and (max-width: 860px) {
  .board .tile-photo:nth-of-type(2) { aspect-ratio: 16 / 9; }
}
/* phone (narrow): single-column fallbacks the tablet keeps in two */
@media (max-width: 560px) {
  .tile-dark, .tile-gold { min-height: 0; aspect-ratio: 1; padding: 16px; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .mo-0, .mo-1, .mo-2, .mo-3, .mo-4, .mo-field { grid-column: span 1; }
  .plate { grid-template-columns: 1fr; gap: 24px; }
  .rec-grid { grid-template-columns: 1fr; }
  .rec-name { font-size: 30px; }
  .letter-photo { width: 120px; }
  .strip img { aspect-ratio: 1; }
}
/* audit 10/24: phone strip = one wide picture over two, tighter gap before the list */
@media (max-width: 560px) {
  .strip { grid-template-columns: 1fr 1fr; gap: 6px; }
  .strip img { aspect-ratio: 1; }
  .strip img:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }
  .split-page { padding-top: 64px; }
}
