/* ===========================================================
   Avraam & Elizaveta — wedding invitation
   Warm cream + soft black · minimal · airy
   =========================================================== */

@font-face{
  font-family:"Vetrino";
  src:url("wedding/fonts/Vetrino.otf") format("opentype");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

:root{
  /* palette (overridable by Tweaks) */
  --paper:   #FBFAF6;   /* card / screen background */
  --paper-2: #FBFAF6;   /* alt section tone */
  --ink:     #211d18;   /* soft black */
  --ink-soft:#3a342d;
  --muted:   #8b8175;   /* warm grey text */
  --faint:   #b7ad9f;   /* hairlines / disabled */
  --line:    #ddd3c4;
  --stage:   #211d18;   /* backdrop behind phone */

  /* fonts (overridable by Tweaks) */
  --font-head: "Vetrino", "Cormorant", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --maxw: 402px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family:var(--font-body);
  color:var(--ink);
  background:
    radial-gradient(120% 80% at 50% 0%, #2c2720 0%, var(--stage) 60%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ---------- desktop gate (screens > 900px) ---------- */
.desktop-gate{ display:none; }
@media (min-width:901px){
  .desktop-gate{
    display:flex;
    position:fixed; inset:0; z-index:9999;
    align-items:center; justify-content:center;
    padding:40px;
    background:var(--paper);
    text-align:center;
  }
  .desktop-gate__inner{ max-width:440px; }
  .desktop-gate__icon{
    width:52px; height:auto; color:var(--ink);
    opacity:.85; margin:0 auto 34px; display:block;
  }
  .desktop-gate__title{
    font-family:var(--font-head); font-style:normal; font-weight:500;
    font-size:38px; line-height:1.14; letter-spacing:.01em;
    color:var(--ink); margin:0 0 22px;
  }
  .desktop-gate__text{
    font-family:var(--font-body); font-size:16px; line-height:1.7;
    color:var(--muted); margin:0 auto; max-width:34ch;
    text-wrap:pretty;
  }
  .desktop-gate__btn{
    font-family:var(--font-body); font-size:12px;
    letter-spacing:.22em; text-transform:uppercase;
    color:var(--ink); background:transparent;
    border:1px solid var(--ink); cursor:pointer;
    padding:15px 30px;
    transition:background .25s ease, color .25s ease;
  }
  .desktop-gate__btn:hover{ background:var(--ink); color:var(--paper); }
  /* When dismissed, hide gate and reveal the site */
  body.gate-dismissed .desktop-gate{ display:none; }
}

/* ---------- stage + phone frame ---------- */
.stage{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 16px;
}

.phone{
  width:var(--maxw);
  max-width:100%;
  height:min(862px, calc(100vh - 56px));
  background:#0e0c0a;
  border-radius:54px;
  padding:13px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 40px 90px -30px rgba(0,0,0,.7),
    0 8px 24px rgba(0,0,0,.4);
  position:relative;
}
.phone__screen{
  position:relative;
  width:100%;
  height:100%;
  background:var(--paper);
  border-radius:42px;
  overflow:hidden;
}
/* dynamic island */
.phone__island{
  position:absolute;
  top:11px; left:50%;
  transform:translateX(-50%);
  width:104px; height:30px;
  background:#0e0c0a;
  border-radius:16px;
  z-index:50;
  pointer-events:none;
}
.scroller{
  position:absolute; inset:0;
  overflow-y:auto;
  overflow-x:hidden;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
.scroller::-webkit-scrollbar{ width:0; }

@media (max-width:440px){
  .stage{ padding:0; }
  .phone{ border-radius:0; padding:0; height:100vh; width:100vw; }
  .phone__screen{ border-radius:0; }
  .phone__island{ display:none; }
}

/* ---------- typography ---------- */
.eyebrow{
  font-family:var(--font-body);
  font-weight:600;
  font-size:11px;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0;
}
.h-display{
  font-family:var(--font-head);
  font-weight:400;
  line-height:.98;
  letter-spacing:.01em;
  margin:0;
}
.h-title{
  font-family:var(--font-head);
  font-weight:400;
  font-size:39px;
  line-height:1.04;
  letter-spacing:.01em;
  margin:0;
}
.h-title em,
.h-display em{ font-style:normal; }
.lede{
  font-size:16.5px;
  line-height:1.72;
  color:var(--ink-soft);
  font-weight:400;
  margin:0;
  text-wrap:pretty;
}
.muted{ color:var(--muted); }

/* ---------- section scaffolding ---------- */
.section{
  padding:52px 28px;
  position:relative;
}
.section--tone{ background:var(--paper-2); }
.section__head{ margin-bottom:22px; }
.section__head .eyebrow{ margin-bottom:16px; }
.section-title{
  font-family:var(--font-head);
  font-weight:400;
  font-style:normal;
  font-size:32px;
  line-height:1.08;
  letter-spacing:.01em;
  color:var(--ink);
  margin:0;
  text-wrap:balance;
}

.rule{
  width:46px; height:1px;
  background:var(--faint);
  border:0; margin:0;
}
.rule--center{ margin:0 auto; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding:18px 22px;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--font-body);
  font-weight:600;
  font-size:12.5px;
  letter-spacing:.22em;
  text-transform:uppercase;
  text-decoration:none;
  border:0;
  border-radius:15px;
  cursor:pointer;
  transition:opacity .25s ease, transform .25s ease;
}
.btn:hover{ opacity:.86; }
.btn:active{ transform:scale(.99); }
.btn--ghost{
  background:transparent;
  color:var(--ink);
  border:1px solid var(--ink);
}
.btn--ghost:hover{ background:var(--ink); color:var(--paper); opacity:1; }

/* ---------- image slots ---------- */
image-slot{ display:block; width:100%; }
.imgcaption{
  font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--muted); margin-top:10px; text-align:center;
}

/* ---------- cover ---------- */
.cover{
  position:relative;
  height:100%;
  min-height:760px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:#f6f1e9;
  overflow:hidden;
  background:#0e0c0a url("wedding/assets/couple-web.jpeg") center/cover no-repeat;
}
.cover__media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.cover__scrim{
  position:absolute; inset:0;
  background:linear-gradient(to top,
    rgba(20,17,13,.72) 0%,
    rgba(20,17,13,.30) 38%,
    rgba(20,17,13,.10) 60%,
    rgba(20,17,13,.34) 100%);
}
.cover__inner{
  position:relative;
  padding:0 30px 124px;
  z-index:2;
}
.cover__eyebrow{
  font-weight:600; font-size:11px; letter-spacing:.34em;
  text-transform:uppercase; margin:0 0 18px;
  color:rgba(246,241,233,.82);
}
.cover__names{
  font-size:clamp(44px, 13.5vw, 58px);
  display:flex; flex-direction:column;
  font-weight:400;
}
.cover__names .amp{
  font-style:normal; font-weight:400;
  font-size:.5em; color:rgba(246,241,233,.78);
  margin:.04em 0;
}
.cover__meta{
  display:flex; align-items:center; gap:12px;
  margin-top:22px;
  font-size:13px; letter-spacing:.22em; text-transform:uppercase;
  color:rgba(246,241,233,.9);
}
.cover__meta .dot{ opacity:.6; }
.cover__play{
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  z-index:3;
  width:88px; height:88px;
  border-radius:50%;
  border:3px solid #ffffff;
  background:rgba(20,17,13,.32);
  backdrop-filter:blur(3px);
  color:#ffffff;
  display:grid; place-items:center;
  cursor:pointer;
  padding-left:5px;
  box-shadow:0 6px 26px rgba(0,0,0,.4);
  transition:transform .3s ease, background .3s ease;
}
.cover__play svg{ filter:drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.cover__play::after{
  content:""; position:absolute; inset:-12px;
  border-radius:50%; border:2px solid rgba(255,255,255,.55);
  animation:pulse 2.8s ease-out infinite;
}
@keyframes pulse{ 0%{transform:scale(.9);opacity:.8} 70%{transform:scale(1.2);opacity:0} 100%{opacity:0} }
.cover__play:hover{ transform:translate(-50%,-50%) scale(1.05); background:rgba(20,17,13,.42); }
.cover__scroll{
  position:absolute; bottom:26px; left:50%;
  transform:translateX(-50%);
  z-index:3;
  background:none; border:0; cursor:pointer;
  color:rgba(246,241,233,.86);
  display:flex; flex-direction:column; align-items:center; gap:7px;
  font-family:var(--font-body);
  font-size:10px; letter-spacing:.28em; text-transform:uppercase;
}
.cover__scroll svg{ animation:nudge 1.9s ease-in-out infinite; }
@keyframes nudge{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ---------- cover video player ---------- */
.cover__video{
  position:absolute; inset:0; z-index:20;
  background:#000;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition:opacity .35s ease;
}
.cover__video.is-open{ opacity:1; pointer-events:auto; }
.cover__video-el{ width:100%; height:100%; object-fit:cover; }
.cover__video-loader{
  position:absolute; inset:0; z-index:21;
  display:none; align-items:center; justify-content:center;
  background:rgba(14,12,10,.55);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
}
.cover__video.is-loading .cover__video-loader{ display:flex; }
.cover__spinner{
  width:46px; height:46px; border-radius:50%;
  border:2px solid rgba(246,241,233,.28);
  border-top-color:#f6f1e9;
  animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.cover__video-close{
  position:absolute; top:18px; right:16px; z-index:21;
  width:40px; height:40px; border-radius:50%;
  border:0; cursor:pointer;
  background:rgba(20,17,13,.42); backdrop-filter:blur(4px);
  color:#f6f1e9; display:grid; place-items:center;
  transition:background .25s ease;
}
.cover__video-close:hover{ background:rgba(20,17,13,.62); }

/* ---------- countdown ---------- */
.countdown{ text-align:center; padding-top:42px; padding-bottom:42px; }
.countdown__grid{
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:8px; margin:30px 0 26px;
}
.cd{ display:flex; flex-direction:column; align-items:center; gap:9px; }
.cd__num{
  font-family:var(--font-head); font-weight:400;
  font-size:44px; line-height:1; color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.cd__lbl{ font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); }
.countdown__date{
  font-size:13px; letter-spacing:.04em; color:var(--muted); margin:0;
  font-style:normal; font-family:var(--font-head); font-size:18px;
}

/* reveal on scroll */
/* ---------- invite + calendar ---------- */
.invite{ text-align:center; }
.invite__text{ max-width:31ch; margin:0 auto 28px; }
.cal{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:15px;
  padding:26px 24px 22px;
  max-width:320px; margin:0 auto;
}
.cal__top{
  display:flex; flex-direction:column; align-items:center; gap:3px;
  margin-bottom:20px;
}
.cal__month{ font-family:var(--font-head); font-size:30px; font-weight:400; font-style:normal; line-height:1; }
.cal__year{ font-size:11px; letter-spacing:.34em; color:var(--muted); }
.cal__grid{
  display:grid; grid-template-columns:repeat(7,1fr);
  gap:6px 0; text-align:center;
}
.cal__dow span{ font-size:9.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); padding-bottom:8px; }
.cal__days{ margin-top:2px; }
.cal__days span{
  font-size:13px; color:var(--ink-soft); height:30px;
  display:flex; align-items:center; justify-content:center;
  font-variant-numeric:tabular-nums;
}
.cal__days .is-day{
  color:#fff; position:relative; font-weight:400;
}
.cal__days .is-day .heart{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-52%);
  width:36px; height:36px;
  fill:var(--ink);
}
.cal__days .is-day .d{ position:relative; }
.cal__note{ margin:18px 0 0; font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); }

/* ---------- venue ---------- */
.venue__city{ font-size:13px; letter-spacing:.24em; text-transform:uppercase; margin:12px 0 0; }
.venue__photo{ height:300px; width:100%; object-fit:cover; display:block; border-radius:15px; margin:6px 0 26px; }
.venue__btn{ }

/* reveal on scroll */
/* ---------- program / timeline ---------- */
.program{ }
.timeline{ list-style:none; margin:6px auto 0; padding:0; max-width:300px; }
.tl{
  display:grid;
  grid-template-columns:72px 18px 1fr;
  align-items:center;
  column-gap:14px;
  padding:18px 0;
  position:relative;
}
.tl + .tl{ border-top:1px solid var(--line); }
.tl__time{ font-family:var(--font-head); font-size:24px; font-weight:400; color:var(--ink); font-variant-numeric:tabular-nums; }
.tl__dot{ width:7px; height:7px; border-radius:50%; background:var(--ink); justify-self:center; }
.tl__label{ font-size:14.5px; color:var(--ink-soft); line-height:1.4; }

/* ---------- dress code ---------- */
.dress{ text-align:center; }
.dress__text{ max-width:30ch; margin:0 auto 24px; }
.swatches{ display:flex; justify-content:center; gap:14px; margin:0 0 28px; flex-wrap:wrap; }
.sw{
  width:38px; height:38px; border-radius:50%;
  background:var(--c);
  box-shadow:0 0 0 1px rgba(33,29,24,.12) inset;
}
.dress__photo{ height:auto; width:100%; object-fit:contain; display:block; aspect-ratio:2307/3480; background:transparent; }
.dress__photo[hidden]{ display:none; }

/* ---------- dress lookbooks (swipeable) ---------- */
.lookbook{ margin-top:38px; text-align:left; }
.lookbook__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; margin-bottom:15px;
}
.lookbook__title{
  font-family:var(--font-head); font-weight:400; font-size:25px;
  line-height:1.08; margin:0; color:var(--ink);
}
.lookbook__sub{ font-size:13px; color:var(--muted); margin:5px 0 0; }
.lookbook__hint{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:#b6502f; white-space:nowrap; padding-bottom:2px;
}
.lookbook__hint svg{ animation:hintNudge 1.8s ease-in-out infinite; }
@keyframes hintNudge{ 0%,100%{transform:translateX(0)} 50%{transform:translateX(3px)} }
.lookbook__rail{
  display:flex; gap:10px;
  overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  margin:0 -28px; padding:0 28px 4px;
}
.lookbook__rail::-webkit-scrollbar{ display:none; }
.look{
  flex:0 0 36%;
  min-width:0;
  aspect-ratio:3/4;
  object-fit:cover; display:block;
  scroll-snap-align:start;
  background:#ece4d6;
  border-radius:15px;
  box-shadow:inset 0 0 0 1px var(--line);
}
.look:last-child{ margin-right:0; }
.dress__footnote{
  font-family:var(--font-body); font-style:normal; font-weight:400;
  font-size:15px; line-height:1.6; color:var(--muted);
  text-align:center; max-width:34ch; margin:32px auto 0;
  text-wrap:pretty;
}

/* ---------- notes ---------- */
.notes{ text-align:center; }
.note{ max-width:32ch; margin:0 auto; }
.note .eyebrow{ margin-bottom:14px; }
.note__text{ font-size:16px; }
.note__sep{ margin:26px auto; }

/* ---------- gallery ---------- */
.gallery__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-auto-rows:128px;
  gap:8px;
}
.g{ width:100%; height:100%; }
.g--tall{ grid-row:span 2; }

