:root{
  --paper:#f6efe4;
  --ink:#111111;
  --soft-ink:#3b3b3b;
  --rose:#b78391;
  --burgundy:#5c2e35;
  --gold:#b89a6a;
  --line:rgba(17,17,17,.75);
  --light-line:rgba(17,17,17,.18);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  min-height:100vh;
  overflow-x:hidden;
  background:#e9dfd1;
  color:var(--ink);
  font-family:"Cormorant Garamond", serif;
}

/* PAGE */

.newspaper-page{
  width:min(1120px,100%);
  margin:0 auto;
  padding:42px 42px 24px;

  background:
    radial-gradient(circle at top left, rgba(255,255,255,.45), transparent 25%),
    radial-gradient(circle at bottom right, rgba(183,131,145,.08), transparent 30%),
    linear-gradient(rgba(246,239,228,.96),rgba(246,239,228,.96)),
    url("assets/paper-texture.jpg");

  background-size:cover;

  position:relative;

  box-shadow:
    0 0 60px rgba(0,0,0,.12),
    0 10px 35px rgba(0,0,0,.08);
}

/* MUSIC */

.music-btn{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:999;

  width:58px;
  height:58px;

  border-radius:50%;
  border:1px solid rgba(17,17,17,.2);

  background:rgba(255,255,255,.82);
  backdrop-filter:blur(12px);

  color:var(--ink);

  font-size:24px;
  cursor:pointer;

  transition:.35s ease;

  box-shadow:0 10px 30px rgba(0,0,0,.18);
}

.music-btn:hover,
.music-btn.active{
  transform:translateY(-2px) scale(1.04);
  background:var(--burgundy);
  color:#fff;
}

/* TOP BAR */

.top-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding-bottom:14px;

  border-bottom:3px double var(--ink);

  font-size:14px;
  font-weight:700;

  letter-spacing:2px;
  text-transform:uppercase;
}

/* HERO */

.hero-section{
  padding-top:12px;
  border-bottom:2px solid var(--ink);
}

.ornament{
  text-align:center;
  font-size:34px;
  opacity:.9;
}

.hero-section h1{
  text-align:center;

  font-family:"UnifrakturCook", cursive;

  font-size:clamp(58px,10vw,128px);

  line-height:.9;
  letter-spacing:2px;

  margin:10px 0 24px;
  padding-bottom:24px;

  border-bottom:4px double var(--ink);
}

.subtitle-line,
.section-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;

  margin:24px 0;
}

.subtitle-line span,
.section-title span{
  flex:1;
  max-width:220px;
  height:1px;
  background:var(--ink);
}

.subtitle-line p,
.section-title h2{
  margin:0;

  text-transform:uppercase;
  letter-spacing:3px;

  font-size:18px;
  font-weight:700;

  text-align:center;
}

/* HERO GRID */

.hero-grid{
  display:grid;
  grid-template-columns:32% 68%;
  gap:30px;

  padding-top:26px;
  margin-bottom:26px;

  border-top:2px solid var(--ink);
}

.hero-text{
  padding-right:26px;
  border-right:2px solid var(--ink);

  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-text h2{
  font-size:clamp(34px,5vw,60px);

  text-transform:uppercase;
  line-height:1.02;

  font-weight:500;

  margin-bottom:24px;
}

.hero-text p{
  font-size:22px;
  line-height:1.35;

  margin-bottom:18px;

  color:var(--soft-ink);
}

.hero-text .italic{
  font-style:italic;
  color:var(--burgundy);
  font-weight:700;
}

.hashtag{
  margin-top:16px;
  padding-top:14px;

  border-top:1px solid var(--ink);

  letter-spacing:1px;
  font-size:15px;
}

/* PHOTO */

.hero-photo{
  position:relative;

  padding:10px;

  border:1px solid rgba(17,17,17,.18);

  background:rgba(255,255,255,.4);

  overflow:hidden;
}

.hero-photo img{
  width:100%;
  height:560px;

  object-fit:cover;
  display:block;

  transition:1s ease;
}

.hero-photo:hover img{
  transform:scale(1.03);
}

.hand-note{
  position:absolute;

  right:-18px;
  bottom:-18px;

  transform:rotate(-4deg);

  background:#f5ece2;

  border:1px solid rgba(17,17,17,.12);

  padding:20px 32px;

  font-family:"Allura", cursive;
  font-size:48px;

  line-height:.8;

  color:var(--rose);

  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

/* DETAILS */

.details-section{
  padding:10px 0 30px;
  border-bottom:2px solid var(--ink);
}

.details-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);

  border:1px solid var(--ink);
}

.detail-card{
  min-height:260px;

  padding:22px 18px;

  border-right:1px solid var(--ink);

  text-align:center;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  transition:.35s ease;
}

