
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Great+Vibes&display=swap');

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

:root {
  --cream: #f6efe4;
  --paper: #fffaf2;
  --burgundy: #762d3c;
  --wine: #54202d;
  --gold: #b38a55;
  --ink: #493a35;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: .18;
  background-image: radial-gradient(#8b6d52 0.5px, transparent 0.5px);
  background-size: 7px 7px;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 85px 22px 55px;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn .8s ease;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

#cover {
  background:
    linear-gradient(rgba(44, 25, 23, .48), rgba(44, 25, 23, .48)),
    radial-gradient(ellipse at center, #b68d78, #573b3a);
  color: #fff8ee;
  position: relative;
  overflow: hidden;
}

#cover::before,
#cover::after {
  content: "✿";
  position: absolute;
  color: rgba(255, 239, 214, .22);
  font-size: 120px;
}

#cover::before {
  top: 8%;
  left: -20px;
  transform: rotate(-25deg);
}

#cover::after {
  bottom: 5%;
  right: -15px;
  transform: rotate(25deg);
}

.cover-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.eyebrow {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 22px;
}

#cover .eyebrow {
  color: #f2d6b7;
}

#cover h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(75px, 20vw, 125px);
  font-weight: 500;
  letter-spacing: -5px;
}

#cover h1 span {
  color: #e9b5a8;
}

.cover-names {
  font-family: 'Great Vibes', cursive;
  font-size: 48px;
  margin-top: 5px;
  color: #f4d7c6;
}

.cover-message {
  font-size: 20px;
  margin: 25px 0 38px;
  letter-spacing: 1px;
}

.small-note {
  font-size: 15px;
  margin-top: 28px;
  opacity: .8;
  font-style: italic;
}

.main-btn {
  border: 1px solid var(--gold);
  background: var(--burgundy);
  color: #fffaf2;
  padding: 15px 27px;
  border-radius: 3px;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 28px;
  box-shadow: 0 5px 15px rgba(60, 30, 30, .13);
  transition: .3s;
}

.main-btn:active {
  transform: scale(.96);
}

.chapter {
  background:
    radial-gradient(ellipse at top left, rgba(190, 155, 120, .12), transparent 45%),
    var(--cream);
}

.chapter h2 {
  font-family: 'Playfair Display', serif;
  color: var(--wine);
  font-size: clamp(30px, 8vw, 43px);
  font-weight: 500;
  margin-bottom: 18px;
}

.description {
  font-size: 21px;
  max-width: 390px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.caption {
  font-size: 21px;
  line-height: 1.55;
  max-width: 430px;
  margin: 25px auto 0;
  color: #66514a;
  font-style: italic;
}

.photo-grid {
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 15px auto;
}

.photo-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #e6d8c8;
  padding: 8px 8px 25px;
  border: 1px solid #e1d2c1;
  box-shadow: 0 7px 18px rgba(65, 43, 32, .14);
  transform: rotate(-2deg);
}

.photo-grid img:nth-child(even) {
  transform: rotate(2deg);
}

.single-photo {
  width: min(100%, 350px);
  padding: 12px 12px 35px;
  background: #fffaf2;
  border: 1px solid #e2d5c6;
  box-shadow: 0 8px 25px rgba(65, 43, 32, .16);
  margin: 12px auto;
  transform: rotate(-1deg);
}

.single-photo img {
  display: block;
  width: 100%;
  max-height: 440px;
  min-height: 220px;
  object-fit: cover;
  background: #e6d8c8;
}

.final-message {
  background: #572b35;
  color: #fff4e8;
}

.final-message .eyebrow {
  color: #e7c394;
}

.final-message h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 9vw, 55px);
  line-height: 1.35;
  font-weight: 500;
  margin: 20px 0;
}

.final-message .description {
  color: #f3daca;
}

.video-container {
  width: 100%;
  max-width: 420px;
  background: #2e1c20;
  padding: 9px;
  border: 1px solid var(--gold);
  margin: 20px auto;
  box-shadow: 0 8px 25px rgba(50, 20, 20, .18);
}

.video-container video {
  display: block;
  width: 100%;
  max-height: 65vh;
  background: #1d1515;
}

.ending {
  font-family: 'Great Vibes', cursive !important;
  font-size: 50px !important;
  margin-top: 35px !important;
}

.music-btn {
  position: fixed;
  z-index: 10;
  top: 15px;
  right: 15px;
  background: rgba(255, 250, 242, .92);
  border: 1px solid #c9ad91;
  color: var(--burgundy);
  padding: 9px 15px;
  border-radius: 25px;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 380px) {
  .photo-grid img {
    height: 165px;
  }

  .screen {
    padding-left: 16px;
    padding-right: 16px;
  }

  .caption {
    font-size: 19px;
  }
}
