/* base.css: page, type, cards, buttons and info lists shared by every station (lead only) */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:clip}
/* cards glide in from beyond the screen's edges: clip (not hidden) so nothing can be panned sideways and sticky still works */
body{margin:0;background:var(--sky);color:var(--ink);font-family:var(--serif);font-size:19px;line-height:1.6;overflow-x:hidden;overflow-x:clip}
body.locked{overflow:hidden;height:100svh}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit;color:inherit}
a{color:var(--dusty)}
p,h2,h3{text-wrap:balance}
:focus-visible{outline:2px solid var(--dusty);outline-offset:3px}

/* soft lace backdrop */
.backdrop{position:fixed;inset:0;z-index:-2;background-color:var(--sky);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23D3E1EF' stroke-width='1'%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3Ccircle cx='60' cy='60' r='14'/%3E%3Cpath d='M60 38v-10M60 82v10M38 60h-10M82 60h10M44 44l-7-7M76 76l7 7M76 44l7-7M44 76l-7 7'/%3E%3Ccircle cx='0' cy='0' r='10'/%3E%3Ccircle cx='120' cy='0' r='10'/%3E%3Ccircle cx='0' cy='120' r='10'/%3E%3Ccircle cx='120' cy='120' r='10'/%3E%3C/g%3E%3C/svg%3E")}
#petals{position:fixed;inset:0;z-index:-1;pointer-events:none}

/* ================= page ================= */
main{width:min(620px,100%);margin:0 auto;padding:22px 12px 120px;display:flex;flex-direction:column;gap:26px;visibility:hidden}
main.shown{visibility:visible}
/* until the seal is tapped (opening.js adds .waking) the page behind the doors isn't rendered at all, so its fonts
   and pictures wait and a slow phone signal goes to the doors first. It is laid out as soon as anything measures it. */
main:not(.shown):not(.waking){content-visibility:hidden}
/* each card sits in a painted stained-glass window frame, in the same pen and wash hand as the doors and the
   finale window (art/garden/raw/card-frame.png, cut by art/garden/card-glass-build.py):
   .paper's border-image is the leaded band (each side its own painted strip, two repeats, tiled with `round`
   so tall cards stay crisp); .paper::before lays the four hydrangea roundels over the corners. The roundels
   are 1.711 times the band (as painted), so they line up with it exactly. */
.paper{--frame:18px;position:relative;border:var(--frame) solid transparent;border-image:url(../img/glass/band.webp) 52 round;
  filter:drop-shadow(0 14px 18px rgba(27,42,74,.16)) drop-shadow(0 1px 1px rgba(27,42,74,.08))}
@media (min-width:640px){.paper{--frame:24px}}
.paper::before{content:"";position:absolute;inset:calc(-1 * var(--frame));z-index:6;pointer-events:none;
  border:calc(var(--frame) * 1.711) solid transparent;border-image:url(../img/glass/corners.webp) 89 stretch}
/* wide screens: each card is crowned with a pointed rose-window arch, like the finale's window
   (img/glass/crown.webp, from art/garden/raw/card-crown.png). Its flat foot sits on the top band. */
@media (min-width:1100px){
  /* only the invitation wears the crown now: every other card has its garden object standing on its top edge */
  #st-invitation > .paper::after{content:"";position:absolute;left:0;right:0;margin:0 auto;width:62%;aspect-ratio:2.846;bottom:calc(100% + var(--frame) - 3px);
    pointer-events:none;z-index:5;background:url(../img/glass/crown.webp) center bottom/100% auto no-repeat}
}
.card{position:relative;background:var(--white);padding:62px 30px 58px;text-align:center}
@media (min-width:640px){.card{padding:70px 56px 64px}}
.rule{position:absolute;inset:12px;border:1px solid rgba(150,132,108,.34);pointer-events:none}
.rule::before{content:"";position:absolute;inset:3px;border:1px solid rgba(150,132,108,.16)}
.caps{font-family:var(--caps);letter-spacing:.24em;font-size:14px;color:var(--ink-soft);text-transform:lowercase}
h2.script{font-family:var(--script);font-weight:400;font-size:clamp(38px,11.5vw,62px);line-height:1.3;color:var(--navy);margin:4px 0 6px;padding:.08em .15em;overflow-wrap:break-word}
.pearls{display:block;margin:2px auto 22px;width:min(230px,78%);height:auto;aspect-ratio:10.9;background:url(../img/glass/divider.webp) center/contain no-repeat}
.pearls > *{display:none}
.medal{width:52px;margin:0 auto 8px;opacity:.92;filter:drop-shadow(0 1px 2px rgba(27,42,74,.12))}
p{margin:0 0 14px}
.lede{font-size:21px;font-style:italic;color:var(--ink-soft);max-width:32ch;margin:0 auto 10px}
.small{font-size:16px;color:var(--ink-soft)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 26px;border:0;border-radius:2px;background:var(--navy);color:var(--white);text-decoration:none;font-family:var(--caps);letter-spacing:.16em;font-size:14px;box-shadow:inset 0 0 0 3px var(--navy), inset 0 0 0 4px var(--silver);cursor:pointer;transition:transform .2s, background .2s}
.btn.light{background:var(--white);color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy), inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--silver)}
@media (hover:hover){.btn:hover{transform:translateY(-2px);background:#26385E}.btn.light:hover{background:#F4F7FB}}
.btnrow{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:18px}


/* info lists (getting there, where to stay) */
.info{text-align:left;max-width:460px;margin:0 auto}
.info h3{font-family:var(--caps);letter-spacing:.18em;font-size:15px;font-weight:600;color:var(--navy);margin:22px 0 6px;text-transform:lowercase}
.info p{font-size:18px}
.info ul{list-style:none;margin:0;padding:0}
.info li{padding:12px 0;border-top:1px solid #E6EBF2;font-size:18px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px;align-items:baseline}
.info li:last-child{border-bottom:1px solid #E6EBF2}
.info li b{font-weight:600}
.info li .meta{color:var(--ink-soft);font-size:16px;white-space:nowrap}
.info li a{overflow-wrap:anywhere}
.feature{background:#F3F7FC;padding:18px 18px 8px;margin:6px 0 10px;border-radius:2px;box-shadow:inset 0 0 0 1px #DCE6F1;text-align:left}
.feature b{color:var(--navy)}

/* each station's garden object holds its picture's space from the start (core.js loads the picture later), so the
   page height never changes while guests scroll or jump with "Skip to details". The ratios are the pictures' own
   (img/garden/<data-art>.webp, width / height). If a picture fails, core.js adds .no-art and the space closes. */
.station > .st-art{display:block}
.station:not(.has-art) > .st-art{aspect-ratio:var(--ar, auto)}
.station.no-art > .st-art{display:none}
.station[data-art="plinth"]{--ar:560/489}
.station[data-art="arch"]{--ar:718/1080}
/* the plinth is drawn wider than its slot (invitation.css --pw), so its slot is that much taller */
#st-invitation:not(.has-art) > .st-art{aspect-ratio:calc(560 / var(--pw, 1)) / 489}

main,.foot{position:relative;z-index:var(--z-station)}
/* the music credit sits on a soft ivory label, so it reads on the night garden as well as by day (about 6:1) */
.foot{text-align:center;font-size:13px;color:var(--ink-soft);padding:0 16px 110px;max-width:620px;margin:0 auto}
.foot p{display:inline-block;margin:0;padding:6px 14px;border-radius:14px;background:rgba(252,249,242,.92);box-shadow:0 0 0 1px rgba(232,225,211,.9);line-height:1.5}

/* "Open without animation" tapped (or #skip) before opening.js arrived: show the page at once (index.html) */
.dj-pre-open .intro{display:none}
.dj-pre-open main{visibility:visible}
.dj-pre-open main:not(.shown):not(.waking){content-visibility:visible}

/* music button */
.music{position:fixed;right:max(16px, env(safe-area-inset-right,0px));bottom:max(16px, env(safe-area-inset-bottom,0px));z-index:65;width:52px;height:52px;border-radius:50%;border:0;background:var(--navy);color:var(--white);display:none;align-items:center;justify-content:center;gap:3px;box-shadow:0 8px 18px -8px rgba(27,42,74,.6), inset 0 0 0 3px var(--navy), inset 0 0 0 4px var(--silver);cursor:pointer}
.music.on{display:flex}
.music i{width:3px;height:14px;background:var(--white);border-radius:2px;transform-origin:50% 100%;transform:scaleY(.35)}
.music.playing i{animation:bar 1.1s ease-in-out infinite}
.music.playing i:nth-child(2){animation-delay:.2s}.music.playing i:nth-child(3){animation-delay:.45s}.music.playing i:nth-child(4){animation-delay:.1s}
@keyframes bar{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}

/* JavaScript off: a short note under the RSVP card (index.html <noscript>) */
.nojs-note{margin:16px auto 0;max-width:460px;padding:12px 18px;text-align:center;font-size:17px;line-height:1.5;color:var(--ink);background:var(--ivory-card);border-radius:4px;box-shadow:inset 0 0 0 1px var(--ivory-edge)}

/* build gw10 */
