/* Blush Garden — neutral wedding invitation (site-6) */
:root {
  --ivory: #FFF9F0;
  --cream: #F5E8D7;
  --ink: #44352D;
  --muted: #8a796d;
  --gold: #C6A15B;
  --gold-deep: #96713D;
  --gold-soft: rgba(198, 161, 91, .28);
  --blush: #E8B9B2;
  --rose: #C98283;
  --sage: #78856A;
  --wine: #702F35;
  --line: rgba(68, 53, 45, .14);
  --serif: "Playfair Display", Georgia, serif;
  --script: "Great Vibes", "Cormorant Garamond", cursive;
  --corm: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--ivory); color: var(--ink);
  line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold-soft); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

#leafCanvas, #sparkCanvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#leafCanvas { opacity: .6; }
#scrollProgress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; }
#scrollProgress span { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }

/* ---------- cover (video opening) ---------- */
#cover { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: #241d16; color: var(--ivory);
  height: 100vh; height: 100svh; overflow: hidden; }
#cover.docked { position: relative; z-index: 2; }
#coverVideo { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #241d16; }
.cover-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(30,24,18,.40), rgba(30,24,18,.12) 40%, rgba(30,24,18,.52) 85%);
  opacity: 0; transition: opacity 1.4s ease; }
#cover.playing .cover-shade, #cover.failed .cover-shade { opacity: 1; }
.cover-brand { position: absolute; top: calc(16px + var(--sat)); z-index: 3;
  font-size: 10px; font-weight: 600; letter-spacing: .32em; text-indent: .32em;
  color: rgba(243, 230, 194, .75); }
.cover-names { position: relative; z-index: 2; text-align: center; padding: 0 24px;
  max-width: min(640px, 92vw); opacity: 0; visibility: hidden;
  transform: translateY(16px); filter: blur(6px);
  transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease, visibility 0s 1.2s;
  text-shadow: 0 2px 22px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.65); }
#cover.shownames .cover-names { opacity: 1; visibility: visible; transform: none;
  filter: blur(0); transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease; }
.cover-sub { font-family: var(--corm); font-style: italic;
  font-size: clamp(1.05rem, 5vw, 1.5rem); letter-spacing: .12em; color: #f3e6c2; }
.cover-couple { font-family: var(--script); font-weight: 400;
  font-size: clamp(3rem, 15vw, 5.4rem); line-height: 1.25; margin-top: 6px; color: #fffdf7; }
.cover-couple em { font-family: var(--corm); font-style: italic; font-size: .55em;
  margin: 0 .35em; color: var(--gold); }
.cover-orn { display: flex; align-items: center; gap: 12px; width: min(240px, 60vw); margin: 12px auto 0; }
.cover-orn i { flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243,230,194,.9), transparent); }
.cover-orn b { color: var(--gold); font-size: 14px; font-weight: 400; }
.cover-date { font-size: 12px; letter-spacing: .32em; text-indent: .32em;
  color: rgba(255,253,247,.95); margin-top: 10px; }
.cover-invite { position: absolute; z-index: 5; left: 0; right: 0; top: 44%;
  transform: translateY(-50%); text-align: center; padding: 0 8%;
  font-family: var(--script); font-size: clamp(2.4rem, 11vw, 4rem); color: #fffdf7;
  text-shadow: 0 2px 24px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.65);
  opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.cover-invite.show { opacity: 1; }
.cover-invite.hide { opacity: 0; transition: opacity .6s ease; }
.cover-line { font-family: var(--corm); font-style: italic; color: rgba(255,253,247,.85);
  margin-top: 6px; font-size: 1.02rem; }
#openBtn { position: absolute; z-index: 4; left: 50%; top: 50%;
  transform: translate(-50%,-50%); background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px; color: var(--ivory); }
#cover.playing #openBtn, #cover.failed #openBtn { display: none; }
.tap-core { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid rgba(243,230,194,.85); background: rgba(30,24,18,.45);
  animation: tapPulse 2.6s ease-in-out infinite; }
