/* The Editorial (LOCAL DRAFT 2026-11-13) — fashion-magazine layer over the gatefold engine (see editorial.js). Everything is scoped
   to html.mg-on (set by editorial.js only when art.mg.on), so no other design is touched. Zero AI imagery: the buyer's photo,
   code-made grain / light leak, Google Fonts (Bodoni Moda, Cormorant Garamond, Jost — OFL). */
html.mg-on {
  --mg-ivory: #f6f0e6; --mg-champ: #e8cfa6; --mg-cov: #1b1815;
  --mg-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif; --mg-disp: 'Bodoni Moda', Didot, serif; /* locked: Bodoni (default) or Cormorant (editorial.js) */
  --mg-leak-a: rgba(255, 196, 128, .95); --mg-leak-b: rgba(255, 112, 52, .62); --mg-leak-c: rgba(214, 58, 34, .26); --mg-flash: rgba(255, 206, 150, .5);
  --mg-tone: #e3a066; --mg-tone-o: .26; --mg-tone-mode: soft-light;
  --mg-st: 40ms;
}
html.mg-on.mg-cormorant { --mg-disp: 'Cormorant Garamond', Georgia, serif; }
html.mg-on[data-variant="noir"] { --mg-cov: #0d0c0b; --mg-champ: #d8d0c4;
  --mg-leak-a: rgba(255, 250, 240, .9); --mg-leak-b: rgba(232, 226, 214, .5); --mg-leak-c: rgba(200, 196, 188, .2); --mg-flash: rgba(255, 252, 245, .45); --mg-tone-o: 0; }
html.mg-on[data-variant="bordeaux"] { --mg-cov: #2a0910; --mg-champ: #e9b9c0;
  --mg-leak-a: rgba(255, 186, 170, .92); --mg-leak-b: rgba(200, 52, 76, .6); --mg-leak-c: rgba(122, 28, 46, .32); --mg-flash: rgba(255, 190, 180, .42);
  --mg-tone-o: 0; } /* Bordeaux: a clean black & white print — the wine lives in the type and the accents only */

/* ───────── the cover ───────── */
html.mg-on .mg-hero .door, html.mg-on .mg-hero .shade, html.mg-on .mg-hero .hseam, html.mg-on .mg-hero .ed-photo, html.mg-on .mg-hero .kseam { display: none !important; }
html.mg-on .mg-hero .hn { opacity: 0 !important; pointer-events: none; } /* the engine's names stay for screen readers; the masthead draws them */
html.mg-on .mg-hero .scene-clip { border-radius: 0; background: var(--mg-cov); }
html.mg-on .mg-hero .card::before { display: none; }
html.mg-on .mg-hero { background: var(--mg-cov); }
.mg, .mg-l { position: absolute; inset: 0; }
.mg { overflow: hidden; z-index: 1; }
.mg-ph { position: absolute; inset: 0; transform-origin: 50% 34%; will-change: transform; }
.mg-c, .mg-bw { background-size: cover; background-position: 50% 30%; background-repeat: no-repeat; }
/* Film: the developed print is the photo itself; Noir / Bordeaux: a rich black & white print */
.mg-c { filter: contrast(1.04) saturate(1.04); }
html[data-variant="noir"] .mg-c, html[data-variant="bordeaux"] .mg-c { filter: grayscale(1) contrast(1.28) brightness(.94); }
/* the closed print: soft black & white (Noir: a flat, half-developed print that deepens at the tap) */
.mg-bw { filter: grayscale(1) contrast(1.14) brightness(.97); }
html[data-variant="noir"] .mg-bw, html[data-variant="bordeaux"] .mg-bw { filter: grayscale(1) contrast(.82) brightness(1.08); }
.mg-tone { background: var(--mg-tone); mix-blend-mode: var(--mg-tone-mode); opacity: 0; }
/* no photo: a typographic cover — the couple's initials, huge and faint */
.mg-typo { background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--mg-cov) 70%, #fff 6%), var(--mg-cov)); display: grid; place-items: start center; }
.mg-mono { margin-top: 13svh; display: flex; align-items: center; font-family: 'Bodoni Moda', Didot, serif; font-weight: 400; font-size: min(46vw, 230px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--mg-ivory) 34%, transparent); letter-spacing: -.02em; }
.mg-mono i { font-style: italic; font-size: .42em; margin: 0 .04em; -webkit-text-stroke: 1px color-mix(in srgb, var(--mg-champ) 50%, transparent); }
.mg-vig { background: radial-gradient(130% 95% at 50% 38%, transparent 52%, rgba(8, 6, 4, .5) 100%); }
.mg-scrim { background: linear-gradient(180deg, rgba(10, 8, 6, .26) 0%, rgba(10, 8, 6, 0) 18%, rgba(10, 8, 6, 0) 40%, rgba(10, 8, 6, .56) 60%, rgba(10, 8, 6, .88) 100%); opacity: .8; }
.mg-grain { overflow: hidden; opacity: .3; }
.mg-grain i { position: absolute; inset: -80px; background: var(--mg-grain, none); background-size: 96px; mix-blend-mode: overlay; animation: mgGrain .48s steps(1) infinite; }
@keyframes mgGrain { 0% { transform: translate(0, 0); } 25% { transform: translate(-31px, 17px); } 50% { transform: translate(23px, -41px); } 75% { transform: translate(-13px, -23px); } }
/* the light leak: a warm blob sweeping across + a soft exposure flash */
.mg-leak { pointer-events: none; mix-blend-mode: screen; }
/* soft lower edge (owner 2026-11-13: section boundaries "blurred, smooth", never a cut along a line): the photo melts into the cover
   colour over the bottom ~28 % (eased stops, no banding edge), so the page below can take over from one flat colour (.mg-blend) */
