:root{
  --wine:#5C1220;
  --wine-deep:#3E0C15;
  --gold:#B8874A;
  --gold-light:#D9B98C;
  --ivory:#F6EEE2;
  --ivory-dim:#EFE3D0;
  --ink:#241512;
  --sage:#6B7A5E;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--ivory);
  color:var(--ink);
  font-family:'Cormorant Garamond', serif;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--gold-light); color:var(--wine-deep);}

.eyebrow{
  font-family:'Jost', sans-serif;
  font-size:11px;
  letter-spacing:.35em;
  text-transform:uppercase;
  color:var(--gold);
}

/* ============ ENVELOPE / LOADER ============ */
#envelope-screen{
  position:fixed; inset:0; z-index:100;
  background:var(--wine-deep);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:transform 1.1s cubic-bezier(.7,0,.2,1), opacity 1s ease .2s;
}
#envelope-screen::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184,135,74,.14), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(184,135,74,.10), transparent 50%);
}
#envelope-screen.opened{
  transform:translateY(-100%);
  opacity:0;
  pointer-events:none;
}
.env-inner{
  position:relative;
  text-align:center;
  color:var(--ivory);
  padding:40px;
}
.env-names{
  font-family:'Parisienne', cursive;
  font-size:clamp(34px,8vw,54px);
  color:var(--gold-light);
  line-height:1.15;
  margin-bottom:6px;
}
.env-amp{
  display:block;
  font-family:'Cormorant Garamond', serif;
  font-style:italic;
  font-size:20px;
  color:var(--gold);
  margin:4px 0;
  letter-spacing:.15em;
}
.seal{
  width:96px; height:96px;
  margin:34px auto 26px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 55%, #8a611f 100%);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 22px rgba(0,0,0,.45), inset 0 2px 4px rgba(255,255,255,.35), inset 0 -6px 10px rgba(0,0,0,.35);
  animation:seal-breathe 3.2s ease-in-out infinite;
}
@keyframes seal-breathe{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.045);}
}
.seal svg{width:52px; height:52px; opacity:.92;}
.env-tap{
  font-family:'Jost', sans-serif;
  font-size:11px;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--gold-light);
  opacity:.85;
}
.env-tap::after{
  content:"";
  display:block;
  width:1px; height:22px;
  margin:10px auto 0;
  background:linear-gradient(var(--gold), transparent);
  animation:pulse-line 1.8s ease-in-out infinite;
}
@keyframes pulse-line{
  0%,100%{opacity:.2;}
  50%{opacity:1;}
}

/* ============ SITE ============ */
#site{
  max-width:520px;
  margin:0 auto;
  background:var(--ivory);
  position:relative;
}
section{
  padding:90px 32px;
  position:relative;
  text-align:center;
}
.reveal{
  opacity:0; transform:translateY(26px);
  transition:opacity .9s ease, transform .9s ease;
}
.reveal.in{opacity:1; transform:translateY(0);}

.divider{
  width:46px; height:1px;
  background:var(--gold);
  margin:22px auto;
}
.divider.wide{width:70px;}

/* HERO */
#hero{
  padding-top:70px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184,135,74,.10), transparent 60%),
    var(--ivory);
}
#hero .eyebrow{margin-bottom:18px;}
.hero-names{
  font-family:'Parisienne', cursive;
  font-size:clamp(42px,11vw,64px);
  color:var(--wine);
  line-height:1.1;
}
.hero-amp{
  display:block;
  font-family:'Cormorant Garamond', serif;
  font-style:italic;
  font-size:24px;
  color:var(--gold);
  margin:2px 0;
}
.hero-sub{
  font-size:17px;
  color:var(--ink);
  opacity:.75;
  margin-top:10px;
  letter-spacing:.03em;
}
.hero-date{
  font-family:'Jost', sans-serif;
  font-size:15px;
  letter-spacing:.25em;
  text-transform:uppercase;
  color:var(--wine);
  margin-top:26px;
}

/* COUNTDOWN */
#countdown{background:var(--wine); color:var(--ivory);}
#countdown .eyebrow{color:var(--gold-light);}
.cd-title{
  font-style:italic;
  font-size:22px;
  margin:14px 0 30px;
  color:var(--ivory);
}
.cd-grid{
  display:flex;
  justify-content:center;
  gap:22px;
  flex-wrap:wrap;
}
.cd-box{min-width:64px;}
.cd-num{
  font-family:'Cormorant Garamond', serif;
  font-weight:500;
  font-size:clamp(34px,9vw,46px);
  color:var(--gold-light);
  line-height:1;
}
.cd-label{
  font-family:'Jost', sans-serif;
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ivory);
  opacity:.65;
  margin-top:8px;
}

