/* last.css: small-screen and reduced-motion overrides. Loaded LAST so they win. */
@media (max-width:360px){.music{width:44px;height:44px}.num{font-size:34px}.unit{min-width:46px}.count{gap:3px}.card{padding:56px 22px 52px}.date .day{font-size:50px}.date .side{letter-spacing:.12em;font-size:14px}.btn{padding:12px 18px;letter-spacing:.12em}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}.hm.found{opacity:.35}.pk-dog{transform:none}.pk-clip{clip-path:inset(-20% 0 0 0)}}

/* ---------- compact cards on phones (10 Nov 2026) ----------
   Danny: the cards were very large and wasted their space. Less padding inside the frame, smaller headings and
   ornaments, tighter lists. Body text stays at 17px so guests of any age can read it. Wording is untouched. */
/* (since gw17 the block applies on every screen; laptops get a few larger sizes just below it) */
@media all{
  .card{padding:32px 18px 26px;font-size:17px;line-height:1.5}
  .rule{inset:7px}
  h2.script{font-size:clamp(31px,9.4vw,42px);line-height:1.2;margin:0}
  .pearls{margin:0 auto 10px;width:min(180px,60%)}
  .medal{width:38px;margin-bottom:2px}
  .card p{margin-bottom:9px}
  .caps{font-size:12.5px}
  .lede{font-size:18.5px;margin-bottom:6px}
  .small{font-size:15.5px}
  .btn{min-height:44px;padding:9px 22px}
  .btnrow{margin-top:10px;gap:8px}
  .info p,.info li{font-size:17px}
  .info h3{margin:14px 0 3px;font-size:14px}
  .info li{padding:7px 0}
  .info li .meta{font-size:15.5px}
  .feature{padding:13px 14px 5px;margin:4px 0 8px}
  /* the invitation */
  .card.hero{padding:30px 18px 20px}
  .hero .window{width:76px}
  .hero .request,.hero .venue-line{letter-spacing:.13em;max-width:none}
  .hero .names{width:236px}
  .hero .spray{width:168px}
  #st-travel .info li{font-size:16.5px;gap:0 8px}
  #st-travel .info li .meta{font-size:15px}
  /* countdown */
  .count{margin:4px 0 2px}
  /* order of the day */
  .day-list{margin-top:10px}
  .day-list li{padding-bottom:13px}
  .day-list b{font-size:20px}
  .day-list span{font-size:16px;line-height:1.4}
  /* the venue: a smaller picture, the sign hangs on a shorter cord */
  .manor{width:min(236px,76%);margin:4px auto 10px}
  #st-venue .card > p.small{margin-top:40px!important;padding:11px 18px 9px}
  /* getting there: the four taxi cards stand two by two */
  #st-travel .info .tr-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px;clear:both}
  #st-travel .info .tr-cards li{margin:0;padding:9px 6px 2px;display:block}
  #st-travel .info .tr-cards li b{font-size:14.5px;letter-spacing:.05em}
  #st-travel .info .tr-cards li a{font-size:16.5px;padding:0 4px;letter-spacing:.02em}
  #st-travel .tr-post{display:none}
  /* where to stay: the key tags hang closer together */
  #st-stay .info ul{padding-top:30px}
  #st-stay .info li{margin-bottom:3px;padding-top:0;padding-bottom:0;line-height:1.3}
  /* dress code */
  #st-dress .swatches{margin:8px 0 2px}
  #st-dress .sw i.has-bow{width:80px;height:72px}
  /* gifts */
  .gift-ways{margin-top:6px;gap:8px}
  .gift-ways span{padding:8px 14px}
  .bank{margin-top:12px;padding:10px 14px;gap:3px}
  /* rsvp */
  form{gap:11px;margin-top:10px}
  .f textarea{min-height:58px}
  .choice span{min-height:48px;font-size:18px}
  #rsvp.card{padding-bottom:56px}
  /* questions: the boards hang closer together */
  #st-qa details{margin-bottom:15px}
  #st-qa summary{font-size:18.5px}
  #st-qa details .a{font-size:17px;padding:11px 14px 12px}
  /* the last card */
  .closing .sign{font-size:clamp(33px,9.8vw,42px);line-height:1.2;margin-top:4px}
  #finSeal{width:70px;margin-top:8px}
  .pk{width:min(168px,48%);margin-top:8px}
}

