/* Peppermint (DRAFT 2026-12-02) — the peppermint-candy layer over the gatefold engine (site/v3/peppermint/peppermint.js).
   Scoped to html.pm-on. Zero AI imagery: every candy, stripe and icon is SVG / CSS made in code; Google Fonts (Cormorant Garamond,
   Jost — SIL OFL). --paper = the card cream, --ink = the deep text, --accent = labels / buttons, --accent2 = the candy red.
   --pm-white = the candy's white, --pm-title = the big occasion line, --pm-sh = the shadow colour (r, g, b). */
html.pm-on {
  --pm-red: var(--accent2); --pm-white: #fffaf4; --pm-title: var(--accent2); --pm-sh: 74, 22, 28; --pm-card: color-mix(in srgb, var(--paper) 70%, #fff);
  --pm-disp: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, serif; --pm-sans: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --pm-stripe: repeating-linear-gradient(-58deg, var(--pm-red) 0 4.2px, var(--pm-white) 4.2px 8.4px);
  --pm-rib: repeating-linear-gradient(-56deg, var(--pm-red) 0 5.5px, var(--pm-white) 5.5px 11px);
}
html.pm-on[data-variant="pine"] { --pm-sh: 22, 40, 31; --pm-pine: #2d6a4f;
  --pm-stripe: repeating-linear-gradient(-58deg, var(--pm-red) 0 4.2px, var(--pm-white) 4.2px 8.4px, var(--pm-pine) 8.4px 12.6px, var(--pm-white) 12.6px 16.8px);
  --pm-rib: repeating-linear-gradient(-56deg, var(--pm-red) 0 5.5px, var(--pm-white) 5.5px 11px, var(--pm-pine) 11px 16.5px, var(--pm-white) 16.5px 22px); }
html.pm-on[data-variant="midnight"] { --pm-title: var(--ink); --pm-sh: 2, 6, 18; --pm-card: color-mix(in srgb, var(--paper) 88%, #fff); --pm-red: #d3263b; }
html.pm-on body, html.pm-on .app { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
html.pm-on .app { box-shadow: 0 0 60px rgba(var(--pm-sh), .12); }
.pm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pm-lab { font-family: var(--pm-sans); font-weight: 500; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.pm-hide { display: none !important; }

/* ───────── candies ───────── */
.pm-disc, .pm-gloss, .pm-mint, .pm-wrap { display: block; overflow: visible; }
.pm-w { fill: var(--pm-white); }
.pm-r { fill: var(--pm-red); }
.pm-l path { fill: none; stroke: var(--pm-red); stroke-width: 1.5; stroke-linecap: round; opacity: .5; }
.pm-edge { stroke: rgba(var(--pm-sh), .2); }
html.pm-on[data-variant="midnight"] .pm-edge { stroke: rgba(255, 255, 255, .22); }
@keyframes pmIdle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ───────── the hero ───────── */
html.pm-on .hero .hint, html.pm-on .hero .hn { opacity: 0 !important; pointer-events: none; }
html.pm-on .hero .door, html.pm-on .hero .shade { visibility: hidden; }
html.pm-on .hero { background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
html.pm-on .hero .card::before { display: none; }
.pm { position: absolute; inset: 0; z-index: 6; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; color: var(--ink); --s: 1;
  background: var(--paper) var(--paper-img); background-size: 512px; background-blend-mode: multiply; }
/* a soft light on the paper, brightest behind the candy (fades out before the bottom: no seam with the page below) */
.pm::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 55% at 50% 42%, rgba(255, 255, 255, .5), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
html.pm-on[data-variant="midnight"] .pm::before { background: radial-gradient(ellipse 80% 55% at 50% 42%, rgba(120, 150, 210, .16), transparent 70%); }
.pm.open { cursor: default; }
.pm.done { pointer-events: none; }
.pm-meas { position: absolute; left: -9999px; top: 0; white-space: nowrap; visibility: hidden; font: 500 100px/1 var(--pm-disp); }

.pm-frame { position: absolute; inset: calc(12px + 4px * var(--s)); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); pointer-events: none; opacity: 0; transition: opacity 1.2s ease .2s; }
.pm-frame::before { content: ''; position: absolute; inset: 5px; border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); }
.pm.ready .pm-frame { opacity: 1; }

/* the cover words */
.pm-cover { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s ease .25s; }
.pm.ready .pm-cover { opacity: 1; }
.pm-c-k, .pm-c-d { position: absolute; left: 24px; right: 24px; text-align: center; white-space: nowrap; }
.pm-c-k { font-size: max(11px, calc(12.5px * var(--s))); letter-spacing: .44em; padding-left: .44em; }
.pm-c-d { font-size: max(10.5px, calc(11.5px * var(--s))); letter-spacing: .42em; padding-left: .42em; color: var(--soft); }

/* the candy: its box is D × D; peppermint.js moves / scales it (transform only) */
.pm-candy { position: absolute; left: 0; top: 0; width: var(--D, 240px); height: var(--D, 240px); transform-origin: 50% 50%; opacity: 0; transition: opacity 1s ease; }
.pm.ready .pm-candy { opacity: 1; }
.pm-candy.moving { will-change: transform; }
.pm-spin { position: absolute; inset: 0; will-change: transform; }
html.pm-away .pm-spin { animation-play-state: paused !important; }
.pm-disc { width: 100%; height: 100%; }
.pm-gloss { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* a soft contact shadow, light from the top left → it falls to the lower right */
.pm-shadow { position: absolute; left: 6%; top: 10%; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--pm-sh), .26), rgba(var(--pm-sh), .12) 62%, rgba(var(--pm-sh), 0) 100%); transform: scale(1.04); }
html.pm-on[data-variant="midnight"] .pm-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, .2) 62%, rgba(0, 0, 0, 0) 100%); }

