/* =========================================================
   DigiInvite · "Monsoon" (evening reception in the rain)
   night street + warm lamplight + saree red, cream paper cards.
   Libre Caslon Display (headings) · Mulish (text) · Mrs Saint Delafield (names)
   ========================================================= */
:root{
  --night:#141A24; --night2:#1C2432; --mist:#E9EEF3; --paper:#F6F0E6; --ink:#22252B; --soft:#5E6470;
  --muted:#A4ACB9; --amber:#F2B866; --gold:#D4A657; --red:#A3202C; --red-d:#7E1520; --line:rgba(34,37,43,.14);
  --head:'Libre Caslon Display', Georgia, serif; --sans:'Mulish', system-ui, sans-serif; --script:'Mrs Saint Delafield', cursive;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html, body{ overflow-x:clip; }
body{ margin:0; color: var(--mist); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse at 20% 0%, #26324A 0%, transparent 55%), linear-gradient(180deg, var(--night2), var(--night)) fixed; background-color: var(--night); }
body.gate-locked{ overflow:hidden; }
img{ max-width:100%; display:block; }
h1, h2, h3{ font-weight: 400; margin: 0; }
.caps{ font-weight: 600; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red); margin: 0; }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; text-decoration:none; padding: 14px 24px; border-radius: 3px; cursor:pointer; border: 1px solid transparent; transition: transform .2s ease, background .25s ease; }
.btn:hover{ transform: translateY(-1px); }
.btn-red{ background: var(--red); color: #fff; box-shadow: 0 10px 20px -12px rgba(163,32,44,.9); }
.btn-red:hover{ background: var(--red-d); }
.btn-amber{ background: var(--amber); color: #2A1E0C; }
.btn-line{ background: transparent; color: var(--ink); border-color: rgba(34,37,43,.35); }
.btn-sm{ padding: 10px 16px; font-size: .68rem; }
.btn-block{ width:100%; }
.btn svg{ width: 16px; height: 16px; }

/* =========================================================
   HERO — the film behind the glass
   ========================================================= */
.hero{ position:relative; height: 100vh; height: 100svh; overflow:hidden; background: #10151E url(media/rain-portrait-poster.jpg?v=2) center / cover; }
@media (min-aspect-ratio: 1/1){ .hero{ background-image: url(media/rain-landscape-poster.jpg?v=2); } }
#rain{ position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.hero-shade{ position:absolute; inset:0; pointer-events:none; background: linear-gradient(180deg, rgba(14,18,26,.72) 0%, rgba(14,18,26,.2) 34%, rgba(14,18,26,0) 50%, rgba(14,18,26,.15) 70%, rgba(14,18,26,.85) 100%); }
.hero-text{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; text-align:center; padding: 11vh 18px 4vh; color: #fff; }
.hero-text > *{ opacity: 0; transform: translateY(14px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
body:not(.gate-locked) .hero-text > *{ opacity: 1; transform:none; }
body:not(.gate-locked) .hero-text > *:nth-child(2){ transition-delay: .15s; } body:not(.gate-locked) .hero-text > *:nth-child(3){ transition-delay: .3s; }
body:not(.gate-locked) .hero-text > *:nth-child(n+4){ transition-delay: .45s; }
.hero-text .caps{ color: var(--amber); }
.hero-text h1{ font-family: var(--script); font-size: clamp(3.6rem, 11vw, 7rem); line-height: 1.05; margin: 10px 0 0; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.hero-text h1 em{ font-style: normal; color: var(--amber); }
.hero-text .sub{ font-style: italic; margin: 0; }
.hero-text .when{ font-family: var(--head); font-size: 1.2rem; margin: 10px 0 0; }
.hero-text .when b{ color: var(--amber); font-weight: 400; margin: 0 .3em; }
.hero-text .where{ margin: 0; color: #DCE3EB; }
.hero-text p{ text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.count{ display:flex; gap: 10px; justify-content:center; margin-top: auto; margin-bottom: 18px; }
.count div{ min-width: 64px; padding: 9px 8px 7px; border-top: 2px solid var(--amber); background: rgba(14,18,26,.45); }
.count strong{ display:block; font-family: var(--head); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.count span{ font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: #CBD3DD; }
.down{ display:inline-flex; flex-direction:column; align-items:center; gap: 6px; color: #fff; text-decoration:none; font-weight: 600; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; }
.down i{ width: 1px; height: 32px; background: linear-gradient(#fff, transparent); }

/* =========================================================
   GATE — misted glass, wiped by the guest
   ========================================================= */
#gate{ position:fixed; inset:0; z-index: 100; transition: opacity 1s ease, visibility 1s ease; }
#gate.is-open{ opacity: 0; visibility: hidden; }
#gate.is-hidden{ display:none; }
#fog{ position:absolute; inset:0; width:100%; height:100%; touch-action: none; cursor: grab; }
.wipe-hint{ position:absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(340px, calc(100% - 40px)); text-align:center; color: #26303D; pointer-events:none; transition: opacity .6s ease; }
.wipe-hint.is-wiping{ opacity: 0; }
.w-dear{ font-family: var(--script); font-size: 3.2rem; line-height: 1.1; margin: 0; }
.w-line{ margin: 6px 0 16px; font-weight: 400; }
.w-hand{ width: 44px; height: 44px; color: #26303D; animation: wipe 2.2s ease-in-out infinite; }
@keyframes wipe{ 0%,100%{ transform: translateX(-26px) rotate(-8deg); } 50%{ transform: translateX(26px) rotate(8deg); } }
.w-skip{ display:block; margin: 18px auto 0; pointer-events:auto; border:0; background:none; color: #26303D; font-family: var(--sans); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; cursor:pointer; }

/* rain streaks over the page (cards sit above it) */
#rainfx{ position:fixed; inset:0; width:100%; height:100%; z-index: 1; pointer-events:none; }

/* ---------- top bar ---------- */
.top{ position:fixed; top:0; left:0; right:0; z-index: 40; display:flex; justify-content:space-between; align-items:center; padding: 14px 20px; transition: background .4s ease; }
.top.is-scrolled{ background: rgba(20,26,36,.92); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.mono{ font-family: var(--head); font-size: 1.2rem; color: #fff; text-decoration:none; }
.mono i{ font-style: normal; color: var(--amber); }
.top-tools{ display:flex; align-items:center; gap: 10px; }
.snd{ width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(14,18,26,.4); color: #fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.snd svg{ width: 17px; height: 17px; }
.snd .x{ display:none; } .snd.is-muted .x{ display:inline; } .snd.is-muted .w{ display:none; }
.lang{ display:flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow:hidden; }
.lang button{ border:0; background:none; padding: 5px 9px; font-family: var(--sans); font-size: .72rem; color: #DCE3EB; cursor:pointer; }
.lang button.active{ background: var(--amber); color: #2A1E0C; }

/* =========================================================
   THE STREET — one lamp per section, lit as it's reached
   ========================================================= */
.street{ position:relative; z-index: 2; max-width: 980px; margin: 0 auto; padding: 60px 22px 20px 22px; }
.street::before{ content:''; position:absolute; left: 51px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, rgba(242,184,102,.18) 6%, rgba(242,184,102,.18) 94%, transparent); }
.stop{ position:relative; display:grid; grid-template-columns: 62px minmax(0, 1fr); gap: 22px; margin-bottom: 56px; }
.lamp{ position:relative; height: 100%; min-height: 120px; }
.lamp .post{ position:absolute; left: 28px; top: 34px; width: 4px; height: 90px; border-radius: 2px; background: linear-gradient(#3A4456, #232A36); }
.lamp .head{ position:absolute; left: 16px; top: 6px; width: 28px; height: 30px; border-radius: 6px 6px 3px 3px; background: #2B3342; box-shadow: inset 0 -10px 0 #39424F; transition: background .6s ease, box-shadow .6s ease; }
.lamp .head::before{ content:''; position:absolute; left: -4px; right: -4px; top: -6px; height: 8px; border-radius: 6px 6px 1px 1px; background: #3A4456; }
.lamp .glow{ position:absolute; left: -50px; top: -40px; width: 160px; height: 200px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, rgba(242,184,102,.55), rgba(242,184,102,0) 65%); opacity: 0; transition: opacity 1.1s ease .2s; pointer-events:none; }
.stop.in-view .lamp .head{ background: #FCE2AE; box-shadow: inset 0 -10px 0 #F2B866, 0 0 18px 4px rgba(242,184,102,.7); }
.stop.in-view .lamp .glow{ opacity: 1; animation: flicker 5s ease-in-out infinite 1.4s; }
@keyframes flicker{ 0%,100%{ opacity: 1; } 47%{ opacity: 1; } 48%{ opacity: .7; } 49%{ opacity: 1; } 72%{ opacity: .92; } }

.card{ background: var(--paper); color: var(--ink); padding: 34px 34px 30px; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04); }
.card h2{ font-family: var(--head); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; margin: 6px 0 14px; }
.card h3{ font-family: var(--head); font-size: 1.3rem; margin: 0 0 4px; }
.card p{ color: var(--soft); margin: 0 0 12px; }

/* reveal: the card slides in after its lamp lights */
.stop .card, .stop .pass-cards{ opacity: 0; transform: translateY(20px); transition: opacity .9s ease .25s, transform .9s cubic-bezier(.2,.7,.2,1) .25s; }
.stop.in-view .card, .stop.in-view .pass-cards{ opacity: 1; transform: none; }

/* ---------- evening ---------- */
.evening{ list-style:none; padding:0; margin: 0 0 18px; }
.evening li{ display:flex; gap: 18px; padding: 12px 0; border-bottom: 1px dashed rgba(34,37,43,.18); }
.evening time{ font-family: var(--head); font-size: 1.15rem; color: var(--red); min-width: 5.4em; }
.evening span{ color: var(--ink); }

/* ---------- story ---------- */
.story{ display:grid; grid-template-columns: 220px 1fr; gap: 28px; align-items:center; }
.story figure{ margin: 0; }
.story img{ width:100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% 4px 4px; }
.sign{ font-family: var(--script); font-size: 2.3rem; color: var(--ink) !important; line-height: 1; margin-top: 6px !important; }

/* ---------- place ---------- */
.map-box{ border-radius: 4px; overflow:hidden; margin: 6px 0 20px; box-shadow: 0 0 0 1px var(--line); }
#place .map-ph{ height: 240px; }
#place .map-ph img{ filter: grayscale(.4) brightness(.95) hue-rotate(180deg) saturate(.5); }
.place-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.swatches{ display:flex; gap: 8px; }
.swatches span{ width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); }

/* ---------- reply ---------- */
.dear{ font-family: var(--script); font-size: 2.4rem; line-height: 1.1; color: var(--ink) !important; }
.field{ margin-bottom: 14px; }
.field label, .field .lbl{ display:block; font-weight: 600; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.field label em{ text-transform:none; letter-spacing: 0; font-weight: 300; }
.field input, .field select, .field textarea{ width:100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); padding: 11px 13px; border: 1px solid rgba(34,37,43,.22); border-radius: 3px; background: #FFFCF7; }
.field input:focus, .field select:focus, .field textarea:focus{ outline: 2px solid rgba(163,32,44,.35); outline-offset: 1px; }
.known{ font-family: var(--script); font-size: 2.2rem; }
.row2{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 16px; }
.pick input{ position:absolute; opacity:0; pointer-events:none; }
.pick label{ text-align:center; padding: 14px 10px; border: 1px solid rgba(34,37,43,.22); background: #FFFCF7; cursor:pointer; font-weight: 400; border-radius: 3px; transition: all .2s ease; }
.pick input:checked + label{ background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--amber); }
.pick input:focus-visible + label{ outline: 2px solid var(--red); }
.thanks{ display:none; }
.thanks.is-visible{ display:block; }
.thanks h3{ font-family: var(--script); font-size: 3rem; line-height: 1.1; }

/* ---------- cloakroom ticket ---------- */
.pass-cards{ display:flex; flex-direction:column; align-items:flex-start; gap: 16px; }
.ticket{ display:flex; width: min(560px, 100%); background: #F3E6C9; color: #2A2416; border-radius: 4px; box-shadow: 0 26px 40px -26px rgba(0,0,0,.9); transform: rotate(-1.5deg);
  background-image: repeating-linear-gradient(0deg, rgba(120,90,30,.05) 0 1px, transparent 1px 3px); }
.stub{ flex: none; width: 104px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 6px; padding: 18px 10px; border-right: 2px dashed rgba(42,36,22,.35); position:relative; background: var(--red); color: #FBE9D0; border-radius: 4px 0 0 4px; }
.stub::before, .stub::after{ content:''; position:absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); }
.stub::before{ top: -8px; } .stub::after{ bottom: -8px; }
.st-no{ font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; margin: 0; text-align:center; }
.st-no b{ display:block; font-family: var(--head); font-weight: 400; font-size: 2rem; letter-spacing: 0; line-height: 1.1; }
.st-cap{ font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.tk-body{ flex:1; padding: 18px 20px 16px; text-align:center; }
.tk-cap{ font-weight: 600; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 0; }
.tk-names{ font-family: var(--head); font-size: 1.6rem; margin: 4px 0 0; }
.tk-date{ font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #6D6146; margin: 2px 0 12px; }
.tk-qr{ width: 146px; height: 146px; margin: 0 auto; background: #FFFCF4; display:flex; align-items:center; justify-content:center; padding: 8px; box-shadow: 0 0 0 1px rgba(42,36,22,.2); }
#qrWaiting p{ font-size: .8rem; color: #6D6146; margin: 0; line-height: 1.35; }
#qrImage{ width: 130px; height: 130px; }
.tk-guest{ font-family: var(--script); font-size: 2rem; line-height: 1; margin: 10px 0 0; }
.tk-code{ font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: #6D6146; margin: 2px 0 0; }
.pass-cards > .btn-line{ color: #fff; border-color: rgba(255,255,255,.4); }
.table-card{ width: min(560px, 100%); }
.seat-find{ display:flex; gap: 8px; }
.seat-find input{ flex:1; min-width:0; font: inherit; font-weight: 400; padding: 10px 13px; border: 1px solid rgba(34,37,43,.22); border-radius: 3px; background: #FFFCF7; }
.seat-result{ display:none; } .seat-result.is-visible{ display:block; }
.seat-no{ font-family: var(--head); font-size: 1.7rem; color: var(--red) !important; margin: 12px 0 4px !important; }
.demo{ font-size: .82rem; font-style: italic; }

/* ---------- gift card (../_shared/extras.js): a paper card in line with the others ---------- */
.street > .digi-gift{ padding: 0 0 56px 84px; justify-content:flex-start; }
.street > .digi-gift .dg-inner{ width: 100%; max-width: none; background: var(--paper); color: var(--ink); border: 0; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); padding: 34px; }
.street > .digi-gift .dg-cap{ color: var(--red); opacity: 1; font-weight: 600; }
.street > .digi-gift .dg-title{ font-family: var(--head); }
@media (max-width: 760px){ .street > .digi-gift{ padding: 0 0 40px 50px; } .street > .digi-gift .dg-inner{ padding: 26px 18px; } }

/* ---------- album ---------- */
#guestUpload{ display:none; }
.upload-preview{ display:grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 16px; }
.upload-preview img{ width:100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }

/* ---------- footer ---------- */
.foot{ position:relative; z-index: 2; text-align:center; padding: 60px 22px 100px; }
.f-names{ font-family: var(--script); font-size: clamp(3.2rem, 9vw, 4.6rem); line-height: 1.1; margin: 0; color: #fff; }
.f-names i{ font-style: normal; color: var(--amber); }
.f-date{ letter-spacing: .3em; font-size: .78rem; text-transform: uppercase; margin: 4px 0 22px; color: var(--muted); }
.f-tools{ display:flex; gap: 10px; justify-content:center; flex-wrap:wrap; }
.foot .btn-line{ color: #fff; border-color: rgba(255,255,255,.4); }
.made{ font-size: .82rem; color: var(--muted); margin-top: 26px; }
.made a{ color: var(--amber); }

/* ---------- music ---------- */
.music{ position:fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(20,26,36,.85); color: var(--amber); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.music svg{ width: 20px; height: 20px; }
.music.is-off{ opacity: .8; }
.music:not(.is-off) svg{ animation: spin 6s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }

/* tall screens: the couple's faces are high in the frame, so the words sit low, over the darker street */
@media (max-aspect-ratio: 1/1){
  .hero-text{ justify-content: flex-end; padding-bottom: 3vh; }
  .hero-text h1{ margin-top: 4px; }
  .count{ margin-top: 16px; }
  .hero-shade{ background: linear-gradient(180deg, rgba(14,18,26,.55) 0%, rgba(14,18,26,0) 18%, rgba(14,18,26,0) 40%, rgba(14,18,26,.6) 62%, rgba(14,18,26,.92) 100%); }
}

/* =========================================================
   phones
   ========================================================= */
@media (max-width: 760px){
  body{ font-size: 16px; }
  .street{ padding: 40px 12px 10px 8px; }
  .street::before{ left: 27px; }
  .stop{ grid-template-columns: 40px 1fr; gap: 10px; margin-bottom: 40px; }
  .lamp{ transform: scale(.7); transform-origin: 0 0; }
  .card{ padding: 26px 18px 22px; }
  .story{ grid-template-columns: 1fr; gap: 16px; }
  .story figure{ max-width: 200px; }
  .place-row{ grid-template-columns: 1fr; gap: 16px; }
  .row2{ grid-template-columns: 1fr; gap: 0; }
  .evening li{ gap: 12px; }
  .evening time{ font-size: 1rem; min-width: 4.8em; }
  .ticket{ transform: none; }
  .stub{ width: 72px; }
  .st-no b{ font-size: 1.5rem; }
  .tk-body{ padding: 14px 10px 12px; }
  .tk-names{ font-size: 1.3rem; }
  .tk-qr{ width: 124px; height: 124px; }
  #qrImage{ width: 108px; height: 108px; }
  .top{ padding: 10px 12px; }
  .hero-text h1 span{ display:block; } .hero-text h1 em{ display:block; font-size: .6em; line-height: .9; }
}

/* 2026-11-16 new 1080p rain films: on wide screens the couple's faces sit in the middle of
   the frame, so only the names stay at the top (over the umbrella) and the invitation line,
   date and place drop to the bottom with the countdown. On short tall screens the names go
   on one line and the arrow goes, so nothing covers their faces. */
@media (min-aspect-ratio: 1/1){
  .hero-text .sub{ order: 2; margin-top: auto; }
  .hero-text .when{ order: 3; } .hero-text .where{ order: 4; }
  .hero-text .count{ order: 5; margin-top: 16px; }
  .hero-text .down{ order: 6; }
  .hero-text{ padding-top: 8vh; }
  .hero-text h1{ font-size: clamp(3.4rem, 8vw, 6rem); }
  .hero-shade{ background: linear-gradient(180deg, rgba(14,18,26,.7) 0%, rgba(14,18,26,.15) 30%, rgba(14,18,26,0) 46%, rgba(14,18,26,.35) 66%, rgba(14,18,26,.9) 100%); }
}
@media (max-aspect-ratio: 1/1) and (max-height: 760px){
  .hero-text h1{ font-size: clamp(2.2rem, 10vw, 3rem); white-space: nowrap; }
  .hero-text h1 span, .hero-text h1 em{ display: inline; font-size: 1em; margin: 0 .1em; }
  .hero-text .down{ display: none; }
  .hero-text .count{ margin-top: 12px; margin-bottom: 52px; }
  .hero-text .caps{ font-size: .6rem; }
}