:root {
  --bg: #fffaf7;
  --bg-soft: #f8eee8;
  --card: rgba(255, 252, 248, 0.96);
  --card-strong: #fffdfb;
  --text: #372722;
  --muted: #7e6a63;
  --rose-deep: #8f4258;
  --gold: #c8a56a;
  --gold-soft: #ead7b3;
  --line: rgba(127, 92, 70, 0.12);
  --shadow: 0 24px 70px rgba(77, 49, 38, 0.12);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#message-principal,
#localisation {
  scroll-margin-top: 18px;
}

@keyframes fadePage {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softZoom {
  from {
    opacity: 0;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatPetal {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}

@keyframes heroParallax {
  from {
    transform: scale(1.05) translateY(0);
  }

  to {
    transform: scale(1) translateY(34px);
  }
}

@keyframes glowLift {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelDrift {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-18px) scale(1.01);
  }
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes buttonAura {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(201, 164, 107, 0.25);
  }

  50% {
    box-shadow: 0 18px 36px rgba(201, 164, 107, 0.34);
  }
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 24%),
    radial-gradient(circle at bottom right, rgba(233, 213, 173, 0.18), transparent 24%),
    linear-gradient(180deg, #fffdfb 0%, var(--bg) 45%, var(--bg-soft) 100%);
  animation: fadePage 1s ease-out;
}

.page {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.hero,
.section,
.footer {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero {
  position: relative;
  min-height: 100svh;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
  animation: softRise 1s ease-out both;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  filter: brightness(1) saturate(1.04);
  animation: softZoom 1.8s ease-out both;
  will-change: transform, opacity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(20, 8, 12, 0.02) 0%,
      rgba(20, 8, 12, 0.03) 38%,
      rgba(20, 8, 12, 0.08) 62%,
      rgba(20, 8, 12, 0.26) 100%
    );
}

.topbar {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  animation: softRise 1s ease-out 0.1s both;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand,
.tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: #fffaf5;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.9;
}

.brand-mark span {
  font-size: 0.95rem;
  color: var(--gold-soft);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.brand-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 250, 245, 0.88);
}

.nav-link {
  color: #fffaf7;
  text-decoration: none;
  font-weight: 600;
}

.sr-only-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-panel-wrap {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 24px;
}

.hero-content {
  width: min(100%, 980px);
  margin-top: 640px;
  padding: 20px 24px 30px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  background: linear-gradient(
    180deg,
    rgba(35, 17, 23, 0.12) 0%,
    rgba(35, 17, 23, 0.22) 100%
  );
  color: #fff;
  text-align: center;
  backdrop-filter: blur(3px);
  animation: softRise 1.25s ease-out 0.35s both;
}

.tag {
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-weight: 700;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

h1 {
  margin: 8px 0 14px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.hero-content p {
  max-width: 60ch;
  margin: 0 auto;
  color: rgba(255, 247, 242, 0.96);
  font-size: 1rem;
  line-height: 1.75;
}

.gate-copy {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.gate-label {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.gate-copy strong {
  color: #fffaf5;
  font-size: 1rem;
  line-height: 1.45;
}

.rsvp-form {
  position: relative;
  z-index: 1;
}

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

.rsvp-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 247, 242, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}

.phone-field {
  grid-column: 1 / -1;
}

.rsvp-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 0 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rsvp-form input:focus {
  border-color: rgba(234, 215, 179, 0.86);
  box-shadow:
    0 0 0 4px rgba(234, 215, 179, 0.18),
    0 12px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.invited-by-field {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.invited-by-field legend {
  margin-bottom: 9px;
  color: rgba(255, 247, 242, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
}

.invited-by-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rsvp-form .invited-by-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid rgba(234, 215, 179, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(255, 247, 242, 0.08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rsvp-form .invited-by-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(234, 215, 179, 0.28), transparent 36%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.rsvp-form .invited-by-card:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 215, 179, 0.54);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.rsvp-form input[type="radio"] {
  appearance: auto;
  -webkit-appearance: auto;
  z-index: 1;
  width: 22px;
  min-height: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  accent-color: #d9b56d;
  cursor: pointer;
  transform: none;
}

.rsvp-form input[type="radio"]:focus,
.rsvp-form input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(234, 215, 179, 0.22);
  transform: none;
}

.choice-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.choice-copy strong {
  color: #fffaf5;
  font-size: 1rem;
  line-height: 1.15;
}

.choice-copy small {
  color: rgba(255, 247, 242, 0.66);
  font-size: 0.72rem;
  line-height: 1.25;
}

.invited-by-card:has(input:checked) {
  border-color: rgba(234, 215, 179, 0.88);
  box-shadow:
    0 18px 36px rgba(125, 87, 49, 0.18),
    0 0 0 1px rgba(234, 215, 179, 0.24) inset;
}

.invited-by-card:has(input:checked)::after {
  opacity: 1;
}

.form-submit {
  width: min(100%, 360px);
  margin-top: 14px;
  border: 0;
  cursor: pointer;
}

.form-submit.is-loading {
  opacity: 0.78;
  pointer-events: none;
}

.hero-content .form-status,
.hero-content .privacy-note {
  max-width: 58ch;
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.hero-content .form-status {
  min-height: 1.35em;
  color: #fff4df;
  font-weight: 700;
}

.hero-content .form-status.is-error {
  color: #ffd8cf;
}

.hero-content .form-status.is-success {
  color: #fff4df;
}

.hero-content .privacy-note {
  color: rgba(255, 247, 242, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
  font: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.btn-gold {
  background: linear-gradient(135deg, #f2e2be, var(--gold));
  color: #4d3327;
  box-shadow: 0 12px 28px rgba(201, 164, 107, 0.28);
  animation: buttonAura 3.2s ease-in-out infinite;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.countdown-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  animation: softRise 1.35s ease-out 0.5s both;
}

.count-item {
  padding: 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.count-number {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fffaf6;
}

.count-label {
  display: block;
  margin-top: 6px;
  color: rgba(255, 245, 238, 0.86);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.location-lock-card {
  max-width: 680px;
  margin: 28px auto 6px;
  padding: 28px;
  border: 1px solid rgba(200, 165, 106, 0.20);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 238, 232, 0.76));
  box-shadow:
    0 20px 46px rgba(77, 49, 38, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.44) inset;
  text-align: center;
  animation: gentleFloat 5.2s ease-in-out infinite;
}

.location-lock-card[hidden] {
  display: none;
}

.lock-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2e2be, var(--gold));
  color: #6b3c32;
  font-size: 1.2rem;
  box-shadow: 0 12px 24px rgba(201, 164, 107, 0.22);
}

.location-lock-card h3 {
  margin-bottom: 10px;
  color: var(--rose-deep);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.location-lock-card p {
  max-width: 52ch;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.8;
}

.location-content {
  animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.location-content[aria-hidden="true"] {
  display: none;
}

.section {
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--card);
  animation: softRise 1.1s ease-out both;
}

.featured-section {
  position: relative;
  z-index: 4;
  margin-top: -88px;
}

.featured-section .inner {
  box-shadow:
    0 24px 60px rgba(77, 49, 38, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.featured-section::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 16px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 165, 106, 0.08) 15%,
    rgba(200, 165, 106, 0.45) 50%,
    rgba(200, 165, 106, 0.08) 85%,
    transparent 100%
  );
  pointer-events: none;
}

.section:nth-of-type(1) {
  animation-delay: 0.2s;
}

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

.inner {
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(248, 238, 232, 0.48));
}

.section h2 {
  margin-bottom: 14px;
  color: var(--rose-deep);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.lead {
  max-width: 72ch;
  margin: 0 auto 22px;
  color: var(--muted);
  line-height: 1.85;
  text-align: center;
}

.flyer-text {
  max-width: 780px;
  margin: 0 auto;
  color: #3b2b24;
  font-size: 1.02rem;
  line-height: 1.95;
  text-align: center;
}

.flyer-text p {
  margin: 0 0 16px;
}

.heart {
  margin: 18px 0 10px;
  font-size: 3rem;
  text-align: center;
}

.heart-animated {
  display: inline-block;
  width: 100%;
  animation: heartbeat 1.8s ease-in-out infinite;
}

.scroll-reveal {
  position: relative;
}

.scroll-reveal .inner {
  position: relative;
  overflow: hidden;
}

.scroll-reveal::before {
  content: "❀";
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(143, 66, 88, 0.16);
  font-size: 1.15rem;
  animation: floatPetal 3s ease-in-out infinite;
  pointer-events: none;
}

.scroll-reveal .inner::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -8px;
  height: 62px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(234, 215, 179, 0.24), transparent 70%);
  opacity: 0;
  filter: blur(14px);
  pointer-events: none;
}

@supports (animation-timeline: view()) {
  .hero-image {
    animation:
      softZoom 1.8s ease-out both,
      heroParallax linear both;
    animation-timeline: auto, view();
    animation-range: normal, exit 0% exit 100%;
  }

  .hero-content {
    animation:
      softRise 1.25s ease-out 0.35s both,
      panelDrift linear both;
    animation-timeline: auto, view();
    animation-range: normal, entry 0% cover 55%;
  }

  .scroll-reveal {
    animation: revealUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 8% cover 42%;
  }

  .scroll-reveal .inner::after {
    animation: glowLift linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 46%;
  }

  .featured-section {
    animation:
      revealUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) both,
      panelDrift linear both;
    animation-timeline: auto, view();
    animation-range: normal, entry 0% cover 55%;
  }
}

.premium-note {
  max-width: 40ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
  text-align: center;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.08);
  }

  45% {
    transform: scale(0.98);
  }

  65% {
    transform: scale(1.06);
  }
}

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

.compact-grid {
  margin-bottom: 24px;
}

.practical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 28px;
}

.practical-card {
  padding: 24px;
  border: 1px solid rgba(127, 92, 70, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 238, 232, 0.78));
  box-shadow:
    0 18px 36px rgba(77, 49, 38, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.practical-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 42px rgba(77, 49, 38, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.practical-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.practical-card h3 {
  margin-bottom: 10px;
  color: var(--rose-deep);
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.practical-time,
.practical-place {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.practical-time {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.info-card {
  padding: 18px;
  border: 1px solid rgba(127, 92, 70, 0.08);
  border-radius: var(--radius-md);
  background: var(--card-strong);
  text-align: center;
}

.info-card h3 {
  margin-bottom: 8px;
  color: var(--rose-deep);
  font-size: 1.6rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.location-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

.mini-flyer,
.map-card {
  padding: 22px;
  border: 1px solid rgba(127, 92, 70, 0.08);
  border-radius: var(--radius-lg);
  background: var(--card-strong);
}

.mini-flyer h3,
.map-card h3 {
  margin-bottom: 10px;
  color: var(--rose-deep);
  font-size: 2rem;
}

.separator {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid rgba(127, 92, 70, 0.14);
}

.mini-flyer p,
.map-card p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.8;
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  margin-top: 10px;
  border: 0;
  border-radius: 18px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  margin-top: 14px;
  border: 1px solid rgba(143, 66, 88, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 232, 221, 0.92));
  box-shadow:
    0 16px 30px rgba(77, 49, 38, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  color: var(--rose-deep);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.map-link-secondary {
  background:
    linear-gradient(135deg, rgba(248, 240, 232, 0.94), rgba(255, 255, 255, 0.98));
}

.map-link:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 165, 106, 0.34);
  box-shadow:
    0 20px 34px rgba(77, 49, 38, 0.12),
    0 0 22px rgba(234, 215, 179, 0.18);
}

[data-rsvp-open][hidden] {
  display: none;
}

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

.rsvp-modal[hidden] {
  display: none;
}

.rsvp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 12, 0.54);
  backdrop-filter: blur(10px);
  animation: fadePage 180ms ease-out both;
}

.rsvp-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(86svh, 760px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.98), rgba(248, 238, 232, 0.96));
  box-shadow:
    0 28px 80px rgba(37, 22, 18, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.42) inset;
  animation: revealUp 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rsvp-dialog .gate-copy {
  margin-bottom: 18px;
  text-align: center;
}

.rsvp-dialog .gate-copy h2 {
  margin: 4px 0 10px;
  color: var(--rose-deep);
  font-size: clamp(2.3rem, 6vw, 3.7rem);
}

.rsvp-dialog .gate-copy p,
.rsvp-dialog .privacy-note,
.rsvp-dialog .form-status {
  color: var(--muted);
  line-height: 1.75;
}

.rsvp-dialog .gate-copy p,
.rsvp-dialog .privacy-note {
  margin: 0 auto;
  max-width: 54ch;
}

.rsvp-dialog .rsvp-form label {
  color: var(--text);
}

.rsvp-dialog .rsvp-form input {
  border-color: rgba(127, 92, 70, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.rsvp-dialog .invited-by-field legend {
  color: var(--text);
}

.rsvp-dialog .rsvp-form .invited-by-card {
  border-color: rgba(127, 92, 70, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(253, 244, 238, 0.88)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(88, 54, 41, 0.08);
}

.rsvp-dialog .choice-copy strong {
  color: var(--text);
}

.rsvp-dialog .choice-copy small {
  color: var(--muted);
}

.rsvp-dialog .rsvp-form input[type="radio"] {
  width: 22px;
  min-height: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.rsvp-dialog .rsvp-form input[type="radio"]:focus,
.rsvp-dialog .rsvp-form input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(201, 164, 93, 0.22);
}

.rsvp-dialog .form-submit {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-dialog .form-status {
  min-height: 1.35em;
  margin: 12px auto 0;
  max-width: 54ch;
  text-align: center;
  font-weight: 700;
}

.rsvp-dialog .form-status.is-error {
  color: #a8453d;
}

.rsvp-dialog .form-status.is-success {
  color: #7b5731;
}

.rsvp-dialog .privacy-note {
  margin-top: 10px;
  font-size: 0.86rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

body.modal-open {
  overflow: hidden;
}

.nowrap {
  white-space: nowrap;
}

.footer {
  margin-top: 24px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 252, 248, 0.92);
  color: var(--muted);
  text-align: center;
  animation: softRise 1s ease-out 0.55s both;
}

@media (max-width: 1024px) {
  .hero-content {
    width: min(100%, 900px);
    margin-top: 600px;
  }
}

@media (max-width: 900px) {
  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .location-layout {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-panel-wrap {
    min-height: auto;
    padding-top: 320px;
  }

  .hero-content {
    margin-top: 0;
  }

  .featured-section {
    margin-top: -68px;
  }
}

@media (max-width: 700px) {
  .page {
    width: min(calc(100% - 12px), var(--max));
    padding-top: max(6px, env(safe-area-inset-top));
  }

  .hero {
    padding-top: max(78px, calc(env(safe-area-inset-top) + 62px));
    border-radius: 26px;
  }

  .hero-image {
    top: max(78px, calc(env(safe-area-inset-top) + 62px));
    height: 58svh;
    object-position: center 8%;
  }

  .hero-overlay {
    top: max(78px, calc(env(safe-area-inset-top) + 62px));
    height: 58svh;
    background:
      linear-gradient(
        180deg,
        rgba(20, 8, 12, 0.02) 0%,
        rgba(20, 8, 12, 0.03) 42%,
        rgba(20, 8, 12, 0.07) 68%,
        rgba(20, 8, 12, 0.20) 100%
      );
  }

  .hero-panel-wrap {
    min-height: auto;
    align-items: end;
    padding: 14px;
    padding-top: calc(58svh - 4px);
  }

  .topbar {
    top: max(16px, calc(env(safe-area-inset-top) + 4px));
    left: 16px;
    right: 16px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(32, 15, 20, 0.26);
    backdrop-filter: blur(10px);
  }

  .topbar-left {
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .brand,
  .nav-link,
  .tag,
  .count-label {
    letter-spacing: 0.14em;
  }

  .nav-link {
    flex: 0 0 auto;
    max-width: 120px;
    font-size: 0.82rem;
    text-align: right;
  }

  .brand-mark {
    font-size: 1.55rem;
  }

  .brand-subtitle {
    font-size: 0.56rem;
  }

  .hero-content {
    padding: 16px 14px 14px;
    border-radius: 24px;
    background: linear-gradient(
      180deg,
      rgba(35, 17, 23, 0.16) 0%,
      rgba(35, 17, 23, 0.28) 100%
    );
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 4.3rem);
    line-height: 0.9;
  }

  .hero-content p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .rsvp-dialog {
    max-height: calc(100svh - 28px);
    padding: 24px 16px 18px;
    border-radius: 22px;
  }

  .rsvp-modal {
    padding: 14px;
  }

  .location-lock-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

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

  .invited-by-options {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-height: 50px;
  }

  .countdown-bar {
    gap: 10px;
  }

  .count-item {
    padding: 12px 8px;
  }

  .count-number {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .section,
  .footer {
    padding: 12px;
    border-radius: 22px;
  }

  .featured-section {
    margin-top: -54px;
  }

  .featured-section::after {
    left: 18px;
    right: 18px;
    top: 12px;
  }

  .scroll-reveal {
    animation-range: entry 6% cover 38%;
  }

  .scroll-reveal::before {
    top: 14px;
    right: 16px;
    font-size: 1.1rem;
  }

  .scroll-reveal .inner::after {
    height: 56px;
    animation-range: entry 12% cover 42%;
  }

  .inner {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .section h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .lead,
  .flyer-text,
  .mini-flyer p,
  .map-card p,
  .info-card p,
  .premium-note,
  .practical-time,
  .practical-place {
    font-size: 0.96rem;
    line-height: 1.75;
  }

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

  .info-card,
  .mini-flyer,
  .map-card {
    padding: 16px;
  }

  .map-actions {
    flex-direction: column;
  }

  .map-link {
    width: 100%;
    text-align: center;
  }

  .map-card iframe {
    min-height: 260px;
  }
}

@media (max-width: 420px) {
  .featured-section {
    margin-top: -42px;
  }

  .topbar {
    gap: 8px;
    padding: 7px 8px;
  }

  .nav-link {
    max-width: 96px;
    font-size: 0.76rem;
  }

  .hero-image {
    top: max(74px, calc(env(safe-area-inset-top) + 58px));
    height: 56svh;
    object-position: center 6%;
  }

  .hero-panel-wrap {
    padding-top: calc(56svh - 2px);
  }

  .hero-overlay {
    top: max(74px, calc(env(safe-area-inset-top) + 58px));
    height: 56svh;
  }

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

  .hero-content {
    padding: 14px 12px 12px;
  }

  .gate-copy strong {
    font-size: 0.94rem;
  }

  .rsvp-form input {
    min-height: 46px;
  }

  .scroll-reveal::before {
    top: 12px;
    right: 12px;
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