.mg-fade { top: auto; height: 28%; pointer-events: none; opacity: 0; /* closed: the approved light B&W print stays as it was; it melts in with the scrim at the tap */
  background: linear-gradient(180deg, color-mix(in srgb, var(--mg-cov) 0%, transparent) 0%, color-mix(in srgb, var(--mg-cov) 6%, transparent) 14%,
    color-mix(in srgb, var(--mg-cov) 18%, transparent) 30%, color-mix(in srgb, var(--mg-cov) 36%, transparent) 46%, color-mix(in srgb, var(--mg-cov) 58%, transparent) 62%,
    color-mix(in srgb, var(--mg-cov) 80%, transparent) 78%, color-mix(in srgb, var(--mg-cov) 94%, transparent) 91%, var(--mg-cov) 100%); }
.mg-leak b { position: absolute; top: -20%; left: -40%; width: 120%; height: 140%; opacity: 0; transform: translateX(-90%) rotate(8deg);
  background: radial-gradient(closest-side at 55% 45%, var(--mg-leak-a), var(--mg-leak-b) 42%, var(--mg-leak-c) 70%, transparent 100%); }
.mg-leak s { position: absolute; inset: 0; opacity: 0; background: linear-gradient(105deg, transparent 10%, var(--mg-flash) 55%, transparent 95%); }

/* the masthead: kicker, names, hairline, date numerals, weekday · city — anchored at the bottom over the scrim */
.mg-mast { position: absolute; z-index: 2; left: var(--mg-pad, 24px); right: var(--mg-pad, 24px); bottom: var(--mg-b, 92px); display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--mg-ivory); }
/* a soft dark pool right behind the masthead (long names reach up into brighter parts of a photo) */
.mg-mast::before { content: ''; position: absolute; left: -30%; right: -30%; top: -6%; bottom: -10%; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(10, 8, 6, .42), rgba(10, 8, 6, .2) 60%, transparent); }
.mg-hero:not(.untie) .mg-mast::before { opacity: .8; top: -40%; bottom: -70%; }
.mg-hero.untie .mg-mast::before { opacity: .75; transition: top 1.2s ease .4s, bottom 1.2s ease .4s; }
/* demo pages (2026-11-14): the "Customize this design" pill (common/override.js) lifts above a bottom hint and fades over anything
   matching [class*="-hint"] — empty boxes over the names, the date and the city line keep it off the masthead (editorial.js) */
