:root {
  --wine: #66021f;
  --wine-dark: #360010;
  --cream: #fffaf8;
  --rose: #edc6bb;
  --gold: #cfa766;
  --ink: #4f2630;
  --muted: #7f6670;
  --shadow: 0 22px 70px rgba(54, 0, 16, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Ovo", Georgia, serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

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

.section {
  position: relative;
  overflow: hidden;
  padding: 86px clamp(20px, 5vw, 72px);
}

.inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  background: var(--wine);
  cursor: pointer;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 54px;
  transform: translateX(-120%) skewX(-28deg);
  background: rgba(255, 255, 255, 0.35);
  animation: shine 3.2s linear infinite;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--wine);
  cursor: pointer;
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero__decor img {
  position: absolute;
  opacity: 0.78;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.28));
}

.hero__decor img:nth-child(1) {
  width: min(39vw, 460px);
  top: -22px;
  left: 9vw;
}

.hero__decor img:nth-child(2) {
  width: min(39vw, 460px);
  top: -22px;
  right: 9vw;
}

.hero__decor img:nth-child(3) {
  width: min(82vw, 1010px);
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
}

.hero__decor img:nth-child(4) {
  width: min(76vw, 900px);
  left: 50%;
  top: 2vh;
  transform: translateX(-50%);
}

.hero__decor img:nth-child(5) {
  width: min(32vw, 300px);
  left: 50%;
  top: 20vh;
  transform: translateX(-50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero__video-scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(54, 0, 16, 0.28), rgba(54, 0, 16, 0.72));
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero.is-open {
  cursor: default;
}

.hero.is-open .hero__video {
  opacity: 1;
  transform: scale(1);
}

.hero.is-open .hero__video-scrim {
  opacity: 1;
}

.hero.is-open .hero__decor {
  opacity: 0;
  transform: scale(1.08);
}

.hero.is-open .hero__content {
  transform: translateY(16px);
}

.hero__names {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.hero__name {
  font-size: clamp(78px, 13vw, 170px);
  line-height: 0.78;
  font-weight: 400;
}

.hero__amp {
  color: var(--rose);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.8;
}

.hero__kicker {
  margin-top: 36px;
  color: var(--rose);
  font-size: clamp(22px, 3vw, 38px);
}

.hero__date {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 54px);
}

.audio-toggle {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 18px;
  min-width: 124px;
  min-height: 42px;
  border: 1px solid rgba(255, 250, 248, 0.55);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(102, 2, 31, 0.78);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.intro {
  background: var(--cream);
}

.intro__grid,
.location__grid,
.dress__grid,
.details__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.eyebrow {
  color: var(--wine);
  font-size: clamp(18px, 2vw, 24px);
}

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

h2 {
  margin-bottom: 24px;
  color: var(--wine);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 400;
}

p {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.portrait-stack {
  position: relative;
  width: min(450px, 100%);
  margin: 0 auto;
}

.portrait-stack::before {
  content: "";
  position: absolute;
  inset: 8% -7% -7% 7%;
  border: 1px solid rgba(207, 167, 102, 0.65);
}

.portrait-stack img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(var(--shadow));
}

.countdown {
  color: var(--cream);
  background: var(--wine);
  text-align: center;
}

.countdown h2 {
  color: var(--cream);
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.timer__item {
  min-width: 0;
  padding: 24px 10px;
  border: 1px solid rgba(255, 250, 248, 0.25);
  background: rgba(255, 250, 248, 0.06);
}

.timer__value {
  display: block;
  font-size: clamp(34px, 6vw, 78px);
  line-height: 1;
}

.timer__label {
  display: block;
  margin-top: 10px;
  color: var(--rose);
  font-size: clamp(14px, 2vw, 22px);
}

.schedule {
  background: #fbf1ed;
}

.schedule__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.event {
  min-height: 290px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 20px 16px;
  text-align: center;
}

.event img {
  width: min(150px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.event__name {
  min-height: 58px;
  color: var(--wine);
  font-size: 24px;
  line-height: 1.1;
}

.event__time {
  color: var(--muted);
  font-size: 28px;
}

.location {
  background: var(--cream);
}

.location__image {
  aspect-ratio: 1;
  object-fit: contain;
}

.venue {
  margin-bottom: 8px;
  color: var(--wine);
  font-size: clamp(28px, 4vw, 48px);
}

.address {
  color: var(--muted);
}

.dress {
  color: var(--cream);
  background: var(--wine);
}

.dress h2,
.dress .eyebrow {
  color: var(--cream);
}

.dress__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dress__card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.dress__card img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.dress__label {
  color: var(--rose);
  font-size: 24px;
}

.dress__text {
  font-size: 18px;
}

.details {
  background: #fff;
}

.details__contact {
  color: var(--wine);
  font-size: clamp(26px, 4vw, 44px);
}

.gallery {
  padding-inline: 0;
  background: #fbf1ed;
}

.gallery__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: clamp(12px, 2vw, 24px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.gallery__track img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.rsvp {
  color: var(--cream);
  background: var(--wine);
  text-align: center;
}

.rsvp p {
  width: min(680px, 100%);
  margin-inline: auto;
}

.rsvp .button {
  margin-top: 20px;
  color: var(--wine);
  background: var(--cream);
}

.footer {
  min-height: 760px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--wine);
  text-align: center;
}

.footer__frame {
  position: relative;
  width: min(450px, 92vw);
  margin-inline: auto;
}

.footer__frame img:first-child {
  width: 100%;
  filter: drop-shadow(var(--shadow));
}

.footer__frame img:nth-child(2) {
  position: absolute;
  inset: 0;
  width: 100%;
}

.footer__logo {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 10%;
  width: min(280px, 70%);
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}

.footer__logo:hover {
  transform: translateX(-50%) translateY(-4px);
}

.footer__heading {
  margin-bottom: 24px;
  font-size: clamp(36px, 6vw, 64px);
}

.footer__names {
  margin-top: 20px;
  color: var(--rose);
  font-size: 28px;
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(54, 0, 16, 0.72);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  max-height: min(760px, calc(100svh - 40px));
  overflow: auto;
  padding: 34px;
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--wine);
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal h2 {
  margin-bottom: 8px;
  font-size: 42px;
}

.modal p {
  font-size: 18px;
}

form {
  display: grid;
  gap: 18px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 18px;
}

legend {
  margin-bottom: 8px;
}

input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d8c6bf;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
}

.choice {
  grid-template-columns: 20px 1fr;
  align-items: center;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--wine);
  font-size: 16px;
}

@keyframes shine {
  20%,
  100% {
    transform: translateX(420%) skewX(-28deg);
  }
}

@media (max-width: 800px) {
  .section {
    padding: 70px 20px;
  }

  .hero__decor img:nth-child(1),
  .hero__decor img:nth-child(2) {
    width: 62vw;
  }

  .hero__decor img:nth-child(1) {
    left: -33vw;
  }

  .hero__decor img:nth-child(2) {
    right: -33vw;
  }

  .intro__grid,
  .location__grid,
  .dress__grid,
  .details__grid,
  .dress__cards {
    grid-template-columns: 1fr;
  }

  .timer,
  .schedule__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__track {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .hero__name {
    font-size: 76px;
  }

  .timer,
  .schedule__list {
    grid-template-columns: 1fr;
  }

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

  .modal__panel {
    padding: 30px 20px;
  }
}
