:root {
  --ink: #2e2730;
  --muted: #7a6f73;
  --paper: #fff6f9;
  --blush: #f7c9d7;
  --rose: #c4617f;
  --sage: #6f8370;
  --champagne: #ffd8e4;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(70, 40, 45, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(255, 246, 249, 0.96), rgba(255, 226, 235, 0.78)),
    radial-gradient(circle at 85% 20%, rgba(247, 201, 215, 0.42), transparent 32%),
    radial-gradient(circle at 10% 70%, rgba(255, 216, 228, 0.28), transparent 30%);
  content: "";
}

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

.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background: rgba(238, 183, 189, 0.2);
  filter: blur(36px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  padding: 24px clamp(18px, 5vw, 72px) 76px;
  background:
    linear-gradient(90deg, rgba(58, 35, 45, 0.72), rgba(89, 50, 65, 0.28), rgba(89, 50, 65, 0.02)),
    url("assets/new_new.png") center / cover;
  color: var(--white);
  isolation: isolate;
}

.hero::before {
  content: none;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(transparent, var(--paper));
  content: "";
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.petals {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.petals span {
  position: fixed;
  top: -12vh;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.45);
  border-radius: 80% 0 80% 0;
  background: rgba(255, 220, 224, 0.82);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
  opacity: 0.62;
  transform: rotate(var(--rotate));
  animation: petal-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.petals span:nth-child(1) {
  --x: 7%;
  --size: 11px;
  --rotate: 16deg;
  --duration: 12s;
  --delay: -2s;
}

.petals span:nth-child(2) {
  --x: 19%;
  --size: 8px;
  --rotate: 64deg;
  --duration: 16s;
  --delay: -7s;
}

.petals span:nth-child(3) {
  --x: 31%;
  --size: 13px;
  --rotate: 21deg;
  --duration: 15s;
  --delay: -4s;
}

.petals span:nth-child(4) {
  --x: 46%;
  --size: 9px;
  --rotate: 82deg;
  --duration: 13s;
  --delay: -10s;
}

.petals span:nth-child(5) {
  --x: 58%;
  --size: 12px;
  --rotate: 34deg;
  --duration: 17s;
  --delay: -1s;
}

.petals span:nth-child(6) {
  --x: 70%;
  --size: 7px;
  --rotate: 72deg;
  --duration: 14s;
  --delay: -6s;
}

.petals span:nth-child(7) {
  --x: 81%;
  --size: 10px;
  --rotate: 12deg;
  --duration: 18s;
  --delay: -11s;
}

.petals span:nth-child(8) {
  --x: 91%;
  --size: 12px;
  --rotate: 52deg;
  --duration: 15s;
  --delay: -8s;
}

.petals span:nth-child(9) {
  --x: 39%;
  --size: 7px;
  --rotate: 32deg;
  --duration: 19s;
  --delay: -13s;
}

.petals span:nth-child(10) {
  --x: 64%;
  --size: 10px;
  --rotate: 76deg;
  --duration: 12s;
  --delay: -5s;
}

@keyframes petal-fall {
  0% {
    translate: 0 -8vh;
    rotate: 0deg;
  }

  50% {
    translate: 42px 54vh;
    rotate: 150deg;
  }

  100% {
    translate: -28px 110vh;
    rotate: 320deg;
  }
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 72px);
}

.brand {
  display: none;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2.6vw, 30px);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  opacity: 0.82;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-content {
  max-width: 760px;
  padding-top: 80px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--champagne);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.95;
}

h1 {
  max-width: 850px;
  font-size: clamp(4rem, 12vw, 9.5rem);
}

