:root{
  --paper:#f7f3ed;
  --paper-2:#eee8df;
  --ink:#181511;
  --muted:#6f675e;
  --gold:#b39757;
  --line:#cfc4b6;
  --white:#fff;
  --shadow:0 18px 60px rgba(40,32,22,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Montserrat",sans-serif;
  font-weight:300;
  line-height:1.75;
}
img{display:block;width:100%;height:100%;object-fit:cover}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}

.site-header{
  height:88px;
  padding:0 clamp(22px,5vw,72px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(247,243,237,.93);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(180,166,145,.18);
}
.brand{display:flex;align-items:center;gap:14px}
.monogram,.footer-monogram{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.monogram{
  width:44px;
  height:62px;
  border-radius:999px;
}
.footer-monogram{
  width:76px;
  height:104px;
  margin-bottom:10px;
}
.monogram img,.footer-monogram img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.brand-copy{display:flex;flex-direction:column;line-height:1.3}
.brand-copy strong{font-family:"Cormorant Garamond",serif;font-size:18px;letter-spacing:.11em}
.brand-copy small{font-size:9px;letter-spacing:.32em}

.main-nav{display:flex;align-items:center;gap:26px}
.main-nav a{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:500;
}
.main-nav a:hover{color:var(--gold)}
.nav-cta{padding-bottom:4px;border-bottom:1px solid var(--gold)}
.menu-toggle{display:none;border:0;background:none;font-size:23px}

.hero{
  min-height:min(660px,78vh);
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    linear-gradient(115deg,rgba(231,222,208,.96) 0 43%,rgba(64,54,42,.52) 75%),
    url("assets/images/img8.jpeg") center/cover no-repeat;
}
.hero-image{position:absolute;inset:0;z-index:0}
.hero-overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(245,239,230,.82) 0%,rgba(245,239,230,.62) 37%,rgba(0,0,0,.08) 64%,rgba(0,0,0,.2) 100%);
}
.hero-content{
  z-index:2;
  width:min(1180px,92vw);
  align-self:center;
  padding-right:52%;
  text-align:center;
}
.hero h1{
  font-family:"Cormorant Garamond",serif;
  font-size:clamp(64px,8vw,118px);
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.035em;
  margin:0;
  line-height:.82;
}
.hero h1 span{display:block}
.hero h1 em{
  display:block;
  font-style:normal;
  color:var(--gold);
  font-size:.36em;
  margin:.26em 0;
}
.hero-rule{width:130px;height:1px;background:var(--line);margin:32px auto 20px}
.hero-date{font-family:"Cormorant Garamond",serif;font-size:24px;letter-spacing:.34em;margin:0}
.heart{display:block;color:var(--gold);font-size:16px;margin-top:12px}

.section{width:min(1180px,92vw);margin:auto}
.section-eyebrow{
  font-family:"Cormorant Garamond",serif;
  text-transform:uppercase;
  letter-spacing:.23em;
  font-size:17px;
  font-weight:600;
}

.countdown-section{
  padding:34px 20px 46px;
  text-align:center;
  background:rgba(255,255,255,.3);
}
.countdown{
  display:flex;justify-content:center;align-items:center;
  margin-top:16px;gap:28px;
}
.countdown div{min-width:105px}
.countdown strong{
  display:block;
  font-family:"Cormorant Garamond",serif;
  font-size:58px;line-height:1;font-weight:500;
}
.countdown span{
  display:block;margin-top:8px;
  text-transform:uppercase;font-size:9px;letter-spacing:.27em;
}
.countdown i{width:1px;height:55px;background:var(--line)}

