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

:root {
  --cream: #f7f2ea;
  --ink: #252321;
  --muted: #77716b;
  --accent: #9a5d5d;
  --line: rgba(37, 35, 33, .14);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(190, 143, 117, .15), transparent 28%),
    radial-gradient(circle at 85% 82%, rgba(145, 104, 104, .12), transparent 30%),
    var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .25;
}

.ambient-one {
  top: -180px;
  right: -120px;
  background: #c9947e;
}

.ambient-two {
  bottom: -220px;
  left: -140px;
  background: #9d7474;
}

.page {
  position: relative;
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: auto;
  padding: 32px 48px 28px;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav-mark {
  font-size: 18px;
  color: var(--accent);
}

.nav-date {
  font-variant-numeric: tabular-nums;
}

.hero {
  flex: 1;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 0 70px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: rise .9s ease both;
}

h1 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(76px, 13vw, 155px);
  line-height: .78;
  letter-spacing: -.06em;
  animation: rise 1s .08s ease both;
}

h1 span {
  font-family: "Parisienne", cursive;
  color: var(--accent);
  font-size: 1.03em;
  letter-spacing: -.04em;
  margin-left: 26px;
}

.subtitle {
  margin-top: 44px;
  color: var(--muted);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  animation: rise 1s .18s ease both;
}

.reveal-btn {
  margin-top: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.2);
  color: var(--ink);
  padding: 13px 18px 13px 22px;
  border-radius: 999px;
  display: flex;
  gap: 18px;
  align-items: center;
  font: 500 11px "DM Sans", sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .35s ease;
  animation: rise 1s .26s ease both;
  backdrop-filter: blur(8px);
}

.reveal-btn:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-3px);
}

.arrow {
  font-size: 16px;
  transition: transform .3s ease;
}

.reveal-btn:hover .arrow {
  transform: translateY(3px);
}

.message {
  text-align: center;
  padding: 105px 20px 125px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.message.visible {
  opacity: 1;
  transform: translateY(0);
}

.message-line {
  width: 1px;
  height: 74px;
  background: var(--line);
  margin: 0 auto 35px;
}

.small-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 9px;
  margin-bottom: 25px;
}

.note {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.45;
  font-weight: 400;
}

.script {
  font-family: "Parisienne", cursive;
  font-size: clamp(48px, 7vw, 76px);
  color: var(--accent);
  margin-top: 32px;
}

.sparkles {
  margin-top: 35px;
  color: #a98272;
  letter-spacing: .3em;
  font-size: 12px;
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

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

@media (max-width: 650px) {
  .page {
    padding: 24px 22px 22px;
  }

  .nav {
    font-size: 8px;
  }

  .hero {
    min-height: 590px;
    padding: 60px 0;
  }

  h1 {
    font-size: clamp(66px, 20vw, 105px);
  }

  h1 span {
    margin-left: 12px;
  }

  .subtitle {
    font-size: 15px;
  }

  .desktop {
    display: none;
  }

  .message {
    padding: 85px 10px 100px;
  }

  .note {
    font-size: 23px;
  }
}
/* =========================
   BIRTHDAY VIDEO SECTION
   ========================= */

.videos {
  width: 100%;
  padding: 120px 0 140px;
}

.video-heading {
  text-align: center;
  margin-bottom: 75px;
}

.video-heading h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 78px);
  line-height: .95;
  letter-spacing: -.05em;
  margin-top: 20px;
}

.video-heading h2 span {
  font-family: "Parisienne", cursive;
  color: var(--accent);
}

.video-intro {
  color: var(--muted);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
  margin-top: 28px;
}

/* TWO LARGE COLUMNS */

.video-grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px 40px;
}

/* VIDEO CARDS */

.video-card {
  width: 100%;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ded8cf;
  border-radius: 3px;
  box-shadow: 0 20px 50px rgba(45, 35, 30, .12);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.friend-number {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .25em;
  margin-top: 18px;
}

.video-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 25px;
  font-weight: 400;
  margin-top: 8px;
}

/* KEEP 7TH VIDEO CENTERED */

.last-video {
  grid-column: 1 / 3;
  width: calc(50% - 20px);
  justify-self: center;
}

/* MOBILE */

@media (max-width: 700px) {

  .video-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .last-video {
    grid-column: auto;
    width: 100%;
  }

}