:root {
  --bg: #f7f2eb;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #222018;
  --muted: #6d665a;
  --accent: #b45f4e;
  --accent-soft: #f1d1c8;
  --ring: rgba(180, 95, 78, 0.35);
  --shadow: 0 20px 40px rgba(48, 32, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, #fff4ec 0%, transparent 35%),
    radial-gradient(circle at 85% 80%, #ffeede 0%, transparent 30%),
    linear-gradient(135deg, #f6f1e8 0%, #f4ece0 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 12px;
  border: 1px solid rgba(180, 95, 78, 0.25);
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}

.frame-corners {
  position: fixed;
  inset: 12px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(#b45f4e, #b45f4e) 0 0 / 28px 2px no-repeat,
    linear-gradient(#b45f4e, #b45f4e) 0 0 / 2px 28px no-repeat,
    linear-gradient(#b45f4e, #b45f4e) 100% 0 / 28px 2px no-repeat,
    linear-gradient(#b45f4e, #b45f4e) 100% 0 / 2px 28px no-repeat,
    linear-gradient(#b45f4e, #b45f4e) 0 100% / 28px 2px no-repeat,
    linear-gradient(#b45f4e, #b45f4e) 0 100% / 2px 28px no-repeat,
    linear-gradient(#b45f4e, #b45f4e) 100% 100% / 28px 2px no-repeat,
    linear-gradient(#b45f4e, #b45f4e) 100% 100% / 2px 28px no-repeat;
  opacity: 0.48;
}

.side-label {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.18em;
  font-size: 0.67rem;
  text-transform: uppercase;
  color: rgba(109, 102, 90, 0.42);
  z-index: 1;
  pointer-events: none;
}

.side-label-left {
  left: 10px;
}

.side-label-right {
  right: 10px;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(247, 242, 235, 0.92);
  backdrop-filter: blur(8px);
  animation: intro-out 1200ms ease-in-out 1.8s forwards;
}

.intro-inner {
  text-align: center;
}

.kiss-stage {
  position: relative;
  width: 320px;
  height: 170px;
  margin: 0 auto;
}

.letter {
  position: absolute;
  top: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(5.5rem, 12vw, 8rem);
  color: #7d3f33;
}

.letter-v {
  left: 28px;
  animation: letter-v-move 1.35s ease forwards;
}

.letter-d {
  right: 28px;
  animation: letter-d-move 1.35s ease forwards;
}

.heart {
  position: absolute;
  left: 50%;
  top: 28px;
  width: clamp(1.55rem, 3.2vw, 2rem);
  height: clamp(1.55rem, 3.2vw, 2rem);
  transform: translateX(-50%) rotate(-45deg) scale(0.2);
  background: #b45f4e;
  border-radius: 0.24rem;
  opacity: 0;
  animation: heart-pop 0.9s ease 0.85s forwards;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #b45f4e;
  border-radius: 50%;
}

.heart::before {
  top: -50%;
  left: 0;
}

.heart::after {
  top: 0;
  left: 50%;
}

@keyframes letter-v-move {
  0% { transform: translateX(-54px) rotate(-8deg); }
  70% { transform: translateX(10px) rotate(0deg); }
  100% { transform: translateX(4px) rotate(-2deg); }
}

@keyframes letter-d-move {
  0% { transform: translateX(54px) rotate(8deg); }
  70% { transform: translateX(-10px) rotate(0deg); }
  100% { transform: translateX(-4px) rotate(2deg); }
}

@keyframes heart-pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) rotate(-45deg) scale(0.2);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) rotate(-45deg) scale(1.15);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) rotate(-45deg) scale(1);
  }
}

@keyframes intro-out {
  0% {
    opacity: 1;
    visibility: visible;
  }
  92% {
    opacity: 0;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.background-glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.background-glow-1 {
  top: -10rem;
  left: -8rem;
  background: #ffd8c7;
}

.background-glow-2 {
  right: -10rem;
  bottom: -12rem;
  background: #f6cfbc;
}

.container {
  position: relative;
  z-index: 3;
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1rem 4rem;
}

.section-divider {
  height: 1px;
  max-width: 720px;
  margin: 1.05rem auto;
  opacity: 0.55;
  background: linear-gradient(90deg, rgba(180, 95, 78, 0), rgba(180, 95, 78, 0.4), rgba(180, 95, 78, 0));
}

.hero,
.details-card,
.timeline-card,
.info-card,
.form-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(1.5rem, 3vw, 2.8rem);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

h1 span {
  color: var(--accent);
  font-style: normal;
}

h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #7d3f33;
  background: rgba(180, 95, 78, 0.16);
  border: 1px solid rgba(180, 95, 78, 0.24);
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 70ch;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.75;
  color: #393327;
}

.lead strong {
  color: #7d3f33;
  font-weight: 600;
}

.countdown {
  margin-top: 1.4rem;
  padding: 0.95rem;
  border: 1px solid rgba(180, 95, 78, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.countdown-title {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.countdown-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.25rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(180, 95, 78, 0.2);
}

.countdown-grid span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  color: #7d3f33;
}

.countdown-grid small {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.details-card,
.timeline-card,
.info-card,
.form-card {
  margin-top: 1.4rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.details-card h2,
.timeline-card h2,
.info-card h2,
.form-card h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.form-card h2 {
  margin-bottom: 0.65rem;
}

.details-line {
  margin: 0.75rem 0 0;
  line-height: 1.6;
  color: #393327;
}

.details-actions {
  margin-top: 1rem;
}

.map-embed {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(180, 95, 78, 0.22);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.map-button {
  display: inline-block;
  padding: 0.7rem 1rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #b45f4e 0%, #9c4d3e 100%);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(156, 77, 62, 0.27);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.map-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(156, 77, 62, 0.34);
}

.timeline-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.timeline-item {
  background: #fff;
  border: 1px solid rgba(180, 95, 78, 0.2);
  border-radius: 14px;
  padding: 0.9rem;
}

.timeline-time {
  margin: 0;
  color: #7d3f33;
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0.3rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
}

.timeline-item p,
.info-card p {
  margin: 0.45rem 0 0;
  color: #393327;
  line-height: 1.55;
}

.form-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(180, 95, 78, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.form-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
}

.rsvp-actions {
  margin-top: 0.9rem;
}

.confirm-button,
.calendar-button {
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.98rem;
  cursor: pointer;
}

.confirm-button {
  color: #fff;
  background: linear-gradient(135deg, #b45f4e 0%, #9c4d3e 100%);
  box-shadow: 0 8px 18px rgba(156, 77, 62, 0.27);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.confirm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(156, 77, 62, 0.34);
}

.rsvp-thanks {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(180, 95, 78, 0.2);
}

.rsvp-thanks p {
  margin: 0 0 0.75rem;
  color: #393327;
}

.calendar-button {
  color: #7d3f33;
  background: #f8e9e2;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in-up.delay-1 {
  transition-delay: 180ms;
}

.fade-in-up.delay-2 {
  transition-delay: 340ms;
}

.fade-in-up.delay-3 {
  transition-delay: 460ms;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .side-label,
  .frame-corners,
  body::before {
    display: none;
  }
}

@media (max-width: 680px) {
  .container {
    padding-top: 1.25rem;
  }

  .hero,
  .details-card,
  .timeline-card,
  .info-card,
  .form-card {
    border-radius: 18px;
  }

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

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

  .map-embed iframe {
    height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    animation: none;
    display: none;
  }

  .parallax {
    animation: none !important;
    transform: none !important;
  }
}