/* the hint */
.pm-hint { position: absolute; left: 50%; bottom: calc(30px + 26px * var(--s) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; border: 0; background: none; padding: 10px 18px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; transition: opacity .9s ease 1s; }
.pm-hint .pm-lab { letter-spacing: .34em; padding-left: .34em; white-space: nowrap; font-size: max(10.5px, calc(11px * var(--s))); }
.pm-hint-rule { display: block; width: 46px; height: 4px; border-radius: 9px; background: var(--pm-stripe); box-shadow: inset 0 0 0 .5px rgba(var(--pm-sh), .25);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.pm.ready .pm-hint { opacity: 1; }
.pm.ready:not(.open) .pm-hint .pm-lab { animation: pmBreath 3.4s ease-in-out 2.6s infinite; }
@keyframes pmBreath { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.pm.open .pm-hint, .pm.open .pm-cover { opacity: 0; transition: opacity .35s ease; pointer-events: none; }

/* the opened card */
.pm-txt { position: absolute; left: 26px; right: 26px; top: calc(28px + 12px * var(--s) + var(--d1, 80px) + 10px * var(--s) * var(--gap, 1)); bottom: calc(64px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: center; text-align: center; --g: var(--gap, 1); pointer-events: none; }
.pm-txt-in { display: flex; flex-direction: column; align-items: center; }
.pm-k { font-size: max(10px, calc(11px * var(--s) * var(--ts, 1))); white-space: nowrap; letter-spacing: .34em; padding-left: .34em; }
.pm-title { margin-top: calc(8px * var(--s) * var(--g)); font: italic 500 var(--tfs, 52px)/1.04 var(--pm-disp); color: var(--pm-title); letter-spacing: .005em; white-space: nowrap; }
.pm-by { margin-top: calc(16px * var(--s) * var(--g)); font-size: max(10px, calc(10.5px * var(--s) * var(--ts, 1))); letter-spacing: .34em; padding-left: .34em; color: var(--soft); white-space: nowrap; }
.pm-names { margin-top: calc(10px * var(--s) * var(--g)); font: 500 var(--nfs, 44px)/1.1 var(--pm-disp); color: var(--ink); letter-spacing: .01em; }
.pm-n { display: block; white-space: nowrap; }
.pm-names.wrap .pm-n { white-space: normal; text-wrap: balance; }
.pm-amp { font-style: italic; font-weight: 400; color: var(--pm-title); font-size: .86em; }
.pm-title b, .pm-n b { display: inline-block; font-weight: inherit; padding: .08em .22em .14em; margin: -.08em -.22em -.14em; }
.pm-rib { position: relative; width: 100%; height: calc(7px * var(--s)); margin-top: calc(24px * var(--s) * var(--g)); }
.pm-rib-in { position: absolute; inset: 0; border-radius: 99px; overflow: hidden; background: var(--pm-rib); box-shadow: inset 0 0 0 .5px rgba(var(--pm-sh), .22);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.pm-rib-in::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, .1) 38%, rgba(var(--pm-sh), 0) 55%, rgba(var(--pm-sh), .26) 100%); }
.pm-rib { filter: drop-shadow(0 1.5px 1.5px rgba(var(--pm-sh), .2)); }
.pm-glint { position: absolute; top: -40%; bottom: -40%; left: 0; width: 70px; opacity: 0; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); z-index: 2; }
.pm-d { margin-top: calc(24px * var(--s) * var(--g)); font-size: max(10px, calc(11.5px * var(--s) * var(--ts, 1))); letter-spacing: .3em; padding-left: .3em; color: var(--ink); text-wrap: balance; line-height: 1.7; }
.pm-tw { margin-top: calc(6px * var(--s)); font: italic 400 max(16px, calc(19px * var(--s) * var(--ts, 1)))/1.3 var(--pm-disp); color: var(--accent); }
.pm-vn { margin-top: calc(20px * var(--s) * var(--g)); font: 500 max(20px, calc(25px * var(--s) * var(--ts, 1)))/1.2 var(--pm-disp); color: var(--ink); text-wrap: balance; }
.pm-city { margin-top: calc(7px * var(--s)); font-size: max(10px, calc(10.5px * var(--s))); letter-spacing: .32em; padding-left: .32em; color: var(--soft); text-wrap: balance; }

/* the opening (from the tap): the candy (JS) spins and glides up 0–1.55 s; the ribbon sweeps across .7 s → 1.35 s; the words are
   written in after it (a soft-edged pen wipe), the small lines rise in */
.pm-k, .pm-by, .pm-d, .pm-tw, .pm-vn, .pm-city, .pm-rib { opacity: 0; }
.pm-title b, .pm-n b { -webkit-mask-image: linear-gradient(90deg, #000 0 44%, transparent 56% 100%); mask-image: linear-gradient(90deg, #000 0 44%, transparent 56% 100%);
  -webkit-mask-size: 230% 100%; mask-size: 230% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.pm.open .pm-rib { opacity: 1; }
.pm.open .pm-rib-in { animation: pmSweep .62s cubic-bezier(.55, .05, .25, 1) .6s both; }
.pm.open .pm-glint { animation: pmGlint .86s cubic-bezier(.55, .05, .25, 1) .56s both; }
.pm.open .pm-k { animation: pmUp .8s cubic-bezier(.2, .7, .2, 1) .78s both; }
.pm.open .pm-title b { animation: pmWrite .74s cubic-bezier(.45, .05, .35, 1) .88s both; }
.pm.open .pm-by { animation: pmUp .8s cubic-bezier(.2, .7, .2, 1) 1.24s both; }
.pm.open .n1 b { animation: pmWrite .58s cubic-bezier(.45, .05, .35, 1) 1.3s both; }
.pm.open .n2 b { animation: pmWrite .66s cubic-bezier(.45, .05, .35, 1) 1.56s both; }
.pm.open .pm-names:not(:has(.n2)) .n1 b { animation-duration: .85s; }
.pm.open .pm-d { animation: pmUp .8s cubic-bezier(.2, .7, .2, 1) 1.8s both; }
.pm.open .pm-tw { animation: pmUp .8s cubic-bezier(.2, .7, .2, 1) 1.9s both; }
.pm.open .pm-vn { animation: pmUp .8s cubic-bezier(.2, .7, .2, 1) 2s both; }
.pm.open .pm-city { animation: pmUp .8s cubic-bezier(.2, .7, .2, 1) 2.1s both; }
@keyframes pmUp { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
@keyframes pmWrite { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes pmSweep { from { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); } to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); } }
@keyframes pmGlint { 0% { opacity: 0; transform: translate3d(-70px, 0, 0); } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--rw, 340px), 0, 0); } }
/* the written words drop their mask once written (a crisp final paint, nothing left to composite) */
.pm.done .pm-title b, .pm.done .pm-n b { -webkit-mask-image: none; mask-image: none; }
/* ?open (studio / previews) and reduced motion: the finished card at once */
.pm.instant *, .pm.instant { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }
.pm.instant .pm-k, .pm.instant .pm-by, .pm.instant .pm-d, .pm.instant .pm-tw, .pm.instant .pm-vn, .pm.instant .pm-city, .pm.instant .pm-rib { opacity: 1; }
.pm.instant .pm-title b, .pm.instant .pm-n b { -webkit-mask-image: none; mask-image: none; }
.pm.instant .pm-glint { display: none; }
html.pm-on .hero .cue { z-index: 8; --cue-ink: var(--accent); color: var(--accent); }
html.pm-on .hero .cue span { font-family: var(--pm-sans); font-weight: 500; font-size: 10px; letter-spacing: .3em; }