@keyframes tapPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(243,230,194,.4); }
  50% { box-shadow: 0 0 0 18px rgba(243,230,194,0); } }
.tap-tri { width: 0; height: 0; border-left: 20px solid #f3e6c2;
  border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.tap-text { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-indent: .3em;
  text-transform: uppercase; color: #f3e6c2; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.cover-status { position: absolute; z-index: 4; left: 0; right: 0; text-align: center;
  bottom: calc(24% + var(--sab)); font-family: var(--corm); font-style: italic;
  color: rgba(255,253,247,.8); }
.cover-status[hidden] { display: none; }
#coverSkip { position: absolute; z-index: 4; right: 14px; top: calc(14px + var(--sat));
  background: rgba(30,24,18,.5); border: 1px solid rgba(243,230,194,.4); color: #f3e6c2;
  border-radius: 999px; padding: 8px 16px; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; cursor: pointer; }
#coverSkip[hidden] { display: none; }
.cover-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(255,255,255,.14); opacity: 0; transition: opacity .5s; z-index: 3; }
#cover.playing .cover-progress { opacity: 1; }
#cover.docked .cover-progress { opacity: 0; }
.cover-progress span { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--sage), var(--gold)); }
.cover-scrollcue { position: absolute; left: 0; right: 0; bottom: calc(22px + var(--sab));
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase;
  color: rgba(255,253,247,.9); opacity: 0; visibility: hidden; transition: opacity .8s ease .4s; }
#cover.docked .cover-scrollcue { opacity: 1; visibility: visible; }
.cover-scrollcue i { font-style: normal; font-size: 18px; color: var(--gold);
  animation: cueDrop 1.8s ease-in-out infinite; }
@keyframes cueDrop { 0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(7px); opacity: 1; } }
#coverReplay { position: absolute; z-index: 4; left: 14px;
  top: calc(14px + var(--sat)); background: rgba(30,24,18,.5);
  border: 1px solid rgba(243,230,194,.4); color: #f3e6c2; border-radius: 999px;
  padding: 8px 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; }
#coverReplay[hidden] { display: none; }
.cover-garland { position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  height: clamp(56px, 12vh, 96px); pointer-events: none;
  opacity: 0; transition: opacity 1.8s ease .8s; }
.cover-garland svg { width: 100%; height: 100%; display: block;
  transform-origin: top center; animation: gsway 9s ease-in-out infinite; }
@keyframes gsway { 0%, 100% { rotate: 0deg; } 50% { rotate: .8deg; } }
#cover.playing .cover-garland, #cover.failed .cover-garland { opacity: .95; }
@media (max-width: 640px) { .cover-garland { height: 60px; } }
#musicBtn { position: fixed; right: 14px; bottom: calc(52px + var(--sab)); z-index: 120;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--gold);
  background: rgba(255,249,240,.92); color: var(--gold-deep); font-size: 1.2rem;
  cursor: pointer; box-shadow: 0 8px 24px rgba(68,53,45,.18); }
#musicBtn[hidden] { display: none; }
#musicBtn.on { background: var(--wine); color: #fff; border-color: var(--wine); }

/* ---------- shared ---------- */
.sec { position: relative; padding: 72px 0; z-index: 2; overflow: hidden; }
.sec.alt { background: var(--cream); }
.wrap { width: min(1080px, 92%); margin: 0 auto; position: relative; z-index: 2; }
.wrap.narrow { max-width: 680px; text-align: center; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-deep); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 7vw, 2.9rem);
  line-height: 1.15; margin-top: 12px; }
.h2 em { font-family: var(--corm); font-style: italic; color: var(--gold-deep); }
.lead { color: var(--muted); margin-top: 14px; font-weight: 300; }
.gold-div { display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 20px auto 0; max-width: 280px; }
.gold-div::before, .gold-div::after { content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold)); }
.gold-div::after { background: linear-gradient(90deg, var(--gold), transparent); }
.gold-div b { color: var(--gold); font-weight: 400; font-size: 14px; }
.corner { position: absolute; width: 88px; height: 88px; z-index: 1; opacity: .55;
  pointer-events: none; color: var(--gold-deep); }