/* STORY */
#story p{
  font-size:18px;
  line-height:1.75;
  color:var(--ink);
  opacity:.85;
  max-width:400px;
  margin:0 auto;
}
#story h2{
  font-family:'Cormorant Garamond', serif;
  font-style:italic;
  font-weight:500;
  font-size:28px;
  color:var(--wine);
  margin-bottom:18px;
}

/* SCHEDULE */
#schedule{background:var(--ivory-dim);}
#schedule h2{
  font-style:italic;
  font-weight:500;
  font-size:28px;
  color:var(--wine);
  margin-bottom:44px;
}
.timeline{
  position:relative;
  max-width:340px;
  margin:0 auto;
  text-align:left;
}
.timeline::before{
  content:"";
  position:absolute;
  left:6px; top:6px; bottom:6px;
  width:1px;
  background:linear-gradient(var(--gold), var(--gold-light), var(--gold));
}
.t-item{
  position:relative;
  padding-left:36px;
  margin-bottom:34px;
}
.t-item:last-child{margin-bottom:0;}
.t-item::before{
  content:"";
  position:absolute;
  left:0; top:5px;
  width:13px; height:13px;
  border-radius:50%;
  background:var(--ivory-dim);
  border:2px solid var(--gold);
}
.t-time{
  font-family:'Jost', sans-serif;
  font-size:12px;
  letter-spacing:.15em;
  color:var(--gold);
  text-transform:uppercase;
}
.t-name{
  font-size:21px;
  color:var(--ink);
  margin-top:2px;
}
.t-note{
  font-family:'Jost', sans-serif;
  font-size:13px;
  color:var(--ink);
  opacity:.55;
  margin-top:3px;
}

/* VENUE */
#venue h2{
  font-style:italic; font-weight:500; font-size:28px; color:var(--wine); margin-bottom:14px;
}
#venue .place{
  font-size:23px; color:var(--ink); margin-bottom:4px;
}
#venue .addr{
  font-family:'Jost', sans-serif; font-size:14px; color:var(--ink); opacity:.6; margin-bottom:26px;
}
.btn{
  display:inline-block;
  font-family:'Jost', sans-serif;
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ivory);
  background:var(--wine);
  padding:15px 30px;
  border-radius:2px;
  text-decoration:none;
  border:1px solid var(--wine);
  transition:.25s ease;
  cursor:pointer;
}
.btn:hover{background:transparent; color:var(--wine);}
.btn.outline{
  background:transparent; color:var(--wine); border:1px solid var(--gold);
}
.btn.outline:hover{background:var(--wine); color:var(--ivory); border-color:var(--wine);}

/* DRESS CODE */
#dress{background:var(--wine); color:var(--ivory);}
#dress .eyebrow{color:var(--gold-light);}
#dress h2{
  font-style:italic; font-weight:500; font-size:28px; color:var(--ivory); margin:14px 0 20px;
}
#dress p{
  font-size:16px; opacity:.8; max-width:340px; margin:0 auto 26px; line-height:1.6;
}
.swatches{
  display:flex; justify-content:center; gap:16px; margin-bottom:30px;
}
.swatch{
  width:38px; height:38px; border-radius:50%;
  border:2px solid rgba(246,238,226,.5);
  box-shadow:0 4px 10px rgba(0,0,0,.3);
}
.dress-cols{
  display:flex; gap:26px; justify-content:center; flex-wrap:wrap;
  font-family:'Jost', sans-serif; font-size:13px; opacity:.8; text-align:left; max-width:360px; margin:0 auto;
}
.dress-cols div{flex:1; min-width:130px;}
.dress-cols b{
  display:block; font-family:'Cormorant Garamond', serif; font-size:18px; color:var(--gold-light); margin-bottom:6px; font-style:italic;
}

