:root {
  --cream: #fffaf0;
  --champagne: #f7e4c1;
  --champagne-deep: #c9984f;
  --blush: #f3c7bc;
  --sage: #748565;
  --ink: #3f3227;
  --muted: #796957;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(78, 55, 33, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    linear-gradient(rgba(255, 250, 240, 0.36), rgba(255, 250, 240, 0.88)),
    url("images/wedding-background%20copy.png") center top / cover fixed;
}

body.intro-active {
  overflow: hidden;
}

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

a,
button {
  font: inherit;
}

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

.petal {
  position: absolute;
  top: -10vh;
  width: var(--size);
  height: calc(var(--size) * 0.72);
  background: radial-gradient(circle at 30% 35%, #fff 0 9%, #f8d8ca 10% 42%, #ecc1b0 70%);
  border-radius: 72% 28% 64% 36%;
  opacity: 0.72;
  filter: blur(0.1px);
  animation: fall var(--duration) linear var(--delay) infinite;
}

@keyframes fall {
  0% {
    transform: translate3d(var(--start), -12vh, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(calc(var(--start) + var(--drift)), 48vh, 0) rotate(180deg);
  }
  100% {
    transform: translate3d(calc(var(--start) - var(--drift)), 112vh, 0) rotate(360deg);
  }
}

.door-intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 22px;
  background: #fff7e8;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.door-intro.hidden {
  opacity: 0;
  visibility: hidden;
}

.door-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 255, 255, 1) 0 13%, rgba(255, 232, 172, 0.92) 24%, rgba(225, 174, 87, 0.46) 48%, rgba(88, 62, 37, 0.28) 100%),
    url("images/wedding-background%20copy.png") center / cover;
  transform: scale(0.88);
  transition: transform 1.6s ease, filter 1.6s ease;
}

.door {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 51%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, #f8e5bd, #c89a55 58%, #8e632f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 0 45px rgba(72, 47, 22, 0.18);
  transition: transform 1.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.door::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 58%;
  border: 1px solid rgba(255, 246, 225, 0.42);
  border-radius: 999px;
}

.door-left {
  left: 0;
  transform-origin: left center;
}

.door-left::after {
  right: 10%;
}

.door-right {
  right: 0;
  transform-origin: right center;
}

.door-right::after {
  left: 10%;
}

.door-content {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(86vw, 360px);
  display: grid;
  gap: 14px;
  place-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.door-content p {
  margin: 0;
  color: #fff7e8;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.door-content strong {
  color: #fffdf8;
  font-size: clamp(2.7rem, 15vw, 4.8rem);
  font-weight: 500;
  line-height: 0.9;
  text-shadow: 0 8px 24px rgba(67, 43, 20, 0.34);
}

.open-invite,
.map-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  color: #fffdf8;
  background: linear-gradient(135deg, #b98542, #d4ad68);
  box-shadow: 0 14px 32px rgba(117, 76, 31, 0.24);
  text-decoration: none;
  cursor: pointer;
}

.door-intro.opened .door-left {
  transform: translateX(-102%);
}

.door-intro.opened .door-right {
  transform: translateX(102%);
}

.door-intro.opened .door-content {
  opacity: 0;
  transform: translate(-50%, -48%) scale(0.96);
}

.door-intro.opened .door-light {
  transform: scale(1.08);
  filter: brightness(1.12);
}

.site-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero {
  min-height: 78svh;
  display: grid;
  align-items: start;
  padding: 72px 16px 28px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.28), rgba(255, 250, 240, 0.48) 46%, rgba(255, 250, 240, 0.72)),
    radial-gradient(circle at 50% 34%, rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0.28) 42%, rgba(255, 250, 240, 0.44));
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: softZoom 18s ease-in-out infinite alternate;
}

@keyframes softZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-copy {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 24px 16px 20px;
  border: 1px solid rgba(201, 152, 79, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
  box-shadow: 0 16px 44px rgba(78, 55, 33, 0.08);
  backdrop-filter: blur(10px);
  text-align: center;
}

.kicker,
.section-kicker {
  margin: 0 0 10px;
  color: var(--champagne-deep);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  font-size: clamp(3.9rem, 21vw, 8rem);
  line-height: 0.8;
  font-weight: 500;
}

h1 span {
  display: block;
}

h1 .amp {
  font-size: 0.56em;
  line-height: 0.86;
  color: var(--champagne-deep);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 10vw, 4.2rem);
  line-height: 0.94;
  font-weight: 500;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.14rem;
}