/* ───────── the pages ───────── */
html.pm-on #content { position: relative; z-index: 1; }
html.pm-on #content > .sec { padding-left: 22px; padding-right: 22px; }
html.pm-on #content > .sec:not(.foot) { padding-top: 54px; padding-bottom: 52px; }
html.pm-on #content .sec p { font-family: var(--pm-disp); font-style: normal; font-weight: 500; font-size: 19px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
html.pm-on .kicker { font-family: var(--pm-sans); font-size: 11px; letter-spacing: .3em; padding-left: .3em; font-weight: 500; text-transform: uppercase; color: var(--accent); }
html.pm-on h2.script, html.pm-on .note h2.script, html.pm-on .kicker.pm-title2 { font-family: var(--pm-disp); font-style: italic; font-weight: 500; font-size: 40px; line-height: 1.1; letter-spacing: .005em; padding: 0; text-transform: none;
  color: var(--pm-title); margin: 10px 0 0; text-wrap: balance; }
html.pm-on h2.script::after { display: none; }
@media (max-width: 350px) { html.pm-on h2.script, html.pm-on .note h2.script, html.pm-on .kicker.pm-title2 { font-size: 35px; } }
html.pm-on .btn { border-radius: 99px; font-family: var(--pm-sans); font-size: 11.5px; letter-spacing: .24em; font-weight: 500; text-transform: uppercase; padding: 17px 28px 16px 31px; min-height: 50px; box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); background: transparent; box-shadow: none; }
html.pm-on .btn.fill { background: var(--accent); color: var(--paper); border-color: var(--accent); box-shadow: 0 10px 22px -12px rgba(var(--pm-sh), .6); }
html.pm-on[data-variant="midnight"] .btn.fill { color: var(--paper); }
.pm-rv { opacity: 0; transform: translateY(18px); transition: opacity 1s ease var(--rd, 0s), transform 1.2s cubic-bezier(.2, .7, .2, 1) var(--rd, 0s); }
.pm-rv.pm-in { opacity: 1; transform: none; }
/* while it waits for its reveal a photo frame is at opacity .004 (invisible), not 0 — WebKit then decodes the photo ahead */
.pm-pf.pm-rv:not(.pm-in), .pm-round.pm-rv:not(.pm-in) { opacity: .004; }
/* quiet bands give the long page depth (feathered: no seam) */
html.pm-on .sec.countdown, html.pm-on .sec.photos, html.pm-on .sec.rsvp { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--table) 70%, transparent) 16%, color-mix(in srgb, var(--table) 70%, transparent) 84%, transparent); }