/* RSVP */
#rsvp h2{
  font-style:italic; font-weight:500; font-size:28px; color:var(--wine); margin-bottom:10px;
}
#rsvp p{
  font-size:16px; color:var(--ink); opacity:.75; max-width:340px; margin:0 auto 30px; line-height:1.6;
}
.rsvp-deadline{
  font-family:'Jost', sans-serif; font-size:12px; letter-spacing:.15em; text-transform:uppercase; color:var(--gold); margin-top:20px;
}
.rsvp-form{
  max-width:340px; margin:0 auto; text-align:left;
}
.rsvp-form label{
  display:block;
  font-family:'Jost', sans-serif;
  font-size:11px;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--gold);
  margin:16px 0 6px;
}
.rsvp-form input, .rsvp-form select, .rsvp-form textarea{
  width:100%;
  font-family:'Cormorant Garamond', serif;
  font-size:16px;
  color:var(--ink);
  background:var(--ivory-dim);
  border:1px solid var(--gold);
  border-radius:2px;
  padding:10px 12px;
}
.rsvp-form textarea{resize:vertical; min-height:70px;}
.rsvp-form .btn{width:100%; margin-top:22px; text-align:center;}
.rsvp-msg{
  font-family:'Jost', sans-serif;
  font-size:13px;
  padding:14px;
  border-radius:3px;
  margin:0 auto 10px;
  max-width:340px;
}
.rsvp-msg.ok{background:rgba(107,122,94,.15); color:var(--sage); border:1px solid var(--sage);}
.rsvp-msg.err{background:rgba(92,18,32,.08); color:var(--wine); border:1px solid var(--wine);}

/* GIFT */
#gift{background:var(--ivory-dim);}
#gift h2{
  font-style:italic; font-weight:500; font-size:26px; color:var(--wine); margin-bottom:14px;
}
#gift p{
  font-size:16px; color:var(--ink); opacity:.75; max-width:340px; margin:0 auto; line-height:1.7;
}

/* FOOTER */
footer{
  padding:60px 32px 70px;
  text-align:center;
  background:var(--wine-deep);
  color:var(--gold-light);
}
footer .hero-amp{color:var(--gold-light); opacity:.9;}
footer .foot-names{
  font-family:'Parisienne', cursive;
  font-size:30px;
  color:var(--ivory);
}
footer .hashtag{
  font-family:'Jost', sans-serif;
  font-size:12px;
  letter-spacing:.2em;
  color:var(--gold);
  margin-top:16px;
}

@media (max-width:520px){
  section{padding:64px 22px;}
  .hero-names{font-size:clamp(38px,13vw,56px);}
  .cd-grid{gap:16px;}
  .cd-box{min-width:56px;}
  .dress-cols{gap:18px;}
  #story p, #rsvp p, #dress p, #gift p{max-width:100%;}
  .rsvp-form{max-width:100%;}
  .rsvp-form input, .rsvp-form select, .rsvp-form textarea{min-height:46px;}
  .btn{width:100%; text-align:center; display:flex; align-items:center; justify-content:center; min-height:50px;}
  .btn.outline{width:100%;}
  .rsvp-form .btn{margin-top:18px;}
}
@media (max-width:380px){
  section{padding:54px 18px;}
  .cd-grid{gap:12px;}
}