.mg-names, .mg-date, .mg-sub { position: relative; }
.mg-cta-hint { position: absolute; inset: 0; pointer-events: none; }
.mg-k { display: flex; align-items: center; gap: 14px; font: 500 10.5px/1.4 var(--mg-sans); letter-spacing: .44em; text-transform: uppercase; color: var(--mg-ivory); margin-bottom: .9em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35); white-space: nowrap; }
.mg-k span { padding-left: .44em; }
.mg-k::before, .mg-k::after { content: ''; width: 26px; height: 1px; background: color-mix(in srgb, var(--mg-ivory) 60%, transparent); }
.mg-names { font-family: var(--mg-disp); font-weight: 400; font-style: normal; line-height: .96; letter-spacing: -.012em; font-size: 80px; color: var(--mg-ivory); max-width: 100%;
  font-variation-settings: 'opsz' 60; }
.mg-n { display: block; white-space: nowrap; }
.mg-names.wrap { line-height: 1.06; }
.mg-names.wrap .mg-n { white-space: normal; text-wrap: balance; }
.mg-names.wrap .mg-n + .mg-amp { margin: .1em 0 .12em; }
.mg-n .w { white-space: nowrap; }
.mg-amp { display: block; font-style: italic; font-size: .4em; line-height: 1.2; margin: .02em 0 .06em; color: var(--mg-champ); letter-spacing: 0; }
.mg-names i { font-style: inherit; }
.mg-rule { width: 46px; height: 1px; margin: 1.05em 0 .85em; background: color-mix(in srgb, var(--mg-ivory) 70%, transparent); }
.mg-date { display: flex; align-items: baseline; justify-content: center; overflow: hidden; padding: .04em 0 .02em; font-family: 'Bodoni Moda', Didot, serif; font-weight: 400;
  font-size: clamp(34px, 11.5vw, 56px); line-height: 1; letter-spacing: .02em; font-variant-numeric: lining-nums; color: var(--mg-ivory); }
.mg-date span, .mg-date em { display: inline-block; }
.mg-date em { font-style: normal; color: var(--mg-champ); margin: 0 .06em; }
.mg-date.words { font-size: clamp(20px, 6.4vw, 30px); }
.mg-sub { margin-top: .95em; font: 500 10.5px/1.6 var(--mg-sans); letter-spacing: .38em; padding-left: .38em; text-transform: uppercase; color: color-mix(in srgb, var(--mg-ivory) 88%, transparent);
  text-wrap: balance; max-width: 100%; }
/* closed: only the kicker; everything else waits */
.mg-names i, .mg-rule, .mg-date span, .mg-date em, .mg-sub { opacity: 0; }
.mg-names i { color: transparent; }
.mg-rule { transform: scaleX(0); }
.mg-date span, .mg-date em { transform: translateY(105%); }