.corner.tl { top: 10px; left: 10px; }
.corner.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.corner.bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.corner.br { bottom: 10px; right: 10px; transform: scale(-1,-1); }
@media (max-width: 640px) { .corner { width: 50px; height: 50px; opacity: .4; } }

.reveal { opacity: 0; transform: translateY(28px);
  transition: opacity .9s ease, transform 1s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- intro ---------- */
.couple-script { font-family: var(--script); font-size: clamp(3rem, 14vw, 5rem);
  line-height: 1.25; color: var(--ink); margin-top: 8px; }
.couple-script em { font-family: var(--corm); font-style: italic; font-size: .5em;
  color: var(--gold-deep); margin: 0 .3em; }
.intro-date { font-family: var(--serif); letter-spacing: .24em; text-indent: .24em;
  margin-top: 14px; color: var(--wine); }

/* ---------- scratch trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
@media (max-width: 380px) { .trio { gap: 8px; } }
.scard { position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--gold-soft); outline: 1px solid rgba(198,161,91,.35); outline-offset: 4px;
  background: linear-gradient(160deg, #fffdf6, var(--cream));
  box-shadow: 0 14px 34px rgba(68,53,45,.10); aspect-ratio: 3 / 4; touch-action: none; }
.scard .under { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; }
.scard .k { font-size: 9px; font-weight: 700; letter-spacing: .3em; text-indent: .3em;
  text-transform: uppercase; color: var(--gold-deep); }
.scard .v { font-family: var(--serif); font-size: clamp(1rem, 5.4vw, 1.6rem); line-height: 1.2; }
.scard canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.scard.done { border-color: var(--gold); }
.scard-hint { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center;
  font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,253,247,.92); pointer-events: none; }
.tap-reveal { margin-top: 10px; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); cursor: pointer; }
.tap-reveal:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- countdown ---------- */
.count { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.cell { flex: 1; max-width: 132px; background: var(--ivory); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 4px; }
.cell + .cell { position: relative; }
.num { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 8vw, 2.6rem);
  line-height: 1; font-variant-numeric: tabular-nums; }
.cap { display: block; margin-top: 8px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.cd-note { margin-top: 14px; font-family: var(--corm); font-style: italic; color: var(--muted); }

/* ---------- gallery ---------- */
.masonry { columns: 2; column-gap: 12px; margin-top: 30px; }
@media (min-width: 860px) { .masonry { columns: 3; } }
.masonry figure { break-inside: avoid; margin-bottom: 12px; border-radius: 10px;
  overflow: hidden; cursor: zoom-in; border: 1px solid rgba(68,53,45,.08); }
.masonry img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 1s ease; }
.masonry figure:hover img { transform: scale(1.05); }
#celebrateCanvas { position: fixed; inset: 0; z-index: 140; pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(30,24,18,.93);
  display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; }
.lb-btn { position: absolute; background: rgba(255,249,240,.12); color: #fffdf7;
  border: 1px solid rgba(255,253,247,.3); border-radius: 50%; width: 46px; height: 46px;
  font-size: 1.2rem; cursor: pointer; }
#lbClose { top: calc(14px + var(--sat)); right: 14px; }
#lbPrev { left: 10px; top: 50%; transform: translateY(-50%); }
#lbNext { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: calc(16px + var(--sab)); color: rgba(255,253,247,.8);
  font-size: 12px; letter-spacing: .2em; }

/* ---------- events ---------- */
.events { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 760px) { .events { grid-template-columns: 1fr 1fr; } }
.event { background: var(--ivory); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 22px; text-align: center; box-shadow: 0 14px 34px rgba(68,53,45,.07); }
.event .et { font-size: 10.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep); }
.event h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-top: 8px; }
.event .ed { font-family: var(--corm); font-style: italic; color: var(--muted); margin-top: 4px; }
.event hr { border: 0; border-top: 1px solid var(--line); width: 52px; margin: 14px auto; }
.event .ev { font-size: .95rem; }
.event .evv { color: var(--muted); font-size: .88rem; margin-top: 2px; }

