:root{
  --bg:#5b000b;
  --gold:#c7a24e;
  --gold-soft:#e3c77a;
  --paper:#f4f0eb;
  --ink:#6b1d14;
  --ink-soft:#8b4a41;
  --line:rgba(199,162,78,.7);
  --shadow:0 18px 40px rgba(0,0,0,.18);
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:#f5e8cf;
  font-family:"Alegreya Sans", sans-serif;
  overflow-x:hidden;
}

button,input,select,textarea{
  font:inherit;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

.site-hidden{
  visibility:hidden;
}

.music-btn{
  position:fixed;
  right:14px;
  bottom:14px;
  width:40px;
  height:40px;
  border:none;
  border-radius:999px;
  background:#320006;
  color:#fff;
  box-shadow:var(--shadow);
  z-index:100;
  cursor:pointer;
}

.music-btn[aria-pressed="true"]{
  background:#7a1620;
}

/* INTRO */
.intro{
  position:fixed;
  inset:0;
  background:var(--bg);
  display:grid;
  place-items:center;
  z-index:200;
  overflow:hidden;
}

.intro-frame{
  position:absolute;
  width:min(410px, 84vw);
  height:min(620px, 88vh);
  border:1px solid var(--line);
  pointer-events:none;
}

.curtain{
  position:absolute;
  top:0;
  bottom:0;
  width:min(205px, 42vw);
  background:
    linear-gradient(90deg,
      #4b0008 0%,
      #66000c 12%,
      #540009 20%,
      #74000d 34%,
      #4b0008 48%,
      #67000c 60%,
      #560009 76%,
      #6a000b 100%);
  box-shadow:inset 0 0 18px rgba(255,255,255,.05);
  transition:transform 1.8s cubic-bezier(.78,0,.18,1);
}

.curtain::before{
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.02) 0 10px,
    rgba(0,0,0,.08) 10px 20px
  );
  opacity:.4;
}

.curtain-left{
  left:50%;
  transform:translateX(-100%);
}

.curtain-right{
  right:50%;
  transform:translateX(100%);
}

.curtain-center-line{
  position:absolute;
  width:2px;
  height:min(620px, 88vh);
  background:rgba(199,162,78,.35);
}

.tap-open{
  position:absolute;
  bottom:calc(6vh + 18px);
  left:50%;
  transform:translateX(-50%);
  border:none;
  background:transparent;
  color:rgba(199,162,78,.8);
  letter-spacing:.26em;
  font-size:12px;
  cursor:pointer;
  font-family:"Alegreya Sans", sans-serif;
}

.intro.opened .curtain-left{
  transform:translateX(-205%);
}

.intro.opened .curtain-right{
  transform:translateX(205%);
}

.intro.opened .curtain-center-line,
.intro.opened .tap-open,
.intro.opened .intro-frame{
  opacity:0;
  transition:opacity .5s ease;
}

/* SITE */
.site{
  padding:0 0 56px;
}

.sheet{
  width:min(420px, calc(100vw - 26px));
  margin:0 auto;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
  min-height:100vh;
}

.panel,
.section{
  padding-left:22px;
  padding-right:22px;
}

/* HERO */
.hero{
  position:relative;
  height:82vh;
  min-height:520px;
  max-height:760px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
}

.hero-bg img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 35%;
  display:block;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      to bottom,
      rgba(91,0,11,.25) 0%,
      rgba(91,0,11,.45) 40%,
      rgba(91,0,11,.75) 100%
    );
}

.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:120px;
  background:linear-gradient(to bottom, transparent, #5b000b);
}

.hero-content{
  position:relative;
  z-index:2;
  padding:0 20px;
}

.hero-names{
  margin:20px 0 16px;
  font-family:"Cormorant Garamond", serif;
  font-size:72px;
  font-weight:500;
  line-height:.9;
  color:#fff6ea;
  text-shadow:0 2px 10px rgba(0,0,0,.2);
}