/* the candy-stripe rule with a small peppermint */
.pm-rule { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(100%, 230px); margin: 0 auto; }
.pm-stripe { flex: 1; height: 4px; border-radius: 9px; background: var(--pm-stripe); box-shadow: inset 0 0 0 .5px rgba(var(--pm-sh), .22); }
.pm-stripe.l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); transform-origin: 100% 50%; }
.pm-stripe.r { -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); transform-origin: 0 50%; }
.pm-rule-mint { width: 22px; height: 22px; flex: none; }
html.pm-on .divider.ldiv.pm-div { height: auto; margin-top: 34px; opacity: 1; transform: none; }
.pm-div .pm-stripe { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.3, 0, .2, 1) .25s; }
.pm-div .pm-rule-mint { opacity: 0; transform: rotate(-120deg) scale(.6); transition: opacity .6s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.pm-div.pm-in .pm-stripe { transform: none; }
.pm-div.pm-in .pm-rule-mint { opacity: 1; transform: none; }

/* vignettes (line icons) over the headings */
.pm-ln { display: block; overflow: visible; }
.pm-ln path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1.002 1.002; stroke-dashoffset: 1.002; }
.pm-in .pm-ln path, .pm-vig.pm-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.45, .05, .3, 1) .1s; }
.pm-vig { width: 120px; margin: 0 auto 14px; }
.pm-vig svg { width: 100%; height: auto; }
.pm-vig.in-card { width: 96px; margin: 0 auto 8px; }

/* cards: bright cream stock, a fine border, thin candy-cane bands at the top and bottom, a soft shadow */
.pm-card { position: relative; max-width: 356px; margin: 0 auto; padding: 60px 28px 62px; box-sizing: border-box; text-align: center;
  background: var(--pm-card) var(--paper-img); background-size: 512px; background-blend-mode: multiply;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 3px;
  box-shadow: 0 1px 2px rgba(var(--pm-sh), .07), 0 24px 44px -24px rgba(var(--pm-sh), .38); }