.hero h1 {
  font-family: "Great Vibes", "Cormorant Garamond", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 small {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
}

h1 small:empty {
  display: none;
}

h2 {
  font-size: clamp(2.5rem, 7vw, 5.6rem);
}

.hero-copy,
.intro-section p,
.location-copy p {
  max-width: 640px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: rgba(255, 255, 255, 0.58);
  color: var(--rose);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.location-actions .button.secondary {
  border-color: rgba(180, 95, 107, 0.24);
  color: var(--rose);
}

.hero-date {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 68px;
  display: grid;
  gap: 5px;
  min-width: min(280px, calc(100vw - 36px));
  border: 1px solid rgba(246, 160, 190, 0.84);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(246, 160, 190, 0.36);
  box-shadow: 0 12px 30px rgba(196, 97, 127, 0.18);
  backdrop-filter: blur(18px);
}

.hero-date span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-date strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  text-shadow: 0 2px 12px rgba(46, 39, 48, 0.18);
}

main {
  position: relative;
}

section {
  padding: clamp(64px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.intro-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(420px, 560px);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  max-width: 1320px;
  padding-bottom: clamp(42px, 6vw, 76px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 246, 249, 0.94), rgba(255, 246, 249, 0.78)),
    url("assets/bride-to-be-hero.png") 58% center / cover no-repeat;
}

.intro-copy {
  max-width: 880px;
}

.intro-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.92fr 0.78fr;
  grid-template-rows: repeat(3, minmax(94px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.gallery-card {
  position: relative;
  margin: 0;
  border: 1px solid rgba(196, 97, 127, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(88, 61, 66, 0.12);
  overflow: hidden;
}

.gallery-card.tall {
  grid-row: 1 / span 3;
  border-color: rgba(196, 97, 127, 0.14);
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(88, 61, 66, 0.12);
  transform: rotate(1.4deg);
}

.gallery-card.square {
  aspect-ratio: 1;
  transform: rotate(-1.2deg);
}

.gallery-card.slim {
  grid-column: 2 / span 2;
  transform: rotate(1deg);
}

.gallery-card.small {
  min-height: 104px;
}

.gallery-card.tall::before {
  position: absolute;
  inset: 24px -18px -18px 24px;
  z-index: -1;
  border-radius: 8px;
  background: rgba(247, 201, 215, 0.42);
  content: "";
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.gallery-card.tall img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.gallery-card.square img {
  aspect-ratio: 1;
  object-position: center;
}

.gallery-card.slim img {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.gallery-card.small img {
  aspect-ratio: 1;
  object-position: center;
}

.intro-section .section-kicker,
.section-heading .section-kicker,
.location-copy .section-kicker {
  color: var(--rose);
}

.intro-section h2 {
  font-size: clamp(2.5rem, 5.3vw, 5rem);
  white-space: nowrap;
}

.countdown-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 246, 249, 0.92), rgba(255, 216, 228, 0.72)),
    url("assets/bride-to-be-hero.png") center / cover;
}

.countdown-section::before {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
  content: "";
}

.countdown-section > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.count-box {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(180, 95, 107, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.count-box span {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 700;
  line-height: 0.85;
}

.count-box small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.activities-section {
  background:
    linear-gradient(180deg, rgba(255, 246, 249, 0.82), rgba(255, 246, 249, 0.96)),
    url("assets/activities-bg.png") center / cover;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.activity-card {
  min-height: 292px;
  display: grid;
  grid-template-rows: 142px auto auto;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(196, 97, 127, 0.18);
  border-radius: 8px;
  padding: 10px 10px 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 56px rgba(88, 61, 66, 0.1);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.activity-card img {
  width: 100%;
  height: 142px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.02);
}

.activity-card:nth-child(2) img,
.activity-card:nth-child(4) img {
  object-position: center top;
}

.activity-card:nth-child(2) img {
  object-position: center 64%;
}

.activity-card:nth-child(3) img {
  object-position: center 22%;
}

.activity-card:nth-child(4) img {
  object-position: center 66%;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(88, 61, 66, 0.15);
}

.activity-card h3 {
  margin: 8px 12px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.activity-card p {
  margin: 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(255, 246, 249, 0.9), rgba(255, 246, 249, 0.72)),
    url("assets/final-sections-bg.png") center / cover;
}

.location-copy .button.primary {
  background: var(--rose);
  color: #fff;
}

.map-card {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: end;
  gap: 16px;
  border-radius: 8px;
  padding: 24px;
  color: #fff;
  background: #2e2730;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 39, 48, 0.04), rgba(46, 39, 48, 0.76));
  content: "";
}

.map-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pin {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 12px solid var(--rose);
  border-radius: 50% 50% 50% 0;
  background: #fff;
  transform: rotate(-45deg);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
}

.map-card strong,
.map-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.map-card strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.map-card small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer {
  padding: 44px 18px 34px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 246, 249, 0.76), rgba(255, 246, 249, 0.94)),
    url("assets/final-sections-bg.png") center bottom / cover;
  text-align: center;
}

footer img {
  display: block;
  width: min(680px, calc(100vw - 36px));
  aspect-ratio: 16 / 9;
  margin: 0 auto 22px;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 18px 56px rgba(88, 61, 66, 0.16);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 780ms ease, transform 780ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 1040px) {
  .intro-section {
    grid-template-columns: 1fr;
  }

  .intro-section h2 {
    white-space: normal;
  }

  .intro-gallery {
    max-width: 620px;
    justify-self: center;
  }

  .activities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    align-items: end;
    padding-top: 72vw;
    padding-bottom: 190px;
    background:
      linear-gradient(180deg, rgba(255, 246, 249, 0) 0 45vw, rgba(248, 157, 188, 0.24) 55vw, rgba(247, 177, 202, 0.74) 75%, rgba(247, 187, 207, 0.96)),
      url("assets/new_new.png") top center / 100% auto no-repeat,
      linear-gradient(180deg, #f4a5c1 0 62vw, #f7bbcf 100%);
  }

  .hero::before {
    position: absolute;
    inset: 48vw -28px 0;
    z-index: 0;
    display: block;
    background: url("assets/dress_and_heels_cartoon.png") center / cover;
    content: "";
    filter: blur(30px);
    opacity: 0.24;
    transform: scale(1.05);
  }

  .hero-content {
    padding-top: 0;
  }

  h1 {
    font-size: clamp(3.45rem, 16.2vw, 4.85rem);
    line-height: 0.86;
  }

  .hero-copy {
    color: rgba(84, 44, 63, 0.82);
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero .eyebrow {
    color: #9a3f62;
  }

  .hero h1 {
    color: #6f2e4a;
    text-shadow: 0 8px 28px rgba(255, 255, 255, 0.28);
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero-date {
    left: 18px;
    right: 18px;
    bottom: 42px;
  }

  .button {
    width: 100%;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .count-box {
    min-height: 132px;
  }

  .location-section {
    grid-template-columns: 1fr;
  }

  .intro-section {
    padding-bottom: 26px;
  }

  .intro-gallery {
    width: 100%;
    max-width: 380px;
    justify-self: center;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-card.tall {
    grid-row: auto;
  }

  .gallery-card,
  .gallery-card.tall,
  .gallery-card.square,
  .gallery-card.slim {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1;
    transform: none;
  }

  .gallery-card img,
  .gallery-card.tall img,
  .gallery-card.square img,
  .gallery-card.slim img,
  .gallery-card.small img {
    aspect-ratio: 1;
    object-position: center;
  }

  .activities-section {
    background:
      linear-gradient(180deg, rgba(255, 246, 249, 0.88), rgba(255, 246, 249, 0.98)),
      url("assets/activities-bg.png") center / cover;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    min-height: 146px;
  }

  .map-card {
    min-height: 300px;
  }
}