.welcome{
  padding:86px 0;
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:70px;
  align-items:center;
}
.welcome-copy h2,.details h2,.registry h2{
  font-family:"Cormorant Garamond",serif;
  text-transform:uppercase;
  font-size:40px;line-height:1.1;
  font-weight:500;letter-spacing:.05em;
  margin:14px 0 18px;
}
.welcome-copy h2 span{font-size:.72em}
.welcome-copy p{font-size:13px;color:#4d4741}
.ornament{color:var(--gold);margin:18px 0}

.photo-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  grid-template-rows:1fr 1fr 1fr;
  gap:8px;height:590px;
}
.photo-card{background:#e6ddd0;overflow:hidden}
.photo-card.tall{grid-row:1/3}

.city{text-align:center;padding:10px 0 80px}
.city-image{height:290px;margin:22px 0 18px;background:#ddd4c7;overflow:hidden}
.city-detail{
  height:230px;
  margin:0 auto 24px;
  max-width:860px;
  background:#ddd4c7;
  overflow:hidden;
}
.outline-button,.gold-button{
  display:inline-flex;align-items:center;gap:11px;
  text-transform:uppercase;font-size:9px;letter-spacing:.15em;
  padding:12px 22px;border:1px solid #9e9284;
  transition:.25s ease;
}
.outline-button:hover{background:#1f1b17;color:white;border-color:#1f1b17}

.ceremony{
  display:grid;grid-template-columns:1fr 1.05fr;
  min-height:430px;margin-bottom:90px;
  background:var(--paper-2);
  box-shadow:var(--shadow);
}
.ceremony-image{min-height:430px;background:#d9d0c4}
.ceremony-copy{
  padding:54px clamp(35px,6vw,82px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
}
.ceremony-copy h2{
  font-family:"Cormorant Garamond",serif;
  text-transform:uppercase;letter-spacing:.14em;
  font-size:21px;font-weight:600;
  margin:8px 0 12px;
}
.ornament-line{display:flex;align-items:center;gap:12px;color:var(--gold);margin:2px 0 18px}
.ornament-line span{height:1px;width:56px;background:#c9b783}
.time-row{display:flex;align-items:center;gap:13px;margin:10px 0}
.clock{font-size:32px;color:var(--gold)}
.time-row strong{font-family:"Cormorant Garamond",serif;font-size:31px;letter-spacing:.06em}
.address{text-transform:uppercase;font-size:10px;letter-spacing:.12em}

.details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  padding-bottom:90px;
}
.details-card{
  background:#fffaf4;
  padding:58px;
  min-height:320px;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  border:1px solid rgba(179,151,87,.18);
}
.details-card p:not(.section-eyebrow){font-size:13px;color:var(--muted);max-width:520px}
.gold-button{background:var(--gold);border-color:var(--gold);color:white;margin-top:10px}
.gold-button:hover{filter:brightness(.9)}

.registry{
  padding-bottom:90px;
}
.registry-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,460px);
  gap:28px;
  align-items:stretch;
  margin-bottom:26px;
}
.registry-intro{
  background:linear-gradient(180deg,#fffaf4 0%, #f4ede4 100%);
  padding:58px;
  border:1px solid rgba(179,151,87,.18);
  min-height:420px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.registry-intro p:not(.section-eyebrow){
  font-size:13px;
  color:var(--muted);
  max-width:560px;
}
.registry-note{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(179,151,87,.3);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.registry-note strong{
  font-family:"Cormorant Garamond",serif;
  font-size:24px;
  font-weight:500;
  letter-spacing:.06em;
}
.registry-note span{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:#8a7d6d;
}
.registry-highlight{
  position:relative;
  min-height:420px;
  overflow:hidden;
  background:#d9d0c4;
}
.registry-highlight::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(18,14,10,.08) 0%,rgba(18,14,10,.68) 100%);
}
.registry-highlight-copy{
  position:absolute;
  left:30px;
  right:30px;
  bottom:28px;
  z-index:1;
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.registry-highlight-copy span{
  font-size:10px;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.registry-highlight-copy strong{
  font-family:"Cormorant Garamond",serif;
  font-size:35px;
  line-height:1;
  font-weight:500;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.gift-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.gift-card{
  background:#fff;
  border:1px solid rgba(179,151,87,.18);
  padding:30px 28px;
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.gift-card-media{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  margin:0 0 22px;
  border-radius:18px;
  background:#f3ede6;
}
.gift-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.gift-card.featured{
  background:linear-gradient(180deg,#1f1b17 0%, #332a21 100%);
  color:#fff;
  border-color:#1f1b17;
}
.gift-card.is-selected{
  border-color:var(--gold);
  box-shadow:0 20px 45px rgba(179,151,87,.14);
  transform:translateY(-4px);
}
.gift-card h3,.registry-summary h3{
  font-family:"Cormorant Garamond",serif;
  font-size:30px;
  line-height:1.02;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin:0 0 12px;
}
.gift-card p,.registry-summary p:not(.section-eyebrow){
  font-size:13px;
  color:var(--muted);
  margin:0 0 18px;
}
.gift-card.featured p{color:rgba(255,255,255,.78)}
.gift-card.featured .gift-card-media{
  border:1px solid rgba(255,255,255,.12);
}
.gift-card strong{
  font-family:"Cormorant Garamond",serif;
  font-size:35px;
  font-weight:500;
  letter-spacing:.04em;
  margin-top:auto;
}
.gift-card .outline-button,.gift-card .gold-button{
  margin-top:18px;
}
.gift-tag{
  display:inline-flex;
  margin-bottom:18px;
  padding:7px 12px;
  border:1px solid rgba(255,255,255,.2);
  font-size:9px;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.registry-steps{
  margin:10px 0 24px;
  padding-left:20px;
  color:#544b43;
  font-size:12px;
}
.registry-steps li+li{
  margin-top:8px;
}
.selected-gift{
  background:#fffaf4;
  border:1px solid rgba(179,151,87,.22);
  padding:22px 24px;
}
.gift-checkout-form{
  margin-top:18px;
  display:grid;
  gap:12px;
  padding:22px 24px;
  background:#fff;
  border:1px solid rgba(179,151,87,.22);
}
.gift-checkout-form label{
  display:grid;
  gap:6px;
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#8a7d6d;
}
.gift-checkout-form input,
.gift-checkout-form textarea{
  width:100%;
  border:1px solid rgba(179,151,87,.24);
  background:#fffaf4;
  padding:12px 14px;
  color:var(--ink);
  font:inherit;
}
.gift-checkout-form textarea{
  min-height:100px;
  resize:vertical;
}
.selected-gift-label,.pix-label{
  display:block;
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#8a7d6d;
  margin-bottom:8px;
}
.selected-gift strong,
.pix-modal-summary strong{
  display:block;
  font-family:"Cormorant Garamond",serif;
  font-size:32px;
  line-height:1;
  font-weight:500;
  letter-spacing:.04em;
}
.selected-gift p,
.pix-modal-summary p{
  margin:12px 0;
  color:var(--muted);
  font-size:13px;
}
.selected-gift b,
.pix-modal-summary b{
  display:block;
  font-family:"Cormorant Garamond",serif;
  font-size:34px;
  line-height:1;
  color:var(--gold);
  font-weight:600;
}
.pix-box{
  margin-top:18px;
  background:#1f1b17;
  color:#fff;
  padding:22px 24px;
}
.pix-box code,
.pix-modal-key code{
  display:block;
  margin:0 0 10px;
  font-size:16px;
  font-weight:500;
  letter-spacing:.06em;
  word-break:break-all;
}
.pix-box small,
.pix-modal-meta small{
  display:block;
  color:rgba(255,255,255,.72);
  font-size:11px;
}
.registry-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}
.pix-inline-panel[hidden]{
  display:none;
}
.pix-inline-panel{
  margin-top:18px;
  padding:22px 24px;
  background:linear-gradient(180deg,#fff 0%, #f7efe5 100%);
  border:1px solid rgba(179,151,87,.28);
  box-shadow:0 16px 40px rgba(40,32,22,.08);
}
.pix-inline-label{
  display:block;
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#8a7d6d;
  margin-bottom:8px;
}
.pix-inline-panel strong{
  display:block;
  font-family:"Cormorant Garamond",serif;
  font-size:30px;
  line-height:1;
  font-weight:500;
  margin-bottom:10px;
}
.pix-inline-panel p{
  margin:0 0 16px;
  color:var(--muted);
  font-size:13px;
}
.pix-inline-code{
  background:#1f1b17;
  color:#fff;
  padding:18px 20px;
}
.pix-inline-code span{
  display:block;
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,.72);
  margin-bottom:8px;
}
.pix-inline-code code{
  display:block;
  font-size:16px;
  font-weight:500;
  letter-spacing:.06em;
  word-break:break-all;
}
.registry-actions .gold-button[disabled]{
  opacity:.45;
  cursor:not-allowed;
}
.pix-modal[hidden]{
  display:none;
}
.pix-modal{
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  place-items:center;
  padding:24px;
}
.pix-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(17,13,10,.6);
  backdrop-filter:blur(5px);
}
.pix-modal-card{
  position:relative;
  z-index:1;
  width:min(560px,100%);
  background:#fffaf4;
  padding:34px;
  box-shadow:0 24px 70px rgba(0,0,0,.22);
}
.pix-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  border:0;
  background:#efe5d8;
  color:#382d23;
}
.pix-modal-summary{
  margin:18px 0 20px;
}
.pix-modal-key{
  background:#f3eadf;
  padding:20px 22px;
}
.pix-modal-key span{
  display:block;
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#8a7d6d;
  margin-bottom:8px;
}
.pix-modal-meta{
  margin-top:14px;
}
.pix-modal-meta small{
  color:#5b5045;
}
.pix-modal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}
.pix-modal-help{
  margin:18px 0 0;
  color:var(--muted);
  font-size:12px;
}
.registry-footer{
  margin-top:24px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(340px,420px);
  gap:24px;
}
.registry-summary{
  background:#f6efe7;
  border:1px solid rgba(179,151,87,.18);
  padding:42px 46px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

footer{
  min-height:180px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;background:#f2ece4;
  border-top:1px solid rgba(179,151,87,.18);
}
footer strong{font-family:"Cormorant Garamond",serif;letter-spacing:.16em}
footer small{font-size:9px;letter-spacing:.28em}

@media (max-width:900px){
  .main-nav{
    position:absolute;top:88px;left:0;right:0;
    background:var(--paper);padding:28px;
    display:none;flex-direction:column;align-items:flex-start;
    box-shadow:0 20px 40px rgba(0,0,0,.08);
  }
  .main-nav.open{display:flex}
  .menu-toggle{display:block}
  .hero{min-height:680px}
  .hero-content{padding-right:0;padding-top:300px}
  .hero-overlay{background:linear-gradient(0deg,rgba(245,239,230,.92) 0 43%,rgba(0,0,0,.08) 72%)}
  .welcome{grid-template-columns:1fr;gap:45px}
  .ceremony{grid-template-columns:1fr}
  .details{grid-template-columns:1fr}
  .photo-grid{height:680px}
  .registry-shell,
  .registry-footer,
  .gift-grid{
    grid-template-columns:1fr;
  }
  .registry-highlight,
  .registry-intro{
    min-height:auto;
  }
}

@media (max-width:620px){
  .site-header{height:74px}
  .brand-copy strong{font-size:14px}
  .main-nav{top:74px}
  .hero{min-height:610px}
  .hero h1{font-size:58px}
  .hero-date{font-size:18px}
  .countdown{gap:10px}
  .countdown div{min-width:65px}
  .countdown strong{font-size:39px}
  .countdown i{height:42px}
  .countdown span{font-size:7px}
  .welcome{padding:60px 0}
  .welcome-copy h2,.details h2,.registry h2{font-size:32px}
  .photo-grid{
    height:auto;
    grid-template-columns:1fr;
    grid-template-rows:none;
    gap:5px;
  }
  .photo-card,.photo-card.tall{
    min-height:220px;
    grid-row:auto;
  }
  .city-image{height:190px}
  .city-detail{height:180px}
  .ceremony-copy{padding:42px 22px}
  .details-card{padding:38px 28px}
  .registry-intro,
  .registry-summary,
  .gift-card{
    padding:34px 24px;
  }
  .registry-highlight{min-height:320px}
  .gift-card h3,.registry-summary h3{font-size:26px}
  .registry-actions,
  .pix-modal-actions{
    flex-direction:column;
  }
  .registry-actions .gold-button,
  .registry-actions .outline-button,
  .pix-modal-actions .gold-button,
  .pix-modal-actions .outline-button{
    justify-content:center;
    width:100%;
  }
  .pix-modal-card{
    padding:28px 22px;
  }
}
