:root {
  --bg: #fbf4f7;
  --bg-soft: #fffafc;
  --card: rgba(255, 248, 251, 0.78);
  --card-strong: #fffefc;
  --text: #57424f;
  --muted: #7d6671;
  --accent: #e7bfd1;
  --accent-deep: #c57f9f;
  --accent-soft: #f4dce7;
  --line: rgba(197, 127, 159, 0.18);
  --shadow: 0 18px 50px rgba(120, 86, 102, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(249, 224, 236, 0.72), transparent 28%),
    linear-gradient(180deg, #fff8fb 0%, #f8eef4 48%, #fffdfd 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.36;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -5rem;
  left: -5rem;
  background: rgba(239, 189, 213, 0.42);
}

body::after {
  right: -6rem;
  bottom: -6rem;
  background: rgba(255, 227, 239, 0.48);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 24px 16px 36px;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.22;
  filter: blur(2px);
}

.ambient-one {
  width: 160px;
  height: 160px;
  top: 110px;
  right: 12px;
  background: radial-gradient(circle, rgba(255,255,255,.92) 0 18%, rgba(252, 233, 240, .95) 18% 44%, rgba(239, 189, 213, .65) 44% 58%, transparent 58% 100%);
}

.ambient-two {
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: 90px;
  background: radial-gradient(circle, rgba(255,255,255,.85) 0 18%, rgba(255, 234, 242, .85) 18% 42%, rgba(247, 210, 227, .72) 42% 60%, transparent 60% 100%);
}

.invitation-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.66));
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 18px;
  overflow: hidden;
}

.invitation-card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  border: 1px solid rgba(197, 127, 159, 0.22);
  pointer-events: none;
}

.hero,
.countdown,
.actions,
.map-section {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 28px rgba(120, 86, 102, 0.08);
  padding: 22px 18px;
}

.hero {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 28px;
  background:
    linear-gradient(180deg, rgba(255,247,251,0.68), rgba(255,255,255,0.68)),
    radial-gradient(circle at top, rgba(255, 229, 238, 0.72), transparent 42%);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 252, 0.22), rgba(255, 245, 249, 0.78)),
    linear-gradient(90deg, rgba(255, 251, 253, 0.98) 0%, rgba(255, 251, 253, 0.9) 42%, rgba(255, 251, 253, 0.28) 72%, rgba(255, 251, 253, 0.08) 100%),
    url('../assets/images/hero-mae-bebe.png') center center / cover no-repeat;
  pointer-events: none;
  opacity: 0.98;
}

.hero > *:not(.hero-art) {
  position: relative;
  z-index: 1;
}

.section-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.85s ease forwards;
}

.section-reveal:nth-of-type(2) {
  animation-delay: 0.08s;
}

.section-reveal:nth-of-type(3) {
  animation-delay: 0.16s;
}

.section-reveal:nth-of-type(4) {
  animation-delay: 0.24s;
}

.eyebrow,
.section-kicker,
.detail-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent-deep);
  margin: 0;
}

.hero h1,
.section-heading h2 {
  margin: 10px 0 0;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 0.95;
  color: #5b3e4d;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 5.6rem);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.55);
}

.message {
  max-width: 52rem;
  margin: 18px auto 0;
  font-size: clamp(1.02rem, 3vw, 1.18rem);
  line-height: 1.75;
  color: #6f5562;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.45);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255, 244, 248, 0.95));
  border: 1px solid rgba(197, 127, 159, 0.14);
  text-align: left;
}

.detail-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

.countdown,
.actions,
.map-section {
  margin-top: 16px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4.8vw, 3rem);
}

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

.time-box {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 16px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255, 240, 246, 0.95));
  border: 1px solid rgba(197, 127, 159, 0.16);
  text-align: center;
}

.time-box span {
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: #5d4050;
}

.time-box small {
  margin-top: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.arrival-message {
  margin: 0;
  padding: 18px 12px 4px;
  text-align: center;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 700;
  color: #6a4a5a;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.btn,
.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  outline: none;
}

.btn {
  width: 100%;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #d88fb3 0%, #e5adc8 45%, #c7789f 100%);
  box-shadow: 0 14px 28px rgba(199, 120, 159, 0.28);
}

.btn-secondary,
.map-link {
  color: #604251;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(197, 127, 159, 0.2);
}

.btn:hover,
.map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(84, 102, 96, 0.12);
}

.btn:active,
.map-link:active {
  transform: translateY(0) scale(0.99);
}

.btn:focus-visible,
.map-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(197, 127, 159, 0.22), 0 0 0 7px rgba(255,255,255,0.82);
}

.map-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(197, 127, 159, 0.16);
  background: #f8edf3;
  box-shadow: 0 10px 24px rgba(87, 104, 98, 0.08);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 290px;
  height: 320px;
  border: 0;
}

.map-link {
  width: fit-content;
  margin-top: 14px;
  font-size: 0.95rem;
  padding-inline: 18px;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 8px 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .page-shell {
    padding: 36px 22px 42px;
  }

  .invitation-card {
    padding: 24px;
  }

  .hero,
  .countdown,
  .actions,
  .map-section {
    padding: 28px;
  }

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

@media (min-width: 920px) {
  .details-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .map-frame iframe {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .section-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding-inline: 12px;
  }

  .invitation-card {
    border-radius: 26px;
    padding: 14px;
  }

  .hero,
  .countdown,
  .actions,
  .map-section {
    border-radius: 22px;
    padding: 18px 14px;
  }

  .details-grid,
  .countdown-grid {
    grid-template-columns: 1fr 1fr;
  }

  .time-box {
    min-height: 98px;
  }

  .map-frame iframe {
    min-height: 250px;
    height: 270px;
  }
}