/* the tap hint: quiet spaced caps on a breathing hairline */
html.mg-on .mg-hero .hint { z-index: 4; background: none; border: 0; box-shadow: none; border-radius: 0; padding: 14px 18px 16px 22px; bottom: calc(5.4% + env(safe-area-inset-bottom) * .5);
  font: 500 10.5px/1 var(--mg-sans); letter-spacing: .44em; color: var(--mg-ivory); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
html.mg-on .mg-hero .hint::after { inset: auto 30% 6px 30%; height: 1px; border: 0; border-radius: 0; background: color-mix(in srgb, var(--mg-ivory) 80%, transparent);
  animation: mgHint 2.6s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes mgHint { 0%, 100% { transform: scaleX(.25); opacity: .35; } 50% { transform: scaleX(1); opacity: .9; } }
html.mg-on .mg-hero .cue { --cue-ink: var(--mg-ivory); color: var(--mg-ivory); z-index: 4; }
html.mg-on .mg-hero .cue span { color: var(--mg-ivory); font-family: var(--mg-sans); font-size: 10px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }

/* ───────── the tap: leak (0–0.85 s) → bloom into colour (0.4–1.9 s) + push-in → names (0.9 s…) → rule → date → city ───────── */
.mg-hero.untie .hint { opacity: 0; transition: opacity .3s ease; }
.mg-hero.untie .mg-leak b { animation: mgLeak .9s cubic-bezier(.45, .05, .35, 1) .02s both; }
.mg-hero.untie .mg-leak s { animation: mgFlash 1s ease-out .14s both; }
.mg-hero.untie .mg-bw { animation: mgFade 1.5s cubic-bezier(.4, 0, .3, 1) .4s both; }
.mg-hero.untie .mg-tone { animation: mgTone 1.6s ease .45s both; }
.mg-hero.untie .mg-ph { animation: mgPush 3.8s cubic-bezier(.22, .55, .25, 1) .02s both; }
.mg-hero.untie .mg-scrim { animation: mgScrim 1.3s ease .25s both; }
.mg-hero.untie .mg-fade { animation: mgScrim 1.3s ease .25s both; }
.mg-hero.untie .mg-grain { animation: mgGrainO 1.6s ease .3s both; }
.mg-hero.untie .mg-names i { animation: mgFocus .95s cubic-bezier(.3, .1, .25, 1) calc(.88s + var(--i) * var(--mg-st)) both; }
.mg-hero.untie .mg-rule { animation: mgRule .7s cubic-bezier(.5, 0, .2, 1) 1.72s both; }
.mg-hero.untie .mg-date span, .mg-hero.untie .mg-date em { animation: mgUp .75s cubic-bezier(.2, .7, .2, 1) calc(1.86s + var(--j, 1.5) * .08s) both; }
.mg-hero.untie .mg-date em { --j: .5; }
.mg-hero.untie .mg-sub { animation: mgSub .8s ease 2.12s both; }
@keyframes mgLeak { 0% { opacity: 0; transform: translateX(-90%) rotate(8deg); } 30% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 0; transform: translateX(105%) rotate(-4deg); } }
@keyframes mgFlash { 0% { opacity: 0; } 38% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mgFade { to { opacity: 0; } }
@keyframes mgTone { to { opacity: var(--mg-tone-o); } }
@keyframes mgPush { from { transform: scale(1); } to { transform: scale(1.075); } }
@keyframes mgScrim { to { opacity: 1; } }
@keyframes mgGrainO { to { opacity: .15; } }
@keyframes mgFocus {
  0% { opacity: 0; color: transparent; text-shadow: 0 0 .32em rgba(246, 240, 230, 0); }
  35% { opacity: 1; color: transparent; text-shadow: 0 0 .2em rgba(246, 240, 230, .75); }
  100% { opacity: 1; color: var(--mg-ivory); text-shadow: 0 1px 22px rgba(0, 0, 0, .3); }
}
.mg-amp i { --mg-ivory-amp: var(--mg-champ); }
.mg-hero.untie .mg-amp i { animation-name: mgFocusAmp; }
@keyframes mgFocusAmp {
  0% { opacity: 0; color: transparent; text-shadow: 0 0 .32em rgba(232, 207, 166, 0); }
  35% { opacity: 1; color: transparent; text-shadow: 0 0 .2em rgba(232, 207, 166, .8); }
  100% { opacity: 1; color: var(--mg-champ); text-shadow: 0 1px 18px rgba(0, 0, 0, .3); }
}
@keyframes mgRule { to { opacity: 1; transform: none; } }
@keyframes mgUp { to { opacity: 1; transform: none; } }
@keyframes mgSub { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* ?open (studio / previews) and reduced motion: the developed cover at once */
html.mg-now .mg-hero.untie *, html.mg-now .mg-hero.untie *::before { animation-duration: 0s !important; animation-delay: 0s !important; }
html.mg-now .mg-hero.untie .mg-grain i { animation: none !important; }

/* ───────── the pages: a magazine ───────── */
/* the cover → the paper: a tall feathered band in its own space (no text ever sits on it). It starts in the exact cover colour the
   .mg-fade ended on and dissolves into the paper with smoothstep stops; a whisper of the cover's own grain hides 8-bit banding. */
.mg-blend { position: relative; height: clamp(130px, 22svh, 230px); margin-bottom: -34px; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, var(--mg-cov) 0%, color-mix(in srgb, var(--mg-cov) 97%, transparent) 8%, color-mix(in srgb, var(--mg-cov) 90%, transparent) 17%,
    color-mix(in srgb, var(--mg-cov) 79%, transparent) 27%, color-mix(in srgb, var(--mg-cov) 64%, transparent) 38%, color-mix(in srgb, var(--mg-cov) 48%, transparent) 50%,
    color-mix(in srgb, var(--mg-cov) 32%, transparent) 62%, color-mix(in srgb, var(--mg-cov) 18%, transparent) 74%, color-mix(in srgb, var(--mg-cov) 8%, transparent) 85%,
    color-mix(in srgb, var(--mg-cov) 2%, transparent) 94%, transparent 100%); }
.mg-blend i { position: absolute; inset: 0; background: var(--mg-grain, none); background-size: 96px; mix-blend-mode: overlay; opacity: .22;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 50%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 50%, transparent 92%); }
html.mg-on #content > .mg-blend + .sec { position: relative; z-index: 1; }
html.mg-on #content > .sec:not(.foot) { text-align: left; padding: 54px 28px 52px; }
html.mg-on #content > .sec.note:not(.foot) { padding-top: 40px; padding-bottom: 40px; }
html.mg-on #content .sec p { max-width: none; margin-left: 0; margin-right: 0; font-weight: 500; }
html.mg-on .divider.ldiv { display: none; }
.mg-folio { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: var(--ink); }
.mg-folio b { font: italic 400 15px/1 'Bodoni Moda', Didot, serif; letter-spacing: .02em; white-space: nowrap; }
.mg-folio i { flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 40%, transparent) 0%, color-mix(in srgb, var(--ink) 30%, transparent) 45%, transparent 100%); } /* a feathered hairline, never a hard cut across the page */
html.mg-on .kicker { font-family: var(--mg-sans); font-size: 10.5px; letter-spacing: .36em; font-weight: 500; color: var(--accent); }
html.mg-on.gf-serifheads h2.script, html.mg-on.gf-serifheads .note h2.script { font-family: 'Bodoni Moda', Didot, serif; font-weight: 400; font-size: 40px; line-height: 1.04; letter-spacing: -.01em;
  text-transform: none; color: var(--ink); margin-top: 10px; text-wrap: balance; }