/* ---------- venue ---------- */
.venue-photo { margin-top: 26px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(68,53,45,.08); }
.venue-photo img { width: 100%; height: clamp(180px, 52vw, 320px); object-fit: cover; }
.venue-name { font-family: var(--serif); font-size: 1.6rem; margin-top: 22px; }
.venue-addr { color: var(--muted); margin-top: 4px; }
.map-frame { margin: 20px auto 0; max-width: 620px; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; }
.map-frame iframe { width: 100%; height: 280px; border: 0; display: block;
  filter: sepia(.2) saturate(.9); }
.btn { display: inline-block; margin-top: 24px; padding: 14px 40px;
  border: 1px solid var(--gold-deep); color: var(--ivory); background: var(--wine);
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; cursor: pointer;
  transition: transform .3s ease, background .4s ease; }
.btn:hover { background: #5a252b; transform: translateY(-1px); }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .7s ease; }
.btn:hover::after { left: 130%; }
.cover-couple { animation: coupleGlow 5s ease-in-out infinite; }
@keyframes coupleGlow { 0%, 100% { text-shadow: 0 2px 22px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.65); }
  50% { text-shadow: 0 2px 30px rgba(198,161,91,.55), 0 1px 3px rgba(0,0,0,.65); } }
.event { transition: transform .4s ease, box-shadow .4s ease; }
.event:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(68,53,45,.12); }
.btn.ghost { background: transparent; color: var(--ink); }

/* ---------- rsvp ---------- */
.rsvp-card { margin-top: 30px; background: var(--ivory); border: 1px solid var(--line);
  outline: 1px solid var(--gold-soft); outline-offset: 6px; border-radius: 14px;
  padding: 28px 22px; box-shadow: 0 14px 34px rgba(68,53,45,.08); text-align: left; }
@media (min-width: 640px) { .rsvp-card { padding: 34px 30px; } }
.rsvp-card label { display: grid; gap: 8px; margin-bottom: 16px; font-size: 11px;
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rsvp-card input[type="text"], .rsvp-card input[type="number"], .rsvp-card textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fffdf7;
  border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; width: 100%; }
.rsvp-card input:focus, .rsvp-card textarea:focus { outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft); }
.rsvp-card fieldset { border: 0; margin-bottom: 6px; }
.rsvp-card legend { font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 18px; margin-bottom: 10px; cursor: pointer;
  font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 400; }
.choice:has(input:checked) { border-color: var(--gold); background: #fffdf7; }
.choice input { accent-color: var(--gold-deep); width: 16px; height: 16px; }
.field-err { font-size: .8rem; color: #a33b3b; letter-spacing: 0; text-transform: none;
  font-weight: 400; }
.rsvp-ok { text-align: center; padding: 40px 16px; }
.ok-ring { display: inline-grid; place-items: center; width: 76px; height: 76px;
  border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-deep);
  font-family: var(--serif); font-size: 1.6rem; }
.ok-title { font-family: var(--serif); font-size: 1.6rem; margin-top: 18px; }
.ok-sub { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* ---------- quotes / finale / footer ---------- */
.quote { font-family: var(--corm); font-style: italic;
  font-size: clamp(1.5rem, 6.4vw, 2.4rem); line-height: 1.4; }
.quote-by { margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold-deep); }
.finale { text-align: center; padding: 96px 6%; position: relative; z-index: 2; }
.fin-names { font-family: var(--script); font-size: clamp(2.4rem, 11vw, 3.6rem); }
.fin-date { margin-top: 6px; letter-spacing: .3em; text-indent: .3em; color: var(--muted); }
.foot { text-align: center; padding: 44px 6% 54px; position: relative; z-index: 2; }
.foot hr { border: 0; border-top: 1px solid var(--line); width: 52px; margin: 20px auto; }
.f-credit { font-size: 12.5px; color: var(--muted); }
.f-credit a { color: var(--ink); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cover-names { transition: none; }
}