/* ---------- rsvp ---------- */
.rsvp__card{
  background:rgba(255,255,255,.66);
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.75);
  border-radius:20px;
  box-shadow:0 24px 60px -24px rgba(33,29,24,.30), 0 4px 14px rgba(33,29,24,.06);
  padding:34px 26px 30px;
}
.rsvp .section__head{ text-align:center; margin-bottom:24px; }
.rsvp__title{ font-size:42px; font-weight:400; }
.rsvp__sub{ font-size:14px; margin:14px 0 0; }
.rsvp__form{ margin-top:4px; display:flex; flex-direction:column; gap:24px; }
.field{ display:block; border:0; margin:0; padding:0; }
.field__label{
  display:block;
  font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--muted); margin-bottom:12px;
}
.field__input{
  width:100%; border:0; border-radius:15px;
  background:rgba(33,29,24,.05);
  padding:15px 16px;
  font-family:var(--font-body); font-size:16px; color:var(--ink);
  outline:none; transition:box-shadow .2s ease, background .2s ease;
}
.field__input:focus{ background:rgba(33,29,24,.07); box-shadow:0 0 0 2px var(--faint); }
.choices{ }
.choice{ display:flex; align-items:center; gap:14px; padding:11px 0; cursor:pointer; }
.choice input{ position:absolute; opacity:0; width:0; height:0; }
.choice__mark{
  width:22px; height:22px; border-radius:50%;
  border:1px solid var(--faint); flex:none;
  position:relative; transition:border-color .2s ease;
}
.choice__mark::after{
  content:""; position:absolute; inset:50% auto auto 50%;
  transform:translate(-50%,-50%) scale(0);
  width:11px; height:11px; border-radius:50%; background:var(--ink);
  transition:transform .2s ease;
}
.choice input:checked + .choice__mark{ border-color:var(--ink); }
.choice input:checked + .choice__mark::after{ transform:translate(-50%,-50%) scale(1); }
.choice input:focus-visible + .choice__mark{ box-shadow:0 0 0 3px rgba(33,29,24,.16); }
.choice__text{ font-size:16px; color:var(--ink-soft); line-height:1.35; }
.rsvp__note{ margin:-12px 0 0; font-size:13px; min-height:0; }
.rsvp__note--err{ color:#9a3b2e; }
.rsvp__form.is-sent{ display:none; }
.rsvp__done{ text-align:center; padding:18px 0; }
.rsvp__done .eyebrow{ margin-bottom:16px; }
.rsvp__done .lede{ max-width:28ch; margin:0 auto; }

/* ---------- share: full-screen overlay after RSVP ---------- */
.share-screen{
  position:absolute; inset:0;
  z-index:60;
  background:var(--paper);
  display:flex; align-items:center; justify-content:center;
  padding:40px 30px;
  text-align:center;
  opacity:0;
  transform:translateY(16px);
  transition:opacity .45s ease, transform .45s ease;
}
.share-screen.is-open{ opacity:1; transform:none; }
.share-screen[hidden]{ display:none; }
.share-screen__close{
  position:absolute; top:18px; right:18px;
  width:42px; height:42px; border-radius:50%;
  border:1px solid var(--line); background:transparent;
  color:var(--ink); display:grid; place-items:center; cursor:pointer;
  transition:background .2s ease;
}
.share-screen__close:hover{ background:var(--paper-2); }
.share-screen__inner{ max-width:34ch; }
.share-screen__thanks{
  font-family:var(--font-head); font-size:21px; color:var(--ink);
  margin:0 0 30px;
}
.share-screen__eyebrow{ margin-bottom:14px; }
.share-screen__title{
  font-family:var(--font-head); font-weight:400;
  font-size:40px; line-height:1.04; margin:0 0 18px; color:var(--ink);
}
.share-screen__text{
  font-size:16px; line-height:1.7; color:var(--ink-soft);
  margin:0 0 30px; text-wrap:pretty;
}
.share-screen__btn{ max-width:300px; margin:0 auto; }
.share-screen__back{
  display:block; margin:22px auto 0;
  background:none; border:0; cursor:pointer;
  font-family:var(--font-body); font-size:12px;
  letter-spacing:.16em; text-transform:uppercase; color:var(--muted);
  border-bottom:1px solid transparent; padding-bottom:2px;
  transition:color .2s ease, border-color .2s ease;
}
.share-screen__back:hover{ color:var(--ink); border-color:var(--faint); }

/* ---------- footer ---------- */
.footer{ text-align:center; padding:48px 30px 60px; background:var(--paper); }
.footer__line{ font-size:26px; margin:0; }
.footer__names{ font-size:26px; margin:8px 0 0; font-style:normal; }
.footer__date{ font-size:11px; letter-spacing:.34em; color:var(--muted); margin:0; }

.reveal{ opacity:0; transform:translateY(18px); transition:opacity .9s ease, transform .9s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}
