/* Maddie & Charles · Newport 2027 — guest site, sample 2, revision 1.
   An invitation suite opened piece by piece: aged ivory paper with engraved borders, plum card
   stock, gold foil and a wine wax seal, laid on candlelit velvet and linen grounds.
   Type: Pinyon Script (the card's copperplate), Cormorant Garamond (the card's capitals and body),
   Jost (small details), La Belle Aurore (the handwritten letter). */

:root {
  --plum: #5D3341;
  --plum-deep: #46242F;
  --plum-ink: #3A1F29;
  --oxblood: #3E1520;
  --moss: #33402B;
  --gold: #DDC37A;
  --gold-hi: #F3E3A6;
  --gold-ink: #8C6B2C;
  --ivory: #FBF8F0;
  --paper: #F2E9D5;
  --aged: #ECE1C8;
  --wine: #7F1D31;
  --green: #3F5A3A;
  --water: #D7DBC8;
  --muted: #6D5058;

  --foil: linear-gradient(100deg, #B8964F 0%, #F3E3A6 30%, #D9BC6E 52%, #A9853D 76%, #E8D18B 100%);
  --hair: linear-gradient(90deg, rgba(221,195,122,0), #DDC37A 12%, #F3E3A6 50%, #DDC37A 88%, rgba(221,195,122,0));

  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'La Belle Aurore', 'Bradley Hand', cursive;

  --shadow: 0 1px 1px rgba(20, 6, 10, .3), 0 10px 18px -8px rgba(20, 6, 10, .5), 0 30px 50px -24px rgba(10, 3, 6, .75);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .27  0 0 0 0 .17  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-lt: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .92  0 0 0 0 .8  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  --bar: 64px;
  --barb: 0px;
  --fi: 14px;            /* the gold frame's inset, the same on all four sides of the visible screen */
  --pad-x: clamp(28px, 5.5vw, 96px);
  --pad-t: clamp(18px, 3.4vh, 40px);
  --pad-b: clamp(18px, 3.4vh, 40px);
  --focus: var(--gold);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #2B1626; overflow-x: clip; }
body {
  margin: 0;
  background: #2B1626;
  color: var(--ivory);
  padding-top: var(--bar);
  padding-bottom: var(--barb);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
p, h1, h2, h3, ul, figure, table { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.noscript { padding: 40px; text-align: center; }

/* ---------- sections and their grounds ---------- */
.sec {
  position: relative;
  min-height: calc(100vh - var(--bar) - var(--barb));
  min-height: calc(100svh - var(--bar) - var(--barb));
  padding: calc(var(--fi) + var(--pad-t)) var(--pad-x) calc(var(--fi) + var(--pad-b));
  scroll-margin-top: var(--bar);
  overflow: clip;
}
.sec > *:not(.bleed):not(.gframe) { position: relative; z-index: 2; }
/* velvet: a soft pile, a candle glow, a vignette and a little film grain */
.g-plum {
  background-color: #4A2431;
  background-image:
    var(--grain-lt),
    radial-gradient(55% 45% at var(--gx, 28%) var(--gy, 22%), rgba(255, 190, 130, .15), transparent 72%),
    radial-gradient(125% 95% at 50% 45%, transparent 48%, rgba(14, 3, 8, .62) 100%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .016) 0 2px, transparent 2px 7px),
    linear-gradient(165deg, #62364A 0%, #4A2433 45%, #2E1420 100%);
}
/* ivory paper, the same stock as the letter in the tri-fold */
.g-ivory {
  color: var(--plum-ink);
  --focus: var(--plum);
  background-color: var(--paper);
  background-image: var(--grain), radial-gradient(130% 120% at 50% 45%, transparent 55%, rgba(150, 105, 50, .2) 100%);
}
.g-moss {
  background-color: #29321F;
  background-image:
    var(--grain-lt),
    radial-gradient(50% 45% at 22% 18%, rgba(255, 196, 130, .12), transparent 72%),
    radial-gradient(125% 95% at 50% 45%, transparent 45%, rgba(6, 8, 3, .62) 100%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 7px),
    linear-gradient(165deg, #435236 0%, #2E3923 55%, #1B2214 100%);
}
.g-liner {
  background:
    radial-gradient(125% 95% at 50% 45%, rgba(30, 12, 28, .4) 30%, rgba(18, 6, 18, .78) 100%),
    linear-gradient(180deg, rgba(40, 18, 36, .52), rgba(40, 18, 36, .64)),
    url("img/liner.jpg") 50% 40% / cover no-repeat,
    var(--plum-deep);
}
.g-town { background-color: #2E1628; }

/* ---------- engraved borders (gold on dark grounds, ink on paper) ---------- */
.engr {
  position: absolute;
  inset: var(--ei, 12px);
  border: 1px solid currentColor;
  pointer-events: none;
  --oc: 46px;
}
.engr::before { content: ''; position: absolute; inset: 4px; border: .5px solid currentColor; opacity: .55; }
.engr__c { position: absolute; width: var(--oc); height: var(--oc); overflow: visible; }
.engr__c--tl { left: -2px; top: -2px; }
.engr__c--tr { right: -2px; top: -2px; transform: scaleX(-1); }
.engr__c--bl { left: -2px; bottom: -2px; transform: scaleY(-1); }
.engr__c--br { right: -2px; bottom: -2px; transform: scale(-1, -1); }
.engr__m { position: absolute; left: 50%; width: 96px; height: 22px; margin-left: -48px; }
.engr__m--t { top: 9px; }
.engr__m--b { bottom: 9px; transform: scaleY(-1); }
.gframe { z-index: 1; inset: var(--fi); color: rgba(221, 195, 122, .72); }
.g-ivory .gframe { color: rgba(140, 107, 44, .62); }
.engr--ink { color: rgba(110, 72, 40, .62); --oc: 40px; }
.engr--gold { color: rgba(221, 195, 122, .7); --oc: 36px; }

/* ---------- the script: write-on (A's mask wipe) ---------- */
.script { position: relative; font-family: var(--script); font-weight: 400; color: var(--plum); line-height: 1; letter-spacing: normal; }
.script .ln { display: block; width: fit-content; padding: .3em .45em .32em .25em; margin: -.3em -.45em -.32em -.25em; }
.foil .ln { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.anim .script .ln {
  -webkit-mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
          mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position var(--wd, 1.2s) cubic-bezier(.55, .08, .45, .95) var(--dl, 0s),
              mask-position var(--wd, 1.2s) cubic-bezier(.55, .08, .45, .95) var(--dl, 0s);
}
.anim .script.go .ln { -webkit-mask-position: 0 0; mask-position: 0 0; }
.flo { display: block; width: 3.6em; max-width: 100%; height: auto; margin: -.12em 0 0 .3em; overflow: visible; color: var(--gold); }
.flo path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.anim .flo path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6, .1, .35, 1) var(--dl, 0s); }
.anim .script.go .flo path { stroke-dashoffset: 0; }

/* the letter writes itself (A's character reveal) */
.anim .tw:not(.typed) .c { visibility: hidden; }
.anim .tw:not(.typed) .c.on { visibility: visible; }
.tw .w { white-space: nowrap; }

.tbd {
  color: var(--gold-hi);
  text-decoration: underline dashed var(--gold);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  background: rgba(221, 195, 122, .16);
  border-radius: 2px; padding: 0 .15em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.paper .tbd, .tri__letter .tbd { color: var(--wine); text-decoration-color: var(--wine); background: rgba(201, 169, 97, .26); }
.tbd__k { font-style: italic; }

/* ---------- objects that arrive (A) ---------- */
[data-in] { transform: rotate(var(--r, 0deg)); }
[data-in="tilt"] { transform-origin: 15% 0; }
.anim [data-in] { opacity: 0; transition: opacity .45s ease var(--od, 0s), transform 1.05s cubic-bezier(.18, .9, .3, 1.12) var(--od, 0s); }
.anim [data-in="drop"] { transform: translate3d(0, -110px, 0) rotate(calc(var(--r, 0deg) - 12deg)) scale(1.06); }
.anim [data-in="rise"] { transform: translate3d(0, 70px, 0) rotate(calc(var(--r, 0deg) + 2deg)); }
.anim [data-in="tilt"] { transform: rotate(calc(var(--r, 0deg) + 14deg)) scale(.9); }
.anim .in [data-in], .anim .in[data-in] { opacity: 1; transform: rotate(var(--r, 0deg)); }

/* ---------- paper things ---------- */
/* photo-booth print on aged paper */
.pol {
  position: relative;
  background-color: var(--aged);
  background-image: var(--grain), linear-gradient(160deg, rgba(255, 250, 235, .5), rgba(170, 130, 70, .12));
  box-shadow: inset 0 0 0 1px rgba(120, 90, 50, .15), var(--shadow);
}
.pol { display: flow-root; background-color: #ECE1C8; }
.pol img { display: block; width: 90%; margin: 5% 5% 16%; height: auto; aspect-ratio: 900 / 1170; object-fit: cover; }
.print {
  position: relative;
  padding: 8px 8px 10px;
  background-color: var(--aged);
  background-image: var(--grain);
  box-shadow: inset 0 0 0 1px rgba(120, 90, 50, .15), var(--shadow);
}
.print img { display: block; width: 100%; height: auto; }
/* deckled ivory paper: the paper is drawn on a layer of its own whose torn edge comes from a pre-rendered
   9-slice mask (img/deckle-mask.png, made by scripts/make-deckle-mask.mjs). No SVG filter touches any HTML
   element: Safari left an unpainted tile at the top of the page with the old live displacement filter.
   The shadow is a separate, unmasked layer behind the paper. */
.paper { position: relative; color: var(--plum-ink); isolation: isolate; --focus: var(--plum); }
.paper::before {
  content: '';
  position: absolute; inset: -5px; z-index: -1;
  background-color: var(--paper);
  background-image: var(--grain), radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(150, 105, 50, .22) 100%);
  -webkit-mask-box-image: url("img/deckle-mask.png") 60 fill / 30px round;
  mask-border: url("img/deckle-mask.png") 60 fill / 30px round;
}
.paper::after { content: ''; position: absolute; inset: 5px; z-index: -2; box-shadow: 0 14px 20px 4px rgba(8, 2, 4, .5); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; line-height: 1.25; text-align: center;
  text-decoration: none;
  border: 1px solid transparent; border-radius: 1px;
  cursor: pointer;
  transition: background-color .2s, color .2s, filter .2s;
}
.btn--ink { background: var(--plum); color: var(--ivory); }
.btn--ink:hover { background: var(--plum-deep); }
.btn--line { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn--line:hover { background: rgba(93, 51, 65, .08); }
.btn--gold { background: var(--foil); color: var(--plum-ink); border-color: rgba(255, 240, 200, .4); }
.btn--gold:hover { filter: brightness(1.06); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.badge {
  display: inline-block; padding: 3px 9px 2px;
  font-family: var(--serif); font-size: 15px; font-weight: 700; font-variant-caps: small-caps; letter-spacing: .09em; line-height: 1.3; white-space: nowrap;
  color: var(--plum-ink); background: var(--foil); border-radius: 1px;
  box-shadow: 0 1px 2px rgba(40, 18, 26, .25);
}
.bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* ---------- menu ---------- */
.menu {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  height: var(--bar);
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--pad-x);
  background: rgba(42, 20, 36, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.menu::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); opacity: .8; }
.menu__home { flex: none; display: grid; place-items: center; width: 54px; height: 54px; }
.menu__home img { width: 50px; height: auto; display: block; }
.menu__links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(4px, 1.4vw, 22px); margin-left: auto; }
.menu__links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  color: rgba(251, 248, 240, .82); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: color .2s;
}
.menu__links a:hover { color: var(--gold-hi); }
.menu__links a.is-cur { color: var(--gold); }
.menu__links a.is-cur::after { content: ''; position: absolute; left: 8px; right: calc(8px + .16em); bottom: 8px; height: 1px; background: var(--gold); }

/* the page-turn arrows: phones only (desktop pages with the arrow keys) */
.pager { display: none; }

/* ---------- the save-the-date card face (envelope card, travelling card, tri-fold cover) ---------- */
.std {
  container-type: inline-size;
  background-color: var(--plum);
  background-image: var(--grain), radial-gradient(120% 80% at 50% 10%, #66394A, var(--plum) 60%);
  box-shadow: 0 2px 4px rgba(30, 10, 16, .35), 0 30px 50px -20px rgba(10, 3, 6, .75);
  color: var(--ivory);
}
.std__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7cqw 8cqw; }
.std__frame { position: absolute; inset: 4.6cqw; border: 1px solid rgba(221, 195, 122, .85); pointer-events: none; }
.std__crest { width: 52cqw; height: auto; margin: 0 0 5cqw; }
.std__cap { font-size: max(11px, 3.6cqw); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; line-height: 2; }
.std__names { font-size: 10.6cqw; margin: 2.6cqw 0 3.2cqw; white-space: nowrap; }
.std__names .ln { margin-left: auto; margin-right: auto; }
.std__date { font-size: 7.6cqw; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2; }
.std__venue { font-size: 6.2cqw; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 4cqw; line-height: 1.2; }
.std__town { margin-top: .4cqw; }

/* ---------- 1 · opening ---------- */
.open { display: grid; place-items: center; background: #2B1626; }
.open__bg { filter: brightness(.62) contrast(1.05); }
.open::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(45% 40% at 50% 52%, rgba(255, 190, 120, .16), transparent 70%),
    radial-gradient(100% 85% at 50% 50%, transparent 40%, rgba(20, 6, 18, .72) 100%),
    linear-gradient(180deg, rgba(70, 32, 62, .36), rgba(40, 16, 36, .46));
}
.open__stage {
  --cw: min(400px, 42svh, 60vw);
  --ch: calc(var(--cw) * 1.4);
  --E: calc(var(--cw) * 1.3);
  --eh: calc(var(--E) * .62);
  --cb: calc(var(--eh) * .3);
  --tx: calc(var(--cw) * .62);
  --rot: 3deg;
  z-index: 2;
  width: calc(var(--E) + var(--tx));
  height: calc(var(--ch) - var(--cb) + var(--eh));
}
.open__pol {
  position: absolute; z-index: 6;
  width: calc(var(--cw) * .48);
  left: calc(var(--E) / 2 + var(--tx) + var(--cw) * .3);
  top: calc(var(--ch) * -.03);
}
.env { position: absolute; z-index: 1; left: 0; bottom: 0; width: var(--E); height: var(--eh); rotate: -2.5deg; }
.env__back { position: absolute; inset: 0; background: #EDE4D0; box-shadow: var(--shadow); }
/* the liner continues from the flap down into the envelope, behind the card: one unbroken sheet, as on the
   real liner. It starts right at the fold (no ivory band, no shadow line), is exactly as wide as the flap's
   liner where the two meet (5.5% in from each side), and its image is offset so the flowers run straight on. */
.env__lining {
  position: absolute; left: 5.5%; right: 5.5%; top: 0; bottom: 0;
  background: url("img/liner.jpg") no-repeat;
  background-size: var(--E) auto;
  background-position: calc(var(--E) * -.055) calc(var(--eh) * -.58);
}
/* the flap, flat (no 3D layers, no nested transforms): two separate pieces hinged on the envelope's top edge.
   The outside lies over the front while closed and folds up to nothing; the lined inside then stands up
   from nothing above the envelope. Together they trace the old flip exactly. */
.env__flap { position: absolute; left: 0; width: 100%; height: 58%; }
.env__flap--out { top: 0; z-index: 5; transform-origin: 50% 0; transform: scaleY(0); clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(180deg, #F6F0E2 0%, #EDE4D0 100%); }
.env__flap--in { bottom: 100%; z-index: 1; transform-origin: 50% 100%; }
.env__flap--in::before, .env__flap--in::after { content: ''; position: absolute; inset: 0; }
.env__flap--in::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #F1EADB; }
/* the flap's liner reaches 1px past the fold, over the envelope's liner (same image, same place), so the
   two anti-aliased edges never leave a light hairline where they meet */
.env__flap--in::after { bottom: -1px; clip-path: polygon(50% 7%, 94.5% 100%, 5.5% 100%); background: url("img/liner.jpg") 50% 0 / 100% auto no-repeat; }
/* the card's window: as wide as the envelope and as tall as the stage (so it never leaves its section),
   clipping only along the envelope's bottom edge; the clip reaches out to the sides and above */
.env__win { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: calc(var(--ch) - var(--cb) + var(--eh)); -webkit-clip-path: inset(-60% -150% 0 -50%); clip-path: inset(-60% -150% 0 -50%); }
.env__front {
  position: absolute; inset: 0; z-index: 3;
  background-color: #FBF7EC;
  background-image:
    linear-gradient(to top right, transparent calc(50% - .7px), rgba(110, 88, 67, .2) 50%, transparent calc(50% + .7px)),
    linear-gradient(to top left, transparent calc(50% - .7px), rgba(110, 88, 67, .2) 50%, transparent calc(50% + .7px)),
    var(--grain);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.seal { position: absolute; z-index: 6; left: 50%; top: 53%; width: 25%; aspect-ratio: 1; translate: -50% -50%; filter: drop-shadow(1px 2px 1.5px rgba(30, 5, 12, .55)) drop-shadow(3px 7px 7px rgba(30, 5, 12, .35)); }
.seal__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.env .std { position: absolute; left: calc((var(--E) - var(--cw)) / 2); bottom: calc(var(--eh) - var(--cb)); width: var(--cw); height: var(--ch); transform: translate(var(--tx), 0) rotate(var(--rot)); }

.anim .env__flap--out { transform: scaleY(1); }
.anim .env__flap--in { transform: scaleY(0); }
.anim .in .env__flap--out { animation: flap-out 1s linear .35s both; }
.anim .in .env__flap--in { animation: flap-in 1s linear .35s both; }
/* scaleY = cos of the old rotateX angle under cubic-bezier(.5, 0, .3, 1), sampled every 2.5%: the outside
   takes the first half of the swing (down to edge-on), the inside the second */
@keyframes flap-out { 0% { transform: scaleY(1.0000); } 2.5% { transform: scaleY(1.0000); } 5% { transform: scaleY(0.9999); } 7.5% { transform: scaleY(0.9997); } 10% { transform: scaleY(0.9988); } 12.5% { transform: scaleY(0.9968); } 15% { transform: scaleY(0.9928); } 17.5% { transform: scaleY(0.9853); } 20% { transform: scaleY(0.9724); } 22.5% { transform: scaleY(0.9513); } 25% { transform: scaleY(0.9179); } 27.5% { transform: scaleY(0.8673); } 30% { transform: scaleY(0.7936); } 32.5% { transform: scaleY(0.6907); } 35% { transform: scaleY(0.5549); } 37.5% { transform: scaleY(0.3877); } 40% { transform: scaleY(0.1978); } 42.5% { transform: scaleY(0.0000); } 45% { transform: scaleY(0.0000); } 47.5% { transform: scaleY(0.0000); } 50% { transform: scaleY(0.0000); } 52.5% { transform: scaleY(0.0000); } 55% { transform: scaleY(0.0000); } 57.5% { transform: scaleY(0.0000); } 60% { transform: scaleY(0.0000); } 62.5% { transform: scaleY(0.0000); } 65% { transform: scaleY(0.0000); } 67.5% { transform: scaleY(0.0000); } 70% { transform: scaleY(0.0000); } 72.5% { transform: scaleY(0.0000); } 75% { transform: scaleY(0.0000); } 77.5% { transform: scaleY(0.0000); } 80% { transform: scaleY(0.0000); } 82.5% { transform: scaleY(0.0000); } 85% { transform: scaleY(0.0000); } 87.5% { transform: scaleY(0.0000); } 90% { transform: scaleY(0.0000); } 92.5% { transform: scaleY(0.0000); } 95% { transform: scaleY(0.0000); } 97.5% { transform: scaleY(0.0000); } 100% { transform: scaleY(0.0000); } }
@keyframes flap-in { 0% { transform: scaleY(0.0000); } 2.5% { transform: scaleY(0.0000); } 5% { transform: scaleY(0.0000); } 7.5% { transform: scaleY(0.0000); } 10% { transform: scaleY(0.0000); } 12.5% { transform: scaleY(0.0000); } 15% { transform: scaleY(0.0000); } 17.5% { transform: scaleY(0.0000); } 20% { transform: scaleY(0.0000); } 22.5% { transform: scaleY(0.0000); } 25% { transform: scaleY(0.0000); } 27.5% { transform: scaleY(0.0000); } 30% { transform: scaleY(0.0000); } 32.5% { transform: scaleY(0.0000); } 35% { transform: scaleY(0.0000); } 37.5% { transform: scaleY(0.0000); } 40% { transform: scaleY(0.0000); } 42.5% { transform: scaleY(0.0000); } 45% { transform: scaleY(0.1900); } 47.5% { transform: scaleY(0.3605); } 50% { transform: scaleY(0.5055); } 52.5% { transform: scaleY(0.6241); } 55% { transform: scaleY(0.7186); } 57.5% { transform: scaleY(0.7922); } 60% { transform: scaleY(0.8487); } 62.5% { transform: scaleY(0.8915); } 65% { transform: scaleY(0.9234); } 67.5% { transform: scaleY(0.9469); } 70% { transform: scaleY(0.9640); } 72.5% { transform: scaleY(0.9762); } 75% { transform: scaleY(0.9848); } 77.5% { transform: scaleY(0.9906); } 80% { transform: scaleY(0.9945); } 82.5% { transform: scaleY(0.9969); } 85% { transform: scaleY(0.9984); } 87.5% { transform: scaleY(0.9993); } 90% { transform: scaleY(0.9997); } 92.5% { transform: scaleY(0.9999); } 95% { transform: scaleY(1.0000); } 97.5% { transform: scaleY(1.0000); } 100% { transform: scaleY(1.0000); } }
.anim .env__win { z-index: 2; }
.anim .in .env__win { animation: win-forward 1.9s linear 1.15s both; }
@keyframes win-forward { 0%, 55% { z-index: 2; } 56%, 100% { z-index: 4; } }
.anim .env .std { transform: translate(0, calc(var(--ch) - var(--cb) + var(--eh) * .06)); }
.anim .in .env .std { animation: card-rise 1.9s cubic-bezier(.45, .05, .25, 1) 1.15s both; }
@keyframes card-rise {
  0% { transform: translate(0, calc(var(--ch) - var(--cb) + var(--eh) * .06)) rotate(0deg); }
  55% { transform: translate(0, min(0px, calc(var(--cb) * -1 - var(--eh) * .05))) rotate(0deg); }
  100% { transform: translate(var(--tx), 0) rotate(var(--rot)); }
}

/* the card that follows you down to the tri-fold */
.traveller { position: fixed; z-index: 40; left: 0; top: 0; width: 0; height: 0; pointer-events: none; display: none; }
.traveller.is-on { display: block; }
.std--trav { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; }

/* ---------- 2 · welcome: the tri-fold ---------- */
.welcome { display: grid; place-items: center; background: #24121F; }
.welcome__bg { filter: brightness(.55); }
.welcome::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(40% 45% at 50% 50%, rgba(255, 180, 110, .12), transparent 70%),
    radial-gradient(95% 85% at 50% 50%, rgba(40, 16, 36, .3) 30%, rgba(18, 6, 18, .86) 100%);
}
.tri {
  --pw: min(400px, calc((100vw - 2 * var(--pad-x)) / 3), calc((100svh - var(--bar) - var(--barb) - 2 * var(--fi) - 70px) / 1.4));
  --ph: calc(var(--pw) * 1.4);
  position: relative; z-index: 2;
  width: calc(var(--pw) * 3); height: var(--ph);
}
.tri__p { position: absolute; top: 0; width: var(--pw); height: var(--ph); container-type: inline-size; }
.tri__p--l { left: 0; transform-origin: 100% 50%; z-index: 2; }
.tri__p--m { left: var(--pw); z-index: 1; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.tri__p--r { left: calc(var(--pw) * 2); transform-origin: 0 50%; z-index: 3; }
.tri__p--l, .tri__p--r { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.tri__p::after { content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none; background: linear-gradient(90deg, rgba(10, 2, 6, .55), rgba(10, 2, 6, .2)); opacity: var(--shade, 0); }
.face { position: absolute; inset: 0; overflow: hidden; }
.face--out { display: none; transform: scaleX(-1); }
.tri__p.is-back .face--out { display: block; }
.tri__p.is-back .face--in { display: none; }
/* left: plum card stock with an oval window */
.tri__photo, .tri__crest { background-color: var(--plum); background-image: var(--grain), radial-gradient(120% 80% at 50% 10%, #66394A, var(--plum) 60%); }
.oval {
  position: absolute; left: 15%; right: 15%; top: 14%; bottom: 14%;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(221, 195, 122, .8), 0 0 0 9px var(--plum), 0 0 0 10px rgba(221, 195, 122, .4);
}
.oval img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.oval::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 3px 10px rgba(0, 0, 0, .6), inset 0 -1px 2px rgba(255, 230, 200, .2); }
.tri__liner { background: #EFE7D6; }
.tri__liner::before { content: ''; position: absolute; inset: 4cqw; background: url("img/liner.jpg") 50% 50% / cover no-repeat; }
/* middle: the letter */
.tri__letter { background-color: var(--paper); background-image: var(--grain), radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(150, 105, 50, .2) 100%); color: var(--plum-ink); }
.tri__letter .engr { --ei: 3.4cqw; --oc: 11cqw; }
.tri__letter .engr__m { width: 22cqw; height: 5cqw; margin-left: -11cqw; }
.letter { position: absolute; inset: 9cqw 10cqw 7cqw; display: flex; flex-direction: column; justify-content: center; }
.letter__title { font-size: 10.6cqw; text-align: center; align-self: center; color: var(--plum); margin-bottom: 3.5cqw; }
.letter__title .ln { margin-left: auto; margin-right: auto; }
.letter__title .flo { margin: -.1em auto 0; color: #B98A86; }
.letter__p { font-family: var(--hand); font-size: max(16px, 4.7cqw); line-height: 1.55; color: #3B2430; }
.letter__p + .letter__p { margin-top: .5em; }
.letter__sign { font-size: 7.2cqw; color: var(--wine); align-self: flex-end; margin-top: 2.5cqw; }
/* right: the crest, and a pocket tied with a ribbon */
.tri__crest .std__frame { inset: 4.6cqw; }
.tri__crestimg { position: absolute; left: 50%; top: 9%; width: 54%; height: auto; translate: -50% 0; }
.pocket { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; }
.pocket__card {
  position: absolute; left: 13%; right: 13%; top: -26%; height: 80%;
  display: flex; flex-direction: column; align-items: center; padding-top: 7cqw; gap: 1cqw;
  background-color: var(--paper); background-image: var(--grain);
  color: var(--plum-ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  font-size: max(11px, 3.6cqw); font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.pocket__card span:first-child { font-size: max(13px, 5cqw); letter-spacing: .18em; }
.pocket__front {
  position: absolute; inset: 0;
  background: linear-gradient(175deg, #6E3D50 0%, #4F2635 60%, #43202D 100%);
  clip-path: polygon(0 18%, 100% 2%, 100% 100%, 0 100%);
}
.ribbon { position: absolute; left: 50%; width: 7cqw; top: 6%; bottom: 0; translate: -50% 0; background: linear-gradient(90deg, #3C0B16, #8A2A3E 40%, #5B1424 60%, #7A2234 85%, #3C0B16); box-shadow: 0 0 4px rgba(0, 0, 0, .4); }
.bow { position: absolute; left: 50%; top: -6%; width: 36cqw; translate: -50% 0; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45)); }
/* ---------- 3 · the weekend ---------- */
.weekend { display: flex; flex-direction: column; justify-content: center; }
.g-ivory .flo { color: #B98A86; }
/* the two of us, tucked into the bottom-left corner */
.weekend__polwrap { position: absolute !important; left: calc(var(--fi) + clamp(18px, 2vw, 30px)); bottom: calc(var(--fi) + clamp(12px, 2.2vh, 20px)); width: clamp(118px, calc(141px + (100vw - 1440px) * .15), 207px); }
/* wide screens: there is room beside Thursday, so it grows and sits where Charles marked it
   (centre 10.7% across, 68.6% down) */
@media (min-width: 1880px) {
  .weekend__polwrap { --w: clamp(170px, 11.5vw, 240px); width: var(--w); left: calc(10.7vw - var(--w) / 2 - 15px); bottom: auto; top: calc(68.6% - var(--w) * .69 + 9px); }
}
.weekend__head { text-align: center; margin-bottom: clamp(10px, 2.4vh, 26px); }
.weekend__title { font-size: clamp(60px, min(6.2vw, 10vh), 104px); display: inline-block; }
.weekend__title .flo { margin: -.1em auto 0; }
.weekend__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(7, auto);
  width: min(100%, 1340px);
  margin: 0 auto;
}
.day {
  grid-row: span 7;
  display: grid; grid-template-rows: subgrid;
  justify-items: center; align-content: start;
  text-align: center;
  padding: 0 clamp(16px, 2.6vw, 46px);
}
.day + .day { border-left: 1px solid rgba(140, 107, 44, .3); }
.day__img { width: min(88%, 330px); margin-bottom: clamp(12px, 2.2vh, 24px); }
.day__img img { aspect-ratio: 3 / 2; object-fit: cover; }
.day__when { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.day__title { font-size: clamp(38px, min(3.4vw, 5.6vh), 54px); margin: .1em 0 .18em; white-space: nowrap; color: var(--wine); }
.day__title .ln { margin-left: auto; margin-right: auto; }
.day__time { font-family: var(--sans); font-size: 17px; letter-spacing: .04em; color: var(--plum-ink); }
.day__place { margin-top: 10px; }
.day__venue { font-size: 23px; font-weight: 600; line-height: 1.2; }
.day__addr { font-style: italic; color: var(--muted); }
.day__wear { margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(140, 107, 44, .3); align-self: start; }
.day__wear span { font-family: var(--sans); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-right: 6px; }
.day__extra { align-self: end; padding-top: 10px; }
.day__after { font-style: italic; color: var(--wine); }
.day__note { font-style: italic; color: var(--muted); margin-top: 2px; }

/* ---------- 5 · where to stay ---------- */
.stay { display: grid; grid-template-columns: minmax(320px, 470px) minmax(0, 1fr); gap: clamp(28px, 3.6vw, 64px); align-items: center; }
.stay__kicker { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 12px; }
.stay__lead { font-size: clamp(44px, min(4.1vw, 8vh), 68px); transform: rotate(-2deg); transform-origin: 0 50%; }
.stay__lead .ln--2 { margin-left: .9em; }
/* one rhythm for all three lines: the write-on padding of neighbouring lines is cancelled in full
   (stacked negative margins collapse to the larger, which used to leave the first line floating) */
.stay__lead .ln + .ln { margin-top: -.62em; }
.stay__lead .flo { margin-left: 3em; }
.stay__sub { font-size: 22px; font-style: italic; line-height: 1.38; margin-top: 18px; max-width: 18em; text-shadow: 0 1px 8px rgba(20, 8, 18, .6); }
.stay__map { font-style: normal; font-weight: 600; white-space: nowrap; color: var(--gold-hi); text-decoration: underline; text-decoration-color: rgba(221, 195, 122, .7); text-decoration-thickness: 1px; text-underline-offset: 5px; margin-left: .2em; }
.stay__map:hover { color: var(--ivory); }
.stay__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.hcell { display: flex; }
.hcard {
  position: relative; flex: 1; display: flex; flex-direction: column;
  color: var(--plum-ink); text-decoration: none; --focus: var(--gold);
  background-color: var(--paper);
  background-image: var(--grain), radial-gradient(120% 120% at 50% 45%, transparent 60%, rgba(150, 105, 50, .18) 100%);
  box-shadow: 0 2px 4px rgba(10, 4, 8, .35), 0 18px 30px -18px rgba(10, 4, 8, .7);
  transition: box-shadow .25s, translate .25s;
}
.hcard:hover { translate: 0 -2px; box-shadow: 0 3px 6px rgba(10, 4, 8, .4), 0 22px 34px -18px rgba(10, 4, 8, .8); }
.hcard__ph { display: block; height: clamp(64px, 9vh, 88px); overflow: hidden; margin: 7px 7px 0; }
.hcard__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hcard__body { display: flex; flex-direction: column; padding: 10px 34px 12px 16px; }
.hcard__n { font-size: 21px; font-weight: 600; line-height: 1.15; }
.hcard__area { font-style: italic; color: var(--wine); font-size: 17px; }
.stars { display: inline-flex; gap: 1px; margin-left: .45em; white-space: nowrap; vertical-align: .12em; color: var(--gold-ink); }
.stars svg { width: 10px; height: 10px; fill: currentColor; }
.stars .stars__half { width: 5px; }
.hcard__nw { white-space: nowrap; }
.hcard__line { font-size: 17px; line-height: 1.3; margin-top: 2px; }
.hcard .badge { align-self: flex-start; margin-bottom: 5px; }
.hcard__go { position: absolute; right: 12px; bottom: 14px; width: 13px; height: 13px; color: var(--gold-ink); }
.hcard--block { box-shadow: inset 0 0 0 1px rgba(140, 107, 44, .55), 0 2px 4px rgba(10, 4, 8, .35), 0 18px 30px -18px rgba(10, 4, 8, .7); }
.hcard--airbnb { background-color: #EDE2DA; }
.hcard--airbnb .hcard__line { font-size: 16px; }

/* ---------- 6 · the map ---------- */
.mapsec {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "head map" "chips map" "card map" "foot map";
  column-gap: clamp(24px, 3vw, 48px);
  align-content: center;
}
.map__head { grid-area: head; }
.map__title { font-size: clamp(52px, min(4.6vw, 8vh), 80px); transform: rotate(-3deg); }
.map__chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 6px 16px;
  font-family: var(--sans); font-size: 16px; letter-spacing: .03em;
  color: var(--ivory); background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(251, 248, 240, .45); border-radius: 999px;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--gold); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #FBF8F0; }
.dot--ev, .chip--ev .dot { background: #8A2234; }
.dot--ho, .chip--ho .dot { background: var(--green); }
.dot--td, .chip--td .dot { background: #C9A24E; }
.chip--td:not(.is-on) .dot { background: transparent; box-shadow: inset 0 0 0 2px #C9A24E, 0 0 0 2px #FBF8F0; }
.chip[aria-pressed="true"] { color: var(--plum-ink); border-color: transparent; background: var(--ivory); }
.chip--ev[aria-pressed="true"] { background: #E9C9CD; }
.chip--ho[aria-pressed="true"] { background: #CFDCC6; }
.chip--td[aria-pressed="true"] { background: var(--gold); }
.map__wrap { grid-area: map; position: relative; align-self: center; justify-self: center; width: min(100%, calc((100svh - var(--bar) - var(--barb) - 2 * var(--fi) - var(--pad-t) - var(--pad-b) - 20px) * 1000 / 677)); }
.map__sheet { position: relative; width: 100%; aspect-ratio: 1000 / 677; background: var(--water); box-shadow: var(--shadow); outline: 8px solid var(--aged); touch-action: manipulation; overflow: hidden; }
.map { display: block; width: 100%; height: 100%; overflow: hidden; }
.map__water { fill: var(--water); }
.map__land path { fill: #F7F1E3; stroke: #B4A388; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rd { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rd--1 { stroke: rgba(93, 51, 65, .5); }
.rd--2 { stroke: rgba(93, 51, 65, .3); }
.rd--3 { stroke: rgba(93, 51, 65, .16); }
.rlab { font-family: var(--sans); font-style: italic; fill: #6E4A55; text-anchor: middle; stroke: #F7F1E3; stroke-linejoin: round; paint-order: stroke; pointer-events: none; letter-spacing: .04em; }
.map__sea { font-family: var(--serif); font-style: italic; fill: #5F7059; letter-spacing: .25em; text-anchor: middle; pointer-events: none; }
.map__sea--bay { letter-spacing: .1em; }
.pin__dot { vector-effect: non-scaling-stroke; transition: fill .25s, stroke .25s, opacity .25s; }
.pin { cursor: pointer; outline: none; }
.pin--ev .pin__dot { fill: #8A2234; stroke: var(--gold); stroke-width: 2.5; }
.pin--ho .pin__dot { fill: var(--green); stroke: #FFFDF8; stroke-width: 2; }
.pin--td .pin__dot { fill: #C9A24E; stroke: #6F5420; stroke-width: 1.5; }
.pin__ring { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.pin.is-dim .pin__dot { fill: #C2B8AE; stroke: #FFFDF8; stroke-width: 1.5; opacity: .8; }
.pin.is-dim .pin__ring { stroke: #C2B8AE; }
.pin.is-hidden { display: none; }
.pin.is-sel .pin__dot { stroke: var(--plum-ink); stroke-width: 3; opacity: 1; }
.pin:focus-visible .pin__dot { stroke: var(--plum); stroke-width: 4; }
.map__labels { position: absolute; inset: 0; pointer-events: none; }
.lab {
  position: absolute; pointer-events: auto; cursor: pointer;
  font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap;
  padding: 1px 7px 2px;
  background: rgba(251, 248, 240, .94); color: var(--plum-ink);
  box-shadow: 0 1px 2px rgba(64, 30, 40, .28); border-radius: 1px;
  transition: opacity .2s;
}
.lab:hover { background: #FFF; }
.lab b { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--gold-ink); margin-right: 3px; }
.lab--ev { color: #8A2234; }
.lab--ho { color: var(--green); }
.lab--td { color: #6F5420; }
.lab.is-dim { opacity: .55; }
.lab.is-sel { background: var(--plum); color: var(--ivory); }
.lab.is-sel b { color: var(--gold); }
.lab[data-side="r"] { transform: translate(13px, -50%); }
.lab[data-side="l"] { transform: translate(calc(-100% - 13px), -50%); }
.lab[data-side="b"] { transform: translate(-50%, 11px); }
.lab[data-side="t"] { transform: translate(-50%, calc(-100% - 11px)); }
.lab[data-side="bs"] { transform: translate(-20px, 11px); }
.lab[data-side="be"] { transform: translate(calc(-100% + 20px), 11px); }
.lab[data-side="ts"] { transform: translate(-20px, calc(-100% - 11px)); }
.lab[data-side="te"] { transform: translate(calc(-100% + 20px), calc(-100% - 11px)); }
/* a name set in a column beside the downtown cluster, tied to its pin by a fine line */
.lab[data-side="free"] { transform: none; line-height: 1.15; }
.map__leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.map__leaders line { stroke: var(--green); stroke-width: 1; opacity: .75; }
.map__zoom {
  position: absolute; right: 12px; top: 12px;
  min-height: 42px; padding: 6px 14px;
  font-family: var(--sans); font-size: 15px; letter-spacing: .03em;
  background: rgba(251, 248, 240, .95); border: 1px solid var(--plum); color: var(--plum); border-radius: 1px; cursor: pointer;
}
.map__zoom[aria-pressed="true"] { background: var(--plum); color: var(--ivory); }
.pincard { grid-area: card; align-self: start; margin-top: 22px; padding: 18px 22px 16px; min-height: 150px; }
.pc__hint { font-style: italic; font-size: 19px; color: var(--muted); }
.pc__key { margin-top: 12px; display: grid; gap: 4px; font-size: 17px; }
.pc__key li { display: flex; align-items: center; gap: 10px; }
.pc__k { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 15px; color: var(--muted); padding-right: 36px; }
.pc__n { font-size: 27px; font-weight: 600; line-height: 1.15; margin-top: 4px; }
.pc__l { font-size: 19px; margin-top: 2px; }
.pc__b { margin-top: 8px; }
.pc__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc__x { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 28px; line-height: 1; color: var(--muted); }
.pc__x:hover { color: var(--plum); }
.map__foot { grid-area: foot; margin-top: 18px; }
.map__list { margin-top: 14px; }

/* ---------- 7 · FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(240px, .55fr) minmax(0, 1.8fr); gap: clamp(28px, 4.4vw, 80px); align-items: center; }
.faq__head { justify-self: center; text-align: center; }
.faq__title { font-size: clamp(64px, min(6vw, 10vh), 104px); display: inline-block; transform: rotate(-4deg); color: var(--plum); }
.faq__title .flo { margin: -.1em auto 0; }
.faq__pol { width: clamp(200px, 16vw, 250px); margin: clamp(18px, 3vh, 36px) auto 0; }
.faq__list { width: min(100%, 1000px); }
.qa { border-top: 1px solid rgba(93, 51, 65, .2); }
.qa:last-child { border-bottom: 1px solid rgba(93, 51, 65, .2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 7px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa__q { font-size: 22px; font-weight: 600; line-height: 1.25; transition: color .3s; }
.qa summary:hover .qa__q { color: var(--wine); }
.qa__mark { position: relative; flex: none; width: 18px; height: 18px; }
.qa__mark::before, .qa__mark::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--gold-ink); transition: transform .42s cubic-bezier(.33, .8, .25, 1); }
.qa__mark::after { transform: rotate(90deg); }
.qa[open]:not(.is-closing) .qa__mark::after { transform: rotate(0deg); }
.qa[open]:not(.is-closing) .qa__q { color: var(--wine); }
.qa__a { overflow: hidden; }
.qa__in { padding: 0 34px 16px 0; }
.qa__a p { font-size: 19px; line-height: 1.5; max-width: 74ch; }
.qa__a p + p { margin-top: 6px; }
.qa__a a { color: var(--wine); text-underline-offset: 3px; padding: 11px 0; }

/* ---------- 8 · RSVP ---------- */
.rsvp { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: clamp(28px, 4.4vw, 80px); align-items: center; align-content: center; }
.rsvp__side { text-align: center; justify-self: center; }
.rsvp__crest { width: clamp(130px, 13vw, 190px); height: auto; display: block; margin: 0 auto 4px; }
.rsvp__h { margin: 0; font-weight: 400; }
.rsvp__script { font-size: clamp(56px, min(5.4vw, 9vh), 92px); display: inline-block; }
.rsvp__script .flo { margin: -.1em auto 0; }
.rsvp__caps { display: block; margin-top: 10px; font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .42em; padding-left: .42em; color: var(--gold-hi); }
.rsvp__contact { font-size: 19px; margin-top: 14px; color: rgba(251, 248, 240, .85); }
.rsvp__card { display: grid; grid-template-columns: minmax(0, 650px) minmax(min-content, 1fr); column-gap: clamp(22px, 2.8vw, 42px); align-items: center; width: 100%; }
.rsvp__form, .rsvp__done { grid-column: 1; }
/* a booth print standing to the right of the form */
.rsvp__polwrap { grid-column: 2; grid-row: 1 / span 2; justify-self: start; position: relative; top: 15vh; margin-left: 40px; margin-right: 16px; width: clamp(170px, 11.5vw, 240px); }
.rsvp__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.fld { display: flex; flex-direction: column; gap: 5px; grid-column: 1 / -1; min-width: 0; }
.fld--half { grid-column: auto; }
.yes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.fld label, .fld legend { font-family: var(--sans); font-size: 15px; letter-spacing: .04em; color: rgba(251, 248, 240, .88); line-height: 1.3; }
.req { color: var(--gold); }
fieldset.fld { border: 0; margin: 0; padding: 0; }
fieldset.fld legend { padding: 0; margin-bottom: 4px; }
.fld input[type="text"], .fld input[type="email"], .fld input[type="tel"], .fld textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font-family: var(--serif); font-size: 19px; color: var(--plum-ink);
  background-color: var(--paper); background-image: var(--grain);
  border: 1px solid transparent; border-radius: 1px;
  box-shadow: inset 0 1px 3px rgba(40, 18, 26, .22);
  resize: vertical;
}
.fld textarea { min-height: 46px; height: 46px; }
/* the note box gets two lines where the RSVP screen has the height for them (laptops at 800px tall don't) */
@media (min-width: 821px) and (min-height: 880px) { .fld textarea { height: 78px; } }
.fld input:focus-visible, .fld textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fld .is-bad { border-color: #F0A8A8; box-shadow: 0 0 0 2px rgba(240, 168, 168, .35); }
.err { font-family: var(--sans); font-size: 15px; color: #FFD1CC; line-height: 1.4; }
.err::before { content: '! '; font-weight: 500; color: #F0A8A8; }
/* plain radio and check choices: a gold ring, a dot or a tick */
.att__opts { display: flex; flex-wrap: wrap; gap: 4px 34px; }
.evs__opts { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.fld .choice { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; color: var(--ivory); font-family: var(--serif); letter-spacing: 0; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__mark { position: relative; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--gold); border-radius: 50%; transition: background-color .2s; }
.choice__mark::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--foil); transform: scale(0); transition: transform .2s; }
.choice input:checked + .choice__mark::after { transform: scale(1); }
.choice input:focus-visible + .choice__mark { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice--att .choice__t { font-size: 25px; font-style: italic; }
.choice--ev .choice__mark { border-radius: 2px; }
.choice--ev .choice__mark::after { inset: 3px; border-radius: 1px; }
.choice--ev .choice__t { font-size: 19px; }
.choice--ev b { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-right: 6px; }
.att.is-bad .choice__mark { border-color: #F0A8A8; }
/* the honeypot, hidden in place: nothing is parked far off the page */
.rsvp__form { position: relative; }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; -webkit-clip-path: inset(50%); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.rsvp__send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; }
.rsvp__send .btn { min-width: 220px; min-height: 52px; font-size: 16px; }
.rsvp__status { font-family: var(--sans); font-size: 15px; color: rgba(251, 248, 240, .85); flex: 1 1 240px; }
.note-tbd { color: var(--gold-hi); }
.rsvp__done { text-align: center; padding: 40px 20px; outline: none; }
.done__t { font-size: clamp(58px, 6vw, 92px); display: inline-block; }
.done__m { font-size: 22px; font-style: italic; margin-top: 10px; }

/* ---------- 9 · in town ---------- */
.town {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  grid-template-rows: 1fr auto;
  column-gap: clamp(30px, 4vw, 70px);
  align-items: center;
  --gx: 70%; --gy: 30%;
}
.town__bg { opacity: .16; filter: blur(1.5px); }
.town::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    var(--grain-lt),
    radial-gradient(50% 45% at 75% 35%, rgba(255, 180, 120, .14), transparent 72%),
    linear-gradient(90deg, rgba(40, 16, 36, .74) 0%, rgba(40, 16, 36, .52) 60%, rgba(40, 16, 36, .22) 100%),
    radial-gradient(125% 95% at 50% 45%, rgba(62, 26, 54, .4) 40%, rgba(18, 6, 16, .8) 100%);
}
.town__main { min-width: 0; }
.town__head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 30px; }
.town__title { font-size: clamp(60px, min(5.6vw, 9.5vh), 98px); transform: rotate(-3deg); }
.town__lead { font-size: 22px; font-style: italic; padding-bottom: 16px; color: rgba(251, 248, 240, .88); }
/* the kinds of places: an index down the side, like the contents of a printed menu. Choosing one moves only
   the small gold marker; every list sits in the same cell, so the tallest sets the height once and for all. */
.town__body { display: grid; grid-template-columns: 252px minmax(0, 1fr); column-gap: 32px; align-items: start; margin-top: clamp(14px, 2.4vh, 26px); }
.tabs { position: relative; display: flex; flex-direction: column; padding: 2px 20px 2px 0; border-right: 1px solid rgba(221, 195, 122, .34); }
.tabs__mark { position: absolute; left: 1px; top: -4px; width: 7px; height: 7px; background: var(--foil); transform: rotate(45deg); transition: transform .38s cubic-bezier(.33, .8, .25, 1); }
.tab {
  display: flex; align-items: center; min-height: 46px; padding: 6px 0 6px 24px;
  font-family: var(--serif); font-size: 14.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; text-align: left;
  color: rgba(251, 248, 240, .66); background: none; border: 0; border-radius: 0;
  cursor: pointer; transition: color .25s;
}
.tab + .tab { border-top: 1px solid rgba(221, 195, 122, .14); }
.tab:hover { color: var(--ivory); }
.tab[aria-selected="true"] { color: var(--gold-hi); }
.cat { display: none; }
.panels { display: grid; min-width: 0; }
.panel { grid-area: 1 / 1; min-width: 0; }
.panel.is-off { visibility: hidden; }
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 30px; align-content: start; }
.places li { display: flex; flex-direction: column; padding-bottom: 6px; border-bottom: 1px solid rgba(221, 195, 122, .16); }
.place { display: flex; flex-direction: column; text-decoration: none; }
.place__n {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px;
  font-size: 20px; font-weight: 600; line-height: 1.2;
  text-decoration: underline; text-decoration-color: rgba(221, 195, 122, .6); text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.place:hover .place__n { color: var(--gold-hi); }
.place__l { font-style: italic; font-size: 17px; line-height: 1.3; color: rgba(251, 248, 240, .76); }
.place__off { color: var(--gold); }
.town__btn { margin-top: clamp(16px, 3vh, 28px); }
.town__side { position: relative; align-self: center; padding: 0 0 40px 40px; }
.show {
  position: relative; margin: 0;
  padding: 0 12px 12px;
  background-color: var(--aged); background-image: var(--grain);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.show__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #2a1a14; }
.show__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity 1.8s ease, transform 7s linear; }
.show__frame img.is-on { opacity: 1; transform: scale(1); }
.show__cap { min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 8px 48px; font-size: 21px; font-style: italic; color: var(--plum-ink); text-align: center; }
.show__pause { position: absolute; right: 8px; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; --focus: var(--plum); }
.show__pause span { width: 12px; height: 14px; border-left: 3px solid var(--plum); border-right: 3px solid var(--plum); }
.show__pause[aria-pressed="true"] span { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--plum); }
.town__pol { position: absolute !important; z-index: 3; left: -46px; bottom: -4px; width: clamp(170px, 14vw, 210px); }
.foot { grid-column: 1 / -1; margin: clamp(18px, 3vh, 34px) auto 0; text-align: center; color: rgba(251, 248, 240, .7); }
.foot img { width: 60px; height: auto; display: block; margin: 0 auto 6px; opacity: .9; }
.foot p { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.foot__br { display: none; }

/* ---------- narrower laptops ---------- */
@media (max-width: 1279px) and (min-width: 821px) {
  .weekend__polwrap { display: none; } /* no free corner beside the first column at these widths */
}
@media (max-width: 1100px) and (min-width: 821px) {
  .rsvp__polwrap { width: 132px; top: 0; margin-left: 4px; }

  .menu__links a { letter-spacing: .08em; padding: 0 5px; }
  .stay__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .places { grid-template-columns: minmax(0, 1fr); }
  .town__body { grid-template-columns: 190px minmax(0, 1fr); column-gap: 24px; }
}

/* phone-only pieces, switched on in the phone block below */
.menu__short, .tri__stop, .tri__dots { display: none; }
.tri__wrap, .tri__scroll { display: contents; }

/* ---------- phones and small tablets ----------
   Designed for a phone, not squeezed: everything stacks, nothing swipes sideways, and each screen is
   planned for the short viewport a real iPhone gives (about 600px with Safari's bars showing). */
@media (max-width: 820px) {
  :root { --bar: calc(58px + env(safe-area-inset-top, 0px)); --barb: 0px; --fi: 10px; --pad-x: max(22px, calc(50vw - 280px)); --pad-t: 30px; --pad-b: 30px; }
  body { font-size: 18px; }
  .engr { --oc: 32px; }
  .engr__m { width: 72px; height: 17px; margin-left: -36px; }
  .engr__m--t { top: 7px; } .engr__m--b { bottom: 7px; }

  /* the bar across the top: the crest and all six sections, always on screen, nothing to scroll.
     Its ground runs up behind the status bar / notch. */
  .menu { height: var(--bar); padding: env(safe-area-inset-top, 0px) 8px 0 3px; gap: 3px; background: rgba(42, 20, 36, .97); }
  .menu__home { width: 40px; height: 58px; }
  .menu__home img { width: 34px; }
  .menu__links { flex: 1; min-width: 0; margin: 0; gap: 0; justify-content: space-between; }
  .menu__links a { flex: 0 0 auto; justify-content: center; min-width: 40px; min-height: 58px; padding: 0; font-size: clamp(15px, 4vw, 17px); letter-spacing: 0; text-transform: none; }
  .menu__links a.is-cur::after { left: 50%; right: auto; width: 22px; margin-left: -11px; bottom: 13px; }

  /* the page-turn arrows: no boxes. Two fine gold arrows stand either side of the spot where each screen's
     frame carries its small bottom ornament, so at the foot of a screen they read as part of the engraving
     (↑ ornament ↓). Each arrow is a gold line over a wider plum one, which keeps it legible on ivory, plum,
     the green map and the photographs alike without any ground of its own. The tap area (44px) is larger
     than the drawing, and the space between the two lets taps through to the page. */
  .pager {
    display: flex; gap: 64px; position: fixed; z-index: 49; left: 50%; translate: -50% 0;
    bottom: calc(var(--fi) - 6px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }
  .pager button {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
    font-size: 0; line-height: 0; color: inherit; background: none; border: 0; border-radius: 50%;
    pointer-events: auto; -webkit-tap-highlight-color: transparent;
  }
  .pager svg { display: block; width: 24px; height: 24px; overflow: visible; }
  .pager__k { stroke: #2A1424; stroke-width: 4.2; opacity: .72; }
  .pager__g { stroke: #E6CF8C; stroke-width: 1.5; }
  .pager button:active .pager__k { stroke-width: 7; opacity: .95; }
  .pager button:active .pager__g { stroke: #FFF3C9; }
  .pager button:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; box-shadow: inset 0 0 0 5px rgba(42, 20, 36, .8); }
  /* nothing further in that direction: the arrow stays in place, faint */
  .pager button:disabled { cursor: default; opacity: .34; }
  .menu__full { display: none; }
  .menu__short { display: inline; }
  .menu__links a { white-space: nowrap; }
  .menu__links a.menu__top { display: none; }

  .std__cap { font-size: clamp(12px, 5.1cqw, 16px); letter-spacing: .18em; line-height: 1.75; }
  .std__crest { width: 44cqw; margin-bottom: 3cqw; }
  .std__date { font-size: 8cqw; }

  /* 1 · opening: the card stands above its envelope; everything is sized from the height that is left */
  .open__stage { --cw: min(76vw, 320px, calc((100svh - var(--bar) - 2 * var(--fi) - 2 * var(--pad-t)) / 2.43)); --E: calc(var(--cw) * 1.12); --cb: calc(var(--eh) * -.48); --tx: 0px; --rot: 1.5deg; }
  .open__pol { width: calc(var(--cw) * .37); left: calc(var(--cw) * .785); top: calc(var(--ch) * -.07); }

  /* 2 · welcome: the tri-fold opens sideways, as on a laptop, and is wider than the screen. It sits in a
     strip that swipes from panel to panel and rests on the letter; the collage stays in view around it. */
  .welcome { padding: calc(var(--fi) + 14px) 0; --tpw: min(78vw, 360px, calc((100svh - var(--bar) - 2 * var(--fi) - 96px) / 1.5)); }
  .tri__wrap { display: block; width: 100vw; }
  .tri__scroll {
    display: flex; width: 100%;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 26px 0 40px;
  }
  .tri__scroll::-webkit-scrollbar { display: none; }
  .tri__scroll::before, .tri__scroll::after { content: ''; flex: none; width: calc((100vw - var(--tpw)) / 2); }
  .tri { flex: none; --pw: var(--tpw); --ph: calc(var(--pw) * 1.5); }
  .tri__stop { display: block; position: absolute; top: 0; width: var(--pw); height: 1px; scroll-snap-align: center; scroll-snap-stop: always; }
  .tri__stop--l { left: 0; } .tri__stop--m { left: var(--pw); } .tri__stop--r { left: calc(var(--pw) * 2); }
  /* three dots and two small arrows: there is more to either side */
  .tri__dots { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: -22px; opacity: 0; transition: opacity .6s ease .4s; color: var(--gold); }
  .tri__wrap.is-open .tri__dots { opacity: 1; }
  .tri__dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; transition: background-color .25s; }
  .tri__dot.is-on { background: currentColor; }
  .tri__chev { width: 8px; height: 8px; margin: 0 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .8; }
  .tri__chev--r { transform: rotate(-135deg); }
  .letter { inset: 9cqw 8.5cqw 6cqw; }
  .letter__title { font-size: 10.4cqw; margin-bottom: 2.4cqw; }
  .letter__p { font-size: max(15.5px, 5.1cqw); line-height: 1.42; }
  .letter__sign { font-size: 7.1cqw; white-space: nowrap; margin-top: 2cqw; }
  .pocket__card { font-size: 13px; letter-spacing: .12em; }
  .pocket__card span:first-child { font-size: 17px; }

  /* 3 · the weekend: three days down the page, each a print beside its details */
  .weekend__head { margin-bottom: 2px; }
  .weekend__title { font-size: clamp(42px, 12.4vw, 50px); }
  .weekend__row { display: block; width: min(100%, 540px); }
  .day {
    grid-row: auto; grid-template-rows: none;
    --dc: clamp(104px, 29vw, 170px);
    grid-template-columns: var(--dc) minmax(0, 1fr);
    grid-template-areas: "img when" "img title" "img time" ". place" ". wear" ". extra";
    column-gap: 16px; justify-items: start; align-items: start; text-align: left;
    padding: 11px 0 6px;
  }
  .day + .day { border-left: 0; border-top: 1px solid rgba(140, 107, 44, .3); }
  .day__img { grid-area: img; width: 100%; margin: 3px 0 0; padding: 6px 6px 8px; }
  .day__when { grid-area: when; letter-spacing: .14em; }
  .day__title { grid-area: title; font-size: clamp(30px, 8.5vw, 37px); margin: .1em 0 .08em; }
  .day__title .ln { margin-left: -.25em; margin-right: -.45em; }
  .day__time { grid-area: time; font-size: 16px; }
  .day__place { grid-area: place; margin-top: 1px; }
  .day__venue { font-size: 20px; }
  .day__addr, .day__note { font-size: 17px; line-height: 1.25; }
  .day__img { align-self: start; }
  /* the last day leaves room under its print for the Polaroid in the corner */
  .day:last-child { min-height: calc(var(--dc) * 1.96 + 98px); padding-bottom: 14px; }
  .weekend__row { --dc: clamp(104px, 29vw, 170px); }
  .weekend__polwrap { left: calc(var(--pad-x) + 5px); bottom: calc(var(--fi) + var(--pad-b) + 8px); width: calc(clamp(104px, 29vw, 170px) * .93); top: auto; }
  .day__wear { grid-area: wear; justify-self: stretch; margin-top: 6px; padding-top: 6px; }
  .day__extra { grid-area: extra; padding-top: 2px; }
  .day__after { font-size: 17px; line-height: 1.25; }

  /* 5 · where to stay: the hotels are set straight onto the floral liner, ivory and gold on the dark flowers,
     with gold hairlines between them. No sheet covers the painting. */
  .stay { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
  .stay::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(24, 9, 22, 0) 0, rgba(24, 9, 22, .34) 230px, rgba(24, 9, 22, .34) calc(100% - 60px), rgba(24, 9, 22, 0) 100%); }
  .stay__kicker { font-size: 15px; margin-bottom: 8px; }
  .stay__lead { font-size: clamp(34px, 10vw, 44px); }
  .stay__lead .flo { margin-left: 2em; }
  .stay__sub { font-size: 18px; margin-top: 10px; max-width: none; }
  .stay__map { display: inline-flex; align-items: center; min-height: 40px; margin-left: 0; }
  .stay__grid { display: block; width: min(100%, 560px); border-top: 1px solid rgba(221, 195, 122, .5); }
  .hcell { display: block; border-bottom: 1px solid rgba(221, 195, 122, .3); }
  .hcell:last-child { border-bottom-color: rgba(221, 195, 122, .5); }
  .hcard, .hcard--block, .hcard--airbnb { flex-direction: row; align-items: center; gap: 14px; min-height: 66px; padding: 11px 22px 12px 2px; background: none; box-shadow: none; color: var(--ivory); text-shadow: 0 1px 2px rgba(16, 5, 14, .9), 0 0 14px rgba(16, 5, 14, .75); }
  .hcard:hover { translate: none; box-shadow: none; }
  .hcard__ph { flex: none; width: 54px; height: 54px; margin: 2px 0 0; align-self: flex-start; outline: 3px solid var(--aged); box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .7); }
  .hcard__body { display: block; flex: 1; min-width: 0; padding: 0; font-size: 17px; line-height: 1.28; }
  .hcard .badge { display: table; margin: 0 0 5px; font-size: 17px; text-shadow: none; }
  .hcard__n { display: block; font-size: 21px; margin-bottom: 1px; }
  .hcard__area, .hcard__line, .hcard--airbnb .hcard__line { display: inline; font-size: 17px; line-height: 1.3; }
  .hcard__area { color: var(--gold-hi); }
  .hcard .stars { color: var(--gold-hi); }
  .hcard__area::after { content: ' · '; font-style: normal; color: var(--gold); white-space: pre; }
  .hcard__line { color: rgba(251, 248, 240, .9); }
  .hcard__go { right: 2px; top: 50%; bottom: auto; margin-top: -6px; color: var(--gold); }

  /* 6 · the map: a square sheet that shows the town larger */
  .mapsec { display: flex; flex-direction: column; justify-content: center; }
  .map__title { font-size: clamp(42px, 12.4vw, 54px); }
  .map__chips { margin: 8px 0 14px; gap: 6px; flex-wrap: nowrap; }
  .chip { flex: 1 1 auto; justify-content: center; font-size: 15px; padding: 6px 10px; white-space: nowrap; }
  .map__wrap { width: min(100%, 560px); padding: 5px; }
  .map__sheet { aspect-ratio: 1 / 1; outline-width: 5px; }
  .map__zoom { display: none; }
  .lab { font-size: 15px; padding: 1px 5px; }
  .lab b { font-size: 15px; }
  .pincard { margin-top: 12px; min-height: 0; padding: 0; width: min(100%, 560px); }
  .pincard:not(.is-open)::before, .pincard:not(.is-open)::after { content: none; }
  .pincard.is-open { margin-top: 16px; padding: 14px 18px; }
  .pc__hint { font-size: 16px; line-height: 1.35; color: rgba(251, 248, 240, .82); }
  .pc__key { display: none; }
  .pc__n { font-size: 24px; }
  .map__foot { display: flex; flex-direction: column; margin-top: 14px; width: min(100%, 560px); }
  .map__list { margin-top: 0; padding: 10px 12px; }

  /* 7 · FAQ: the title with the two of us beside it, then the questions */
  .faq { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
  .faq__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; justify-self: stretch; text-align: left; }
  .faq__title { font-size: clamp(44px, 13vw, 56px); }
  .faq__title .flo { margin-left: .5em; }
  .faq__pol { flex: none; width: clamp(112px, 31vw, 150px); margin: 2px 8px 6px 0; }
  .faq__list { width: min(100%, 560px); }
  .qa summary { min-height: 48px; padding: 6px 0; }
  .qa__q { font-size: 19px; }
  .qa__in { padding: 0 0 12px; }
  .qa__a p { font-size: 18px; }

  /* 8 · RSVP: the crest and the title centred like a reply card, then the form */
  .rsvp { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
  .rsvp__side { text-align: center; }
  .rsvp__crest { width: 78px; margin: 0 auto; }
  .rsvp__script { font-size: clamp(44px, 12.6vw, 54px); white-space: nowrap; }
  .rsvp__script .ln { margin-left: auto; margin-right: auto; }
  .rsvp__script .flo { display: none; }
  .rsvp__caps { font-size: 19px; margin-top: 0; }
  .rsvp__contact { font-size: 17px; margin-top: 8px; }
  .rsvp__card { width: min(100%, 560px); align-self: center; }
  .rsvp__form, .yes { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .fld--half { grid-column: 1 / -1; }
  .fld input[type="text"], .fld input[type="email"], .fld input[type="tel"], .fld textarea { min-height: 46px; padding: 8px 12px; font-size: 18px; }
  .fld textarea { height: 46px; }
  .att__opts, .evs__opts { flex-direction: column; gap: 0; }
  .choice--att .choice__t { font-size: 23px; }
  .rsvp__card { display: block; }
  .rsvp__send .btn { width: 100%; }
  .rsvp__polwrap { top: 0; width: clamp(124px, 36vw, 176px); margin: 24px 10px 6px auto; }
  .done__t { font-size: clamp(44px, 12.6vw, 60px); }

  /* 9 · Newport Best: title, the kinds of places, the list; the photographs close the page */
  /* the last screen: extra room at the foot so the sign-off clears the ↑ ↓ arrows when the page can't scroll further */
  .town { display: flex; flex-direction: column; align-items: stretch; padding-bottom: calc(var(--fi) + var(--pad-b) + 34px + env(safe-area-inset-bottom, 0px)); }
  .town__main { display: contents; }
  .town__head, .town__body, .town__btn { position: relative; z-index: 2; }
  .town__head { order: 1; display: block; }
  .town__body { order: 2; display: block; width: min(100%, 560px); margin-top: 14px; }
  .town__btn { order: 4; }
  .town__side { order: 5; }
  .foot { order: 6; }
  .town__title { font-size: clamp(46px, 13.6vw, 60px); }
  .town__lead { font-size: 18px; padding: 6px 0 0; }
  .tabs { display: none; }
  /* one kind of place at a time, stepped through with the two arrows; seven pips show where you are */
  .cat { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-rows: 54px 16px; align-items: center; border-top: 1px solid rgba(221, 195, 122, .5); border-bottom: 1px solid rgba(221, 195, 122, .5); padding-bottom: 8px; }
  .cat__name { text-align: center; font-size: 23px; font-style: italic; line-height: 1; white-space: nowrap; overflow: hidden; color: var(--gold-hi); }
  .cat__step { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--gold); }
  .cat__step span { width: 11px; height: 11px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateX(3px) rotate(45deg); }
  .cat__step--next span { transform: translateX(-3px) rotate(-135deg); }
  .cat__pips { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 9px; height: 16px; }
  .cat__pips i { width: 5px; height: 5px; transform: rotate(45deg); box-shadow: inset 0 0 0 1px rgba(221, 195, 122, .8); transition: background-color .25s; }
  .cat__pips i.is-on { background: var(--gold); }
  .panels { display: block; height: 462px; overflow-y: auto; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .panels::-webkit-scrollbar { display: none; }
  .panels.has-more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 54px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 54px), transparent); }
  .panel.is-off { display: none; }
  .places { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .places li { padding-bottom: 0; }
  .place { min-height: 46px; padding: 8px 0 9px; justify-content: center; }
  .place__n { min-height: 0; font-size: 20px; }
  .place__l { font-size: 16.5px; margin-top: 2px; }
  .town__btn { margin-top: 18px; width: min(100%, 560px); }
  .town__side { margin-top: 30px; padding: 0 4px 30px 18px; width: min(100%, 520px); align-self: center; }
  .show__frame { aspect-ratio: 4 / 3; }
  .town__pol { left: -6px; bottom: -6px; width: clamp(112px, 31vw, 150px); }
  .foot { margin-top: 22px; }
  .foot p { letter-spacing: .08em; }
  .foot__br { display: inline; }
  .foot p > span { display: none; }
}
/* short screens (an iPhone with Safari's bars showing, an SE): the card stays tucked into its envelope so both can be larger */
@media (max-width: 820px) and (max-height: 760px) {
  .open__stage { --cb: calc(var(--eh) * .12); --cw: min(76vw, 320px, calc((100svh - var(--bar) - 2 * var(--fi) - 2 * var(--pad-t)) / 2.02)); }
}
/* the smallest phones */
@media (max-width: 380px) {
  :root { --pad-x: 18px; }
  .day { column-gap: 13px; }
}
@media (max-width: 340px) {
  .menu__home { width: 38px; }
  .menu__home img { width: 34px; }
  .menu__links a { font-size: 15px; min-width: 34px; padding: 0 1px; }
  .std__cap { letter-spacing: .12em; }
  .day__title { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .show__frame img { transition: none; transform: none; }
}
