/* Nov 24 (Dan): the desktop version. Every rule here is under html.desk, which is only set on wide screens held
   sideways (and, while it is reviewed, only with ?desktop=1). The phone version never sees any of it.
   Sizes on the road use cqw: 1cqw is 1% of the road's width, so the stops keep their places on any wide screen
   (the design was laid out 1440 wide: x px there is x/14.4 cqw). */

/* ---------- what the desktop version replaces ---------- */
html.desk #stage,
html.desk main > section.block[aria-labelledby="count-h"],
html.desk .menu-btn, html.desk #menu,
html.desk #venue-section,
html.desk #road-art,
html.desk .find-garland,
html.desk #status.desk-folded,
html.desk .dress-code .dc-text,
html.desk #stay .tam-crop, html.desk #stay .tam-crop + .subcard,
html.desk #stay .subcard-wide > .k:not(.desk-only) { display: none !important; }
html.desk main { margin-top: 0; padding-top: 0; }
html.desk [id] { scroll-margin-top: 90px; }
html.do-locked, html.do-locked body { overflow: hidden; }

/* ---------- 1. the envelope on the stone table ---------- */
html.desk .dopen { position: fixed; inset: 0; z-index: 200; background: #E9E5DF; transition: opacity .9s ease; }
html.desk .dopen.done { opacity: 0; pointer-events: none; }
html.desk .do-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.desk .do-seal { position: absolute; left: var(--sx, 50%); top: var(--sy, 54%); width: var(--ss, 120px); height: var(--ss, 120px); transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; }
/* Nov 25 (Dan): the seal glows like the phone's: a warm halo breathes behind it and a wine-red ring pulses outward */
html.desk .do-seal::before { content: ""; position: absolute; inset: -38%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 232, 190, 0) 64%, rgba(255, 232, 190, .7) 70%, rgba(255, 226, 180, .3) 82%, rgba(255, 226, 180, 0) 100%);   /* a ring of light around the seal, never over it */
  animation: do-glow 2.4s ease-in-out infinite; transition: opacity .3s ease; }