.hero-names span{
  display:block;
  font-size:26px;
  color:var(--gold-soft);
  margin:3px 0 5px;
}

.mini{
  margin:0;
  text-align:center;
  font-size:9px;
  letter-spacing:.34em;
  color:var(--gold-soft);
  text-transform:uppercase;
  font-family:"Alegreya Sans", sans-serif;
}

.bottom-copy{
  max-width:220px;
  margin:auto;
}

/* SECTIONS */
.section{
  text-align:center;
  padding-top:56px;
  padding-bottom:56px;
}

.section:last-child{
  padding-bottom:30px;
}

.title-script,
.title-serif{
  margin:8px 0 4px;
  font-family:"Cormorant Garamond", serif;
  color:#fff3e3;
  font-weight:500;
}

.title-script{ font-size:38px; }
.title-serif{ font-size:40px; }

.divider{
  width:24px;
  height:1px;
  background:var(--gold);
  margin:10px auto 0;
}

.body-copy{
  margin:14px auto 0;
  color:#f0dfcb;
  font-size:14px;
  line-height:1.75;
}

.narrow-copy{
  max-width:250px;
}

.line-top{
  margin-top:20px;
}

/* SCRATCH */
.scratch-wrap{
  position:relative;
  width:260px;
  height:130px;
  margin:22px auto 0;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.scratch-under{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, #bf9944 0%, #d7b862 50%, #bc9640 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:#5b000b;
  font-family:"Cormorant Garamond", serif;
  font-size:34px;
  font-weight:600;
  letter-spacing:.04em;
}

.scratch-canvas{
  position:absolute;
  inset:0;
  width:260px;
  height:130px;
  display:block;
  touch-action:none;
  cursor:crosshair;
}

/* GENERIC CARD */
.card{
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.light-card{
  background:var(--paper);
  color:var(--ink);
}

/* VENUE */
.venue-card{
  width:240px;
  margin:20px auto 0;
  padding:16px 14px 14px;
  background:#f6f2ed;
}

.venue-title{
  margin:0;
  font-family:"Cormorant Garamond", serif;
  font-size:26px;
  font-weight:500;
}

.venue-sub{
  margin:4px 0 12px;
  color:var(--ink-soft);
  font-size:10px;
  letter-spacing:.20em;
  text-transform:uppercase;
  font-family:"Alegreya Sans", sans-serif;
}

.venue-photo-shell{
  width:100%;
  height:140px;
  margin:8px 0 6px;
  overflow:hidden;
  border:1px solid rgba(107,29,20,.22);
  background:#ddd;
}

.venue-photo-shell img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.small-link{
  display:inline-block;
  margin-top:10px;
  font-size:9px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--ink-soft);
  font-family:"Alegreya Sans", sans-serif;
}

.small-link-button{
  padding:7px 12px;
  border:1px solid rgba(107,29,20,.18);
  background:rgba(107,29,20,.03);
}

.timeline{
  width:210px;
  margin:20px auto 0;
  text-align:left;
}

.timeline p{
  margin:7px 0;
  color:#f5e6cf;
  font-size:12px;
  line-height:1.5;
}

.timeline strong{
  color:#ffe8bb;
  font-weight:700;
}

/* DRESS CODE */
.palette{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:18px;
}

.swatch{
  text-align:center;
}

.swatch span{
  display:block;
  width:20px;
  height:20px;
  border-radius:999px;
  margin:0 auto 6px;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 0 0 1px rgba(0,0,0,.08) inset;
}

.swatch small{
  display:block;
  font-size:7px;
  letter-spacing:.14em;
  color:#dac4a7;
  text-transform:uppercase;
  font-family:"Alegreya Sans", sans-serif;
}

.tiny-note{
  margin:14px 0 0;
  color:#dec7ab;
  font-size:11px;
  line-height:1.55;
}

/* GALLERY */
.gallery{
  width:240px;
  margin:18px auto 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.gallery img{
  width:100%;
  height:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  background:#d9d1c7;
}

/* BANK */
.bank-card{
  width:240px;
  margin:18px auto 0;
  padding:10px 14px;
  text-align:left;
  background:#f5f1eb;
}

.bank-heading{
  margin:0 0 10px;
  text-align:center;
  font-size:9px;
  letter-spacing:.20em;
  color:var(--ink-soft);
  text-transform:uppercase;
  font-family:"Alegreya Sans", sans-serif;
}

.bank-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  border-top:1px solid rgba(107,29,20,.12);
  font-size:11px;
}

.bank-row:first-of-type{
  border-top:none;
}

.bank-row strong{
  font-weight:700;
}

.bank-row-account{
  align-items:center;
}

.account-copy-group{
  display:flex;
  align-items:center;
  gap:8px;
}

.copy-icon-btn{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(107,29,20,.18);
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  padding:0;
  flex:0 0 auto;
}

.copy-icon-btn svg{
  width:15px;
  height:15px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
}

.copy-status{
  margin:8px 0 0;
  color:var(--ink-soft);
  font-size:10px;
  text-align:right;
  min-height:14px;
  font-family:"Alegreya Sans", sans-serif;
}

/* RSVP */
.form-card{
  width:240px;
  margin:18px auto 0;
  padding:14px 14px 16px;
  text-align:left;
  background:#f5f1eb;
}

.field{
  display:block;
  margin:10px 0;
}

.field span{
  display:block;
  margin-bottom:5px;
  color:var(--ink-soft);
  font-size:8px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-family:"Alegreya Sans", sans-serif;
}

.field input,
.field select,
.field textarea{
  width:100%;
  border:none;
  border-bottom:1px solid rgba(107,29,20,.22);
  background:transparent;
  color:var(--ink);
  padding:8px 0;
  outline:none;
  border-radius:0;
}

.field textarea{
  resize:vertical;
  min-height:70px;
}

.submit-btn{
  width:100%;
  margin-top:10px;
  padding:11px 14px;
  border:none;
  background:#690f18;
  color:#fff3e8;
  letter-spacing:.18em;
  font-size:9px;
  text-transform:uppercase;
  cursor:pointer;
  font-family:"Alegreya Sans", sans-serif;
}

.form-status{
  margin:10px 0 0;
  text-align:center;
  color:var(--ink-soft);
  font-size:11px;
  min-height:16px;
  font-family:"Alegreya Sans", sans-serif;
}

/* THANK YOU */
.thank-you{
  width:240px;
  margin:0 auto;
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  padding:3px;
  box-shadow:var(--shadow);
}

.thank-you-inner{
  border:1px solid rgba(107,29,20,.08);
  padding:26px 18px 22px;
}

.thank-heart{
  color:var(--gold);
}

.thank-you h3{
  margin:6px 0 12px;
  font-family:"Cormorant Garamond", serif;
  font-size:26px;
  font-weight:500;
  line-height:1.12;
}

.thanks-names{
  margin:12px 0 6px;
  font-family:"Cormorant Garamond", serif;
  font-size:20px;
  font-weight:500;
  color:var(--ink);
}

/* REVEAL */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .8s ease, transform .8s ease;
}

.reveal.show{
  opacity:1;
  transform:none;
}

.micro-footer{
  padding:30px 22px 40px;
  text-align:center;
}

.micro-footer p{
  margin:0;
  font-size:10px;
  color:#e2cfae;
  font-family:"Alegreya Sans", sans-serif;
  letter-spacing:.04em;
  line-height:1.6;
  text-align:center;
}

.micro-footer a{
  color:var(--gold-soft);
  text-decoration:none;
  border-bottom:1px solid rgba(227,199,122,.35);
  padding-bottom:1px;
}


.gallery img {
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery img:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-stage {
  width: min(92vw, 900px);
  height: min(86vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }

  .lightbox-stage {
    width: 94vw;
    height: 82vh;
  }
}


@media (max-width:420px){
  .sheet{
    width:calc(100vw - 20px);
  }
}