.detail-card:hover{
  background:rgba(255,255,255,.35);
}

.detail-card:last-child{
  border-right:none;
}

.detail-card h3{
  text-transform:uppercase;
  font-size:15px;
  letter-spacing:2px;

  margin-bottom:10px;
}

.detail-card .icon{
  font-size:28px;
  margin-bottom:10px;
}

.detail-card strong{
  font-size:58px;
  font-weight:500;
  line-height:1;
}

.detail-card p{
  margin:8px 0;

  text-transform:uppercase;
  font-size:15px;
  line-height:1.4;
}

.detail-card h4{
  font-family:"Allura", cursive;
  font-size:40px;
  color:var(--burgundy);
}

.black-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-top:12px;
  padding:12px 22px;

  background:var(--ink);
  color:#fff;

  text-decoration:none;

  text-transform:uppercase;
  letter-spacing:2px;
  font-size:12px;
  font-weight:700;

  transition:.35s ease;
}

.black-btn:hover{
  background:var(--burgundy);
  color:#fff;

  transform:translateY(-2px);
}

/* PHOTOS */

.photos-section{
  padding:30px 0;
  border-bottom:2px solid var(--ink);
}

.photo-strip{
  display:grid;
  grid-template-columns:repeat(5,1fr);

  gap:18px;

  padding:22px;

  border:1px solid var(--ink);
}

.photo-strip img{
  width:100%;
  height:220px;

  object-fit:cover;

  padding:8px;
  background:#fff;

  border:1px solid rgba(17,17,17,.12);

  box-shadow:0 8px 18px rgba(0,0,0,.12);

  transition:.4s ease;
}

.photo-strip img:hover{
  transform:translateY(-6px) rotate(0deg) !important;
}

.photo-strip img:nth-child(1){
  transform:rotate(-4deg);
}

.photo-strip img:nth-child(2){
  transform:rotate(2deg);
}

.photo-strip img:nth-child(3){
  transform:rotate(-2deg);
}

.photo-strip img:nth-child(4){
  transform:rotate(3deg);
}

.photo-strip img:nth-child(5){
  transform:rotate(-3deg);
}

/* SOUNDTRACK */

.soundtrack-section{
  padding:30px 0;
  border-bottom:2px solid var(--ink);
}

.soundtrack-box{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:28px;

  padding:30px;

  border:1px solid var(--ink);

  background:rgba(255,255,255,.18);
}

.soundtrack-box h3{
  text-transform:uppercase;
  letter-spacing:1px;

  font-size:28px;

  margin-bottom:8px;
}

.soundtrack-box p{
  font-size:18px;
  margin:0;
}

.play-btn{
  border:none;

  background:var(--burgundy);
  color:#fff;

  padding:16px 34px;

  text-transform:uppercase;
  letter-spacing:2px;

  font-size:12px;
  font-weight:700;

  cursor:pointer;

  transition:.35s ease;
}

.play-btn:hover{
  background:var(--ink);
  transform:translateY(-2px);
}

/* RSVP */

.rsvp-section{
  padding:34px 0;

  display:grid;
  grid-template-columns:1fr 1fr;

  gap:36px;

  border-bottom:2px solid var(--ink);
}

.rsvp-form-box,
.note-box{
  padding:30px;

  border:1px solid var(--ink);

  background:
    linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,.25));
}

.rsvp-form-box h2{
  text-transform:uppercase;
  letter-spacing:2px;

  font-size:30px;

  margin-bottom:4px;
}

.rsvp-form-box p{
  font-size:18px;
}

form{
  margin-top:20px;
}

form label{
  display:block;

  margin:16px 0 8px;

  text-transform:uppercase;
  letter-spacing:1px;

  font-size:12px;
  font-weight:700;
}

input,
textarea{
  width:100%;

  border:1px solid rgba(17,17,17,.16);

  background:rgba(255,255,255,.4);

  padding:14px;

  font-family:"Cormorant Garamond", serif;
  font-size:18px;

  outline:none;

  transition:.3s ease;
}

input:focus,
textarea:focus{
  border-color:var(--burgundy);
  background:#fff;
}

textarea{
  resize:none;
  height:110px;
}

.radio-group{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
}

.radio-group label{
  display:flex;
  align-items:center;
  gap:8px;

  text-transform:none;
  font-size:16px;
  font-weight:500;
}

.radio-group input{
  width:auto;
}

.submit-btn{
  width:100%;

  margin-top:20px;
  padding:15px;

  border:none;

  background:var(--ink);
  color:#fff;

  text-transform:uppercase;
  letter-spacing:2px;

  font-size:12px;
  font-weight:700;

  cursor:pointer;

  transition:.35s ease;
}