/* laptops and tablets: the same compact cards, a little larger (10 Nov 2026) */
@media (min-width:640px){
  .card{padding:40px 40px 32px;font-size:18px}
  .rule{inset:9px}
  h2.script{font-size:46px}
  .card.hero{padding:36px 40px 24px}
  .hero .window{width:90px}
  .hero .names{width:270px}
  .hero .spray{width:200px}
  .info p,.info li,#st-travel .info li{font-size:18px}
  .manor{width:270px}
  .pk{width:190px}
  #st-qa summary{font-size:19.5px}
}

/* ---------- the garden objects are built into the corner of their cards (10 Nov 2026) ----------
   Danny: the pictures standing on top of the cards took up too much room. Each object is now a small picture set
   on the top corner of its own card, over the frame, on alternate sides. It is still the same .st-art element, so
   everything that lives on it (the sundial's shadow, the lantern's glow, the hidden Pumpkins) comes with it.
   --ch: the tallest it may be. Its height is min(--ch, 122px / ratio); 56% of that stands above the card's edge. */
.station:not(#st-invitation):not(#st-closing) > .st-art{--ch:112px;--cw:156px;position:absolute;z-index:7;margin:0;max-width:none;
  width:min(var(--cw), calc(var(--ch) * (var(--ar, 1))));right:0;left:auto;
  top:calc(-.56 * min(var(--ch), var(--cw) / (var(--ar, 1))))}