.pm-band { position: absolute; left: 22px; right: 22px; height: 5px; border-radius: 9px; background: var(--pm-stripe); box-shadow: inset 0 0 0 .5px rgba(var(--pm-sh), .2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.pm-band.t { top: 18px; } .pm-band.b { bottom: 18px; }
html.pm-on .sec.note .note-card.pm-card { padding: 54px 26px 58px; }
html.pm-on .pm-card .kicker, html.pm-on .pm-card h2.script { text-align: center; }

/* the invitation */
.pm-inv-mint { width: 34px; height: 34px; margin: 0 auto 16px; }
html.pm-on .sec.invite .pm-inv > .kicker { margin: 0; }
html.pm-on .sec.invite .names-big { font-family: var(--pm-disp); font-style: normal; font-weight: 500; font-size: 36px; line-height: 1.12; letter-spacing: .01em; color: var(--ink); margin: 16px 0 0; }
@media (max-width: 350px) { html.pm-on .sec.invite .names-big { font-size: 31px; } }
html.pm-on .sec.invite .names-big .n { display: block; }
html.pm-on .sec.invite .names-big .amp { display: block; font: italic 400 .74em/1.2 var(--pm-disp); color: var(--pm-title); margin: 2px 0; }
html.pm-on #content .sec.invite .pm-inv > p:not(.timeline-words) { margin: 18px auto 0; max-width: 292px; font-size: 18.5px; }
.pm-hair { width: 40px; height: 1px; margin: 24px auto 0; background: var(--accent); opacity: .4; }
html.pm-on .sec.invite .dateline { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; max-width: none; margin: 22px 0 0; font-family: var(--pm-sans); font-weight: 500; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); line-height: 1.7; }
html.pm-on .sec.invite .dateline > * { border: 0; padding: 0; margin: 0; font: inherit; letter-spacing: inherit; color: inherit; white-space: nowrap; }
html.pm-on .sec.invite .dateline > *:not(:last-child)::after { content: '·'; margin: 0 .42em 0 .5em; color: var(--pm-red); }
html.pm-on .sec.invite .dateline b small { display: inline; font: inherit; letter-spacing: inherit; margin: 0 .5em 0 0; color: inherit; }
html.pm-on .sec.invite .dateline b small.after { margin: 0 0 0 .5em; }
html.pm-on .sec.invite .dateline.pm-dl2 > :first-child { flex-basis: 100%; text-align: center; }
html.pm-on .sec.invite .dateline.pm-dl2 > :first-child::after { content: none; }
html.pm-on #content .sec.invite p.timeline-words { margin: 6px 0 0; font-style: italic; font-weight: 400; font-size: 18px; color: var(--accent); }
.pm-place { margin-top: 22px; }
.pm-pn { font: 500 25px/1.2 var(--pm-disp); color: var(--ink); text-wrap: balance; }
.pm-place .pm-lab { margin-top: 8px; font-size: 10.5px; color: var(--soft); text-wrap: balance; line-height: 1.6; }

/* the countdown: inside a candy-stripe ring */
html.pm-on .countdown .framed, html.pm-on .countdown .framed.plain { position: relative; border: 0; padding: 0; background: none; box-shadow: none; max-width: 336px; margin: 14px auto 0; --D: min(262px, 72vw); container-type: normal; }
html.pm-on .countdown .framed::before, html.pm-on .countdown .framed::after { display: none; }
html.pm-on .countdown .framed-in { border: 0; padding: 0; position: static; width: auto; height: auto; background: none; }
html.pm-on .countdown > .kicker { margin-bottom: 0; }
.pm-cd { position: relative; width: var(--D); margin: 0 auto; }
.pm-ring { position: absolute; left: 0; top: 0; width: var(--D); height: var(--D); overflow: visible; }
.pm-cd::before { content: ''; position: absolute; left: 3.2%; top: 3.2%; width: 93.6%; height: calc(var(--D) * .936); border-radius: 50%; box-shadow: 0 7px 14px -5px rgba(var(--pm-sh), .22), inset 0 3px 8px -4px rgba(var(--pm-sh), .14); opacity: 0; transition: opacity 1.2s ease .4s; }
.pm-cd.pm-in::before { opacity: 1; }
.pm-ring circle { fill: none; }
.pm-ring-w { stroke: var(--pm-white); stroke-width: 10; }
.pm-ring-r { stroke: var(--pm-red); stroke-width: 10; }
.pm-ring-e { stroke: rgba(var(--pm-sh), .22); stroke-width: .8; }
html.pm-on[data-variant="midnight"] .pm-ring-e { stroke: rgba(255, 255, 255, .2); }
.pm-cd .pm-ring { opacity: 0; transform: rotate(-70deg) scale(.94); transition: opacity 1s ease, transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.pm-cd.pm-in .pm-ring { opacity: 1; transform: none; }
.pm-cd.pm-rv { transform: none; }
html.pm-on .countdown .cd-days { height: var(--D); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; }
html.pm-on .countdown .cd-days b { display: block; font: 500 66px/1 var(--pm-disp); letter-spacing: 0; color: var(--ink); }
html.pm-on .countdown .cd-days span { display: block; margin-top: 8px; font: 500 11px/1.2 var(--pm-sans); letter-spacing: .28em; padding-left: .28em; text-transform: uppercase; color: var(--accent); }
html.pm-on .countdown .cd-row { display: flex; justify-content: center; gap: 0; margin: 16px 0 0; padding: 0; border: 0; }
html.pm-on .countdown .cd-row > div { border: 0; padding: 0 20px; min-width: 40px; position: relative; }
html.pm-on .countdown .cd-row > div + div::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--accent); opacity: .3; }
html.pm-on .countdown .cd-row b { display: block; font: 500 27px/1.1 var(--pm-disp); color: var(--ink); }
html.pm-on .countdown .cd-row span { display: block; margin-top: 4px; font: 500 11px/1.2 var(--pm-sans); letter-spacing: .16em; padding-left: .16em; text-transform: uppercase; color: var(--soft); }
html.pm-on .countdown .cd-t { margin-top: 20px; font: italic 400 20px/1.4 var(--pm-disp); color: var(--accent); }
.pm-cd.far .pm-cd-in { height: var(--D) !important; min-height: 0 !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; padding: 0 calc(var(--D) * .17); box-sizing: border-box; }
.pm-cd.far .pm-cd-in > .cd-days, .pm-cd.far .pm-cd-in > .cd-row { display: none; }
html.pm-on .countdown .cd-past { font-family: var(--pm-disp) !important; font-style: italic; font-weight: 500; font-size: 28px !important; line-height: 1.2 !important; letter-spacing: 0 !important; color: var(--pm-title); padding: 0 !important; text-wrap: balance; }
html.pm-on .pm-cd.far-long .cd-past { font-size: 21px !important; }
html.pm-on .countdown .cd-past-date { font-family: var(--pm-sans); font-weight: 500; font-size: 11px !important; letter-spacing: .2em !important; text-transform: uppercase; color: var(--ink); opacity: 1 !important; margin-top: 12px !important; }
html.pm-on .countdown .btn { margin-top: 26px; }