html.mg-on.gf-serifheads h2.script::after { display: none; }
@media (max-width: 340px) { html.mg-on.gf-serifheads h2.script, html.mg-on.gf-serifheads .note h2.script { font-size: 34px; letter-spacing: -.01em; } }
html.mg-on .btn { border-radius: 0; font-family: var(--mg-sans); font-size: 11px; letter-spacing: .3em; font-weight: 500; padding: 15px 26px 15px 30px; min-height: 48px;
  border: 1px solid var(--ink); color: var(--ink); background: transparent; box-shadow: none; }
html.mg-on .btn.fill { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .55); }
html.mg-on .btns { text-align: left; }

/* No. 01 — the invitation: names, then the words as a pull-quote */
html.mg-on .sec.invite .names-big { font-family: 'Bodoni Moda', Didot, serif; font-size: 60px; line-height: .98; letter-spacing: -.015em; text-align: left; margin: 20px 0 8px; }
html.mg-on .sec.invite .names-big .amp { font-style: italic; font-size: .46em; margin: .05em 0 .08em; color: var(--accent); }
html.mg-on .mg-pq { position: relative; margin-top: 26px !important; padding: 30px 0 0; border-top: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
  font-style: italic; font-weight: 400 !important; font-size: 25px !important; line-height: 1.34 !important; color: var(--ink); text-wrap: pretty; }
html.mg-on .mg-pq::before { content: '\201C'; display: block; height: .5em; margin: -.04em 0 .06em -.05em; font: italic 400 84px/1 var(--mg-disp); color: var(--accent); }
html.mg-on .sec.invite .dateline { display: flex; align-items: baseline; justify-content: flex-start; gap: 16px; max-width: none; margin: 34px 0 0; padding: 16px 0 14px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 55%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 55%, transparent); }
html.mg-on .sec.invite .dateline span { border: 0; padding: 0; font-family: var(--mg-sans); font-size: 10.5px; letter-spacing: .3em; font-weight: 500; color: var(--ink); }
html.mg-on .sec.invite .dateline b { display: flex; align-items: baseline; gap: 10px; font-family: 'Bodoni Moda', Didot, serif; font-size: 50px; color: var(--ink); }
html.mg-on .sec.invite .dateline b small { margin: 0; font-family: var(--mg-sans); font-size: 10.5px; letter-spacing: .3em; color: var(--accent); }
html.mg-on .sec.invite .dateline span:last-child { margin-left: auto; }
html.mg-on .timeline-words { font-style: italic; font-size: 19px !important; color: var(--soft-ink); margin-top: 12px !important; }