.station:nth-child(even):not(#st-invitation):not(#st-closing) > .st-art{left:0;right:auto}
/* the soft ivory wash behind each one stays, so the part above the card reads against the evening sky */
.station:not(#st-invitation):not(#st-closing) > .st-art::after{inset:-8% -10% 30%}
.station:not(#st-closing) > .st-art > img{transform:none!important}
@media (min-width:640px){.station:not(#st-invitation):not(#st-closing) > .st-art{--ch:156px;--cw:210px;right:-8px}
  .station:nth-child(even):not(#st-invitation):not(#st-closing) > .st-art{left:-8px}}
/* small pictures need a little more colour to read */
.station:not(#st-invitation):not(#st-closing) > .st-art > img{filter:saturate(1.3) contrast(1.1) drop-shadow(0 4px 6px rgba(27,42,74,.16))}
/* each one fades out at its foot, so no post or painted paper ends in a hard line on the card */
.station:not(#st-invitation):not(#st-closing) > .st-art > img, #st-gifts > .st-art img{-webkit-mask-image:linear-gradient(#000 70%, transparent 97%);mask-image:linear-gradient(#000 70%, transparent 97%)}
/* Getting there: the signpost is the corner picture; the fold-out map that stood above the card is put away */
#st-travel .tr-map{display:none}
/* the invitation: no plinth under the card. Its slot stays, over the hydrangea spray at the foot of the card,
   so the first hidden Pumpkin still has her hydrangeas to peek out from. */
#st-invitation > .st-art{position:absolute;order:0;left:50%;bottom:16px;width:200px;height:96px;margin:0 0 0 -100px;padding:0;overflow:visible;z-index:7;
  -webkit-mask:none;mask:none;aspect-ratio:auto;pointer-events:none}
#st-invitation > .st-art > img, #st-invitation > .st-art::before{display:none!important}
#st-invitation > .st-art .mg-pk--peek{left:-9%;bottom:4%;width:54px}
/* the Pumpkins on the small corner pictures stay big enough to see and tap */
#st-day > .st-art .pk-spot{left:40%;top:6%;width:48%;height:66%}
#st-qa > .st-art .mg-pk--at{left:-24px;bottom:-10px;width:48px}
#st-day > .st-art .mg-pk--at{left:-27px;bottom:-8px;width:54px}

/* ---------- the invitation, tighter still (10 Nov 2026, gw18) ----------
   Danny: still spread about. The names stand on one line across the card (index.html, the .names drawing), the
   opening label is one line, and the lines of capitals sit closer and use the card's width. */
.card.hero{padding-top:26px}
#st-invitation .hero > .caps{max-width:none;white-space:nowrap}
.hero .window{width:70px;margin:6px auto 0}
.hero .names{width:min(100%, 330px);margin:2px auto 0}
.hero .request,.hero .venue-line{font-size:13px;line-height:1.55;letter-spacing:.12em;text-wrap:balance}
.hero .request{margin:2px auto 6px}
.hero .date{margin:4px auto}
.hero .venue-line{margin-top:6px}
.hero .spray{width:150px;margin-top:4px}
@media (min-width:640px){
  .hero .window{width:84px}
  .hero .names{width:420px}
  .hero .request,.hero .venue-line{font-size:14px}
  .hero .spray{width:190px}
}
/* phones: the music button and the Pumpkin locket sit right in the bottom corners, over the card's frame, so they
   never cover the words (they used to sit on the first and last letters of a line) */
@media (max-width:639px){
  .music{right:max(3px, env(safe-area-inset-right,0px));bottom:max(10px, env(safe-area-inset-bottom,0px));width:42px;height:42px}
  .mg-locket{left:max(1px, env(safe-area-inset-left,0px));bottom:max(8px, env(safe-area-inset-bottom,0px));scale:.78;transform-origin:0 100%}
}

/* the choice under the doors: a solid navy button, so nobody misses it (Danny, 10 Nov 2026) */
.intro .plain{background:var(--navy);color:var(--white);font-size:14.5px;padding:8px 22px;min-height:48px;margin-top:2px;
  box-shadow:inset 0 0 0 3px var(--navy), inset 0 0 0 4px var(--silver), 0 8px 18px -8px rgba(27,42,74,.6)}
@media (hover:hover){.intro .plain:hover{background:#26385E;box-shadow:inset 0 0 0 3px #26385E, inset 0 0 0 4px var(--silver), 0 8px 18px -8px rgba(27,42,74,.6)}}
.intro .plain:focus-visible{outline:3px solid var(--dusty);outline-offset:3px}

/* ---------- the names in their arch (10 Nov 2026, gw19) ----------
   The stained-glass window is gone from the invitation. In its place the names stand top and bottom inside a
   pointed arch drawn in fine gold line (the same shape as the old window and the garden doors), with the little
   hydrangea roundel at its head. The lettering is plain text in a box with room all round, so no tail is cut. */
.name-arch{position:relative;width:min(248px, 82%);margin:8px auto 10px;padding:46px 0 14px}
.na-frame{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 8px 14px rgba(111,143,180,.22))}
.na-medal{position:absolute;left:50%;top:18px;width:30px;height:30px;margin-left:-15px;opacity:.95}
.hn{position:relative;margin:0;outline:none;font-family:var(--script);font-weight:400;color:#8C6421;font-size:clamp(50px, 15.5vw, 62px);line-height:1.12;
  padding:.12em 0 .16em;overflow:visible;-webkit-text-stroke:.7px #8C6421;text-shadow:0 1px 0 rgba(255,255,255,.7)}
.hn .amp{-webkit-text-stroke:0}
.hn .nm{display:block;padding:0 .35em;overflow:visible}
.hn .amp{color:var(--dusty);font-size:.6em;line-height:1;padding:.05em 0}
.na-pearls{position:relative;margin:0 auto;width:120px}
@media (min-width:640px){.name-arch{width:270px;padding-top:50px}.hn{font-size:66px}}

/* ---------- flower corner sprays (15 Nov 2026) ----------
   Danny: garden objects (sundial, bench...) on the corners made no sense. Each card now has a watercolour flower
   spray made with Codex (art/garden/corner-build.py), pinned to the card's top corner: its cluster sits over the
   corner roundel and its two trails lie along the middle of the 18px stained-glass border (9px in), so they never
   reach the words. --ax/--ay: where the trails cross, as a fraction of the picture. Cards on the right get it
   mirrored. The old garden-object pictures were deleted on 15 Nov 2026 (they are in git history). */
.station[data-art="corner-countdown"]{--ar:629/640;--ax:.219;--ay:.252}
.station[data-art="corner-day"]{--ar:640/627;--ax:.232;--ay:.253}
.station[data-art="corner-venue"]{--ar:640/635;--ax:.190;--ay:.229}
.station[data-art="corner-travel"]{--ar:640/635;--ax:.209;--ay:.252}
.station[data-art="corner-stay"]{--ar:637/640;--ax:.198;--ay:.234}
.station[data-art="corner-dress"]{--ar:640/627;--ax:.197;--ay:.228}
.station[data-art="corner-gifts"]{--ar:640/639;--ax:.220;--ay:.267}
.station[data-art="corner-rsvp"]{--ar:640/633;--ax:.215;--ay:.235}
.station[data-art="corner-qa"]{--ar:640/630;--ax:.153;--ay:.220}
.station[data-art^="corner-"]:not(#st-invitation):not(#st-closing){--corner-w:156px;--corner-in:9px}
@media (min-width:640px){.station[data-art^="corner-"]:not(#st-invitation):not(#st-closing){--corner-w:216px;--corner-in:12px}}
.station[data-art^="corner-"]:not(#st-invitation):not(#st-closing) > .st-art{width:var(--corner-w);max-width:none;height:auto;aspect-ratio:var(--ar);
  top:calc(var(--corner-in) - var(--ay) * var(--corner-w) / (var(--ar)));left:auto;right:calc(var(--corner-in) - var(--ax) * var(--corner-w))}
.station[data-art^="corner-"]:nth-child(even):not(#st-invitation):not(#st-closing) > .st-art{right:auto;left:calc(var(--corner-in) - var(--ax) * var(--corner-w))}
.station[data-art^="corner-"]:not(#st-invitation):not(#st-closing) > .st-art::after{display:none}
.station[data-art^="corner-"]:not(#st-invitation):not(#st-closing) > .st-art > img{-webkit-mask-image:none;mask-image:none;
  filter:saturate(1.08) drop-shadow(0 2px 3px rgba(27,42,74,.14))}
.station[data-art^="corner-"]:nth-child(odd):not(#st-invitation):not(#st-closing) > .st-art > img{transform:scaleX(-1)!important}
/* the two Pumpkins that lived on the bench and the wishing tree: one asleep on the garland, one perched on it */
/* each Pumpkin sits inside her tap area (.pk-spot), so the spot is sized to her and she fills it */
#st-day[data-art^="corner-"] > .st-art .pk-spot{left:18%;top:-6%;width:40%;height:36%}
#st-qa[data-art^="corner-"] > .st-art .pk-spot{left:38%;top:-16%;width:34%;height:42%}
#st-day[data-art^="corner-"] > .st-art .mg-pk, #st-qa[data-art^="corner-"] > .st-art .mg-pk{left:0;top:0;bottom:auto;width:100%}
/* Pumpkins 4 and 2 (15 Nov 2026): the fountain and the birdbath are gone from the path, so she peeks out of the
   flowers at Getting there and tugs at a ribbon by the bow at Gifts, each sitting on her card's top garland */
#st-travel[data-art^="corner-"] > .st-art .mg-pk--round{left:24%;right:auto;top:-10%;bottom:auto;width:34%;z-index:4}
#st-gifts[data-art^="corner-"] > .st-art .mg-pk--play{left:40%;right:auto;top:-8%;bottom:auto;width:42%;z-index:4}
.mg-pk--play .mg-pk-a{transform-origin:50% 90%}
.mg-live.mg-pk--play .mg-pk-a{animation:pk-play-tug 6.5s ease-in-out infinite}
.mg-yay.mg-pk--play .mg-pk-a{animation:pk-hop 1.5s ease-out both}
@keyframes pk-play-tug{0%,58%,100%{transform:rotate(0)}66%{transform:rotate(-4deg) translateX(-2%)}72%{transform:rotate(3deg)}
  78%{transform:rotate(-2.5deg) translateX(-1%)}86%{transform:rotate(0)}}

/* ---------- flowers on all four corners (15 Nov 2026) ----------
   Danny: the flowers on every corner. core.js addCorners() lays three mirrored copies of the card's spray on its
   frame (.cx); the card's own .st-art keeps its top corner and the Pumpkins. The invitation and the closing card
   borrow a spray on all four corners (data-corners). Placed like the main one: the cluster on the corner roundel,
   the trails along the middle of the band. --k-*: the picture's shape and trail crossing (see corner-build.py). */
.station[data-art^="corner-"]{--k-ar:var(--ar);--k-ax:var(--ax);--k-ay:var(--ay)}
#st-invitation{--k-ar:629/640;--k-ax:.219;--k-ay:.252}
#st-closing{--k-ar:640/630;--k-ax:.153;--k-ay:.220}
.paper > .cx{--w:156px;--in:-9px;position:absolute;z-index:7;width:var(--w);max-width:none;height:auto;margin:0;pointer-events:none;
  filter:saturate(1.08) drop-shadow(0 2px 3px rgba(27,42,74,.14))}
@media (min-width:640px){.paper > .cx{--w:216px;--in:-12px}}
.paper > .cx--tl, .paper > .cx--bl{left:calc(var(--in) - var(--k-ax) * var(--w))}
.paper > .cx--tr, .paper > .cx--br{right:calc(var(--in) - var(--k-ax) * var(--w))}
.paper > .cx--tl, .paper > .cx--tr, .paper > .cx--top{top:calc(var(--in) - var(--k-ay) * var(--w) / (var(--k-ar)))}
.paper > .cx--bl, .paper > .cx--br{bottom:calc(var(--in) - var(--k-ay) * var(--w) / (var(--k-ar)))}
.paper > .cx--tr{transform:scaleX(-1)}
.paper > .cx--bl{transform:scaleY(-1)}
.paper > .cx--br{transform:scale(-1,-1)}
/* the extra top corner faces the card's own spray: on the right when the spray is on the left, and the other way */
.station:nth-child(even) > .paper > .cx--top{right:calc(var(--in) - var(--k-ax) * var(--w));transform:scaleX(-1)}
.station:nth-child(odd) > .paper > .cx--top{left:calc(var(--in) - var(--k-ax) * var(--w))}

/* ---------- the names in a flower wreath (15 Nov 2026) ----------
   Danny: make the names better and epic, a circle of flowers round them. A Codex watercolour wreath
   (img/garden/name-wreath.webp, art/garden/raw/name-wreath.png; option b is name-wreath-b.png) with the names in
   Cintarini stacked in its clear middle, nudged up a little because the bow makes the ring heavier at the foot. */
.name-wreath{position:relative;left:50%;transform:translateX(-50%);width:min(340px, calc(100% + 28px));aspect-ratio:1;margin:2px 0 8px;
  display:grid;place-items:center}
.name-wreath .nw-wreath{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;pointer-events:none;
  filter:saturate(1.06) drop-shadow(0 6px 10px rgba(111,143,180,.18))}
/* the names sit inside the clear middle (sizes allow for size-adjust:80% on Cintarini in fonts.css) */
.name-wreath .hn{position:relative;margin:0 0 8%;padding:0;font-family:var(--script);font-weight:400;color:#8C6421;
  font-size:clamp(37px, 11.8vw, 48px);line-height:.98;-webkit-text-stroke:.35px #8C6421;text-shadow:0 1px 0 rgba(255,255,255,.8);text-align:center}
.name-wreath .hn .nm{display:block;padding:.04em .2em;overflow:visible}
.name-wreath .hn .amp{color:var(--dusty);font-size:.78em;line-height:1;padding:.12em 0 .02em;-webkit-text-stroke:0}
@media (min-width:640px){.name-wreath{width:370px}.name-wreath .hn{font-size:58px}}
