:root {
  --bg: #f8f2ea;
  --card: rgba(255, 252, 247, 0.82);
  --card-border: rgba(104, 79, 62, 0.14);
  --text: #2d2019;
  --muted: #6f5a4d;
  --accent: #af6d4d;
  --accent-soft: #e8c3aa;
  --shadow: 0 24px 80px rgba(71, 43, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 35%),
    linear-gradient(135deg, #f5ebe1 0%, #f0dfd0 44%, #e7d5c7 100%);
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
}

.background-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.55;
}

.background-glow-left {
  width: 340px;
  height: 340px;
  top: -100px;
  left: -70px;
  background: rgba(255, 255, 255, 0.8);
}

.background-glow-right {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -120px;
  background: rgba(214, 165, 132, 0.32);
}

.hero-card {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 20px 12px 20px 8px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: clamp(3.6rem, 8.4vw, 6.2rem);
  line-height: 0.98;
  font-weight: 700;
}

.lead,
.note,
.photo-caption span {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 54ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(175, 109, 77, 0.18);
  color: var(--accent);
  font-weight: 700;
}

.date-pill span:nth-child(1),
.date-pill span:nth-child(3) {
  font-size: 1.2rem;
}

.date-pill span:nth-child(2) {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 460px;
  margin-top: 28px;
}

.countdown-unit {
  padding: 18px 14px;
  border-radius: 22px;
  background: rgba(255, 248, 242, 0.84);
  border: 1px solid rgba(175, 109, 77, 0.16);
  text-align: center;
}

.countdown-unit strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
}

.countdown-unit span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.note {
  max-width: 46ch;
  margin-top: 28px;
  font-size: 1rem;
}

.rsvp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #d48a68);
  color: #fffaf7;
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(141, 79, 53, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-link:hover,
.rsvp-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(141, 79, 53, 0.3);
}

.hero-photo-block {
  display: grid;
  gap: 16px;
  align-self: center;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(61, 36, 22, 0.2);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(45, 32, 25, 0.14));
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-caption {
  display: grid;
  gap: 6px;
  padding: 0 8px;
}

.photo-caption p {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.75rem;
}

.hero-card,
.countdown-unit,
.date-pill,
.photo-frame {
  animation: rise-in 0.85s ease both;
}

.countdown-unit:nth-child(2) {
  animation-delay: 0.08s;
}

.countdown-unit:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .page-shell {
    padding: 18px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

  .hero-copy {
    padding: 6px;
  }

  .photo-frame {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 12px;
  }

  .hero-card {
    padding: 16px;
    border-radius: 22px;
  }

  .countdown {
    grid-template-columns: repeat(3, minmax(84px, 1fr));
    gap: 10px;
  }

  .countdown-unit {
    padding: 14px 10px;
    border-radius: 18px;
  }

  .date-pill {
    gap: 10px;
    border-radius: 24px;
  }

  .photo-frame {
    min-height: 320px;
  }
}