/* ============ PLEDGE — minimal modern contribution form ============ */
#pledge-page{
  position:relative;
  min-height:100vh; color:var(--ivory); overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:48px 20px;
}
.pledge-video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;}
.pledge-overlay{position:absolute; inset:0; z-index:1; background:linear-gradient(rgba(62,12,21,.55), rgba(62,12,21,.72));}
.pledge-content{position:relative; z-index:2; width:100%; display:flex; flex-direction:column; align-items:center;}
/* Confirmation page uses a photo background instead of video */
.confirm-page{
  background:
    linear-gradient(rgba(62,12,21,.6), rgba(62,12,21,.78)),
    var(--confirm-bg, url('../assets/Images/hands.jpg')) center/cover no-repeat scroll;
  background-attachment:scroll;
  min-height:100vh; display:flex; align-items:center; justify-content:center; padding:34px 16px;
}
.confirm-titles{font-family:'Parisienne',cursive; color:var(--wine); font-size:34px; line-height:1.1; margin-bottom:6px;}
.pledge-head{ text-align:center; margin-bottom:26px; }
.pledge-head .names{ text-align:center; }
.pledge-head .nm{
  display:block;
  font-family:'Cormorant Garamond', serif; font-weight:500;
  font-size:clamp(26px,7vw,40px); color:var(--ivory); line-height:1.18;
  text-shadow:0 2px 14px rgba(0,0,0,.5);
}
.pledge-head .amp{
  display:block; font-family:'Parisienne', cursive;
  font-size:clamp(34px,9vw,52px); color:var(--gold-light); margin:4px 0; line-height:1;
}
.pledge-head .sub{
  font-family:'Jost', sans-serif; font-size:11px; letter-spacing:.3em;
  text-transform:uppercase; color:var(--ivory); opacity:.85; margin-top:14px;
}
.rings{display:flex; justify-content:center; margin-bottom:18px;}
.rings svg{width:84px; height:auto; filter:drop-shadow(0 2px 6px rgba(0,0,0,.45));}
.wed-date{
  font-family:'Jost', sans-serif; font-size:13px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--gold-light); margin-top:14px;
  text-shadow:0 2px 10px rgba(0,0,0,.5);
}
.countdown{display:flex; justify-content:center; gap:9px; margin-top:16px;}
.countdown .cd-box{
  display:flex; flex-direction:column; align-items:center; min-width:56px;
  padding:9px 6px; background:rgba(62,12,21,.42);
  border:1px solid var(--gold); border-radius:6px;
}
.countdown .cd-box span{
  font-family:'Jost', sans-serif; font-size:22px; font-weight:600;
  color:var(--gold-light); line-height:1; text-shadow:0 2px 8px rgba(0,0,0,.4);
}
.countdown .cd-box small{
  font-family:'Jost', sans-serif; font-size:9px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--ivory); opacity:.82; margin-top:6px;
}
.pledge-card{
  width:100%; max-width:420px; position:relative; z-index:2; color:var(--ink);
  background:rgba(255,255,255,.96); border-radius:12px; padding:30px 26px 34px;
  box-shadow:0 22px 50px rgba(0,0,0,.35);
}
.pledge-card h2{
  font-family:'Cormorant Garamond', serif; font-style:italic; font-weight:500;
  color:var(--wine); font-size:27px; text-align:center; margin-bottom:6px;
}
.pledge-card .lead{text-align:center; font-size:15px; color:var(--ink); opacity:.7; margin-bottom:24px; line-height:1.5;}
.pledge-field{margin-bottom:18px;}
.pledge-field label{
  display:block; font-family:'Jost', sans-serif; font-size:11px;
  letter-spacing:.15em; text-transform:uppercase; color:var(--gold); margin-bottom:7px;
}
.pledge-field input{
  width:100%; font-family:'Cormorant Garamond', serif; font-size:18px;
  color:var(--ink); background:var(--ivory-dim); border:1px solid var(--gold);
  border-radius:5px; padding:13px 14px; transition:.2s;
}
.pledge-field input:focus{outline:none; border-color:var(--wine); background:#fff;}
.pledge-field select{
  width:100%; font-family:'Cormorant Garamond', serif; font-size:18px;
  color:var(--ink); background:var(--ivory-dim); border:1px solid var(--gold);
  border-radius:5px; padding:13px 14px; transition:.2s; cursor:pointer;
}
.pledge-field select:focus{outline:none; border-color:var(--wine); background:#fff;}
.pledge-amount{position:relative;}
.pledge-amount .cur{
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  font-family:'Jost',sans-serif; font-size:14px; color:var(--gold); font-weight:600;
}
.pledge-amount input{padding-left:46px;}
.pledge-card .btn{width:100%; margin-top:8px; letter-spacing:.2em;}
.pledge-success{text-align:center; padding:6px 0 2px;}
.pledge-success .check{
  width:64px; height:64px; margin:0 auto 14px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 60%, #8a611f);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:30px;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}
.pledge-success .check::after{
  content:""; display:block; width:16px; height:28px;
  border:solid #fff; border-width:0 4px 4px 0; transform:rotate(45deg); margin-top:-7px;
}
.pledge-success h2{margin-bottom:8px;}
.pledge-back{text-align:center; margin-top:18px;}
.pledge-back a{font-family:'Jost',sans-serif; font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); text-decoration:none;}

.kv{margin:6px 0 6px; border:1px solid var(--gold); border-radius:6px; overflow:hidden; background:rgba(184,135,74,.06);}
.kv > div{display:flex; justify-content:space-between; gap:12px; padding:11px 14px; font-family:'Jost',sans-serif; font-size:14px; border-bottom:1px solid rgba(184,135,74,.25);}
.kv > div:last-child{border-bottom:none;}
.kv span{color:var(--gold); letter-spacing:.04em; text-transform:uppercase; font-size:11px; align-self:center;}
.kv b{color:var(--ink); font-weight:600; text-align:right;}

.btn-ghost{
  display:block; width:100%; margin-top:18px; padding:13px; text-align:center;
  font-family:'Jost',sans-serif; font-size:12px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--wine); background:transparent; border:1px solid var(--gold);
  border-radius:4px; cursor:pointer; transition:.2s;
}
.btn-ghost:hover{background:var(--gold); color:#fff;}

@media (max-width:480px){
  #pledge-page{padding:32px 16px;}
  .pledge-head .names{font-size:clamp(36px,13vw,56px);}
  .pledge-card{max-width:100%; padding:26px 18px 30px;}
  .pledge-card .btn{min-height:48px; display:flex; align-items:center; justify-content:center;}
  .pledge-field input{min-height:46px;}
}