.submit-btn:hover{
  background:var(--burgundy);
}

.success-message{
  display:none;

  margin-top:16px;

  color:var(--burgundy);
  font-weight:700;
}

.success-message.show{
  display:block;
}

/* NOTE */

.note-box{
  max-width:420px;

  justify-self:center;
  align-self:center;

  transform:rotate(-2deg);

  box-shadow:0 12px 30px rgba(0,0,0,.1);
}

.note-box h3{
  text-transform:uppercase;
  letter-spacing:2px;

  font-size:22px;

  margin-bottom:18px;
}

.note-box p{
  font-size:22px;
  line-height:1.45;
}

.note-box span{
  display:block;

  margin-top:12px;

  font-family:"Allura", cursive;
  font-size:44px;

  color:var(--rose);
}

/* COUNTDOWN */

.countdown-section{
  padding:28px 0 8px;
  text-align:center;
}

.countdown-section h2{
  text-transform:uppercase;
  letter-spacing:2px;

  font-size:22px;

  margin-bottom:22px;
}

.countdown{
  display:flex;
  justify-content:center;

  border-top:1px solid var(--ink);
  border-bottom:1px solid var(--ink);

  padding:16px 0;
  margin-bottom:16px;
}

.countdown div{
  min-width:140px;

  border-right:1px solid var(--ink);
}

.countdown div:last-child{
  border-right:none;
}

.countdown strong{
  display:block;

  font-size:42px;
  font-weight:500;

  line-height:1;
}

.countdown span{
  text-transform:uppercase;
  letter-spacing:1px;

  font-size:12px;
}

.countdown-section p{
  text-transform:uppercase;
  letter-spacing:2px;

  font-size:12px;
}

/* REVEAL */

.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:1s ease;
}

.reveal.show{
  opacity:1;
  transform:translateY(0);
}

/* TABLET */

@media(max-width:991px){

  .newspaper-page{
    padding:28px 22px;
  }

  .hero-grid{
    grid-template-columns:1fr;
  }

  .hero-text{
    border-right:none;
    border-bottom:2px solid var(--ink);

    padding:0 0 24px;

    text-align:center;
  }

  .hero-photo img{
    height:520px;
  }

  .details-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .detail-card{
    border-bottom:1px solid var(--ink);
  }

  .detail-card:nth-child(2),
  .detail-card:nth-child(4){
    border-right:none;
  }

  .detail-card:last-child{
    grid-column:1/-1;
    border-bottom:none;
  }

  .photo-strip{
    grid-template-columns:repeat(2,1fr);
  }

  .photo-strip img{
    height:260px;
  }

  .rsvp-section{
    grid-template-columns:1fr;
  }

}

/* MOBILE */

@media(max-width:575px){

  .newspaper-page{
    padding:20px 14px;
  }

  .top-bar{
    font-size:10px;
    letter-spacing:1px;
  }

  .hero-section h1{
    font-size:58px;
  }

  .subtitle-line,
  .section-title{
    gap:10px;
  }

  .subtitle-line p,
  .section-title h2{
    font-size:13px;
    letter-spacing:2px;
  }

  .hero-text h2{
    font-size:38px;
  }

  .hero-text p{
    font-size:20px;
  }

  .hero-photo img{
    height:390px;
  }

  .hand-note{
    right:10px;
    bottom:-20px;

    padding:16px 24px;

    font-size:36px;
  }

  .details-grid{
    grid-template-columns:1fr;
  }

  .detail-card{
    min-height:220px;

    border-right:none;
    border-bottom:1px solid var(--ink);
  }

  .detail-card:last-child{
    border-bottom:none;
  }

  .photo-strip{
    grid-template-columns:1fr;
  }

  .photo-strip img{
    height:300px;
  }

  .soundtrack-box{
    flex-direction:column;
    text-align:center;
  }

  .play-btn{
    width:100%;
  }

  .rsvp-form-box,
  .note-box{
    padding:22px;
  }

  .note-box{
    transform:none;
  }

  .radio-group{
    flex-direction:column;
    gap:0;
  }

  .countdown{
    display:grid;
    grid-template-columns:repeat(2,1fr);
  }

  .countdown div{
    min-width:auto;

    padding:12px 0;

    border-right:none;
    border-bottom:1px solid var(--ink);
  }

  .countdown div:nth-child(1),
  .countdown div:nth-child(3){
    border-right:1px solid var(--ink);
  }

  .countdown div:nth-child(3),
  .countdown div:nth-child(4){
    border-bottom:none;
  }

  .music-btn{
    width:52px;
    height:52px;

    right:16px;
    bottom:16px;
  }

}