/* Dan & Grace: shared styles. Palette L8, type L9. Phone first. */
:root {
  --page: #F5EEE2;
  --env: #ECE5D2;
  --ink: #3A2A1D;
  --muted: #76664F;
  --burgundy: #721812;   /* Dan & Grace's colour (R4 C5): names, buttons, accents. Replaces rust and burnt orange */
  --olive: #5C6B1E;
  --olive-deep: #4F5B1E;
  --olive-env: #5F6D27;
  --wax: #721812;
  --cream-on-olive: #F6EEDB;
  --line: #D8C8AE;
  --card: #FBF7EE;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --body: "Work Sans", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--page); }
/* R19g: pulling down past the closed envelope must not reload the page (which redrew every painting) */
html, body { overscroll-behavior-y: none; }
body { margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- section pattern: eyebrow + heading (video-11.6) ---------- */
section.block { padding-block: 76px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; justify-items: center; text-align: center; gap: 16px; }
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); line-height: 1.6; max-width: 30ch; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 9.4vw, 48px); line-height: 1.05; margin: 0; letter-spacing: 0.04em; font-variant-caps: small-caps; text-wrap: balance; }
.lede { margin: 0; max-width: 36ch; color: var(--muted); font-size: 16px; }
.footnote { font-size: 15px; color: var(--muted); max-width: 44ch; margin: 0; }
.tbd { font-style: italic; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font: 500 13px/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; border-radius: 999px; padding: 14px 22px; cursor: pointer; border: 0; }
.btn.solid { color: #FBF3E3; background: var(--burgundy); }  
.btn.olive { color: #FBF3E3; background: var(--olive-deep); }
.btn.ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.btn:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
/* thin outlined, stacked buttons with a small icon (video-12.6) */
.outline-stack { display: grid; gap: 12px; width: min(100%, 360px); }
.btn-line { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 18px; border: 1px solid #B9A88C; border-radius: 2px; background: transparent; color: var(--ink); font: 500 13px/1.2 var(--body); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn-line svg { width: 18px; height: 18px; flex: none; stroke: var(--olive); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-line:hover { background: rgba(255, 252, 245, 0.7); }
.btn-line:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

/* ---------- the opening stage (envelope → hero) ---------- */
/* lvh: the largest viewport height, which doesn't change as Safari's address bar grows and shrinks (D5) */
#stage { position: relative; height: 559lvh; }   /* R19p: the page after the card gets twice the scroll (the card's share is unchanged) */
.pin { position: sticky; top: 0; height: 100lvh; overflow-x: clip; overflow-y: visible; background: var(--env); }
.pin > .page-wash { position: absolute; inset: 0; background: var(--page); opacity: var(--wash, 0); }
.frame { position: absolute; top: 0; left: 50%; height: 100lvh; width: calc(100lvh * 9 / 16); transform: translateX(-50%); }
.frame canvas, .frame img.poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame canvas, .frame img.poster { transform-origin: 50% 55%; transform: translateY(-6.5%) scale(1.15); }   /* R19s: sealed view, seal near the visual centre (opening.js eases it out) */
.frame img.poster { object-fit: cover; }
.frame .edge { position: absolute; inset: 0; pointer-events: none; box-shadow: 0 0 60px 30px var(--env) inset; opacity: calc(1 - var(--wash, 0)); }
/* D2: the card's paper gives way to the flat cream page (L1: no texture, no vignette) */
.frame .card-wash { position: absolute; inset: 0; background: var(--page); opacity: var(--wash, 0); }

/* live text riding on the card; sized in card-height units so it scales with the card */
.cardtext { position: absolute; left: var(--x, 8%); top: var(--y, 0%); width: var(--w, 84%); height: var(--h, 60%); container-type: size; opacity: var(--ink-in, 0); pointer-events: none; }
/* --k (0..1) blends the card's printing sizes into the approved hero sizes from the v1 page (L1, D2) */
.cardtext { --k: 0; line-height: normal; }  /* same as the baked card printing */
.cardtext .inner { position: absolute; left: 0; right: 0; top: calc(26cqh * (1 - var(--k)) + var(--hero-top, 26cqh) * var(--k)); display: grid; justify-items: center; text-align: center; gap: calc(0.6cqh * (1 - var(--k)) + 6px * var(--k)); }
.cardtext .sprig { width: 16cqh; height: auto; color: var(--olive); margin-bottom: 0.8cqh; visibility: hidden; }   /* Nov 19 (Dan): no leaf above the names (also painted out of the opening frames); keeps its space so the live text lines up with the card */
.cardtext .pre { font-family: var(--display); font-size: calc(1.55cqh * (1 - var(--k)) + clamp(12px, 3.2vw, 15px) * var(--k)); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); line-height: calc(1.7 + 0.1 * var(--k)); }
.cardtext .names { font-family: var(--script); color: var(--burgundy); line-height: calc(0.92 + 0.03 * var(--k)); display: grid; justify-items: center; margin: 0; font-weight: 400; font-size: inherit; }  /* margin 0: matches the baked card printing */
.cardtext .names span { font-size: calc(8.4cqh * (1 - var(--k)) + clamp(64px, 18vw, 112px) * var(--k)); }
.cardtext .names .amp { font-size: calc(4.6cqh * (1 - var(--k)) + clamp(44px, 12vw, 64px) * var(--k)); color: var(--olive); margin: calc(0.3cqh * (1 - var(--k)) + 2px * var(--k)) 0 calc(0.6cqh * (1 - var(--k)) + 6px * var(--k)); }
.cardtext .rule { display: flex; align-items: center; gap: calc(1.2cqh * (1 - var(--k)) + 10px * var(--k)); color: var(--olive); margin: calc(1.4cqh * (1 - var(--k)) + 10px * var(--k)) 0 calc(0.4cqh * (1 - var(--k)) + 4px * var(--k)); }
.cardtext .rule i { display: block; width: calc(7cqh * (1 - var(--k)) + 64px * var(--k)); height: 1px; background: currentColor; opacity: 0.6; }
.cardtext .rule b { width: calc(0.6cqh * (1 - var(--k)) + 5px * var(--k)); height: calc(0.6cqh * (1 - var(--k)) + 5px * var(--k)); border-radius: 50%; background: currentColor; }
.cardtext .date { font-family: var(--display); font-weight: 500; font-size: calc(2.05cqh * (1 - var(--k)) + clamp(16px, 4.4vw, 20px) * var(--k)); letter-spacing: calc(0.24em + 0.04em * var(--k)); text-transform: uppercase; }
.cardtext .place { font-family: var(--display); font-style: italic; font-size: calc(2.15cqh * (1 - var(--k)) + clamp(17px, 4.6vw, 21px) * var(--k)); color: var(--muted); }
.sprig .ln { fill: #F4EEE2; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.sprig .ln-open, .corner .ln-open { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.sprig .dt, .corner .dt { fill: none; stroke: currentColor; stroke-width: .8; }
.sprig .sh, .corner .sh { fill: none; stroke: currentColor; stroke-width: .6; opacity: .7; }
.corner .ln { fill: var(--page); stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }

/* L1: the drape runs the full page width on desktop, 128% of the screen on phones */
.drape { position: absolute; top: 0; left: 50%; width: max(100%, 128vw); max-width: 1500px; aspect-ratio: 1536 / 650; transform: translateX(-50%); pointer-events: none; }
/* desktop: capped so the hanging strands stop above the names */
@media (min-width: 760px) { .drape { width: min(100%, 820px); max-width: none; } }
.drape .ly { position: absolute; inset: 0; opacity: var(--o, 0); transform: translateY(var(--dy, -70%)) rotate(var(--rot, 0deg)); transform-origin: var(--ox, 50%) var(--oy, 0%); will-change: transform, opacity; }
.drape .ly img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform-origin: var(--ox, 50%) var(--oy, 0%); }
.drape .sw img { animation: breeze var(--sd, 7s) ease-in-out var(--sdl, 0s) infinite; }
/* C1: a light breeze. Each layer swings around where it hangs, a few pixels and about a degree, out of step with the others */
/* R11: each flower part moves on its own: small, uneven gusts rather than one steady swing */
.drape .ly img.pc.strand { --sx2: 0px; }   /* R19j: strands swing from where they hang, so they stay joined to the garland */
/* R19o: each band section carries the strands that hang from it (.bw), so the strands move with their section and stay
   joined at any size (on a big iPad they had drifted apart); each strand still swings on its own from where it hangs */
.drape .ly .bw { position: absolute; transform-origin: var(--ox) var(--oy); --sa2: calc(var(--sa) * 1.3); --sx2: calc(var(--sx) * 1.3);
  animation: gust var(--sd, 7s) ease-in-out var(--sdl, 0s) infinite; }
.drape .ly .bw > img.band { position: relative; inset: auto; width: 100%; height: auto; display: block; }
.drape .ly img.pc { transform: rotate(var(--r0, 0deg)); inset: auto; height: auto; transform-origin: var(--ox) var(--oy);
  --sa2: calc(var(--sa) * 1.3); --sx2: calc(var(--sx) * 1.3);   /* R19h/j: the flowers billow a little more than at first */
  animation: gust var(--sd, 7s) ease-in-out var(--sdl, 0s) infinite; }
@keyframes gust {
  0%, 100% { transform: rotate(calc(var(--r0, 0deg) + var(--sa2) * -0.6)) translateX(calc(var(--sx2) * -0.5)); }
  16% { transform: rotate(calc(var(--r0, 0deg) + var(--sa2) * 0.1)); }
  32% { transform: rotate(calc(var(--r0, 0deg) + var(--sa2))) translateX(var(--sx2)); }
  44% { transform: rotate(calc(var(--r0, 0deg) + var(--sa2) * 0.45)); }
  60% { transform: rotate(calc(var(--r0, 0deg) + var(--sa2) * 0.85)) translateX(calc(var(--sx2) * 0.4)); }
  80% { transform: rotate(calc(var(--r0, 0deg) + var(--sa2) * -0.3)); }
}
@keyframes breeze {
  0%, 100% { transform: rotate(calc(var(--sa, 1deg) * -1)) translateX(calc(var(--sx, 2px) * -1)); }
  35% { transform: rotate(calc(var(--sa, 1deg) * 0.6)) translateX(var(--sx, 2px)); }
  65% { transform: rotate(var(--sa, 1deg)) translateX(calc(var(--sx, 2px) * 0.4)); }
}

/* L1: venue watercolor sits just below the place line, full width on phones, and runs past the fold */
.venue { position: absolute; left: 50%; top: var(--venue-top, 70svh); width: 100vw; transform: translateX(-50%) translateY(var(--venue-y, 6%)); opacity: var(--venue-o, 0); pointer-events: none;
  -webkit-mask-image: url(../assets/brushmask.png); mask-image: url(../assets/brushmask.png); -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 0 var(--vm, 0%); mask-position: 0 var(--vm, 0%); }
.venue.done { -webkit-mask-image: none; mask-image: none; }
/* venue #4 (Nov 19): fills the full width under the names, on phone and desktop */
.venue img { width: 100%; height: auto; display: block; }

/* first screen: invitation to open */
.hint { position: absolute; left: 0; right: 0; bottom: calc(7% + env(safe-area-inset-bottom, 0px)); text-align: center; display: grid; justify-items: center; gap: 6px; opacity: var(--hint, 1); pointer-events: none; }
.hint em { font-family: var(--script); font-style: normal; font-size: 34px; color: var(--burgundy); text-shadow: 0 1px 12px rgba(250, 244, 232, 0.8); }
.hint span { font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 10px rgba(250, 244, 232, 0.9); }
.hint .chev { width: 18px; height: 18px; border-right: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); transform: rotate(-45deg); margin-top: 8px; animation: nudge 1.8s ease-in-out infinite; opacity: 0.7; }
@keyframes nudge { 0%, 100% { transform: translateY(4px) rotate(-45deg); } 50% { transform: translateY(-6px) rotate(-45deg); } }
#seal { position: absolute; left: 50%; top: var(--seal-top, 48.2%); width: min(30lvh, 53vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; background: transparent; cursor: pointer; opacity: var(--hint, 1); pointer-events: var(--seal-pe, auto); }
#seal::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(114, 24, 18, 0.35); } 70% { box-shadow: 0 0 0 22px rgba(114, 24, 18, 0); } 100% { box-shadow: 0 0 0 0 rgba(114, 24, 18, 0); } }
#seal:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.loading { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); font: 500 11px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: rgba(250, 244, 232, 0.75); padding: 7px 11px; border-radius: 999px; transition: opacity 0.6s; white-space: nowrap; }
.loading.done { opacity: 0; }
main { position: relative; padding-top: var(--venue-overflow, 0px); }

/* ---------- countdown: thin frame, eyebrow, corner flourish (video-10.8, 11.6) ---------- */
.count-frame { position: relative; width: min(100%, 520px); border: 1px solid #C9B99C; padding: 40px 14px 34px; display: grid; justify-items: center; gap: 12px; }
.count-frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201, 185, 156, 0.45); pointer-events: none; }
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin-top: 6px; }
.count div { display: grid; justify-items: center; gap: 6px; padding: 2px 4px; }
.count div + div { border-left: 1px solid #CDBFA6; }
.count b { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 10vw, 50px); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.count span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.count-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--olive); margin-top: 8px; }
.corner { position: absolute; right: -18px; bottom: -26px; width: 132px; height: auto; color: var(--olive); pointer-events: none; }