/* the program: a dotted line of small mints */
html.pm-on .schedule .prog.pm-prog { position: relative; list-style: none; max-width: 320px; margin: 30px auto 0; padding: 0; display: flex; flex-direction: column; gap: 26px; text-align: left; }
html.pm-on .schedule .prog.pm-prog::after { display: none; }
html.pm-on .schedule .prog.pm-prog::before { content: ''; display: block; position: absolute; left: 15px; top: 20px; bottom: 30px; width: 0; border: 0; border-left: 1.5px dotted color-mix(in srgb, var(--pm-red) 55%, transparent); background: none; transform: none; opacity: 1; }
html.pm-on .schedule .prog.pm-prog > li { position: relative; display: grid; grid-template-columns: 32px 1fr; column-gap: 18px; align-items: start; padding: 0; margin: 0; border: 0; background: none; min-height: 0; text-align: left; opacity: 0; transform: translateY(14px); }
html.pm-on .schedule .prog.pm-prog > li::before, html.pm-on .schedule .prog.pm-prog > li::after { display: none; }
html.pm-on .schedule .prog.pm-prog > li.pm-in { opacity: 1; transform: none; transition: opacity .9s ease calc(.15s + var(--i) * .12s), transform 1s cubic-bezier(.2, .7, .2, 1) calc(.15s + var(--i) * .12s); }
html.pm-on .schedule .prog.pm-prog > li > .pi { grid-column: 1; grid-row: 1; display: flex; justify-content: center; width: 32px; height: auto; margin: 0; padding: 4px 0 0; border: 0; background: none; box-shadow: none; position: static; transform: none; }
html.pm-on .schedule .prog.pm-prog > li > .pt { grid-column: 2; grid-row: 1; padding: 0; min-width: 0; text-align: left; }
.pm-dot { width: 24px; height: 24px; transform: rotate(calc(var(--i, 0) * 40deg)); }
html.pm-on .schedule .prog .pt time { display: block; font: 500 11px/1.4 var(--pm-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
html.pm-on .schedule .prog .pt b { display: block; font: 500 24px/1.15 var(--pm-disp); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 4px 0 0; text-wrap: balance; }
html.pm-on .schedule .prog .pt span { display: block; margin-top: 3px; font: italic 400 17px/1.36 var(--pm-disp); color: var(--soft); text-wrap: pretty; }

/* photos: the candy-stripe frame and the round peppermint-rim frames (the photo sits INTO the frame: inner shadow + drop shadow) */
html.pm-on .photos .pm-k2 { margin-bottom: 0; }
.pm-frames { margin: 30px auto 0; }
/* photo frames v2 (owner 2026-12-02: "more natural"): a printed photo set into a quality card — a thin warm-white rim of the card
   stock with a hairline peppermint-red edge, the photo recessed INTO it (inner shadow), a soft natural drop shadow, no stripes, no tilt.
   One tiny mint tucked at the corner of the first photo. The same look on every colour (Midnight: an ivory rim on navy). */
html.pm-on { --pm-rim: #fbf8f2; --pm-rim2: #f1ebe0; --pm-hair: color-mix(in srgb, var(--pm-red) 48%, transparent); }
html.pm-on[data-variant="midnight"] { --pm-rim: #f7f1e6; --pm-rim2: #e8dfcf; }
.pm-pf, .pm-round { position: relative; box-sizing: border-box; padding: 7px; border-radius: 3px;
  background: linear-gradient(150deg, var(--pm-rim), var(--pm-rim2));
  box-shadow: 0 0 0 1px var(--pm-hair), 0 1px 2px rgba(var(--pm-sh), .14), 0 10px 18px -8px rgba(var(--pm-sh), .32), 0 26px 40px -22px rgba(var(--pm-sh), .38); }
html.pm-on[data-variant="midnight"] .pm-pf, html.pm-on[data-variant="midnight"] .pm-round { box-shadow: 0 0 0 1px var(--pm-hair), 0 1px 2px rgba(0, 0, 0, .3), 0 12px 22px -8px rgba(0, 0, 0, .5), 0 30px 44px -22px rgba(0, 0, 0, .55); }
/* a second hairline just inside the rim, around the photo opening (like a printed keyline) */
.pm-pf::before, .pm-round::before { content: ''; position: absolute; inset: 4px; border: .5px solid color-mix(in srgb, var(--pm-red) 30%, transparent); border-radius: 2px; pointer-events: none; }
.pm-pf { width: min(66vw, 258px); margin: 0 auto; }
.pm-pf-in, .pm-round-in { position: relative; overflow: hidden; isolation: isolate; background: var(--table); border-radius: 1.5px; }
.pm-pf-in { aspect-ratio: 4 / 5; }
html.pm-on .pm-pf-in > .portrait { position: absolute; inset: 0; width: auto !important; max-width: none; margin: 0 !important; aspect-ratio: auto; border-radius: 0; opacity: 1 !important; transform: none !important; }
html.pm-on .pm-pf-in > .portrait::after, html.pm-on .pm-pf-in > .portrait::before { display: none !important; }
html.pm-on .pm-pf-in > .portrait .ph { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; background-size: cover !important; background-position: var(--fp, 50% 30%) !important; }
/* the photo sits INTO the rim: the rim casts a soft shadow onto its top / left edges, a faint warm falloff at the corners */
.pm-inset { position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit;
  box-shadow: inset 0 2px 5px rgba(30, 14, 10, .38), inset 1px 0 3px rgba(30, 14, 10, .16), inset 0 0 22px rgba(30, 14, 10, .12), inset 0 0 0 .5px rgba(30, 14, 10, .25); }
.pm-pf-mint { position: absolute; right: -11px; bottom: -11px; width: 24px; height: 24px; z-index: 3; transform: rotate(18deg); filter: drop-shadow(1px 2px 2px rgba(var(--pm-sh), .3)); }
.pm-rounds { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 30px auto 0; }
.pm-round { width: var(--rs, 128px); flex: none; }
.pm-rounds.n1 { --rs: min(48vw, 182px); } .pm-rounds.n2 { --rs: min(39vw, 150px); } .pm-rounds.n3 { --rs: min(27vw, 104px); gap: 12px; }
.pm-round-in { aspect-ratio: 1; }
html.pm-on .pm-round-in > figure { position: absolute; inset: 0; margin: 0; border-radius: 0; box-shadow: none; opacity: 1 !important; transform: none !important; }
html.pm-on .pm-round-in > figure::before, html.pm-on .pm-round-in > figure::after { display: none !important; }
html.pm-on .pm-round-in > figure img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: var(--fp, 50% 30%) !important; border-radius: 0; }
.pm-noimg > .portrait, .pm-noimg > figure { visibility: hidden; }
.pm-pf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, 50% 30%); z-index: 1; display: block; }
html.pm-on .pm-pf-in > .portrait .ph.pm-bg-off { background-image: none !important; }
html.pm-on .pm-round-in > figure img.pm-hid { visibility: hidden; }
.pm-fallback { position: absolute; inset: 22%; width: 56%; height: 56%; z-index: 1; }
html.pm-on .photos > .gf-gal { display: none; }

/* the venue */
html.pm-on .venue .venue-name { font-family: var(--pm-disp); font-weight: 500; font-size: 28px; line-height: 1.2; text-transform: none; letter-spacing: .01em; color: var(--ink); text-wrap: balance; margin-top: 18px; }
html.pm-on #content .venue .addr { font-size: 18px; color: var(--soft); margin-top: 6px; }
html.pm-on #content .venue .when { font-family: var(--pm-sans); font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-top: 14px; }
html.pm-on .venue .btn { margin-top: 22px; }

/* the dress code: the palette as little peppermints */
html.pm-on .dress .dress-title { margin-top: 16px; font: 500 25px/1.25 var(--pm-disp); color: var(--ink); letter-spacing: 0; text-transform: none; }
html.pm-on .dress .palette.pm-pal { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 24px auto 0; }
html.pm-on .dress .palette.pm-pal span { position: relative; display: block; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none !important; box-shadow: 0 6px 10px -5px rgba(var(--pm-sh), .5);
  opacity: 0; transform: rotate(-90deg) scale(.7); transition: opacity .7s ease calc(.3s + var(--i) * .1s), transform 1.1s cubic-bezier(.2, .7, .2, 1) calc(.3s + var(--i) * .1s); }
html.pm-on .dress .palette.pm-pal span::before, html.pm-on .dress .palette.pm-pal span::after { display: none; }
html.pm-on .dress .palette.pm-pal.pm-in span { opacity: 1; transform: rotate(calc(var(--i) * 25deg)); }
.pm-swatch { width: 100%; height: 100%; }
.pm-light .pm-edge { stroke: rgba(var(--pm-sh), .5); }

/* the notes */
html.pm-on .note .note-card.pm-note h2.script { font-size: 36px; margin-top: 6px; }
html.pm-on #content .note .pm-note p { margin: 12px auto 0; max-width: 292px; font-size: 18.5px; }
html.pm-on .note .pm-note .btn { margin-top: 18px; }

/* the RSVP */
html.pm-on .rsvp .seal { display: none; }
.pm-wrapv { width: 150px; margin: 0 auto 6px; opacity: 0; transform: rotate(-8deg) translateY(10px); transition: opacity 1s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.pm-wrapv.pm-in { opacity: 1; transform: rotate(-4deg); }
.pm-wrap { width: 100%; height: auto; }
.pm-cello path { fill: rgba(255, 255, 255, .55); stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1.1; stroke-linejoin: round; }
.pm-pleat path, .pm-twist { fill: none; stroke: color-mix(in srgb, var(--accent) 28%, transparent); stroke-width: .9; stroke-linecap: round; }
.pm-twist { stroke-width: 1.4; stroke: color-mix(in srgb, var(--accent) 50%, transparent); }
html.pm-on[data-variant="midnight"] .pm-cello path { fill: rgba(255, 255, 255, .1); }
html.pm-on .pm-reply .kicker { margin: 0; }
html.pm-on #content .pm-reply > p { margin: 12px auto 0; max-width: 280px; }
html.pm-on .pm-reply .btns { margin-top: 26px; }
html.pm-on .pm-reply .btn.fill { min-width: min(100%, 250px); }

/* the RSVP form (common/rsvp.js) dressed in the design */
html.pm-on form.rsvp-card { border-radius: 4px; background: var(--pm-card); color: var(--ink); font-family: var(--pm-disp); }
html.pm-on form.rsvp-card h3 { font: italic 500 32px/1.15 var(--pm-disp); letter-spacing: 0; color: var(--pm-title); }
html.pm-on form.rsvp-card .sub { font-style: italic; color: var(--soft); }
html.pm-on form.rsvp-card label { font-family: var(--pm-sans); font-weight: 500; letter-spacing: .22em; color: var(--accent); }
html.pm-on form.rsvp-card input, html.pm-on form.rsvp-card textarea, html.pm-on form.rsvp-card select { border-radius: 3px; border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); font-family: var(--pm-disp); font-size: 18px; color: var(--ink); background: color-mix(in srgb, var(--paper) 50%, #fff); }
html.pm-on .rsvp-att label > span { border-radius: 99px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-family: var(--pm-disp); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 17px; }
html.pm-on .rsvp-att input:checked + span { background: var(--accent); color: var(--paper); border-color: var(--accent); }
html.pm-on .rsvp-send { border-radius: 99px; background: var(--accent); color: var(--paper); font: 500 12.5px/1.2 var(--pm-sans); letter-spacing: .24em; text-transform: uppercase; }
html.pm-on form.rsvp-card .rule { background: var(--pm-red); opacity: .45; }

/* the closing: three peppermints */
html.pm-on .foot { padding: 48px 22px 0; }
.pm-end { position: relative; width: 150px; height: 92px; margin: 0 auto; }
.pm-end .pm-mint { position: absolute; filter: drop-shadow(3px 6px 6px rgba(var(--pm-sh), .22)); opacity: 0; transition: opacity .8s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.pm-end .e1 { left: 44px; top: 8px; width: 64px; height: 64px; transform: rotate(-140deg) scale(.8); }
.pm-end .e2 { left: 8px; top: 46px; width: 40px; height: 40px; transform: rotate(120deg) scale(.8); transition-delay: .15s; }
.pm-end .e3 { left: 104px; top: 50px; width: 34px; height: 34px; transform: rotate(-90deg) scale(.8); transition-delay: .28s; }
.pm-end.pm-in .pm-mint { opacity: 1; }
.pm-end.pm-in .e1 { transform: rotate(12deg); } .pm-end.pm-in .e2 { transform: rotate(-30deg); } .pm-end.pm-in .e3 { transform: rotate(50deg); }
.pm-thanks { margin: 22px auto 0; max-width: 300px; font: italic 400 22px/1.4 var(--pm-disp); color: var(--accent); text-wrap: balance; }
html.pm-on #content .foot .sig { font-family: var(--pm-disp); font-style: normal; font-weight: 500; font-size: 30px; line-height: 1.2; color: var(--ink); margin-top: 14px; }
html.pm-on .foot .tto-end { margin-top: 56px; }

@media (prefers-reduced-motion: reduce) {
  .pm-rv, html.pm-on .schedule .prog.pm-prog > li, .pm-wrapv, .pm-end .pm-mint, html.pm-on .dress .palette.pm-pal span, .pm-cd .pm-ring, .pm-div .pm-stripe, .pm-div .pm-rule-mint { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pm-ln path { stroke-dashoffset: 0 !important; transition: none !important; }
  .pm-spin { animation: none !important; }
}

/* engine overrides (its divider / note / program rules are more specific than the generic ones above) */
html.pm-on .divider.ldiv.pm-div svg.pm-rule-mint { width: 22px; height: 22px; display: block; overflow: visible; }
html.pm-on .pm-mint .pm-w, html.pm-on .pm-disc .pm-w { fill: var(--pm-white); opacity: 1; stroke: none; }
html.pm-on .pm-mint path, html.pm-on .pm-mint circle { stroke-dasharray: none; stroke-dashoffset: 0; vector-effect: none; opacity: 1; transition: none; }
html.pm-on .pm-mint .pm-r path { fill: inherit; stroke: none; }
html.pm-on .pm-mint > path { stroke: none; }
html.pm-on .pm-mint circle:not(.pm-w) { opacity: 1; }
html.pm-on .sec.note .note-card.pm-card { outline: 0; }
.pm-wrapv { margin-bottom: 14px; }
/* smoothness (WebKit): anything waiting for its reveal sits at opacity .004 (invisible) instead of 0, so it is painted ahead in the
   tiles below the screen — not rasterised (from .5 s after the opening ends: html.pm-pre; during the opening nothing extra paints) (SVG gradients, big italic glyphs at 3×) in the very frame it starts to fade in */
html.pm-on.pm-pre [data-reveal]:not(.in),
html.pm-on.pm-pre .schedule .prog.pm-prog > li:not(.pm-in),
html.pm-on.pm-pre .pm-cd:not(.pm-in) .pm-ring,
html.pm-on.pm-pre .pm-div:not(.pm-in) .pm-rule-mint,
html.pm-on.pm-pre .dress .palette.pm-pal:not(.pm-in) span,
html.pm-on.pm-pre .pm-end:not(.pm-in) .pm-mint,
html.pm-on.pm-pre .pm-wrapv:not(.pm-in),
html.pm-on.pm-pre .pm-rv:not(.pm-in) { opacity: .004; }
