
/* VOICE occasion: hushed, intimate, an evening invitation
   IDEA the day turning to candlelit evening: the invitation painting is the window, and scrolling is the sun going down
   PICTURE the putting-green painting, pinned; bright golden afternoon cross-fades to dusk as you scroll
   COLOUR night fairway #0F1F1A ground, candle ivory #EFE6D2 ink, smoke parchment #C9B98F, masters green #006747
   TYPE Gilda Display headings + Tenor Sans text
   LAYOUT laptop: painting pinned left (46%), story scrolls right. phone: painting fills the screen, story rises over it */
:root{color-scheme:dark;--bg:#0F1F1A;--bg2:#13251f;--ink:#EFE6D2;--soft:#C9B98F;--line:rgba(201,185,143,.28);--green:#006747;--d:"Gilda Display",Georgia,serif;--t:"Tenor Sans",system-ui,sans-serif}
h1,h2,h3,.mark,.hi,.when,.invite,.place{font-synthesis:none}
h1,h2,h3,.mark,.hi,.when,.invite,.place,.sched time,.gift,.done,.tableno,.big,.when2{letter-spacing:0}
*{box-sizing:border-box;min-width:0}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 var(--t);overflow-x:clip;font-synthesis:none;letter-spacing:.01em}
img{max-width:100%;display:block}
a{color:inherit}
.stage{position:fixed;top:0;left:0;right:0;height:100vh;height:100lvh;z-index:0;background:var(--bg)}
/* The painting is sized to the largest viewport, so it no longer jumps when a phone's address bar hides on scroll. */
.stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 28%}
#dusk{opacity:0;will-change:opacity}
.veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,31,26,.35) 0%,rgba(15,31,26,0) 16%,rgba(15,31,26,0) 26%,rgba(15,31,26,.88) 52%,rgba(15,31,26,.96) 100%)}
.frame{position:fixed;inset:14px;border:1px solid var(--line);pointer-events:none}
.nav{position:fixed;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px max(5vw,16px);background:linear-gradient(180deg,rgba(15,31,26,.8),rgba(15,31,26,0))}
.nav.solid{background:var(--bg);border-bottom:1px solid var(--line)}
.mark{font:400 22px/1 var(--d);text-decoration:none;white-space:nowrap}
.links{display:flex;gap:18px;flex-wrap:wrap}
.links a{font-size:14px;text-decoration:none;color:var(--ink);opacity:.85}
.links a:hover{opacity:1;text-decoration:underline;text-underline-offset:4px}
main{position:relative;z-index:2}
section{padding:clamp(40px,7vw,96px) max(5vw,20px)}
.hero{min-height:100svh;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:clamp(40px,8vh,96px)}
h1{font:400 clamp(46px,10vw,94px)/1.04 var(--d);margin:0;letter-spacing:-.01em}
h1 i{font-weight:400;color:var(--soft)}
.when{font:400 clamp(20px,2.4vw,26px)/1.35 var(--d);margin:14px 0 4px}
.glance{margin:0 0 16px;font:400 15px/1.4 var(--t);color:var(--ink);opacity:.9}
.sub{color:var(--soft);margin:0 0 12px;max-width:34em}
.sub+div{margin-top:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 26px;border-radius:999px;background:var(--ink);color:var(--bg);font:400 16px/1 var(--t);text-decoration:none;border:0;cursor:pointer}
.btn:hover{background:#fff}
.by{display:block;margin-top:12px;font-size:14px;color:var(--soft)}
.panel{background:rgba(15,31,26,.9);border-top:1px solid var(--line)}
h2{font:400 clamp(34px,4.6vw,48px)/1.05 var(--d);margin:0 0 22px;text-wrap:balance}
.sched{list-style:none;margin:0;padding:0}
.sched li{display:grid;grid-template-columns:5.2em minmax(0,1fr);gap:16px;padding:16px 0;border-top:1px solid var(--line)}
.sched li:last-child{border-bottom:1px solid var(--line)}
.sched time{font:400 25px/1.15 var(--d);color:var(--soft);white-space:nowrap}
.sched b{display:block;font:400 17px/1.4 var(--t)}
.sched span{color:var(--soft);font-size:15px}
.note{font-size:13px;color:var(--soft);margin:14px 0 0}
form{display:grid;gap:18px;max-width:560px}
label,.lg{font-size:15px;display:block;margin-bottom:6px}
input[type=text],textarea{width:100%;font:16px/1.4 var(--t);color:var(--ink);background:var(--bg2);border:1px solid var(--line);border-radius:6px;padding:12px 14px}
textarea{min-height:80px;resize:vertical}
.opts{display:grid;gap:8px}
.opts label{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:6px;cursor:pointer;margin:0}
.opts input{accent-color:var(--green);width:18px;height:18px}
.err{color:#f0b3a6;font-size:14px;min-height:1em;margin:0}
.done{display:none;font:400 26px/1.3 var(--d)}
details{border-top:1px solid var(--line);padding:16px 0}
details:last-of-type{border-bottom:1px solid var(--line)}
summary{cursor:pointer;font:400 17px/1.4 var(--t);list-style:none;display:flex;justify-content:space-between;gap:16px;min-height:28px}
summary::after{content:"+";color:var(--soft);font-size:22px;line-height:1}
details[open] summary::after{content:"−"}
details p{margin:10px 0 0;color:var(--soft)}
body.locked{overflow:hidden}
.gate{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:24px 16px;background:var(--bg);overflow-y:auto}
.gate{display:none}
body.gating .gate{display:grid}
.pin{height:200svh}
.pin .hero{position:sticky;top:0;height:100svh}
.cue{display:none;font-size:14px;color:var(--soft);margin-top:14px}
body:not(.locked) .cue{display:block}
.card{width:min(100%,420px);background:var(--bg);border:1px solid var(--line);padding:30px 26px 24px;display:grid;gap:16px}
.card h2{font-size:30px;margin:0;text-align:center}
.card p{margin:0;color:var(--soft);font-size:15px;text-align:center}
.card .btn{width:100%}
#code{letter-spacing:.4em;font-size:22px;text-align:center}
.linkbtn{background:none;border:0;color:var(--soft);font:14px var(--t);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:8px;min-height:40px}
.row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px}
#venue{padding-top:calc(clamp(40px,7vw,96px) + 56px)}
.hi{font:400 22px/1.3 var(--d);color:var(--soft);margin:0 0 10px}
.sched time small{font:400 13px/1 var(--t);letter-spacing:.02em;margin-left:2px}
.sched li{grid-template-columns:6.4em minmax(0,1fr)}
.venue{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:28px;align-items:start}
.venue h3{font:400 26px/1.2 var(--d);margin:0 0 10px}
.venue p{margin:0 0 14px;color:var(--soft)}
.venue .addr{color:var(--ink);font-size:17px}
.venue .when2{color:var(--ink);font:400 20px/1.4 var(--d)}
.gift{font:400 clamp(20px,2.2vw,24px)/1.45 var(--d);max-width:30em;margin:0 0 14px}
.btn.ghost{background:none;color:var(--ink);border:1px solid var(--line)}
.btn.ghost:hover{background:var(--bg2)}
.map{position:relative;display:block;border:1px solid var(--line);aspect-ratio:25/16;overflow:hidden}
.mapsvg{position:absolute;inset:0;width:100%;height:100%;display:block}
.ml text{font-family:var(--t);font-size:30px;fill:#C9B98F;letter-spacing:.04em;paint-order:stroke;stroke:#0F1F1A;stroke-width:8px}
.ml .sm{font-size:26px}
.ml .it{font-family:var(--d);font-size:36px}
.ml .club{font-family:var(--d);font-size:36px;fill:#EFE6D2}
.map{background:#0F1F1A}
@media(max-width:700px){.venue{grid-template-columns:1fr}}
/* pre-auth: a single button on the night ground */
.stage{transition:opacity 1.8s ease}
.nav{transition:opacity 1.2s ease 1s}
body.gating .card{animation:rise .7s cubic-bezier(.2,.7,.2,1) both}
.gate{transition:background .6s}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes glow{0%,100%{opacity:.6;transform:scale(.92)}50%{opacity:1;transform:scale(1.06)}}
/* reveal after sign-in */
body.revealed .hero>*{animation:rise 1.1s cubic-bezier(.2,.7,.2,1) both}
body.revealed .hero>:nth-child(1){animation-delay:.6s}
body.revealed .hero>:nth-child(2){animation-delay:.85s}
body.revealed .hero>:nth-child(3){animation-delay:1.1s}
body.revealed .hero>:nth-child(4){animation-delay:1.25s}
body.revealed .hero>:nth-child(5){animation-delay:1.45s}
body.revealed .hero>:nth-child(6){animation-delay:1.6s}
body.revealed .hero>:nth-child(7){animation-delay:1.85s}
@media(prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important}}
footer{padding:48px max(5vw,20px) 60px;text-align:center;color:var(--soft);font-size:14px}
footer .mark{display:block;font-size:30px;color:var(--ink);margin-bottom:6px}

/* public landing: one button on the night ground */
body.checking .landing{visibility:hidden}
.landing{min-height:100svh;display:grid;place-items:center;position:relative}
.landing .glow{position:absolute;left:50%;top:50%;width:260px;height:260px;margin:-130px 0 0 -130px;border-radius:50%;background:radial-gradient(closest-side,rgba(232,185,106,.14),rgba(232,185,106,0));animation:glow 5s ease-in-out infinite;pointer-events:none}
#open{position:relative;background:none;color:var(--ink);border:1px solid var(--line);padding:0 34px;min-height:54px;letter-spacing:.06em;animation:rise 1.6s .4s cubic-bezier(.2,.7,.2,1) both;transition:background .4s,border-color .4s,opacity .4s}
#open:hover{background:rgba(239,230,210,.06);border-color:var(--soft)}
body.gating #open{opacity:0}
.stage.pre,.nav.pre{opacity:0}
.cue{display:block}
.devnote{font-size:13px;color:var(--soft);text-align:center;margin:0}
/* signed-in extras */
.as{color:var(--soft);margin:-8px 0 22px}
.as b{color:var(--ink);font-weight:500}
.summary{border:1px solid var(--line);padding:22px;max-width:560px;display:grid;gap:10px}
.summary .big{font:400 26px/1.3 var(--d);margin:0}
.summary p{margin:0;color:var(--soft)}
.summary .btn{justify-self:start;margin-top:6px}
.seat{text-align:left}
.tableno{font:400 clamp(64px,13vw,108px)/1 var(--d);margin:0 0 10px}
.mates{color:var(--soft);margin:0;max-width:34em}
#seat{padding-top:calc(clamp(40px,7vw,96px) + 56px)}
#seat:not([hidden])~#venue,#seat:not([hidden])~#photos{padding-top:clamp(40px,7vw,96px)}
.signout{margin-top:16px}
.credit{display:block;margin-top:18px;font-size:11px;opacity:.55}
.invite{font:400 clamp(19px,2.2vw,24px)/1.35 var(--d);color:var(--soft);margin:10px 0 18px}
.place{font:400 clamp(20px,2.4vw,26px)/1.3 var(--d);margin:0 0 6px}
.after{font:400 15px/1.4 var(--t);color:var(--soft);margin:0 0 22px}
.when{margin:0 0 6px}
@media(min-width:900px){
.stage{right:auto;width:46vw}
.frame{right:calc(54vw + 14px)}
.veil{background:linear-gradient(90deg,rgba(15,31,26,0) 70%,rgba(15,31,26,.55) 100%)}
main{margin-left:46vw}
.nav{left:46vw;background:var(--bg)}
.hero{justify-content:center;background:var(--bg)}
.panel{background:var(--bg)}
}
@media(max-width:600px){
.links{display:none}
.sched li{grid-template-columns:5.8em minmax(0,1fr);gap:12px}
.sched time{font-size:23px}
.sub{font-size:15px;line-height:1.55;color:var(--ink);opacity:.88}
h1{font-size:clamp(46px,13vw,64px)}
}

/* Phones and tablets: the painting takes the top of the screen, the invitation sits compactly below it. */
@media(max-width:899px){
.veil{background:linear-gradient(180deg,rgba(15,31,26,.3) 0%,rgba(15,31,26,0) 12%,rgba(15,31,26,0) 40%,rgba(15,31,26,.82) 56%,rgba(15,31,26,.96) 70%)}
.hero{padding-bottom:clamp(22px,4svh,40px)}
.hi{font-size:17px;margin:0 0 2px}
h1{font-size:clamp(40px,11vw,58px);line-height:1}
.invite{font-size:17px;margin:6px 0 8px}
.when{font-size:18px;line-height:1.3;margin:0 0 2px}
.place{font-size:18px;line-height:1.3;margin:0 0 2px}
.after{font-size:13.5px;margin:0 0 12px}
.sub{font-size:13.5px;line-height:1.5;margin:0 0 6px}
.sub+div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-top:10px}
.by,.cue{margin:0;font-size:13px}
}
@media(max-width:899px) and (max-height:740px){
.veil{background:linear-gradient(180deg,rgba(15,31,26,.3) 0%,rgba(15,31,26,0) 12%,rgba(15,31,26,0) 34%,rgba(15,31,26,.85) 50%,rgba(15,31,26,.96) 66%)}
.hero{padding-bottom:18px}
.hi{font-size:15px}
h1{font-size:38px}
.invite{font-size:15.5px;margin:4px 0 6px}
.when,.place{font-size:16px}
.after{font-size:12.5px;margin:0 0 8px}
.sub{font-size:12.5px;line-height:1.45;margin:0 0 4px}
.sub+div{margin-top:6px}
.by,.cue{font-size:12px}
}

/* Welcome line: larger than the body text, smaller than the names, set a little heavier. */
.hi{font-size:28px;line-height:1.2;-webkit-text-stroke:.45px currentColor;paint-order:stroke fill}
@media(max-width:899px){
.hi{font-size:24px;margin:0 0 4px}
}
@media(max-width:899px) and (max-height:740px){.hi{font-size:21px}}

/* ===== Type scale: five sizes used everywhere =====
   Display  names, and the table number on the wedding day
   Heading  section titles
   Subhead  welcome line, date and place, schedule times, venue name, short Gilda lines
   Body     paragraphs, schedule events, questions and answers, form fields, buttons
   Small    notes, hints, byline, footer */
:root{--fs-display:clamp(52px,7vw,88px);--fs-h2:40px;--fs-h3:24px;--fs-body:17px;--fs-small:14px}
@media(max-width:899px){:root{--fs-display:48px;--fs-h2:32px;--fs-h3:18.5px;--fs-body:15px;--fs-small:13px}}
@media(max-width:899px) and (max-height:740px){:root{--fs-display:42px;--fs-h2:30px;--fs-h3:17px;--fs-body:14px;--fs-small:12.5px}}
h1,.tableno{font-size:var(--fs-display);line-height:1.02}
h2,.card h2{font-size:var(--fs-h2);line-height:1.1}
.hi,.invite,.when,.place,.mark,.venue h3,.venue .when2,.sched time,.done,.summary .big,#code,footer .mark{font-size:var(--fs-h3);line-height:1.3}
body,.sub,.after,.glance,.btn,.gift,.sched b,summary,.venue .addr,label,.lg,input[type=text],textarea,.card p{font-size:var(--fs-body)}
.sub,.card p,.venue .addr,.gift{line-height:1.6}
.gift{font-family:var(--t)}
.by,.cue,.links a,.sched span,.note,.err,.linkbtn,footer,.devnote,.credit,.sched time small{font-size:var(--fs-small)}
.sched time small{font-size:.6em}
.hi{-webkit-text-stroke:.4px currentColor}

/* Add to calendar */
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
details.cal{border:0;padding:0;position:relative}
details.cal summary{display:inline-flex;min-height:48px;gap:0;font-size:var(--fs-body)}
details.cal summary::after{content:none}
details.cal summary::-webkit-details-marker{display:none}
.calmenu{position:absolute;left:0;top:calc(100% + 8px);z-index:6;min-width:220px;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:6px;display:grid;box-shadow:0 18px 40px -16px rgba(0,0,0,.7)}
.calmenu a{color:var(--ink);text-decoration:none;padding:12px 14px;border-radius:8px;font-size:var(--fs-body);min-height:44px;display:flex;align-items:center}
.calmenu a:hover,.calmenu a:focus-visible{background:var(--bg2);outline:none}

/* Location: details, then the buttons on one row, then the map, at every screen size. */
.venue{grid-template-columns:minmax(0,1fr)}
.actions .btn{white-space:nowrap}