html.desk .do-seal::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; pointer-events: none; animation: do-pulse 2.4s ease-out infinite; }
@keyframes do-pulse { 0% { box-shadow: 0 0 0 0 rgba(114, 24, 18, .42); } 70% { box-shadow: 0 0 0 calc(var(--ss, 120px) * .32) rgba(114, 24, 18, 0); } 100% { box-shadow: 0 0 0 0 rgba(114, 24, 18, 0); } }
html.desk .do-seal:hover::before, html.desk .do-seal:focus-visible::before { opacity: 1; animation: none; }
@media (prefers-reduced-motion: reduce) { html.desk .do-seal::before, html.desk .do-seal::after { animation: none; } }
html.desk .do-seal:focus-visible { outline: 2px solid #721812; outline-offset: 6px; }
@keyframes do-glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
html.desk .do-hint { position: absolute; left: 0; right: 0; bottom: 6vh; text-align: center; color: #3A2A1D; cursor: pointer; transition: opacity .5s ease; }
html.desk .do-hint em { display: block; font: 400 clamp(38px, calc(var(--W) * 3.3 / 100), 56px)/1.1 var(--script); color: var(--burgundy); text-shadow: 0 0 18px #f3eee6, 0 0 4px #f3eee6; }
html.desk .do-hint span { font: 500 13px var(--body); letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 0 10px #f3eee6; }
html.desk .dopen:not(.ready) .do-hint, html.desk .dopen.opening .do-hint, html.desk .dopen.opening .do-seal { opacity: 0; pointer-events: none; }

/* ---------- 2. the invitation scene ---------- */
html.desk .dhero { position: relative; height: 270vh; }
html.desk .dh-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--page); }
html.desk .dh-villa { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(var(--vy, 34vh)); pointer-events: none; }
html.desk .dh-villa img { display: block; width: 100%; height: auto; }
html.desk .dh-vink { opacity: .9; }
html.desk .dh-vcol { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#000 var(--vd, -14%), transparent calc(var(--vd, -14%) + 14%)); mask-image: linear-gradient(#000 var(--vd, -14%), transparent calc(var(--vd, -14%) + 14%)); }
html.desk .dh-gar { position: absolute; left: 0; right: 0; top: calc(var(--W) * -2 / 100); display: flex; transform: translateY(var(--gy, 0)); opacity: var(--go, 1); pointer-events: none; }
html.desk .dh-gh { position: relative; width: 50%; }
html.desk .dh-gh img { display: block; width: 100%; height: auto; }
html.desk .dh-gcol { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#000 calc(var(--gp, 0) * 125% - 25%), transparent calc(var(--gp, 0) * 125%)); mask-image: linear-gradient(#000 calc(var(--gp, 0) * 125% - 25%), transparent calc(var(--gp, 0) * 125%)); }
html.desk .dh-inv { position: absolute; left: 0; right: 0; top: max(calc(var(--W) * 17 / 100), 27vh); text-align: center; transform: translateY(var(--iy, 0)); opacity: var(--io, 1); }
html.desk .dh-names { margin: 0; font: 400 clamp(76px, calc(var(--W) * 7.8 / 100), 150px)/1 var(--script); color: var(--burgundy); white-space: nowrap; letter-spacing: 0; text-transform: none; font-variant-caps: normal; }
html.desk .dh-names .amp { font-size: .7em; color: var(--olive); margin: 0 .12em; }
html.desk .dh-pre { margin-top: calc(var(--W) * 1.3 / 100); font: 500 clamp(15px, calc(var(--W) * 1.3 / 100), 22px) var(--body); letter-spacing: .32em; text-transform: uppercase; color: #5c4b3a; }
html.desk .dh-rule { display: flex; justify-content: center; align-items: center; gap: 16px; margin: calc(var(--W) * 1.2 / 100) 0 calc(var(--W) * .8 / 100); color: var(--olive); }
html.desk .dh-rule i { width: 110px; height: 1px; background: currentColor; opacity: .6; } html.desk .dh-rule b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html.desk .dh-date { font: 500 clamp(26px, calc(var(--W) * 2.35 / 100), 42px) var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
html.desk .dh-place { font: italic 400 clamp(22px, calc(var(--W) * 2.1 / 100), 36px) var(--display); color: var(--muted); }
html.desk .dh-ven { position: absolute; left: 0; right: 0; top: 4.5vh; text-align: center; opacity: var(--bo, 0); pointer-events: none; }
html.desk .dhero.dh-done .dh-ven { pointer-events: auto; }
html.desk .dh-eb { font: 500 15px var(--display); letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
html.desk .dh-plq { position: relative; width: min(calc(var(--W) * 44 / 100), 720px); margin: 0 auto; aspect-ratio: 1100 / 299; container-type: inline-size; }
html.desk .dh-plq img { position: absolute; inset: 0; width: 100%; height: 100%; }
html.desk .dh-pcol { opacity: var(--bc, 0); }
html.desk .dh-pink { -webkit-mask-image: linear-gradient(90deg, #000 var(--bd, 0%), transparent calc(var(--bd, 0%) + 8%)); mask-image: linear-gradient(90deg, #000 var(--bd, 0%), transparent calc(var(--bd, 0%) + 8%)); opacity: calc(1 - var(--bc, 0) * .6); }
html.desk .dh-pt { position: absolute; left: 22%; right: 22%; top: 20%; bottom: 15%; display: grid; align-content: center; justify-items: center; opacity: var(--bt, 0); }
html.desk .dh-pt small { font: 600 max(11px, 1.75cqw) var(--display); letter-spacing: .32em; color: var(--burgundy); text-transform: uppercase; }
html.desk .dh-pt b { font: 400 max(30px, 5.4cqw)/1.05 var(--script); color: var(--burgundy); }
html.desk .dh-addr { font: 500 max(11px, 1.65cqw) var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); margin-top: .5cqw; padding: 6px 4px; text-decoration: underline; text-decoration-color: rgba(114, 24, 18, .35); text-underline-offset: 4px; }
html.desk .dh-addr:hover { text-decoration-color: currentColor; }
html.desk .dh-cd { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: baseline; gap: clamp(36px, calc(var(--W) * 4.4 / 100), 80px); padding: 14px 0 16px;
  background: rgba(245, 238, 226, .9); border-top: 1px solid #e0d3bd; font: 500 14px var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
html.desk .dh-cd b { font: 400 clamp(38px, calc(var(--W) * 3.5 / 100), 60px) var(--display); letter-spacing: 0; color: var(--ink); margin-right: 8px; font-variant-numeric: lining-nums; }
html.desk .dh-cd em { font: italic 400 26px var(--display); letter-spacing: 0; text-transform: none; }

/* ---------- 3. the ribbon menu ---------- */
html.desk .drib { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 40px;
  background: rgba(245, 238, 226, .94); border-bottom: 1px solid #e0d3bd; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transform: translateY(-105%); transition: transform .45s ease; }
html.desk .drib.in { transform: none; }
html.desk .drib-mono { font: 400 34px/1 var(--script); color: var(--burgundy); text-decoration: none; justify-self: start; padding: 4px 6px; }
html.desk .drib ul { display: flex; gap: clamp(18px, calc(var(--W) * 2.1 / 100), 34px); list-style: none; margin: 0; padding: 0; }
html.desk .drib li a { display: inline-block; padding: 10px 0 6px; font: 500 12px var(--body); letter-spacing: .22em; text-transform: uppercase; color: #5c4b3a; text-decoration: none; border-bottom: 1px solid transparent; }
html.desk .drib li a:hover, html.desk .drib li a.on { color: var(--burgundy); border-bottom-color: var(--burgundy); }
html.desk .drib-reply { justify-self: end; border: 1px solid var(--burgundy); color: var(--burgundy); font: 500 12px var(--body); letter-spacing: .24em; text-transform: uppercase; padding: 11px 20px; text-decoration: none; }
html.desk .drib-reply:hover { background: var(--burgundy); color: #fff; }
html.desk .drib-reply[hidden] { display: none; }

/* ---------- headings on a wide screen ---------- */
html.desk #details section.block > h2, html.desk #find h2 { font-size: clamp(44px, calc(var(--W) * 3.6 / 100), 60px); }
html.desk section.block { padding-block: 84px; }

/* ---------- find your invitation ---------- */
html.desk #find { padding-top: 0; }
html.desk #find form { width: min(100%, 640px); }
html.desk #find .btn.solid { padding-block: 18px; }

/* ---------- welcome and the road ---------- */
html.desk #welcome { position: relative; container-type: inline-size; padding: 0; display: block; background: var(--page); }
html.desk #welcome > h2 { position: absolute; left: 6.25cqw; top: 4.2cqw; margin: 0; z-index: 2; white-space: nowrap; font-size: clamp(60px, 5.8cqw, 104px); text-align: left; }
html.desk #welcome .journey-eyebrow { position: absolute; left: 6.7cqw; top: 11.3cqw; margin: 0; z-index: 2; font-size: max(13px, 1.04cqw); white-space: nowrap; max-width: none; }
html.desk #welcome #status:not(.desk-folded) { position: absolute; left: 6.25cqw; top: 14cqw; z-index: 2; width: min(32cqw, 460px); }
html.desk .journey { width: 100%; aspect-ratio: 1440 / 1120; }
html.desk .stops { position: absolute; inset: 0; width: 100%; left: 0; transform: none; }
html.desk .stop.dstop { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); --x: 0; --y: 0; }
html.desk .dstop-1 { left: 56.6cqw; top: 11.1cqw; width: 9.4cqw; --rot: -6deg; }
html.desk .dstop-2 { left: 83cqw; top: 24.3cqw; width: 10.4cqw; --rot: 4deg; }
html.desk .dstop-3 { left: 25cqw; top: 40.3cqw; width: 34.7cqw; }
html.desk .dstop-4 { left: 79.9cqw; top: 54.9cqw; width: 26.1cqw; }
html.desk .dstop .stop-link { display: block; padding: 0; position: relative; }
html.desk .dstop .stop-pic { aspect-ratio: auto; height: auto; }
html.desk .dstop-1 .stop-pic { aspect-ratio: 520 / 423; } html.desk .dstop-2 .stop-pic { aspect-ratio: 358 / 414; }
html.desk .dstop-3 .stop-pic { aspect-ratio: 420 / 320; } html.desk .dstop-4 .stop-pic { aspect-ratio: 335 / 420; }
html.desk .dstop .stop-pic img, html.desk .dstop .stop-pic > .stop-wc { transition: transform .35s ease, filter .35s ease; }
html.desk .dstop .stop-link:hover .stop-pic > * { transform: translate(-50%, -52%) scale(1.03); }
html.desk .stop-lab { position: absolute; display: grid; justify-items: center; gap: 2px; white-space: nowrap; transform: rotate(calc(-1 * var(--rot, 0deg))); }
html.desk .dstop-1 .stop-lab, html.desk .dstop-3 .stop-lab, html.desk .dstop-4 .stop-lab { left: 50%; top: calc(100% + .6cqw); translate: -50% 0; }
html.desk .dstop-2 .stop-lab { left: calc(100% + 1cqw); top: 18%; justify-items: start; text-align: left; white-space: normal; width: 9cqw; }
html.desk .dstop .stop-t { font: 500 max(20px, 1.95cqw)/1.15 var(--display); }
html.desk .dstop .stop-c { font: italic 400 max(16px, 1.32cqw) var(--display); color: var(--muted); }
html.desk .stop-btn { display: inline-block; margin-top: .7cqw; border: 1px solid var(--burgundy); color: var(--burgundy); background: #FFFDF8; font: 500 12px var(--body); letter-spacing: .24em; text-transform: uppercase; padding: 10px 22px; transition: background .25s ease, color .25s ease; }
html.desk .stop-link:hover .stop-btn { background: var(--burgundy); color: #fff; }
html.desk .stop-lab { opacity: 0; transition: opacity .6s ease .3s; }
html.desk .stop.drawn .stop-lab { opacity: 1; }

/* ---------- the weekend: one olive band, the three days on one line ---------- */
html.desk .weekend { margin-top: 0; padding-top: 84px; }
html.desk .weekend .arches { width: min(100%, 1240px); }
html.desk .weekend .arch-wrap { width: 100%; container-type: normal; }
html.desk .weekend .arch { border-radius: 12px; padding: 44px 50px 54px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; align-items: start; text-align: center; }
html.desk .weekend .arch > .a-date { grid-column: 1 / -1; grid-row: 1; font-size: 26px; letter-spacing: .22em; margin: 0 0 18px; }
html.desk .weekend .arch > div.a-day:nth-of-type(1) { grid-column: 1; grid-row: 2; } html.desk .weekend .arch > ol:nth-of-type(1) { grid-column: 1; grid-row: 3; }
html.desk .weekend .arch > div.a-day:nth-of-type(2) { grid-column: 2; grid-row: 2; } html.desk .weekend .arch > ol:nth-of-type(2) { grid-column: 2; grid-row: 3; }
html.desk .weekend .arch > div.a-day:nth-of-type(3) { grid-column: 3; grid-row: 2; } html.desk .weekend .arch > ol:nth-of-type(3) { grid-column: 3; grid-row: 3; }
html.desk .weekend .a-day { display: block; position: relative; width: 100%; margin: 0; padding: 0; font: 400 44px/1.1 var(--script); letter-spacing: 0; text-transform: none; color: #f1e4c8; }
html.desk .weekend .a-day::before { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1px; background: rgba(246, 238, 219, .5); flex: none; }
html.desk .weekend .arch > div.a-day:nth-of-type(1)::before { left: 50%; } html.desk .weekend .arch > div.a-day:nth-of-type(3)::before { right: 50%; }
html.desk .weekend .a-day::after { content: ""; display: block; position: relative; width: 14px; height: 14px; border-radius: 50%; background: #f1e4c8; margin: 12px auto 12px; box-shadow: 0 0 0 6px rgba(241, 228, 200, .18); flex: none; }
html.desk .weekend .arch ol { padding: 0 18px; }
html.desk .weekend .arch .ev-title { font-size: 25px; } html.desk .weekend .arch .ev-desc { font-size: 19px; }

/* ---------- dress code: the painting in the middle, each line on its side ---------- */
html.desk .dress-code { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 28px; align-items: center; width: min(100%, 1440px); }
html.desk .dress-code > h2, html.desk .dress-code > .dc-line { grid-column: 1 / -1; }
html.desk .dress-code > .dc-line { margin-bottom: 14px; }
html.desk .dress-code .dc-art { grid-column: 2; grid-row: 3; width: min(calc(var(--W) * 65 / 100), 940px); max-width: none; }
html.desk .dress-code .dc-side { display: block; grid-row: 3; margin: 0; white-space: nowrap; font: 400 28px/1.4 var(--display); color: var(--muted); }
html.desk .dress-code .dc-side b { display: block; font: 500 14px var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
html.desk .dress-code .dc-men { grid-column: 1; text-align: right; } html.desk .dress-code .dc-women { grid-column: 3; text-align: left; }

/* ---------- travel & stay: Carlsbad across the screen, four cards under it ---------- */
html.desk #stay .village-art { width: var(--W); max-width: none; margin: 0; }
html.desk #stay .village-card h3 { font-size: 40px; } html.desk #stay .village-card p { font-size: 19px; }
html.desk #stay .subcard-wide { width: min(100%, 1360px); margin-top: 56px; border-top: 0; }
html.desk #stay .subcard-wide > .k.desk-only { display: block; font: 500 15px var(--display); letter-spacing: .35em; text-transform: uppercase; color: var(--muted); }
html.desk #stay .hotels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 18px; }
html.desk #stay .hc { background: #FBF6EC; border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -8px; padding: 22px 18px 18px; transition: transform .3s ease, box-shadow .3s ease; }
html.desk #stay .hc:hover { transform: translateY(-4px); box-shadow: 0 16px 26px -18px rgba(58, 42, 29, .45); }
html.desk #stay .hc.desk-only { display: flex; border-color: var(--olive); outline-color: var(--olive); }
html.desk #stay .hc-pic { width: 100%; height: 230px; aspect-ratio: auto; }
html.desk #stay .hc-pic img { width: 100%; height: 100%; object-fit: contain; }
html.desk #stay .hc-main .hc-pic img { object-fit: cover; object-position: center 82%; -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 55%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 55%, #000 55%, transparent 75%); }
html.desk #stay .hc-tag { display: inline-block; margin-top: 10px; font: 500 11px var(--body); letter-spacing: .2em; text-transform: uppercase; color: #fff; background: var(--olive); padding: 4px 12px; border-radius: 20px; }
html.desk #stay .hc-nm { font-size: 26px; margin-top: 8px; }

/* ---------- getting to the venue: the painting large, Shuttles and Parking as cards on it ---------- */
html.desk #getting { display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 1280px); margin: 0 auto; justify-items: stretch; }
html.desk #getting > h2 { grid-row: 1; justify-self: center; }
html.desk #getting .shuttle-art { grid-row: 2; grid-column: 1; width: 100%; max-width: none; margin: 20px 0 0; }
html.desk #getting .subcard { grid-row: 2; grid-column: 1; z-index: 2; width: 360px; margin: 0 !important; padding: 28px 30px !important; border: 1px solid var(--line) !important; outline: 1px solid var(--line); outline-offset: -8px;
  background: rgba(251, 247, 238, .93); box-shadow: 0 18px 30px -18px rgba(58, 42, 29, .35); justify-items: start; text-align: left; }
html.desk #getting .subcard:not(.parking-card) { align-self: start; justify-self: start; margin-top: 40px !important; }
html.desk #getting .parking-card { align-self: end; justify-self: end; margin-bottom: 30px !important; }
html.desk #getting .subcard h3 { font-size: 34px; } html.desk #getting .subcard p { font: 400 21px/1.4 var(--display); }

/* ---------- the story of us and the registry, side by side, the book and the gift the same size ---------- */
html.desk #details { display: grid; grid-template-columns: 1fr 1fr; }
html.desk #details > * { grid-column: 1 / -1; }
html.desk #details > .block.story { grid-column: 1; margin-top: 0; padding-top: 60px; align-content: start; }
html.desk #details > .block.registry { grid-column: 2; margin-top: 0; padding-top: 60px; align-content: start; }
html.desk .book { --b: 300px; }
html.desk .registry .gift-pic { width: 430px; }
html.desk .registry .gift-hint, html.desk .story .book-hint { font-size: 13px; }
html.desk .book-open:hover .book { transform: translateY(-4px); transition: transform .35s ease; }

/* ---------- questions: one stacked list, wider ---------- */
html.desk .faq { width: min(100%, 900px); }
html.desk .faq summary { font-size: 28px; padding-block: 22px; }
html.desk .faq .a { font: 400 22px/1.5 var(--display); }

/* ---------- small things ---------- */
html.desk .cal-sheet { align-items: center; }
html.desk .sec-sprig img { width: 620px; }
html.desk .rsvp-page { max-width: 760px; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html.desk .do-seal::after { animation: none; }
  html.desk .drib, html.desk .stop-lab, html.desk #stay .hc { transition: none; }
}
html.desk .weekend .arch::before { border-radius: 6px; }   /* the inner line follows the band's shape, not the phone's arch */

/* ---------- Nov 24, Dan's first look on his 16" MacBook ---------- */
/* the whole villa drawing is in view from the start (sized to the screen's height, centred, above the countdown);
   the invitation's words are smaller and sit in its sky */
html.desk .dh-villa { left: 50%; right: auto; bottom: 84px; height: calc(100vh - 84px - 19vh); transform: translateX(-50%); }
html.desk .dh-villa img { width: auto; height: 100%; }
html.desk .dh-vcol { left: 0; top: 0; }
html.desk .dh-inv { top: 20vh; }
html.desk .dh-names { font-size: clamp(52px, calc(var(--W) * 4.6 / 100), 90px); }
html.desk .dh-pre { font-size: clamp(12px, calc(var(--W) * .95 / 100), 17px); margin-top: calc(var(--W) * .9 / 100); }
html.desk .dh-rule { margin: calc(var(--W) * .8 / 100) 0 calc(var(--W) * .5 / 100); }
html.desk .dh-rule i { width: 80px; }
html.desk .dh-date { font-size: clamp(20px, calc(var(--W) * 1.7 / 100), 32px); }
html.desk .dh-place { font-size: clamp(18px, calc(var(--W) * 1.5 / 100), 28px); }
/* the banner's words bigger */
html.desk .dh-plq { width: min(calc(var(--W) * 46 / 100), 760px); }
html.desk .dh-pt { left: 20%; right: 20%; top: 17%; bottom: 12%; }
html.desk .dh-pt small { font-size: max(13px, 2.2cqw); }
html.desk .dh-pt b { font-size: max(36px, 6.8cqw); }
html.desk .dh-addr { font-size: max(12px, 2cqw); }

/* the road fits the screen: its width follows the screen's height (the ribbon is about 70px) */
html.desk #welcome { width: min(100%, calc((100vh - 70px) * 1440 / 1120)); margin: 0 auto; }

/* the weekend: three cream place cards, each crowned in olive (Dan's pick) */
html.desk .weekend .arches > .arch-wrap { display: none; }
html.desk .wk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; width: min(100%, 1240px); }
html.desk .wk-card { display: flex; flex-direction: column; background: #FFFDF8; border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -8px; text-align: center; padding-bottom: 34px; min-height: 470px; }
html.desk .wk-card .wk-hd { height: 150px; display: grid; place-items: center; margin: -1px -1px 22px; border-radius: 0 0 50% 50% / 0 0 60% 60%;
  background: #6A6D4C url(../assets/plaster-dusty.webp) center / cover; box-shadow: 0 16px 24px -16px rgba(58, 42, 29, .45); }
html.desk .wk-card .wk-day { font: 400 44px/1 var(--script); color: #f1e4c8; }
html.desk .wk-card ol { list-style: none; margin: 0; padding: 0 24px; display: grid; gap: 18px; }
html.desk .wk-card .ev-time { display: block; font: 500 13px var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
html.desk .wk-card .ev-title { font: 500 27px/1.15 var(--display); letter-spacing: .08em; text-transform: uppercase; margin: 2px 0; color: var(--ink); }
html.desk .wk-card .ev-desc { font: 400 21px/1.35 var(--display); color: var(--muted); margin: 0; }
html.desk .weekend .wk-sub { font: 500 15px var(--display); letter-spacing: .36em; text-transform: uppercase; color: var(--muted); margin: -6px 0 30px; }

/* sections with a set width are centred */
html.desk #details > section.block { justify-self: center; }
html.desk .dress-code { margin-inline: auto; }

/* Travel & Stay and Getting there fit the screen */
html.desk #stay .village-art { width: min(var(--W), calc((100vh - 230px) * 1200 / 920)); margin: 0 auto; }
html.desk #stay .hc-pic { height: 200px; }
html.desk #getting { width: min(100%, calc((100vh - 330px) * 1.5)); }

/* the story and the registry closer together, one line under both saying either opens */
html.desk #details > .block.story { justify-self: end; padding-inline: 40px; }
html.desk #details > .block.registry { justify-self: start; padding-inline: 40px; }
html.desk #details { column-gap: 40px; }
html.desk .registry .gift-hint { display: none; }
html.desk .d-pair-hint { grid-column: 1 / -1; justify-self: center; margin: -40px 0 10px; font: 500 13px var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
html.desk #getting { padding-block: 64px; }
html.desk .wk-card li { opacity: 1 !important; transform: none !important; }

html.desk .stops { z-index: 1; }

/* Nov 24 (Dan: every picture reaches the left and right edges) */
html.desk body { overflow-x: clip; }
/* the villa, widened to the edges: full width, as tall as the screen allows */
html.desk .dh-villa { width: min(var(--W), calc((100vh - 84px - 19vh) * 1536 / 698)); height: auto; }
html.desk .dh-villa img { width: 100%; height: auto; }
/* Carlsbad and the bus: their painting in the middle at a size whose widened scene is exactly the screen's width */
html.desk .dwide { position: absolute; top: 0; left: 50%; height: 100%; width: calc(100% * var(--wk)); transform: translateX(-50%); background: center / 100% 100% no-repeat; z-index: -1; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
html.desk .dwide.in { opacity: 1; }
html.desk #stay .village-art, html.desk #getting .shuttle-art { position: relative; isolation: auto; }
html.desk #stay .village-art { width: min(calc(var(--W) * 910 / 1536), calc((100vh - 230px) * 1200 / 920)); }
html.desk #getting { width: min(calc(var(--W) * 1047 / 1536), calc((100vh - 330px) * 1.5)); }
html.desk #stay, html.desk #getting { position: relative; z-index: 0; }
html.desk #stay .village-art, html.desk #getting .shuttle-art { overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
html.desk #stay { overflow-x: visible; }   /* (the page itself still never scrolls sideways: body clips) */
html.desk .dh-villa { width: var(--W); bottom: 40px; }   /* always edge to edge; on shorter screens its foreground runs under the countdown */
html.desk .dh-inv { top: 15vh; }

/* ---------- Nov 24, Dan's second look ---------- */
/* the scene is shorter: the page moves on as soon as the banner is in */
html.desk .dhero { height: 230vh; }
/* the envelope on the road a smidge bigger */
html.desk .dstop-1 { width: 11.6cqw; top: 10.6cqw; }
/* Carlsbad and the bus: the whole wide painting is the picture (the phone's narrower one is not used here); it washes in
   from the top as it comes up the screen and washes out again going back up */
html.desk #stay .village-art, html.desk #getting .shuttle-art { width: var(--W); max-width: none; justify-self: center; aspect-ratio: auto; margin-left: 0; margin-right: 0; }
html.desk #stay .village-art > :not(.dwide), html.desk #getting .shuttle-art > :not(.dwide) { display: none !important; }
html.desk .dwide { inset: 0; left: 0; width: 100%; transform: none; z-index: 0; opacity: 1; background-size: cover !important; background-position: center 58% !important; transition: none;
  -webkit-mask-image: linear-gradient(#000 calc(var(--rv, 0) * 130% - 30%), transparent calc(var(--rv, 0) * 130%)); mask-image: linear-gradient(#000 calc(var(--rv, 0) * 130% - 30%), transparent calc(var(--rv, 0) * 130%)); }
/* Travel & Stay with its four hotels on one screen */
html.desk #stay { padding-top: 40px; padding-bottom: 40px; }
html.desk #stay > h2 { margin-bottom: 8px; }
html.desk #stay .village-art { height: max(250px, calc(100vh - 590px)); }
html.desk #stay .village-card { margin-top: 6px !important; }
html.desk #stay .village-card h3 { font-size: 34px; }
html.desk #stay .subcard-wide { margin-top: 18px; }
html.desk #stay .hc { padding: 14px 14px 12px; }
html.desk #stay .hc-pic { height: 140px; }
html.desk #stay .hc-nm { font-size: 22px; margin-top: 4px; }
html.desk #stay .hc-tag { margin-top: 6px; }
/* Getting to the Venue across the whole screen, the two cards inside it */
html.desk #getting { width: 100%; }
html.desk #getting .shuttle-art { height: max(340px, calc(100vh - 230px)); margin-top: 16px; }
html.desk #getting .subcard:not(.parking-card) { margin-left: max(40px, calc(50% - 620px)) !important; }
html.desk #getting .parking-card { margin-right: max(40px, calc(50% - 620px)) !important; }
/* the story and the gift: both nearer the middle */
html.desk #details > .block.story { justify-self: end; margin-right: calc(var(--W) * 6 / 100); padding-inline: 0; }
html.desk #details > .block.registry { justify-self: start; margin-left: calc(var(--W) * 6 / 100); padding-inline: 0; }
/* questions: a fixed width, so opening one never makes the list wider */
html.desk .faq { width: 900px; max-width: calc(var(--W) - 80px); justify-self: center; }
html.desk .faq details, html.desk .faq summary { display: block; width: 100%; box-sizing: border-box; }
html.desk #stay .village-art { height: max(200px, calc(100vh - 640px)); }
html.desk #stay .hc-pic { height: clamp(90px, 11vh, 130px); }
html.desk #stay .village-card { gap: 2px; }
html.desk #stay .village-card p { font-size: 17px; }
html.desk #stay .subcard-wide { margin-top: 10px; }
html.desk #stay .hotels { margin-top: 10px; }
html.desk #stay { padding-top: 28px; }
html.desk .dhero { height: 250vh; }

/* ---------- Nov 24, Dan's third look ---------- */
/* the invitation's words sit lower (the whole block moves down; its last line halfway to the middle of the screen),
   and the venue's banner comes in in the same place, under the flowers, which stay */
html.desk .dh-inv { top: 23vh; }
html.desk .dh-ven { top: 23vh; }
html.desk .dh-gar { z-index: 1; }
/* the dress code's title and "Formal" sit lower, nearer the painting */
html.desk .dress-code { padding-top: 120px; }
html.desk .dress-code > .dc-line { margin-bottom: 0; }
/* Travel & Stay: the whole Carlsbad painting shows (not cut off), the cards a little more compact so it still fits */
html.desk #stay .village-art { height: max(240px, calc(100vh - 470px)); }
html.desk #stay .dwide { background-size: cover !important; background-position: center 42% !important; }
html.desk #stay .hc-pic { height: clamp(70px, 8vh, 100px); }
html.desk #stay .hc { padding: 10px 12px 8px; }
html.desk #stay .hc-nm { font-size: 20px; }
html.desk #stay .village-card h3 { font-size: 30px; margin: 0; }
/* the story and the gift sit evenly either side of the middle */
html.desk #details > .block.story { justify-self: end; width: 520px; margin-right: 0; }
html.desk #details > .block.registry { justify-self: start; width: 520px; margin-left: 0; }
html.desk #details { column-gap: 60px; }
html.desk #stay .village-art { height: max(240px, calc(100vh - 520px)); }
html.desk #stay .village-card { margin-top: -54px !important; position: relative; z-index: 1; }
html.desk #stay .subcard-wide { margin-top: 4px; }
html.desk #stay .village-card { display: none !important; }
html.desk #stay .stay-sub { display: block; margin: -2px 0 10px; font: 400 21px var(--display); color: var(--muted); }
html.desk #stay .stay-sub b { font-weight: 500; color: var(--ink); }
html.desk #stay .village-art { height: max(240px, calc(100vh - 500px)); }
html.desk #stay .subcard-wide { margin-top: 12px; }
html.desk #stay .village-art { height: max(240px, min(calc(100vh - 500px), calc(100vh * .57))); }
html.desk #stay .village-art { height: max(240px, calc(100vh - 540px)); }
/* Nov 24 (Dan's own window is about 990px tall, not the full 1117): on shorter windows the villa sits lower, its
   foreground under the countdown, so the banner never covers its treetops; Carlsbad keeps the whole building */
html.desk .dh-villa { bottom: min(40px, calc((100vh - 1100px) * .9 + 40px)); }
html.desk #stay .village-art { height: max(240px, calc(100vh - 505px)); }
html.desk #stay .dwide { background-position: center 56% !important; }
html.desk #stay .village-art { height: max(240px, calc(100vh - 515px)); }
/* the villa's top (its sky) tucks just under the banner: villa height calc(var(--W) * 45.44 / 100), its sky the top 30%; banner block ends at
   23vh + 30px + the plaque's height */
html.desk .dh-villa { bottom: min(40px, calc(100vh - calc(var(--W) * 31.8 / 100) - 23vh - 30px - min(calc(var(--W) * 46 / 100), 760px) * .2718)); }

/* ---------- Nov 24, Dan's fourth look ---------- */
/* the road is drawn in pen and painted like the phone's (js/paint.js, assets/wc/road-desk.json) */
html.desk .d-road { position: absolute; left: 0; top: 3.57%; width: 100%; height: 85.7%; }
html.desk .d-road img.wc-src { width: 100%; height: 100%; }
/* Carlsbad: the whole painting at its own shape, edge to edge, never cut (the cards follow just under it) */
html.desk #stay .village-art { height: calc(var(--W) * 698 / 1536); }
html.desk #stay .dwide { background-size: 100% 100% !important; }
/* the hotel cards: the picture fills most of the card; no "Map" line (the whole card still opens the map) */
html.desk #stay .hc { padding: 10px 10px 12px; gap: 6px; }
html.desk #stay .hc-pic { height: clamp(150px, 19vh, 230px); width: 100%; }
html.desk #stay .hc-pic img, html.desk #stay .hc-pic .wc-c, html.desk #stay .hc-pic canvas { object-fit: cover; }
html.desk #stay .hc-mp { display: none; }
html.desk #stay .hc-nm { font-size: 22px; margin-top: 2px; }
/* Find your invitation: no second garland (the flowers are already just above it) */
html.desk #find { padding-top: 56px; }
html.desk #stay .hc-pic { height: auto; aspect-ratio: 1; }
html.desk #stay .hotels { width: min(100%, 1180px); margin-inline: auto; }

/* ---------- Nov 24, Dan's fifth look ---------- */
/* Carlsbad and the bus are drawn in pen and painted (js/paint.js), not washed in; the painting covers its box */
html.desk .dwide { background: none !important; -webkit-mask-image: none !important; mask-image: none !important; overflow: hidden; container-type: size; }
html.desk .dwide > .dwc { position: absolute; left: 50%; top: 58%; width: max(100cqw, calc(100cqh * 1536 / 698)); aspect-ratio: 1536 / 698; transform: translate(-50%, -58%); }
html.desk .dwide > .dwc > img.wc-src { width: 100%; height: 100%; }
html.desk .dwide > .dwc > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Tamarack's card is drawn and painted like the other three */
html.desk #stay .hc-main .hc-pic img { -webkit-mask-image: none; mask-image: none; object-fit: contain; object-position: center; }

/* ---------- Nov 24, Dan's sixth look: Travel & Stay on one screen ---------- */
/* the title sits on the painting's sky; the whole painting still runs edge to edge; the hotel cards, on a soft cream
   panel, lie over its bottom third (the street, below the CARLSBAD sign); the cards' pictures size to what is left */
html.desk #stay { --ih: calc(var(--W) * 698 / 1536); --ps: clamp(150px, calc(100vh - 58px - var(--ih) * .69 - 128px), 250px); padding-top: 0; padding-bottom: 28px; scroll-margin-top: 58px; }
html.desk #stay > h2, html.desk #stay .stay-sub { position: absolute; left: 0; right: 0; z-index: 3; margin: 0; text-align: center; pointer-events: none;
  text-shadow: 0 0 10px #F5EEE2, 0 0 22px #F5EEE2, 0 0 34px #F5EEE2; }
html.desk #stay > h2 { top: calc(var(--ih) * .03); }
html.desk #stay .stay-sub { top: calc(var(--ih) * .03 + 62px); }
html.desk #stay .village-art { margin-top: 0 !important; }
html.desk #stay .subcard-wide { position: relative; z-index: 3; width: auto; margin: calc(var(--ih) * -.31) auto 0 !important; padding: 14px 26px 20px;
  background: rgba(250, 246, 238, .9); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); box-shadow: 0 18px 40px -26px rgba(58, 42, 29, .5); }
html.desk #stay .subcard-wide > .k.desk-only { font-size: 14px; }
html.desk #stay .hotels { width: auto; grid-template-columns: repeat(4, calc(var(--ps) + 22px)); gap: 20px; margin-top: 10px; justify-content: center; }
html.desk #stay .hc { padding: 10px 10px 10px; }
html.desk #stay .hc-pic { width: var(--ps); height: var(--ps); aspect-ratio: auto; margin: 0 auto; }
html.desk #stay .hc-nm { font-size: 21px; }
/* (fit) on a short, wide window the painting shrinks a little (its soft edges fade into the page) rather than the
   cards running off the screen; Tamarack's tag sits on the bottom of its picture so every card is the same height */
html.desk #stay { --ih: min(calc(var(--W) * 698 / 1536), calc((100vh - 58px - 168px - 190px) / .69)); --ps: clamp(150px, calc(100vh - 58px - var(--ih) * .69 - 168px), 250px); }
html.desk #stay .village-art { width: calc(var(--ih) * 1536 / 698); height: var(--ih) !important; margin-inline: 0; justify-self: center; }
html.desk #stay .hc { position: relative; }
html.desk #stay .hc-main .hc-tag { position: absolute; left: 50%; top: calc(10px + var(--ps) - 26px); translate: -50% 0; margin: 0; z-index: 2; white-space: nowrap; }

/* (Travel & Stay) on smaller windows the cards keep room for the hotel names on one line */
html.desk #stay .hotels { grid-template-columns: repeat(4, max(calc(var(--ps) + 22px), 214px)); }
html.desk #stay .hc-nm { white-space: nowrap; font-size: clamp(17px, calc(var(--ps) * .09), 21px); }

/* ---------- Nov 24, Dan's seventh look: the hotel cards cover less of Carlsbad ---------- */
/* the panel now lies over only the bottom 22% of the painting (the street); still all on one screen */
html.desk #stay { --ih: min(calc(var(--W) * 698 / 1536), calc((100vh - 58px - 142px - 180px) / .78)); --ps: clamp(150px, calc(100vh - 58px - var(--ih) * .78 - 142px), 250px); }
html.desk #stay .subcard-wide { margin-top: calc(var(--ih) * -.22) !important; padding: 10px 24px 14px; }
html.desk #stay .hotels { margin-top: 8px; }


/* ---------- Nov 24, Dan's ninth look: the garland's strands in a light breeze ---------- */
html.desk .dh-sw { position: absolute; inset: 0; animation: dh-breeze var(--sd, 7s) ease-in-out var(--sdl, 0s) infinite; will-change: transform; }
html.desk .dh-sw img { position: absolute; inset: 0; width: 100%; height: auto; }
@keyframes dh-breeze {
  0%, 100% { transform: rotate(calc(var(--sa) * -.5)); }
  28% { transform: rotate(var(--sa)); }
  55% { transform: rotate(calc(var(--sa) * -1)); }
  78% { transform: rotate(calc(var(--sa) * .4)); }
}
@media (prefers-reduced-motion: reduce) { html.desk .dh-sw { animation: none; } }
/* "Where we'll say I do" sits just above the banner's scroll, between its two flower sprays (Dan) */
html.desk .dh-eb { position: relative; z-index: 1; margin-bottom: calc(min(calc(var(--W) * 44 / 100), 720px) * -.035); }
html.desk .dh-ven { z-index: 2; }


/* (Dan, tenth look) the vines no longer cross "Where we'll say I do": they fade away behind a soft wash of paper */
html.desk .dh-eb { display: table; margin-left: auto; margin-right: auto; padding: 10px 46px; isolation: isolate; }
html.desk .dh-eb::before { content: ""; position: absolute; inset: -14px -30px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--page, #F5EEE2) 62%, rgba(245, 238, 226, 0)); }

/* ---------- Nov 25, Dan: the Weekend roll, smooth (no flicker) ---------- */
/* the same drop: the banner waits rolled up at the top of the card, is let go, and unrolls as it falls, the cloth above
   it hanging still. Now done with movement only (no repainting each frame), in one continuous fall:
   .wk-hw  fixed window at the top of the card (nothing shows above the card's edge)
   .wk-cl  a window that slides down, uncovering the cloth (.wk-hd, which slides the other way so it stays still)
   .wk-rw  the roll, riding the window's bottom edge; .wk-roll inside it thins and fades as it runs out */
html.desk .wk-card { position: relative; --wk-d: 2.5s; --wk-at: calc(.15s + var(--k, 0) * .3s); --wk-ease: cubic-bezier(.45, 0, .75, .75); }
html.desk .wk-hw { position: relative; height: 150px; margin: -1px -1px 22px; clip-path: inset(0 -20px -40px -20px); transform-origin: 50% 0; }
html.desk .wk-cl { position: absolute; left: -20px; right: -20px; top: 0; height: 190px; overflow: hidden; transform: translateY(-190px); will-change: transform; }
html.desk .wk-card .wk-hw .wk-hd { margin: 0 20px; transform: translateY(190px); will-change: transform; }
html.desk .wk-rw { position: absolute; z-index: 2; left: -6px; right: -6px; top: 0; height: 0; transform: translateY(0); will-change: transform; pointer-events: none; }
html.desk .wk-roll { position: absolute; left: 0; right: 0; top: -10px; height: 20px; border-radius: 10px; overflow: hidden; background: #6A6D4C;
  box-shadow: 0 6px 8px -4px rgba(40, 30, 20, .45); will-change: transform, opacity; }
/* its cloth turning as it unrolls: a strip of the same painted green slides past, seamlessly */
html.desk .wk-roll b { position: absolute; left: 0; right: 0; top: -60px; height: 140px; background: url(../assets/plaster-dusty.webp) 0 0 / 160px 60px repeat; will-change: transform; }
html.desk .wk-roll s { position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(rgba(30, 26, 14, .5), rgba(255, 248, 220, .18) 32%, rgba(0, 0, 0, 0) 52%, rgba(30, 26, 14, .55));
  box-shadow: inset 8px 0 6px -4px rgba(30, 26, 14, .5), inset -8px 0 6px -4px rgba(30, 26, 14, .5); }
html.desk .wk-card.unrolled .wk-cl { animation: wk-win var(--wk-d) var(--wk-ease) var(--wk-at) both; }
html.desk .wk-card.unrolled .wk-hw .wk-hd { animation: wk-still var(--wk-d) var(--wk-ease) var(--wk-at) both; }
html.desk .wk-card.unrolled .wk-rw { animation: wk-ride var(--wk-d) var(--wk-ease) var(--wk-at) both; }
html.desk .wk-card.unrolled .wk-roll { animation: wk-thin var(--wk-d) linear var(--wk-at) both; }
html.desk .wk-card.unrolled .wk-roll b { animation: wk-turn .5s linear var(--wk-at) 4 both; }
html.desk .wk-card.unrolled .wk-hw { animation: wk-settle .7s cubic-bezier(.3, 0, .3, 1) calc(var(--wk-at) + var(--wk-d)) both; }
@keyframes wk-win { from { transform: translateY(-190px); } to { transform: translateY(0); } }
@keyframes wk-still { from { transform: translateY(190px); } to { transform: translateY(0); } }
@keyframes wk-ride { from { transform: translateY(0); } to { transform: translateY(190px); } }
@keyframes wk-thin { 0% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(.8); opacity: 1; } 72% { transform: scaleY(.5); opacity: 1; } 90% { transform: scaleY(.15); opacity: 0; } 100% { transform: scaleY(.15); opacity: 0; } }
@keyframes wk-turn { from { transform: translateY(0); } to { transform: translateY(60px); } }
@keyframes wk-settle { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(3px); } }
html.desk .wk-card .wk-day { opacity: 0; transition: opacity .2s ease; }
html.desk .wk-card.unrolled .wk-day { opacity: 1; transition: opacity .7s cubic-bezier(.23, 1, .32, 1) calc(var(--wk-at) + var(--wk-d) - .3s); }
@media (prefers-reduced-motion: reduce) {
  html.desk .wk-rw { display: none; }
  html.desk .wk-cl, html.desk .wk-card .wk-hw .wk-hd { transform: none; animation: none !important; }
  html.desk .wk-card .wk-day { opacity: 1; transition: none; }
}

/* (Dan, Nov 25) the roll follows the banner's curve: on the curved part each turn of cloth is narrower than the last,
   so the roll shrinks in from both ends along the hem and runs out at its point. Sampled from the same fall as the
   cloth's window (tools: inline in the commit), so the roll stays on the cloth's edge */
html.desk .wk-card.unrolled .wk-rw { animation: wk-ride2 var(--wk-d) linear var(--wk-at) both; }
html.desk .wk-card.unrolled .wk-roll { animation: none; }
html.desk .wk-rw { left: -1px; right: -1px; }
@keyframes wk-ride2 {
  0.00% { transform: translateY(0.00px) scaleX(1.0000) scaleY(1.000); opacity: 1.000; }
  2.08% { transform: translateY(0.10px) scaleX(1.0000) scaleY(1.000); opacity: 1.000; }
  4.17% { transform: translateY(0.41px) scaleX(1.0000) scaleY(0.999); opacity: 1.000; }
  6.25% { transform: translateY(0.92px) scaleX(1.0000) scaleY(0.997); opacity: 1.000; }
  8.33% { transform: translateY(1.64px) scaleX(1.0000) scaleY(0.995); opacity: 1.000; }
  10.42% { transform: translateY(2.56px) scaleX(1.0000) scaleY(0.992); opacity: 1.000; }
  12.50% { transform: translateY(3.70px) scaleX(1.0000) scaleY(0.989); opacity: 1.000; }
  14.58% { transform: translateY(5.04px) scaleX(1.0000) scaleY(0.985); opacity: 1.000; }
  16.67% { transform: translateY(6.59px) scaleX(1.0000) scaleY(0.980); opacity: 1.000; }
  18.75% { transform: translateY(8.34px) scaleX(1.0000) scaleY(0.975); opacity: 1.000; }
  20.83% { transform: translateY(10.31px) scaleX(1.0000) scaleY(0.969); opacity: 1.000; }
  22.92% { transform: translateY(12.48px) scaleX(1.0000) scaleY(0.963); opacity: 1.000; }
  25.00% { transform: translateY(14.86px) scaleX(1.0000) scaleY(0.955); opacity: 1.000; }
  27.08% { transform: translateY(17.45px) scaleX(1.0000) scaleY(0.948); opacity: 1.000; }
  29.17% { transform: translateY(20.24px) scaleX(1.0000) scaleY(0.939); opacity: 1.000; }
  31.25% { transform: translateY(23.24px) scaleX(1.0000) scaleY(0.930); opacity: 1.000; }
  33.33% { transform: translateY(26.44px) scaleX(1.0000) scaleY(0.921); opacity: 1.000; }
  35.42% { transform: translateY(29.84px) scaleX(1.0000) scaleY(0.910); opacity: 1.000; }
  37.50% { transform: translateY(33.43px) scaleX(1.0000) scaleY(0.900); opacity: 1.000; }
  39.58% { transform: translateY(37.22px) scaleX(1.0000) scaleY(0.888); opacity: 1.000; }
  41.67% { transform: translateY(41.20px) scaleX(1.0000) scaleY(0.876); opacity: 1.000; }
  43.75% { transform: translateY(45.37px) scaleX(1.0000) scaleY(0.864); opacity: 1.000; }
  45.83% { transform: translateY(49.72px) scaleX(1.0000) scaleY(0.851); opacity: 1.000; }
  47.92% { transform: translateY(54.25px) scaleX(1.0000) scaleY(0.837); opacity: 1.000; }
  50.00% { transform: translateY(58.95px) scaleX(1.0000) scaleY(0.823); opacity: 1.000; }
  52.08% { transform: translateY(63.82px) scaleX(0.9991) scaleY(0.809); opacity: 1.000; }
  54.17% { transform: translateY(68.84px) scaleX(0.9952) scaleY(0.793); opacity: 1.000; }
  56.25% { transform: translateY(74.02px) scaleX(0.9878) scaleY(0.778); opacity: 1.000; }
  58.33% { transform: translateY(79.33px) scaleX(0.9767) scaleY(0.762); opacity: 1.000; }
  60.42% { transform: translateY(84.78px) scaleX(0.9614) scaleY(0.746); opacity: 1.000; }
  62.50% { transform: translateY(90.34px) scaleX(0.9415) scaleY(0.729); opacity: 1.000; }
  64.58% { transform: translateY(96.01px) scaleX(0.9164) scaleY(0.712); opacity: 1.000; }
  66.67% { transform: translateY(101.78px) scaleX(0.8857) scaleY(0.695); opacity: 1.000; }
  68.75% { transform: translateY(107.63px) scaleX(0.8485) scaleY(0.677); opacity: 1.000; }
  70.83% { transform: translateY(113.54px) scaleX(0.8038) scaleY(0.659); opacity: 1.000; }
  72.92% { transform: translateY(119.50px) scaleX(0.7503) scaleY(0.642); opacity: 1.000; }
  75.00% { transform: translateY(125.48px) scaleX(0.6860) scaleY(0.624); opacity: 1.000; }
  77.08% { transform: translateY(131.47px) scaleX(0.6077) scaleY(0.606); opacity: 1.000; }
  79.17% { transform: translateY(137.45px) scaleX(0.5094) scaleY(0.588); opacity: 0.897; }
  81.25% { transform: translateY(143.38px) scaleX(0.3764) scaleY(0.570); opacity: 0.473; }
  83.33% { transform: translateY(149.25px) scaleX(0.1287) scaleY(0.552); opacity: 0.053; }
  85.42% { transform: translateY(155.03px) scaleX(0.0300) scaleY(0.550); opacity: 0.000; }
  87.50% { transform: translateY(160.68px) scaleX(0.0300) scaleY(0.550); opacity: 0.000; }
  89.58% { transform: translateY(166.17px) scaleX(0.0300) scaleY(0.550); opacity: 0.000; }
  91.67% { transform: translateY(171.47px) scaleX(0.0300) scaleY(0.550); opacity: 0.000; }
  93.75% { transform: translateY(176.54px) scaleX(0.0300) scaleY(0.550); opacity: 0.000; }
  95.83% { transform: translateY(181.35px) scaleX(0.0300) scaleY(0.550); opacity: 0.000; }
  97.92% { transform: translateY(185.85px) scaleX(0.0300) scaleY(0.550); opacity: 0.000; }
  100.00% { transform: translateY(190.00px) scaleX(0.0300) scaleY(0.550); opacity: 0.000; }
}
/* Nov 26: the opening is a video over the first picture; it shows once it is actually playing (no flash) */
html.desk .do-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; pointer-events: none; }
html.desk .dopen.playing .do-vid { opacity: 1; }
/* Nov 26 (Dan): on the road, the hotel and formal-wear stops carry just their titles */
html.desk #welcome .stop-hotel .stop-c, html.desk #welcome .stop-outfit .stop-c { display: none; }
/* Nov 26 (Dan: the "3RD" looks weird): Cormorant's old-style 3 sits low beside the capitals; lining figures instead */
html.desk .journey-eyebrow { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
/* Nov 26: "Scroll to continue" for guests who may not know to scroll (js/desk.js 2b) */
html.desk .dcue { position: fixed; left: 50%; bottom: max(22px, 3.2vh); z-index: 60; transform: translate(-50%, 10px); display: grid; justify-items: center; gap: 4px;
  padding: 10px 30px 8px; border: 0; border-radius: 999px; background: radial-gradient(closest-side, rgba(245, 238, 226, .92), rgba(245, 238, 226, .75) 60%, rgba(245, 238, 226, 0));
  color: #721812; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
html.desk .dcue.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
html.desk .dcue { padding: 0; width: clamp(84px, calc(var(--W) * 6.4 / 100), 108px); height: clamp(84px, calc(var(--W) * 6.4 / 100), 108px); background: none; display: grid; place-items: center; border-radius: 50%; }
html.desk .dcue-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
html.desk .dcue-ring text { font: 600 9.2px "Work Sans", system-ui, sans-serif; letter-spacing: 2.4px; fill: #721812; }
html.desk .dcue.on .dcue-ring { animation: dcue-turn 16s linear infinite; }
html.desk .dcue-core { width: 50%; height: 50%; border-radius: 50%; display: grid; place-items: center; background: #FBF7EE; border: 1px solid rgba(114, 24, 18, .35); }
html.desk .dcue-core svg { width: 28%; height: 28%; fill: none; stroke: #721812; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html.desk .dcue.on .dcue-core svg { animation: dcue-nudge 1.6s ease-in-out infinite; }
html.desk .dcue:hover .dcue-core { background: #721812; } html.desk .dcue:hover .dcue-core svg { stroke: #FBF7EE; }
html.desk .dcue:focus-visible { outline: 2px solid #721812; outline-offset: 4px; }
@keyframes dcue-turn { to { transform: rotate(360deg); } }
@keyframes dcue-nudge { 0%, 100% { transform: translateY(-14%); } 50% { transform: translateY(22%); } }
@media (prefers-reduced-motion: reduce) { html.desk .dcue-ring, html.desk .dcue-core svg { animation: none !important; } }
/* Nov 26 (Dan: the RD is still capitals): in a line set in capitals, the "rd" of "3rd" is a small raised lowercase,
   the way invitations print it */
html.desk .ord { text-transform: none; font-size: .64em; letter-spacing: .06em; vertical-align: .5em; line-height: 0; margin-left: .04em; }
html.desk .dh-date { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* Nov 26, responsive QA (docs/prd/responsive-qa-2026-11-26.md): on monitors wider than 1920 the design stops growing:
   everything that used to run the full width of the window (the paintings, the road) is held to --W, centred, with
   the paper running on either side, so nothing becomes wall-sized on a 27" or an ultrawide. On every laptop --W is
   simply the window's width, so nothing changes there. */
html.desk { --W: min(100vw, 1920px); }
html.desk main { max-width: var(--W); margin-inline: auto; }
html.desk .dhero { overflow-x: clip; }   /* (the garland's swaying strands poked 4px past the right edge on an iPad) */
html.desk .dh-gar { left: 50%; right: auto; width: min(100%, 1920px); margin-left: calc(min(100%, 1920px) / -2); }   /* (review fix: on monitors wider than 1920 the garland stays over the capped scene, not across the whole window) */
/* Nov 26, independent QA fixes (docs/prd/responsive-qa-progress.md):
   - short laptops (1366x650, 1536x730): the villa scaled to the screen's height so the countdown no longer covers half of it */
@media (max-height: 760px) { html.desk .dh-villa { width: min(var(--W), calc((100vh - 70px) * 1536 / 698)); left: 50%; right: auto; transform: translateX(-50%) translateY(var(--vy, 0)); bottom: 40px; } }
/* - monitors wider than 1920: the opening painting and garland fade softly into the paper at their sides instead of
     ending in a hard edge */
@media (min-width: 1921px) { html.desk .dh-villa, html.desk .dh-gar { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); } }
/* - narrower desktop windows and iPads held sideways: the menu stays on one line (it wrapped and hid section titles) */
@media (max-width: 1365px) {
  html.desk .drib { padding: 8px 20px; column-gap: 14px; }
  html.desk .drib-mono { font-size: 28px; white-space: nowrap; }
  html.desk .drib ul { gap: 14px; }
  html.desk .drib li a { font-size: 11px; letter-spacing: .12em; white-space: nowrap; }
  html.desk .drib-reply { padding: 9px 14px; letter-spacing: .16em; white-space: nowrap; }
}
@media (max-width: 1120px) { html.desk .drib ul { gap: 10px; } html.desk .drib li a { letter-spacing: .06em; } }
/* - Travel & Stay: its subtitle stays readable where it crosses the palm tops */
html.desk #stay .stay-sub { text-shadow: 0 0 4px var(--page), 0 0 8px var(--page), 0 0 14px var(--page), 0 0 22px var(--page); }
/* Nov 30 (approved): the countdown slides up from below the screen once the card has become the page */
html.desk .dh-cd { transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .8s ease; }
html.desk.cd-wait .dh-cd { transform: translateY(105%); opacity: 0; }
/* the countdown's top edge is feathered into the paper */
html.desk.cd-soft .dh-cd { transition: transform 1.3s cubic-bezier(.22, .61, .36, 1), opacity 1s ease; border-top: 0; padding-top: 34px;
  background: linear-gradient(to bottom, rgba(245, 238, 226, 0), rgba(245, 238, 226, .92) 22px); }

/* Dec 1 (Dan's feedback) */
/* no glow or pulse around the seal */
html.desk .do-seal::before, html.desk .do-seal::after { content: none; animation: none; }
/* "You're invited" above the envelope */
html.desk .do-hint { bottom: auto; top: 5vh; }
/* the countdown comes in sooner and quicker */
html.desk.cd-soft .dh-cd { transition: transform .75s cubic-bezier(.22, .61, .36, 1), opacity .6s ease; }
/* the day of the week, small, above each date of the weekend */
html.desk .weekend .a-day .a-wd { display: block; font: 600 12px/1 var(--body); letter-spacing: .3em; text-transform: uppercase; color: rgba(241, 228, 200, .85); margin-bottom: 4px; }
html.desk .wk-card .wk-hd { align-content: center; gap: 8px; }
html.desk .wk-card .wk-wd { font: 600 12px/1 var(--body); letter-spacing: .3em; text-transform: uppercase; color: #FFF9EE; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); padding-left: .3em; }

/* Dec 1 (Dan, option C): "You're invited" written on the envelope, above the seal; it fades as the seal is clicked */
html.desk .do-hint em { font-size: calc(46px * var(--hk, 1)); text-shadow: none; }
html.desk .do-hint span { font-size: calc(13px * var(--hk, 1)); text-shadow: none; }
html.desk .dopen.opening .do-hint { transition: opacity .3s ease; }

/* Dec 1: the invitation's words laid out at the card's width (1728) and scaled as one block in js/desk.js alignHand() */
html.desk .dh-inv { --W: 1728px; }
/* Dec 1 (Dan): "Click the seal to open" in the same script as "You're invited" */
html.desk .do-hint span { display: block; font: 400 calc(28px * var(--hk, 1))/1.1 var(--script); letter-spacing: 0; text-transform: none; color: var(--burgundy); margin-top: calc(2px * var(--hk, 1)); }

/* Dec 1 (Dan): the words under the seal a little smaller */
html.desk .do-hint em { font-size: calc(36px * var(--hk, 1)); }
html.desk .do-hint span { font-size: calc(22px * var(--hk, 1)); }

/* ---------- Dec 2 (Dan): the reply on a computer: a card over the dimmed road (js/desk.js opens it in a frame); the
   painted answers and plates side by side, one column per person ---------- */
html.desk .rsvp-page { max-width: none; min-height: 100vh; display: grid; place-items: center; align-content: center; padding: 40px 32px; }
html.desk.rp-in-card, html.desk.rp-in-card body { background: transparent; }
html.desk .rp-card { width: min(920px, 100%); position: relative; background: var(--page); border-radius: 6px; padding: 40px 56px 34px;
  box-shadow: 0 30px 80px rgba(30, 20, 10, .35), 0 0 0 1px rgba(216, 200, 174, .8); }
html.desk .rp-card .back { position: absolute; right: 14px; top: 10px; padding: 8px 12px; min-height: 44px; }
html.desk .rp-card .bk-t { display: none; }
html.desk .rp-card .bk-x { display: block; font: 400 34px/1 var(--display); color: var(--muted); }
html.desk .rp-card .back:hover .bk-x { color: var(--ink); }
html.desk .reply { max-width: none; }
html.desk .reply h1 { font-size: 60px; margin: 0 0 6px; }
html.desk .reply .sub { font-size: 19px; margin: 0 0 22px; }
html.desk .reply legend { font-size: 24px; padding: 0 0 10px; }
/* one person: the two answers / plates side by side, big */
html.desk .ans-stack, html.desk .plate-stack { grid-template-columns: 1fr 1fr; gap: 20px; }
html.desk .reply button.ans, html.desk .reply button.plate { padding: 16px 14px 18px; border-radius: 18px; }
html.desk .reply button.ans img, html.desk .reply button.plate img { height: 190px; }
html.desk .reply button.ans b, html.desk .reply button.plate b { font-size: 25px; }
html.desk .ppl.solo legend { display: none; }
/* two or more: a column each */
html.desk .ppl:not(.solo) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; row-gap: 18px; }
html.desk .ppl.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
html.desk .reply .who-p + .who-p { margin-top: 0; }
html.desk .wide-stack { gap: 10px; }
html.desk .reply button.wide { min-height: 96px; padding: 8px 16px 8px 8px; }
html.desk .reply button.wide img { width: 112px; height: 80px; }
html.desk .reply button.wide b { font-size: 22px; }
html.desk .reply button.wide.meal { min-height: 88px; }
html.desk .reply button.wide.plain { min-height: 64px; padding-left: 18px; }
html.desk .ppl.n3 .reply button.wide img, html.desk .ppl.n3 button.wide img { width: 84px; height: 64px; }
/* the answers carried over: one centred line */
html.desk .who-lines { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 26px; margin: -8px 0 18px; }
html.desk .who-line { border: 0; padding: 0; }
html.desk .who-line span { font-size: 21px; }
html.desk .who-lines + .plate-stack, html.desk .who-lines + .ppl { margin-top: 0; }
/* the button: bottom right, the deadline bottom left */
html.desk .rsvp-actions { position: static; margin: 24px 0 0; padding: 0; background: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; text-align: left; }
html.desk .rsvp-actions .until { margin: 0; font-size: 17px; }
html.desk .rsvp-actions .btn { width: auto; min-height: 52px; padding: 0 34px; margin-left: auto; }
html.desk .rsvp-actions .err { flex-basis: 100%; text-align: right; }
html.desk .reply button:hover:not(.on) { border-color: #C9B38F; }
/* the frame the card opens in, over the invitation */
.rp-ov { position: fixed; inset: 0; z-index: 200; background: rgba(58, 42, 29, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s cubic-bezier(0.23, 1, 0.32, 1); }
.rp-ov.in { opacity: 1; }
.rp-ov iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: normal; }

@media (prefers-reduced-motion: reduce) { .rp-ov { transition-duration: .01s; } }

html.desk.rp-first .rp-card .bk-x { display: none; }
html.desk.rp-first .rp-card .back { right: 22px; top: 18px; }
html.desk.rp-first .rp-card .bk-s { font-size: 17px; }
html.desk .rsvp-actions:not(.in) { min-height: 52px; margin-top: 24px; }
/* Dec 2: the road of a guest who said no (the book halfway down on the right, the gift at the end on the left) */
html.desk .dstop-5 { left: 68cqw; top: 39cqw; width: 17cqw; --rot: 0deg; }
html.desk .dstop-6 { left: 27cqw; top: 52cqw; width: 20cqw; --rot: 0deg; }
html.desk .dstop-5 .stop-lab, html.desk .dstop-6 .stop-lab { left: 50%; top: calc(100% + .6cqw); translate: -50% 0; white-space: nowrap; }
html.desk .dstop-1 .stop-t.no { display: inline-block; }
html.desk.declined .dstop-1 .stop-lab { transform: rotate(-11deg); transform-origin: 50% 0; white-space: nowrap; }
html.desk.declined .drib li:has(a:not([data-sec="story"]):not([data-sec="reg-h"])) { display: none; }
html.desk .dstop-5 .stop-pic, html.desk .dstop-6 .stop-pic { aspect-ratio: auto; }
/* Dec 2 (Dan): "Replied not going" sits under the envelope; the gift bigger and down by its word */
html.desk.declined .dstop-1 .stop-lab { margin-top: 1.6cqw; }
html.desk .dstop-6 { width: 25cqw; top: 51.5cqw; left: 26cqw; }
html.desk .dstop-6 .stop-lab { top: calc(100% - 2.2cqw); }
html.desk .dstop-6 { top: 54.5cqw; }
html.desk .dstop-6 .stop-lab { top: calc(100% - 4.2cqw); }
/* Dec 2 (Dan: the book glitched under the mouse): the road's hover nudge is for its paintings; the book and the gift
   keep their own hover */
html.desk .dstop-5 .stop-link:hover .stop-pic > *, html.desk .dstop-6 .stop-link:hover .stop-pic > * { transform: none; }
/* Dec 4: the computer version on a touchscreen (a foldable held sideways, an iPad): the top menu and the address are
   finger-sized */
@media (pointer: coarse) {
  html.desk .drib a, html.desk .drib .drib-reply, html.desk .drib .drib-mono { min-height: 44px; display: inline-flex; align-items: center; }
  html.desk .drib li a { min-width: 44px; justify-content: center; }
  html.desk a.dh-addr { min-height: 44px; display: inline-flex; align-items: center; }
}
/* Dec 4: the computer version between 800 and 1023 wide (a foldable held sideways): sizes follow the width all the way
   down instead of stopping at a minimum made for laptops */
@media (max-width: 1023px) {
  html.desk #welcome > h2 { font-size: 5.8cqw; }
  html.desk .dstop .stop-t { font-size: max(15px, 1.95cqw); }
  html.desk .dstop .stop-c { font-size: 15px; }
  html.desk .drib li a { letter-spacing: .08em; padding-left: 6px; padding-right: 6px; }
}