/* the portfolio: prints set INTO the page — thin keyline, inner shadow, soft drop shadow, no mats, no tilt */
html.mg-on .ed-print { width: 100%; margin: 24px 0 0; padding: 0; aspect-ratio: 4 / 5; background: none; border: 0; box-shadow: 0 26px 40px -22px rgba(0, 0, 0, .5), 0 3px 8px rgba(0, 0, 0, .12); position: relative; }
html.mg-on .ed-print::before, html.mg-on .gf-gal figure::before { content: ''; position: absolute; inset: -7px; border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 0; pointer-events: none; }
html.mg-on .ed-print::after, html.mg-on .gf-gal figure::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 2px 10px rgba(0, 0, 0, .3), inset 0 0 46px rgba(0, 0, 0, .2); }
html.mg-on .gf-gal { width: 100%; margin: 34px 0 0; gap: 26px 18px; grid-template-columns: 1fr 1fr; }
html.mg-on .gf-gal figure { border-radius: 0; box-shadow: 0 20px 30px -18px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .1); }
html.mg-on .gf-gal figure::before { inset: -5px; }
html.mg-on .gf-gal img { border-radius: 0; }
html.mg-on .gf-gal:not(.mixed) figure:nth-child(3n) { grid-column: 1 / -1; }
html.mg-on .gf-gal:not(.mixed) figure:nth-child(3n) img { aspect-ratio: 3 / 2; }
html.mg-on .gf-gal.odd figure:last-child { width: 100%; justify-self: stretch; }