.invitation,
.couple-copy p,
.timeline-item p,
.venue-copy p,
.footer p {
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.62;
}

.intro-line {
  width: min(100%, 390px);
  margin: 0 auto 18px;
  color: var(--ink);
  font-size: 0.96rem;
}

.date-card {
  display: grid;
  gap: 4px;
  width: min(100%, 360px);
  margin: 24px auto 0;
  padding: 15px;
  border: 1px solid rgba(201, 152, 79, 0.32);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.date-card strong {
  font-size: 1.5rem;
}

.date-card span {
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.countdown-section,
.timeline-section,
.location-section,
.gallery-section,
.couple-section {
  padding: 74px 18px;
}

.countdown-section,
.timeline-section {
  text-align: center;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 520px);
  margin: 22px auto 0;
}

.countdown div {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(201, 152, 79, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 16px 34px rgba(78, 55, 33, 0.08);
}

.countdown strong {
  font-size: 2.5rem;
  line-height: 1;
}

.countdown span {
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.couple-section {
  display: grid;
  gap: 32px;
  align-items: center;
  background: rgba(255, 253, 248, 0.54);
}

.photo-stack {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 0 0 42px 28px;
}

.photo-main,
.photo-secondary {
  border: 8px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-main {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 57% center;
  animation: floatPhoto 6s ease-in-out infinite;
}

.photo-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  transform: rotate(4deg);
}

@keyframes floatPhoto {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.couple-copy {
  width: min(100%, 580px);
  margin: 0 auto;
  text-align: center;
}

.gallery-section {
  padding-top: 18px;
  background: rgba(255, 253, 248, 0.54);
}

.gallery-collage {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 42px 0 0 28px;
}

.gallery-main,
.gallery-secondary {
  border: 6px solid var(--white);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(78, 55, 33, 0.1);
}

.gallery-main {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.gallery-secondary {
  position: absolute;
  top: 0;
  left: 0;
  width: 43%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  transform: rotate(-4deg);
}

.timeline {
  display: grid;
  gap: 14px;
  width: min(100%, 620px);
  margin: 28px auto 0;
  text-align: left;
}

.timeline::before,
.timeline-item::before {
  content: none !important;
  display: none !important;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(201, 152, 79, 0.26);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 14px 32px rgba(78, 55, 33, 0.07);
}

.timeline-item time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 120px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(201, 152, 79, 0.34);
  border-radius: 999px;
  color: var(--champagne-deep);
  background: rgba(255, 250, 240, 0.88);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.timeline-item p {
  margin-bottom: 0;
}

.venue-card {
  width: min(100%, 820px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
}

.venue-card img {
  aspect-ratio: 1.12;
  object-fit: cover;
}

.venue-copy {
  padding: 24px;
  text-align: center;
}

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
}

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

.footer p {
  margin: 0;
}

@media (min-width: 760px) {
  body {
    background-size: min(100%, 1100px) auto;
  }

  .hero {
    min-height: 84vh;
    padding: 72px 40px;
    align-items: center;
  }

  .hero-copy {
    margin-left: 0;
    padding: 28px;
    text-align: left;
  }

  .date-card {
    margin-left: 0;
    text-align: center;
  }

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

  .timeline-item {
    grid-template-columns: 132px 1fr;
    gap: 16px;
  }

  .couple-section {
    grid-template-columns: 1fr 1fr;
    padding-inline: max(40px, calc((100vw - 1080px) / 2));
  }

  .gallery-section {
    padding-inline: max(40px, calc((100vw - 1080px) / 2));
  }

  .gallery-collage {
    width: min(52vw, 520px);
  }

  .couple-copy {
    text-align: left;
  }

  .venue-card {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: stretch;
  }

  .venue-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .venue-copy {
    display: grid;
    align-content: center;
    text-align: left;
  }
}

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