:root {
  --red-950: #37030d;
  --red-900: #5e0716;
  --red-800: #7d0c20;
  --red-700: #a1122d;
  --red-500: #d72b4c;
  --cream: #fff7ee;
  --blush: #f7d7d7;
  --gold: #d7a64a;
  --ink: #24060d;
  --muted: #7a5a5c;
  --shadow: 0 24px 70px rgba(70, 4, 18, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
}

body::selection {
  color: white;
  background: var(--red-700);
}

a {
  color: inherit;
}

.door-reveal {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: revealGone 0.2s ease 2.55s forwards;
}

.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 22%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 78px
    ),
    linear-gradient(135deg, #4a0612, #9a1029 44%, #5f0717);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.34);
}

.door-left {
  left: 0;
  transform-origin: left center;
  animation: openLeft 2.35s cubic-bezier(0.77, 0, 0.18, 1) 0.35s forwards;
}

.door-right {
  right: 0;
  transform-origin: right center;
  animation: openRight 2.35s cubic-bezier(0.77, 0, 0.18, 1) 0.35s forwards;
}

.door-monogram {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(86px, 16vw, 148px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 232, 181, 0.8);
  border-radius: 50%;
  color: #ffe6b6;
  background: rgba(69, 3, 15, 0.64);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: monogramFade 1s ease 1.2s forwards;
}

.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/wedding-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroDrift 14s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 48%, rgba(177, 20, 48, 0.14), transparent 42%),
    linear-gradient(90deg, rgba(39, 1, 9, 0.86), rgba(76, 4, 17, 0.48) 54%, rgba(37, 1, 9, 0.82)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(44, 1, 11, 0.6));
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 72px);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-content {
  padding: 120px 0 84px;
  max-width: 790px;
  margin-left: clamp(20px, 8vw, 110px);
  opacity: 0;
  transform: translateY(18px);
  animation: contentIn 1s ease 2.1s forwards;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(4rem, 13vw, 9.8rem);
  font-weight: 400;
  line-height: 0.88;
  text-wrap: balance;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}

h3 {
  margin-bottom: 6px;
  font-size: clamp(1.28rem, 3vw, 1.8rem);
  font-weight: 400;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 34px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: rgba(255, 250, 243, 0.9);
}

.primary-action,
.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 238, 198, 0.72);
  color: white;
  background: linear-gradient(135deg, var(--red-700), #e34b63);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(84, 3, 16, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-action:hover,
.map-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(84, 3, 16, 0.42);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 32px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 5px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: white;
  animation: cue 1.4s ease-in-out infinite;
}

.countdown-section,
.timeline-section {
  padding: clamp(72px, 10vw, 130px) 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 238, 0.94), rgba(255, 231, 230, 0.92)),
    radial-gradient(circle at 16% 16%, rgba(215, 166, 74, 0.22), transparent 28%);
}

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

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 22px);
  margin-top: 34px;
}

.countdown div {
  min-width: 0;
  padding: clamp(18px, 4vw, 34px) 12px;
  border: 1px solid rgba(161, 18, 45, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.countdown strong {
  display: block;
  color: var(--red-800);
  font-size: clamp(2.2rem, 7vw, 5.7rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details {
  padding: clamp(72px, 10vw, 130px) 0;
  background: var(--red-950);
  color: white;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.detail-copy p:not(.eyebrow),
.location-panel p {
  max-width: 650px;
  color: rgba(255, 247, 238, 0.78);
  font-size: 1.08rem;
  line-height: 1.8;
}

.detail-image {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.heritage-section {
  padding: clamp(72px, 10vw, 130px) 0;
  background:
    radial-gradient(circle at top right, rgba(215, 166, 74, 0.18), transparent 26%),
    linear-gradient(180deg, #fffaf4, #fff1ef);
}

.heritage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.heritage-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.heritage-card {
  position: relative;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(161, 18, 45, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 242, 0.9));
  box-shadow: 0 28px 80px rgba(70, 4, 18, 0.16);
  overflow: hidden;
  animation: heritageFloat 8s ease-in-out infinite alternate;
}

.heritage-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(215, 166, 74, 0.35);
  border-radius: 18px;
  pointer-events: none;
}

.heritage-image {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.heritage-card figcaption {
  padding: 16px 10px 4px;
  color: var(--muted);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.timeline {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  padding: 0 0 34px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 170px;
  top: 8px;
  bottom: -2px;
  width: 1px;
  background: rgba(161, 18, 45, 0.25);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 162px;
  top: 4px;
  width: 17px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red-700);
  box-shadow: 0 0 0 8px rgba(161, 18, 45, 0.1);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:last-child::before {
  display: none;
}

.timeline time {
  color: var(--red-800);
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.location-section {
  padding: clamp(72px, 10vw, 120px) 0;
  color: white;
  background:
    linear-gradient(rgba(55, 3, 13, 0.9), rgba(55, 3, 13, 0.92)),
    url("assets/wedding-hero.png") center / cover fixed;
}

.location-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
}

.location-image {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.location-copy {
  min-width: 0;
}

.response-section {
  padding: clamp(72px, 10vw, 130px) 0;
  color: white;
  background:
    radial-gradient(circle at 18% 20%, rgba(215, 166, 74, 0.18), transparent 30%),
    linear-gradient(135deg, var(--red-900), var(--red-950));
}

.response-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.response-copy p:not(.eyebrow) {
  max-width: 580px;
  color: rgba(255, 247, 238, 0.8);
  font-size: 1.08rem;
  line-height: 1.8;
}

.response-copy a {
  color: #ffe2ab;
  text-decoration: none;
}

.response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.response-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 232, 181, 0.44);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-family: Optima, Candara, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(26, 2, 7, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.response-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(26, 2, 7, 0.28);
}

.response-yes {
  background: linear-gradient(135deg, #1f7f57, #36a66d);
}

.response-no {
  background: linear-gradient(135deg, #8b2435, #c14a5e);
}

.response-call {
  background: linear-gradient(135deg, #a1122d, #e34b63);
}

@keyframes openLeft {
  to {
    transform: perspective(900px) rotateY(-84deg) translateX(-12%);
  }
}

@keyframes openRight {
  to {
    transform: perspective(900px) rotateY(84deg) translateX(12%);
  }
}

@keyframes monogramFade {
  to {
    opacity: 0;
    transform: scale(0.86);
  }
}

@keyframes revealGone {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes contentIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  40%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes heritageFloat {
  from {
    transform: translateY(0) rotate(-0.5deg);
  }

  to {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

@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;
  }

  .door-reveal {
    display: none;
  }

  .hero-content {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-top: 18px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-content {
    width: min(100% - 32px, 560px);
    margin: 0 auto;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.7rem);
  }

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

  .detail-grid,
  .heritage-grid,
  .location-panel,
  .response-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 30px;
  }

  .timeline li::before {
    left: 7px;
  }

  .timeline li::after {
    left: 0;
  }

  .map-button {
    width: 100%;
  }

  .response-actions {
    width: 100%;
  }

  .response-chip {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown div {
    padding-inline: 8px;
  }
}