/* the countdown: big numerals */
html.mg-on .countdown .framed, html.mg-on .countdown .framed.plain { width: 100%; padding: 0; border: 0; margin: 0; }
html.mg-on .countdown .framed-in, html.mg-on .countdown .framed.plain .framed-in { position: static; padding: 0; border: 0; align-items: flex-start; text-align: left; }
html.mg-on .countdown .cd-days { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 18px; }
html.mg-on .countdown .cd-days b { font-family: 'Bodoni Moda', Didot, serif; font-size: min(36cqw, 132px); line-height: .82; letter-spacing: -.03em; color: var(--ink); }
html.mg-on .countdown .cd-days span, html.mg-on .countdown .cd-row span { font-family: var(--mg-sans); font-size: 10px; letter-spacing: .3em; color: var(--accent); }
html.mg-on .countdown .cd-row { gap: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 50%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
html.mg-on .countdown .cd-row > div { padding: 14px 0 12px 14px; border-left: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
html.mg-on .countdown .cd-row > div:first-child { padding-left: 0; border-left: 0; }
html.mg-on .countdown .cd-row b { font-family: 'Bodoni Moda', Didot, serif; font-size: min(12cqw, 36px); }
html.mg-on .countdown .cd-t { font-size: 21px; margin-top: 16px; color: var(--ink); }
html.mg-on .countdown > [data-reveal]:last-child { text-align: left; }

/* when & where */
html.mg-on .venue-name { font-family: 'Bodoni Moda', Didot, serif; font-size: 30px; line-height: 1.1; letter-spacing: -.005em; text-transform: none; font-weight: 400; margin-top: 22px; }
html.mg-on .venue .addr { font-size: 19px; color: var(--soft-ink); }
html.mg-on .venue .when { font-style: italic; }

/* the program as a contents page */
html.mg-on .schedule .prog { max-width: none; margin: 26px 0 0; counter-reset: mgc; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
html.mg-on .schedule .prog li, html.mg-on .schedule .prog li.alt { counter-increment: mgc; display: grid; grid-template-columns: 34px 1fr; gap: 0 6px; align-items: baseline; text-align: left; padding: 17px 0 16px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
html.mg-on .schedule .prog li.alt .pi { order: 0; }
html.mg-on .schedule .prog .pi { width: auto; height: auto; font: italic 400 17px/1 'Bodoni Moda', Didot, serif; color: var(--accent); }
html.mg-on .schedule .prog .pi img { display: none; }
html.mg-on .schedule .prog .pi::before { content: counter(mgc, decimal-leading-zero); }
html.mg-on .schedule .prog .pi[data-n]::before { content: attr(data-n); } /* WebKit-safe numbers (editorial.js) */
html.mg-on .schedule .prog .pt { display: grid; grid-template-columns: minmax(0, max-content) minmax(16px, 1fr) auto; align-items: baseline; column-gap: 8px; }
html.mg-on .schedule .prog .pt b { grid-row: 1; grid-column: 1; margin: 0; font: 400 23px/1.15 'Bodoni Moda', Didot, serif; letter-spacing: -.005em; text-transform: none; color: var(--ink); }
html.mg-on .schedule .prog .pt::before { content: ''; grid-row: 1; grid-column: 2; align-self: end; margin-bottom: .42em; border-bottom: 1.5px dotted color-mix(in srgb, var(--ink) 45%, transparent); }
html.mg-on .schedule .prog .pt time { grid-row: 1; grid-column: 3; font: 500 11px/1 var(--mg-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
html.mg-on .schedule .prog .pt span { grid-row: 2; grid-column: 1 / -1; font-style: italic; font-size: 18px; line-height: 1.4; margin-top: 5px; color: var(--soft-ink); }

/* dress code: colour chips like a swatch card */
html.mg-on .dress .dress-title { font-family: 'Bodoni Moda', Didot, serif; font-style: italic; font-size: 26px; letter-spacing: 0; text-transform: none; color: var(--ink); margin-top: 20px; }
html.mg-on .dress .palette { justify-content: flex-start; gap: 10px; margin-top: 28px; }
html.mg-on .dress .palette span { width: 46px; height: 60px; border-radius: 0; transform: none; background: var(--c); box-shadow: 0 10px 16px -10px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .08); position: relative; }
html.mg-on .dress .palette span::after { content: ''; position: absolute; inset: -4px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }

/* notes (travel, gifts, own pages): a sidebar column, no box */
html.mg-on .note-card { max-width: none; padding: 0; border: 0; outline: 0; background: none; box-shadow: none; text-align: left; }
html.mg-on .note-card::before, html.mg-on .note-card::after { display: none; }
html.mg-on .note-card p { font-size: 19.5px; }

/* the reply: no wax seal (it was painted art) — the heading and a square black button */
html.mg-on .rsvp .seal { display: none; }
html.mg-on .rsvp h2.script { font-style: italic; }

/* the last page */
html.mg-on .sec.foot { text-align: center; padding-bottom: 72px; }
html.mg-on .sec.foot .sig { position: relative; font-family: 'Bodoni Moda', Didot, serif; font-style: italic; font-size: 25px; line-height: 1.35; padding-top: 30px; margin: 0 6px; }
html.mg-on .sec.foot .sig::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 32%, transparent) 30%, color-mix(in srgb, var(--ink) 32%, transparent) 70%, transparent); }

/* QA 2026-11-14: Bodoni Moda draws the hyphen as a hairline — in a long double name ("Mary-Elizabeth") it all but vanished. The
   hyphen gets a stroke of its own colour (it follows the letter's reveal) and a little air on both sides */
.mg-names i.hy { -webkit-text-stroke: .028em currentColor; paint-order: stroke fill; margin: 0 .045em; }
/* fonts 2026-11-19 (max 2 families): the body is Bodoni Moda 400 too (config fonts.serif; was Cormorant = a 3rd family), set ×.88
   because Bodoni's x-height is larger. A studio "Cormorant" pick (html.mg-cormorant) brings Cormorant for both and keeps the old sizes. */
html.mg-on:not(.mg-cormorant) #content .sec p { font-weight: 400; font-size: 17.5px; }
html.mg-on:not(.mg-cormorant) .mg-pq { font-size: 22px !important; }
html.mg-on:not(.mg-cormorant) .timeline-words { font-size: 17px !important; }
html.mg-on:not(.mg-cormorant) .countdown .cd-t { font-size: 18.5px; }
html.mg-on:not(.mg-cormorant) .venue .addr { font-size: 17px !important; }
html.mg-on:not(.mg-cormorant) .schedule .prog .pt span { font-size: 16px; }
html.mg-on:not(.mg-cormorant) .note-card p { font-size: 17px; }
html.mg-on:not(.mg-cormorant) .hero .hn-k, html.mg-on:not(.mg-cormorant) .hero .hn-date, html.mg-on:not(.mg-cormorant) .hero .hn-city { font-weight: 400; }