/* ---------- find your invitation ---------- */
/* R8 C16 (approved): on the cream page, with the watercolor flowers billowing above and below the form */
.find { position: relative; overflow: hidden; grid-template-columns: minmax(0, 1fr); padding-top: 0; }
.find-drape { position: relative; justify-self: start; width: 132%; margin-left: -16%; aspect-ratio: 1600 / 700; pointer-events: none; margin-bottom: -18%; }
.find-foot { position: relative; justify-self: center; width: min(260px, 64%); margin-top: 8px; pointer-events: none; }
@media (min-width: 760px) { .find-drape { width: min(1100px, 100%); margin-left: 0; justify-self: center; margin-bottom: -9%; } }
/* each piece: pen drawing first, then the watercolor, then a gentle billow around where it hangs */
.lf { position: absolute; top: 0; transform-origin: var(--ax, 50%) 0; }
.lf.jug { position: relative; width: 100%; }
.lf img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 60%); mask-image: linear-gradient(to bottom, #000 40%, transparent 60%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 0 100%; mask-position: 0 100%; }
.lf .ink { position: absolute; inset: 0 auto auto 0; }
.find.in .lf .ink { animation: reveal-down 1.7s cubic-bezier(.45,.1,.35,1) forwards; }
.find.in .lf .col { animation: reveal-down 1.9s cubic-bezier(.45,.1,.35,1) 1.2s forwards; }
.find.in .lf:not(.jug) { animation: breeze var(--sd, 7s) ease-in-out calc(3.1s + var(--sdl, 0s)) infinite; }
@keyframes reveal-down { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.find p { margin: 0; max-width: 34ch; color: var(--muted); font-size: 16px; }
.find form { display: grid; gap: 12px; width: min(100%, 380px); margin-top: 8px; text-align: left; }
.find label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: grid; gap: 6px; }
.find input { font: 400 17px/1.2 var(--body); color: var(--ink); background: #FFFDF8; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%; min-height: 48px; }
.find input:focus { outline: 2px solid var(--burgundy); outline-offset: 1px; }
.find .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.find .btn.solid { margin-top: 6px; width: 100%; }
.find .note { font-size: 15px; color: var(--burgundy); min-height: 1.5em; text-align: center; margin: 0; }
.find .fine { font-size: 15px; color: var(--muted); text-align: center; margin: 4px 0 0; }

/* ---------- welcome + my invitation (after login) ---------- */
.welcome { background: var(--card); border-block: 1px solid var(--line); }
.welcome h2 { font-variant-caps: normal; font-family: var(--script); color: var(--burgundy); font-size: clamp(46px, 13vw, 64px); letter-spacing: 0; line-height: 1.1; }
.status { width: min(100%, 460px); border: 1px solid var(--line); background: #FFFDF8; border-radius: 4px; padding: 20px 18px; display: grid; gap: 12px; text-align: left; }
.status h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.2; }
.status p { margin: 0; color: var(--muted); }
.status .people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.status .people li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #EEE4D3; padding-top: 6px; }
.status .people li > span:last-child { color: var(--muted); text-align: right; }
/* R9 (art direction PRD A3/A4): the painted road. The pen drawing (.ink) is revealed down the page by the scroll (--p),
   the watercolor (.col) follows just behind (--q). Stop text sits on the open paper beside each painted object. */
.journey-eyebrow { margin-top: 18px; }
.journey { position: relative; width: min(100%, 980px); }
.road-art { position: relative; width: min(100%, 560px); margin: 0 auto; aspect-ratio: 720 / 1080; }
.road-art > .wc { position: absolute; inset: 0; }
/* the pictures beside the road: drawn in pen when the road reaches them, then painted (paint.js, R19); each is a link */
.stops { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; width: min(100%, 560px); left: 50%; transform: translateX(-50%); pointer-events: none; }
.stop { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: calc(var(--s) * 100%); transform: translate(-50%, -18%); pointer-events: auto; }
.stop-link { display: grid; justify-items: center; gap: 2px; text-align: center; text-decoration: none; color: var(--ink); border-radius: 12px; padding: 4px; }
.stop-link:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.stop-pic { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.stop-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stop-t { font: 500 17px/1.15 var(--display); opacity: 0; transition: opacity .6s ease .5s; }
.stop-c { font-size: 15px; color: var(--ink); letter-spacing: .02em; opacity: 0; transition: opacity .6s ease .7s; }
.stop.drawn .stop-t, .stop.drawn .stop-c { opacity: 1; }
.stop-link:hover .stop-t { color: var(--burgundy); }
@media (min-width: 760px) { .stop-t { font-size: 21px; } }
/* dress code */
.dress-code { display: grid; justify-items: center; gap: 10px; width: min(100%, 900px); margin-top: 40px; text-align: center; }
.dress-code img { width: 100%; height: auto; display: block; }
.dress-code .dc-line { margin: 0; font: 500 14px/1 var(--display); letter-spacing: .32em; text-transform: uppercase; }
.dress-code .dc-text { margin: 0; max-width: 40ch; color: var(--muted); }
/* a guest who declined sees only the reply step, without the road */
.journey.plain .road-art { display: none; }
.journey.plain .stops { width: auto; left: 0; transform: none; }
.journey.plain .stop { transform: none; width: 170px; margin: 0 auto; }
.journey.plain .stops { position: static; } .journey.plain .stop { position: static; transform: none; width: 170px; margin: 0 auto; }
#looks-wrap { width: min(100%, 560px); margin-top: 10px; }
/* the outfit carousel: one couple in front, the other two looks waiting behind */
.looks { --c: inherit; display: grid; justify-items: center; gap: 12px; }
.looks-stage { position: relative; width: min(100%, 420px); height: clamp(280px, 80vw, 360px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.look { position: absolute; left: 50%; bottom: 0; display: flex; align-items: flex-end; gap: 2px; transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .55s ease, filter .55s ease; cursor: pointer; }
.look[data-pos="front"] { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; cursor: default; }
.look[data-pos="right"] { transform: translateX(2%) translateY(-6%) scale(0.62); opacity: 0.55; z-index: 1; filter: saturate(.6); }
.look[data-pos="left"] { transform: translateX(-102%) translateY(-6%) scale(0.62); opacity: 0.55; z-index: 1; filter: saturate(.6); }
.look-fig { position: relative; display: block; height: clamp(260px, 74vw, 340px); }
.look-fig img { height: 100%; width: auto; display: block; }
.look-fig .ink { position: absolute; left: 0; top: 0; }
.look-cap { margin: 0; color: var(--muted); font-size: 15px; text-align: center; max-width: 36ch; min-height: 2.9em; }
.looks-ctrl { display: flex; align-items: center; gap: 10px; }
.look-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; }
.look-dots { display: flex; gap: 2px; }
.look-dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.look-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #D3C4AA; }
.look-dot[aria-current="true"]::after { background: var(--burgundy); }
.look-btn:focus-visible, .look-dot:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .look { transition: none; } }
.pill.done { background: var(--olive-deep); color: #FBF3E3; }
.btn.small { min-height: 44px; padding: 12px 18px; font-size: 12px; }
/* C3: a small flower cluster on the card's corner, in the same breeze as the drape */
.status { position: relative; overflow: visible; }
.card-corner { display: none; position: absolute; top: -8px; right: -14px; width: clamp(96px, 30vw, 132px); height: auto; pointer-events: none; transform-origin: 90% 5%; animation: breeze 7.8s ease-in-out -2s infinite; --sa: 2deg; --sx: 3px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.linkish { background: none; border: 0; padding: 12px 6px; font: 500 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 44px; }

/* ---------- schedule arch (PRD §8.1, R1) ---------- */
.arches { display: grid; gap: 34px; justify-items: center; width: 100%; }
.arch-wrap { width: min(86vw, 420px); container-type: inline-size; }
.arch { position: relative; color: var(--cream-on-olive); background: #4F5B1E url(../assets/plaster.webp) center / cover; border-radius: 50cqi 50cqi 6px 6px; padding: 26cqi 22px 46px; text-align: center; display: grid; justify-items: center; box-shadow: 0 26px 34px -22px rgba(58, 42, 29, 0.55), 0 2px 6px rgba(58, 42, 29, 0.12);
  text-shadow: 0 1px 0 rgba(255, 248, 225, 0.2), 0 -1px 0 rgba(20, 24, 6, 0.28); }
.arch::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(246, 238, 219, 0.35); border-radius: calc(50cqi - 10px) calc(50cqi - 10px) 3px 3px; pointer-events: none; }
.arch .a-eyebrow { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.92; }
.arch .a-date { font-variant-numeric: lining-nums; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 9.6cqi, 40px); line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; margin: 6px 0 4px; }
.arch .a-place { font-family: var(--display); font-style: italic; font-size: 18px; opacity: 0.9; }
.arch ol { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; }
.arch li { display: grid; justify-items: center; gap: 4px; max-width: 30ch; }
.arch li + li::before { content: ""; display: block; width: 1px; height: 36px; background: rgba(246, 238, 219, 0.5); margin: 14px auto 12px; box-shadow: none; }
.arch .ev-time { font-variant-numeric: lining-nums; font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.9; }
.arch .ev-title { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.arch .ev-desc { font-family: var(--display); font-size: 18px; line-height: 1.35; opacity: 0.94; margin: 0; }
.arch .a-note { margin: 18px 0 0; font-family: var(--display); font-style: italic; font-size: 18px; }
.arch .a-rule { width: 1px; height: 36px; background: rgba(246, 238, 219, 0.5); margin: 14px auto 12px; }
.arch .a-day { font-variant-numeric: lining-nums; display: flex; align-items: center; gap: 12px; width: 100%; margin: 26px 0 16px; font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; }
.arch .a-day::before, .arch .a-day::after { content: ""; flex: 1; height: 1px; background: rgba(246, 238, 219, 0.4); }
.arch .a-day span { white-space: nowrap; }
.rise { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.rise.in { opacity: 1; transform: none; }

/* ---------- the venue (video-11.6, 12.6; map R2) ---------- */
.mapwrap { position: relative; width: min(100%, 760px); aspect-ratio: 1000 / 760; }
.mapwrap img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mapwrap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route { fill: none; stroke: var(--burgundy); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 2 9; }
.route-draw { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.mapwrap.drawing .route-draw { animation: reveal 2.8s cubic-bezier(.5,.1,.3,1) both; }
@keyframes reveal { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pin-dot { fill: var(--burgundy); stroke: #FBF4E4; stroke-width: 3; }
.lbl { font-family: var(--display); fill: var(--ink); }
.lbl.big { font-size: 48px; font-weight: 500; paint-order: stroke; stroke: rgba(250,244,232,.75); stroke-width: 8px; stroke-linejoin: round; }
.lbl.small { font-size: 34px; font-style: italic; fill: var(--muted); paint-order: stroke; stroke: rgba(250,244,232,.7); stroke-width: 7px; stroke-linejoin: round; }
.lbl.sea { font-size: 40px; font-style: italic; fill: #3F5A55; letter-spacing: 0.08em; }
.venue-name { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 8.4vw, 40px); letter-spacing: 0.06em; font-variant-caps: small-caps; margin: 8px 0 0; line-height: 1.1; }
.venue-sub { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--muted); margin: 0; }
.address { font-style: normal; color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.subcard { width: min(100%, 460px); border-top: 1px solid var(--line); padding-top: 26px; margin-top: 18px; display: grid; gap: 8px; justify-items: center; }
.subcard h3 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 0; line-height: 1.2; }
.subcard p { margin: 0; color: var(--muted); max-width: 40ch; }
.k { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.registry-art { display: block; }
.registry-art img { width: 130px; height: auto; display: block; }
.registry-art[href] { cursor: pointer; }
.registry-art[href]:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }

/* ---------- FAQ ---------- */
.faq { width: min(100%, 620px); text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 4px; position: relative; font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.25; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--olive); border-bottom: 1.5px solid var(--olive); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.faq .a { padding: 0 4px 18px; color: #4E3F2F; margin: 0; }

/* ---------- footer ---------- */
footer { padding-block: 40px 48px; padding-left: 16px; padding-right: 16px; text-align: center; font-family: var(--display); font-style: italic; font-size: 17px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
footer .btn { font-style: normal; }

/* ---------- RSVP page ---------- */
.rsvp-page { min-height: 100svh; display: grid; align-content: start; justify-items: center; padding: 28px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); }
.rsvp-head { display: grid; justify-items: center; gap: 6px; text-align: center; margin: 12px 0 22px; }
.rsvp-head .names { font-family: var(--script); color: var(--burgundy); font-size: 40px; line-height: 1; text-decoration: none; padding: 4px 8px; }
.rsvp-date { display: grid; justify-items: center; max-width: none; }
.rsvp-date span { white-space: nowrap; }
.back { justify-self: start; font: 500 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 12px 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 20px; }
.steps i { width: 30px; height: 3px; border-radius: 3px; background: #E2D6C1; }
.steps i.on { background: var(--olive-deep); }
.panel { width: min(100%, 520px); display: grid; gap: 16px; }
.panel h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 9vw, 42px); line-height: 1.1; margin: 0; text-align: center; font-variant-caps: small-caps; letter-spacing: 0.03em; }
.panel .intro { text-align: center; color: var(--muted); margin: 0; }
.person { background: #FFFDF8; border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 12px; }
.person .who { font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.2; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: grid; place-items: center; text-align: center; min-height: 52px; padding: 10px; border: 1px solid #CDBDA2; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1.3; background: #fff; }
.choice input:checked + label { background: var(--olive-deep); border-color: var(--olive-deep); color: #FBF3E3; }
.choice input:focus-visible + label { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-size: 15px; }
.field > span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input[type=text], .field input[type=email], .field textarea, .field input:not([type]) { font: 400 17px/1.3 var(--body); color: var(--ink); background: #fff; border: 1px solid #CDBDA2; border-radius: 6px; padding: 12px 13px; width: 100%; min-height: 48px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--burgundy); outline-offset: 1px; }
.meals { display: grid; gap: 8px; }
.meals input { position: absolute; opacity: 0; pointer-events: none; }
.meals label { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 52px; padding: 10px 14px; border: 1px solid #CDBDA2; border-radius: 6px; background: #fff; cursor: pointer; }
.meals label small { color: var(--muted); font-size: 15px; text-align: right; }
.meals input:checked + label { border-color: var(--olive-deep); box-shadow: inset 0 0 0 2px var(--olive-deep); }
.meals input:focus-visible + label { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.meals .later { background: #FBF6EC; }
.pill { display: inline-block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; background: #EFE4CF; color: #46382A; border-radius: 999px; padding: 3px 9px; }
.nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 6px; }
.nav .btn { flex: 1; }
.err { color: #8E2A17; font-size: 15px; min-height: 1.4em; margin: 0; text-align: center; }
.summary { background: #FFFDF8; border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 8px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.summary dt { color: var(--muted); font-size: 15px; }
.summary dd { margin: 0; }
.notice { background: #F3EAD7; border-left: 3px solid var(--olive-deep); padding: 12px 14px; border-radius: 2px; font-size: 15px; margin: 0; text-align: left; }
.thanks { text-align: center; display: grid; gap: 12px; justify-items: center; }
.thanks .big { font-family: var(--script); color: var(--burgundy); font-size: 54px; line-height: 1.1; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .stop-pic img { -webkit-mask-image: none !important; mask-image: none !important; }
  .lf img { -webkit-mask-image: none !important; mask-image: none !important; animation: none !important; }
  .drape .sw img, .drape img.pc, .drape .bw, .lf, .card-corner, .mapwrap.drawing .route-draw, .hint .chev, #seal::after { animation: none !important; }
  .rise { opacity: 1; transform: none; transition: none; }
}
/* headings get focus when a step changes (for screen readers); no ring for that */
.panel h1:focus, .thanks:focus { outline: none; }
.look-fig .ink { display: none; }

/* Nov 19 flow: the lake painting after the road, then white space before The Weekend */
.lake-art { width: min(100%, 560px); margin: 30px auto 0; }
.lake-art img { width: 100%; height: auto; display: block; }
.welcome { border-block: 0; background: var(--page); padding-bottom: 90px; }

.dress-code img { width: min(100%, 900px); }

/* R13: invitation card like the video: no white box, a fine double-line frame with vines, a bow and corner curls */
.status { --fr: #8E8A62; width: min(100%, 440px); background: transparent; border: 1px solid var(--fr); border-radius: 0; padding: 50px clamp(26px, 8vw, 40px) 48px; text-align: center; justify-items: center; gap: 14px; margin-top: 18px; }
.status::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--fr); pointer-events: none; }
.status h3 { font-size: clamp(25px, 7vw, 30px); padding: 0; }
.status .people { width: 100%; }
.status .people li { border-top: 1px solid rgba(142, 138, 98, 0.35); }
.status .people li:first-child { border-top: 0; }
.status .btn-line { width: 100%; margin-top: 6px; border-color: var(--fr); }
.status .btn-line.primary { color: var(--burgundy); border-color: var(--burgundy); }
.status .fr { position: absolute; pointer-events: none; overflow: visible; stroke: var(--fr); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; fill: var(--page); }
.status .fr-vine { width: 26px; height: min(52%, 220px); top: 24%; }
.status .fr-l { left: -10px; }
.status .fr-r { right: -10px; transform: scaleX(-1); }
.status .fr-bow { width: 104px; top: -17px; left: 50%; transform: translateX(-50%); }
.status .fr-scroll { width: 120px; bottom: -13px; left: 50%; transform: translateX(-50%); }
.status .fr-c { width: 26px; height: 26px; }
.status .fr-tl { top: 11px; left: 11px; }
.status .fr-tr { top: 11px; right: 11px; transform: scaleX(-1); }
.status .fr-bl { bottom: 11px; left: 11px; transform: scaleY(-1); }
.status .fr-br { bottom: 11px; right: 11px; transform: scale(-1); }

/* R13: Travel & Stay fills the page: the Tamarack painting runs edge to edge, then the details */
.block.stay { min-height: 100svh; overflow-x: clip; padding-top: 0; align-content: start; grid-template-columns: minmax(0, 1fr); }
.stay-art { width: 100vw; max-width: none; height: 62svh; object-fit: cover; object-position: 64% 60%; display: block; margin: 0 calc(50% - 50vw) 4px; justify-self: start;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 90%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 90%, transparent); }
@media (min-width: 900px) { .stay-art { height: min(82vh, 66.6vw); object-position: center 62%; } }

/* R14: countdown reads numbers, then "Countdown / to the most special day of our lives" */
.count-frame #count-h { margin: 14px 0 0; }
.count-to { margin: -6px 0 0; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--muted); }
.count { margin-top: 0; }

/* R14: menu (top right) and the short thank-you after a reply */
.menu-btn { position: fixed; z-index: 60; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid #CDBFA6; background: rgba(251, 247, 238, 0.92); display: grid; place-content: center; gap: 5px; cursor: pointer; box-shadow: 0 6px 16px -10px rgba(58, 42, 29, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.menu { position: fixed; z-index: 59; top: calc(max(12px, env(safe-area-inset-top, 0px)) + 58px); right: max(12px, env(safe-area-inset-right, 0px)); width: min(calc(100vw - 24px), 320px); max-height: calc(100svh - 90px); overflow-y: auto; background: #FBF7EE; border: 1px solid #8E8A62; outline: 1px solid #8E8A62; outline-offset: -7px; padding: 22px 24px 18px; box-shadow: 0 18px 40px -20px rgba(58, 42, 29, 0.55); text-align: left; }
.menu-sec + .menu-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(142, 138, 98, 0.35); }
.menu-k { font: 500 12px/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: flex; align-items: center; min-height: 44px; font: 400 20px/1.2 var(--display); color: var(--ink); text-decoration: none; }
.menu .menu-mine a { color: var(--burgundy); }
.menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu a:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.menu-note { margin: 6px 0 0; color: var(--muted); }
.toast { position: fixed; z-index: 61; left: 50%; top: max(16px, env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); max-width: calc(100vw - 96px); background: #FBF7EE; border: 1px solid #8E8A62; padding: 12px 20px; font: 400 18px/1.3 var(--display); color: var(--ink); text-align: center; box-shadow: 0 12px 26px -16px rgba(58, 42, 29, 0.55); transition: transform .5s ease; }
.toast.in { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast, .menu-btn span { transition: none; } }
.welcome .status[hidden] { display: none; }
/* R14: captions stay readable where they cross the road; the whole picture and caption is one link */
.stop-t, .stop-c { text-shadow: 0 0 4px var(--page), 0 0 8px var(--page), 0 0 12px var(--page); }
.stop-link { cursor: pointer; }

/* R14: sections bleed into each other instead of sitting apart */
#venue-section { padding-bottom: 28px; }
.block.dress-code { padding-top: 40px; padding-bottom: 0; position: relative; z-index: 2; overflow-x: clip; grid-template-columns: minmax(0, 1fr); }
.dress-code img { width: 100vw; max-width: 980px; justify-self: center; margin-top: 4px; }
.dress-code .dc-text { max-width: 30em; }
.block.stay { margin-top: -14svh; position: relative; z-index: 1; }
@media (min-width: 900px) { .block.stay { margin-top: -18vh; } }
/* R14: the road fades out at its end and the lake painting overlaps it, so the road runs on into the scene */
.road-art { -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent); mask-image: linear-gradient(to bottom, #000 86%, transparent); }
.lake-art { width: min(100%, 560px); margin: calc(min(100vw - 32px, 560px) * -0.57) auto 0; position: relative; z-index: 1; pointer-events: none; }
.welcome { padding-bottom: 0; }
.weekend { padding-top: 0; margin-top: calc(min(100vw - 32px, 560px) * -0.16); position: relative; z-index: 2; }

/* R16 (round 27 mockup): the venue follows the road; the name sits on a stone plaque above the lake, then a live map */
#venue-section { padding-top: 0; margin-top: -36px; padding-bottom: 40px; position: relative; }
#venue-section .plaque { position: relative; width: min(100%, 520px); margin-top: 4px; }
#venue-section .plaque img { width: 100%; height: auto; display: block; }
#venue-section .plaque h2 { position: absolute; left: 18%; right: 20%; top: 30%; bottom: 14%; display: grid; place-items: center; margin: 0; padding-top: .12em;
  font-family: var(--script); color: var(--burgundy); font-weight: 400; font-size: clamp(34px, 9.6vw, 46px); line-height: 1; letter-spacing: 0; text-transform: none; font-variant-caps: normal; }
.venue-lake { width: min(100%, 560px); height: auto; display: block; margin: -10px auto -30px; }
/* R19h: the lake runs edge to edge on phones (no space left and right); capped on wide screens */
.venue-lake { width: min(100vw, 900px); max-width: none; margin-left: calc(50% - min(50vw, 450px)); margin-right: calc(50% - min(50vw, 450px)); justify-self: center; }
.gmap { position: relative; width: min(100%, 520px); aspect-ratio: 4 / 3; border: 1px solid var(--line); background: #EDE5D6; overflow: hidden; }
.gmap iframe { width: 100%; height: 100%; border: 0; display: block; }
/* The Weekend, then straight into the dress code */
.weekend { margin-top: 0; padding-top: 56px; padding-bottom: 18px; }
.block.dress-code { width: auto; margin-top: 0; padding-top: 22px; padding-bottom: 0; position: relative; z-index: 2; }
/* the sky under the dress code drifts down into Dan's approved Tamarack drawing, enlarged to fill the width */
.block.stay { margin-top: -150px; padding-top: 0; min-height: 0; position: relative; z-index: 1; overflow-x: clip; }
.stay-art { width: min(132vw, 1100px); max-width: none; height: auto; object-fit: fill; -webkit-mask-image: none; mask-image: none; margin: 0 0 4px; justify-self: center; }
@media (min-width: 900px) { .stay-art { height: auto; } .block.stay { margin-top: -220px; } }
/* shown only if the live map cannot load: the map draws over it when it does */
.gmap-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; font-family: var(--display); font-size: 20px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.gmap iframe { position: relative; z-index: 1; }

/* R17: signing in uses the garland from the top of the page, with less space around it */
.find-garland { position: relative; top: auto; left: auto; transform: none; justify-self: center; width: max(100%, 128vw); max-width: 1100px; margin: 0 0 -9%; }
@media (min-width: 760px) { .find-garland { width: min(100%, 820px); margin-bottom: -40px; } }
.find .note:empty { min-height: 0; }
.find form { gap: 10px; }
section.block.find { padding-top: 0; }
section.block[aria-labelledby="count-h"] { padding-bottom: 40px; }

/* R18: paintings draw themselves in pen, then the colour is brushed in (public/js/paint.js); without it they simply show */
.wc { position: relative; display: block; }
.wc > img.wc-src { display: block; width: 100%; height: auto; max-width: none; margin: 0; }
.wc-live > img.wc-src { opacity: 0; }
.wc-c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#venue-section .plaque .wc { width: 100%; }
#venue-section .plaque h2 { transition: opacity .9s ease; }
#venue-section .plaque .wc-live + h2 { opacity: 0; }
.dress-code .dc-art { width: 100vw; max-width: 980px; justify-self: center; margin-top: 4px; }
.dress-code .dc-art img.wc-src { width: 100%; max-width: none; margin: 0; }
.registry-art .gift-art { width: 130px; }
.registry-art .gift-art img.wc-src { width: 100%; }
/* the garland and the road pictures (R19): each picture blooms in, pen first, then colour, from masks set by paint.js */
.gl-ink, .gl-col { position: absolute; inset: 0; }
.wcm.wc-live img { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.wcm.wc-done .gl-ink, .wcm.wc-done img.ink { display: none; }

/* Nov 19 (Dan, option 3): the hotels close to Tamarack, three framed cards side by side like the invitation card;
   each little painting is drawn, then painted (paint.js) */
.subcard-wide { width: min(100%, 600px); }
.hotels { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 2px; }
.hc { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; text-decoration: none; color: var(--ink);
  border: 1px solid #C9B795; outline: 1px solid #C9B795; outline-offset: -4px; padding: 10px 8px 12px; background: #FDF9F1; }
.hc:hover { border-color: var(--olive); outline-color: var(--olive); }
.hc:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.hc-pic { position: relative; display: block; width: 100%; aspect-ratio: 1; margin-bottom: 6px; }   /* square paintings (Dan) */
.hc-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hc-nm { font-family: var(--display); font-size: 17px; line-height: 1.15; }
.hc-nt { font-size: 15px; color: var(--muted); font-style: italic; line-height: 1.3; }
.hc-mp { display: inline-flex; align-items: center; justify-content: center; gap: 5px; margin-top: auto; padding-top: 8px; min-height: 32px; font: 500 11px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.hc-mp svg { width: 14px; height: 14px; stroke: var(--olive); fill: none; stroke-width: 1.4; }
.hc-mp-main { margin-top: 2px; min-height: 44px; padding: 0 14px; }
@media (min-width: 760px) { .hc-nm { font-size: 20px; } .hotels { gap: 14px; } }
.subcard p { text-wrap: pretty; }
/* R19o (Dan): Travel & Stay tighter, the three hotels higher */
#stay h2 { margin-top: 2px; }
#stay .hc-mp-main { min-height: 44px; margin: -6px 0 -4px; }
#stay .subcard-wide { margin-top: 6px; padding-top: 18px; }
/* Nov 19 (Dan): under the map, just the address, which opens Google Maps with directions */
.gmap-addr { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 6px 0 0; color: var(--ink); font-size: 16px; text-decoration: underline; text-decoration-color: #C9B795; text-underline-offset: 4px; }
.gmap-addr svg { width: 18px; height: 18px; flex: none; stroke: var(--olive); fill: none; stroke-width: 1.4; }
/* Nov 19 (Dan): the shuttle painting (round 29, coach 3), drawn then painted like the others */
.shuttle-art { width: min(100vw, 900px); max-width: none; margin: 4px calc(50% - min(50vw, 450px)) 6px; justify-self: center; }
/* R19q: the shuttle fills the width edge to edge (Dan: no round vignette); on wide screens its sides fade into the page */
@media (min-width: 900px) { .shuttle-art { -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); } }
/* Nov 19 (Dan): the hotel cards' paintings are drawn then painted like the big paintings (paint.js .wc) */
.hc-pic.wc > img.wc-src { position: static; inset: auto; width: 100%; height: 100%; object-fit: contain; }
/* R19r: each picture beside the road is a painting (paint.js), centred in its square, driven by the road's drawing */
.stop-pic > .stop-wc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; height: auto; }
.stop-pic > .stop-wc.tall { width: auto; height: 100%; }
.stop-pic > .stop-wc > img.wc-src { position: static; inset: auto; width: 100%; height: 100%; object-fit: fill; }
/* Nov 19 (Dan): Questions sits a little higher, without the "Good to know" line */
.block.faq-section { padding-top: 36px; }
/* Nov 19 (Dan): the registry gift; tapping it opens it (js/gift.js) and leads into the registry page */
.registry .gift-open { display: block; background: none; border: 0; padding: 6px; margin: 4px auto 0; cursor: pointer; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
.registry .gift-open:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.registry .gift-art { display: block; position: relative; }
.registry .gift-open:hover .gift-art { transform: translateY(-4px) rotate(-1deg); }
.registry .gift-art img.wc-src { width: 100%; }
.gift-hint { margin: 2px 0 0; font: 500 12px/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gift-stage { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.gift-stage .gs-wash { position: absolute; inset: 0; background: var(--page); opacity: 0; }
.gift-stage .gs-gift { position: absolute; transform-origin: 50% 85%; }
.gift-stage .gs-gift img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gift-stage .gs-lid { transform-origin: 50% 30%; }
.gift-stage .gs-inside { position: absolute; opacity: 0; display: block; }
/* the registry page: the box's inside at the top, the registry below */
.registry-page .reg-title { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 9vw, 46px); letter-spacing: .06em; font-variant-caps: small-caps; margin: 6px 0 14px; text-align: center; }
.registry-page .reg-links { display: grid; justify-items: center; gap: 12px; text-align: center; }
/* R19t: the registry page is just the words, in the middle of the page */
.registry-page { min-height: 100svh; grid-template-rows: auto 1fr; }
.registry-page .reg-body { align-self: center; display: grid; justify-items: center; gap: 4px; padding-bottom: 10vh; }
.registry-page .reg-soon { margin: 0; font-family: var(--display); font-style: italic; font-size: 22px; color: var(--muted); }
/* Nov 19 (Dan): the gift invites a tap (no draw-and-paint on this one): a soft warm glow breathes behind it, and every
   few seconds it gives a little hop and wiggle, like a present that wants to be opened; it lifts when you point at it */
.registry .gift-art { position: relative; }
.registry .gift-glow { position: absolute; left: 50%; top: 50%; width: 135%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 110, .9), rgba(255, 212, 140, .55) 40%, rgba(252, 226, 180, 0) 74%); filter: blur(6px); animation: gift-glow 3.2s ease-in-out infinite; pointer-events: none; }
.registry .gift-open:hover .gift-glow { opacity: 1; animation-play-state: paused; }
.registry .gift-open:hover .gift-art { transform: none; }
@keyframes gift-glow { 0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes gift-nudge { 0%, 78%, 100% { transform: none; } 81% { transform: translateY(-7px) rotate(-3deg); } 84% { transform: translateY(-7px) rotate(3deg); } 87% { transform: translateY(-4px) rotate(-2deg); } 90% { transform: translateY(0) rotate(1deg); } 93% { transform: none; } }

.registry .gift-open { position: relative; }
.registry .gift-glow { width: 135%; top: 52%; background: radial-gradient(closest-side, rgba(240, 206, 150, .55), rgba(240, 214, 170, .3) 40%, rgba(240, 224, 196, .08) 62%, rgba(240, 228, 200, 0) 76%); filter: blur(8px); animation: gift-glow 3.2s ease-in-out infinite; }   /* R19v: softer (Dan: too bright) */
@keyframes gift-glow { 0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(.9); } 50% { opacity: .85; transform: translate(-50%, -50%) scale(1.06); } }
.gift-ring { position: absolute; left: 50%; top: 55%; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(176, 146, 96, .4); transform: translate(-50%, -50%) scale(.55); opacity: 0; animation: gift-ring 2.6s cubic-bezier(.2,.6,.3,1) .4s infinite; pointer-events: none; }
@keyframes gift-ring { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.55); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } }
.gift-spark { position: absolute; inset: 0; pointer-events: none; }
.gift-spark i { position: absolute; width: 12px; height: 12px; background: #CFAE74; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation: gift-spark 2.4s ease-in-out infinite; }
.gift-spark i:nth-child(1) { left: 14%; top: 20%; animation-delay: .2s; }
.gift-spark i:nth-child(2) { left: 80%; top: 14%; animation-delay: 1s; width: 18px; height: 18px; }
.gift-spark i:nth-child(3) { left: 88%; top: 52%; animation-delay: 1.7s; width: 11px; height: 11px; }
.gift-spark i:nth-child(4) { left: 6%; top: 58%; animation-delay: 1.3s; }
.gift-spark i:nth-child(5) { left: 50%; top: 2%; animation-delay: .6s; width: 10px; height: 10px; }
@keyframes gift-spark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: .8; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.5) rotate(90deg); } }
.gift-hint { animation: gift-hint 2.6s ease-in-out infinite; }
@keyframes gift-hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.gift-hint { color: #6A5946; }
@media (prefers-reduced-motion: reduce) { .registry .gift-glow, .gift-ring, .gift-pic, .gift-pic .gp-lid, .gift-spark i, .gift-hint { animation: none !important; } }
/* the opening stage */
.gift-stage .gs-wrap { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
/* coming back from the registry: plain paper over the page until the gift's reverse animation takes over */
html.gift-returning body::after { content: ""; position: fixed; inset: 0; z-index: 150; background: var(--page); }

/* Nov 20 (Dan, with Grace): the painted gift again, which sits with the paintings above it; the box holds still and
   floats a little, and only the lid moves: every few seconds it lifts and settles, as if the gift wants opening */
.gift-pic { position: relative; display: block; width: 168px; aspect-ratio: 600 / 720; margin: 0 auto; animation: gp-bob 3.2s ease-in-out infinite; }
.gift-pic img, .gift-stage .gs-gift img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gift-pic .gp-lid { transform-origin: 50% 30%; animation: gp-pop 4.2s ease-in-out 1s infinite; }
@keyframes gp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes gp-pop { 0%, 70%, 100% { transform: none; } 76% { transform: translateY(-9%) rotate(-3deg); } 82% { transform: translateY(-4%) rotate(1.5deg); } 87% { transform: translateY(-6%) rotate(-1deg); } 93% { transform: none; } }
.registry .gift-open:hover .gp-lid, .registry .gift-open:focus-visible .gp-lid { animation: none; transform: translateY(-10%) rotate(-3deg); transition: transform .35s ease; }
@media (min-width: 760px) { .gift-pic { width: 196px; } }

/* Nov 20 (Dan): our story, a painted storybook just above the registry. It opens as you reach it (cover swings over
   on its spine to "The Story of Us"); open, the title page lifts a little now and then to invite a tap (js/book.js).
   3D with preserve-3d: nothing on or above the book animates opacity, filter or overflow, which would flatten it. */
.block.story { padding-top: 36px; padding-bottom: 0; gap: 14px; }
.block.registry { padding-top: 36px; }
.book-open { display: block; background: none; border: 0; padding: 8px; margin: 0 auto; cursor: pointer; border-radius: 8px; -webkit-tap-highlight-color: transparent; color: inherit; }
.book-open:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.book { --b: min(40vw, 156px); --bh: calc(var(--b) * 1.5); position: relative; display: block; width: calc(var(--b) * 2); height: var(--bh); perspective: calc(var(--b) * 9); }
.bk-body { position: absolute; left: var(--b); top: 0; width: var(--b); height: var(--bh); transform-style: preserve-3d; transform: translateX(calc(var(--b) * -.5)); transition: transform 1.7s cubic-bezier(.45,.05,.25,1); }
.bk-pages, .bk-leaf, .bk-cover, .bk-face { position: absolute; display: block; }
.bk-pages { left: 0; top: 3px; bottom: 3px; right: 3px; background: linear-gradient(90deg, rgba(120, 92, 60, .2), rgba(120, 92, 60, 0) 12%), var(--page);
  box-shadow: 1px 1px 0 #E2D4BC, 2px 2px 0 var(--page), 3px 3px 0 #E2D4BC, 4px 4px 0 #F2EADC, 5px 5px 0 #D9C9AE; }
.bk-leaf { left: 0; top: 3px; bottom: 3px; right: 3px; transform-origin: 0 50%; transform-style: preserve-3d; transform: translateZ(1px); }
.bk-cover { inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; transform: translateZ(2px); transition: transform 1.7s cubic-bezier(.45,.05,.25,1); }
.bk-face { inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bk-front { background: linear-gradient(90deg, rgba(90, 66, 40, .26), rgba(90, 66, 40, 0) 6%), url(../assets/book-cover.webp) center / cover; border-radius: 1px 3px 3px 1px; }
.bk-inside, .bk-back { transform: rotateY(180deg); }
.bk-inside { background: linear-gradient(270deg, rgba(120, 92, 60, .22), rgba(120, 92, 60, 0) 10%), url(../assets/book-endpaper.webp) center / cover; border-radius: 3px 1px 1px 3px; }
.bk-back { background: linear-gradient(270deg, rgba(120, 92, 60, .2), rgba(120, 92, 60, 0) 12%), var(--page); }
.bk-title { background: linear-gradient(90deg, rgba(120, 92, 60, .2), rgba(120, 92, 60, 0) 12%), var(--page); display: grid; align-content: center; justify-items: center; gap: 2px; text-align: center; }
.bk-flower { width: 42%; height: auto; margin-bottom: -4%; }
.bk-t { font-family: var(--script); color: var(--burgundy); font-size: calc(var(--b) * .2); line-height: 1.05; padding: 0 8%; }
.bk-t span { display: block; font-family: var(--display); font-style: italic; font-size: .55em; color: var(--muted); line-height: 1.2; }
.bk-shadow { position: absolute; left: 50%; bottom: calc(var(--b) * -.07); width: calc(var(--b) * 1.3); height: calc(var(--b) * .2); margin-left: calc(var(--b) * -.65); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 92, 60, .28), rgba(120, 92, 60, 0)); transform: scaleX(.85); transition: transform 1.7s cubic-bezier(.45,.05,.25,1); }
/* open: the cover swings over to the left and the book slides to the middle of the spread */
.book.open .bk-body { transform: none; }
.book.open .bk-cover { transform: rotateY(-180deg) translateZ(2px); }
.book.open .bk-shadow { transform: scaleX(1.65); }
.book.now .bk-body, .book.now .bk-cover, .book.now .bk-shadow { transition: none; }
.book.open.idle .bk-leaf { animation: bk-peek 4.6s ease-in-out .6s infinite; }
@keyframes bk-peek { 0%, 68%, 100% { transform: translateZ(1px); } 76% { transform: translateZ(1px) rotateY(-16deg); } 84% { transform: translateZ(1px) rotateY(-5deg); } 89% { transform: translateZ(1px) rotateY(-9deg); } 95% { transform: translateZ(1px); } }
.book-open:hover .book.open .bk-leaf, .book-open:focus-visible .book.open .bk-leaf { animation: none; transform: translateZ(1px) rotateY(-14deg); transition: transform .35s ease; }
.book-hint { margin-top: 10px; visibility: hidden; }
.story.is-open .book-hint { visibility: visible; }
@media (min-width: 760px) { .book { --b: 200px; } }
@media (prefers-reduced-motion: reduce) { .bk-body, .bk-cover, .bk-shadow { transition: none !important; } .bk-leaf { animation: none !important; } }
.book-stage { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.book-stage .bs-wash { position: absolute; inset: 0; background: var(--page); opacity: 0; }
.book-stage .bs-wrap { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.book-stage .book * { animation: none !important; transition: none !important; }
html.book-returning body::after { content: ""; position: fixed; inset: 0; z-index: 150; background: var(--page); }

/* the story page: the guest arrives on the book's page */
.story-page .story-body { width: min(100%, 34rem); display: grid; justify-items: center; text-align: center; padding-bottom: 12vh; }
.story-page .st-flower { width: 92px; height: auto; margin: 4px 0 -10px; }
.story-page h1 { font-family: var(--script); font-weight: 400; color: var(--burgundy); font-size: clamp(46px, 13vw, 64px); line-height: 1.1; margin: 0 0 8px; }
.story-page h1 span { display: block; font-family: var(--display); font-style: italic; font-size: .42em; color: var(--muted); line-height: 1.3; }
.story-page .chapter { margin: 26px 0 0; }
.story-page .chapter h2 { font-size: clamp(28px, 7.4vw, 36px); margin-bottom: 8px; }
.story-page .chapter p { margin: 0 auto; max-width: 32rem; font-size: 17px; line-height: 1.7; text-align: left; }

/* Nov 20 (Dan): a bigger gift with no sparkles; the book's page itself says to tap it */
.gift-pic { width: 228px; }
@media (min-width: 760px) { .gift-pic { width: 260px; } }
.bk-t span { font-size: .6em; margin-top: 4px; }
/* Nov 20 (Dan): bigger still */
.gift-pic { width: min(300px, 76vw); }
@media (min-width: 760px) { .gift-pic { width: 340px; } }
.block.registry { overflow-x: clip; }   /* the glow behind the bigger gift stays on the screen */
