:root {
  --sage-50: #f3f5f0;
  --sage-100: #e9eee4;
  --sage-200: #d6decf;
  --sage-500: #8fa287;
  --olive-700: #55624f;
  --olive-900: #30392d;
  --cream: #fbf7f1;
  --stone: #d9d0c4;
  --charcoal: #2f342f;
  --gold-muted: #baa381;
  --white: #fffdf9;
  --surface: rgba(255, 253, 249, 0.82);
  --surface-strong: rgba(255, 253, 249, 0.94);
  --line-soft: rgba(85, 98, 79, 0.12);
  --shadow: 0 24px 60px rgba(63, 78, 58, 0.12);
  --shadow-soft: 0 16px 42px rgba(63, 78, 58, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --content-width: 1120px;
  --transition: 220ms ease;
  --spring-transition: 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--charcoal);
  background:
    radial-gradient(circle at top left, rgba(143, 162, 135, 0.18), transparent 32%),
    linear-gradient(180deg, var(--sage-50), var(--cream) 28%, #f5f1e9 100%);
}

::selection {
  background: rgba(143, 162, 135, 0.32);
}

body.has-modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-access="locked"],
html[data-access="locked"] body {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(85, 98, 79, 0.34);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  min-height: 100vh;
  position: relative;
}

html[data-access="locked"] .page-shell {
  visibility: hidden;
  pointer-events: none;
}

html[data-access="granted"] .page-shell {
  visibility: visible;
  pointer-events: auto;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

html[data-access="granted"] .access-gate {
  display: none;
}

.access-gate.is-exiting {
  pointer-events: none;
}

.access-gate.is-exiting .access-gate-backdrop {
  animation: gateBackdropFade 420ms ease forwards;
}

.access-gate.is-exiting .access-gate-panel {
  animation: gatePanelLift 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.access-gate.is-exiting .access-bloom {
  animation: gateBloom 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-shell.is-entering {
  animation: pageReveal 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

.access-gate-backdrop,
.access-bloom {
  position: absolute;
  inset: 0;
}

.access-gate-backdrop {
  background:
    radial-gradient(circle at top, rgba(143, 162, 135, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(243, 245, 240, 0.98), rgba(251, 247, 241, 0.98));
  backdrop-filter: blur(10px);
}

.access-gate-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  padding: 2rem;
  border: 1px solid rgba(85, 98, 79, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 30px 70px rgba(63, 78, 58, 0.16);
  backdrop-filter: blur(18px);
}

.access-gate-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.access-locale-switch {
  background: rgba(85, 98, 79, 0.06);
}

.gate-title {
  font-size: clamp(3rem, 4.5rem, 4.5rem);
  margin-bottom: 0.75rem;
}

.gate-copy {
  max-width: 28rem;
  min-height: 3.5em;
}

.access-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.access-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.access-input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(85, 98, 79, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.9);
  color: var(--charcoal);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
}

.access-input:focus-visible {
  outline: 2px solid rgba(85, 98, 79, 0.28);
  outline-offset: 2px;
}

.access-input::placeholder {
  color: rgba(47, 52, 47, 0.48);
}

.access-error {
  min-height: 1.4rem;
  color: #8a4b40;
  font-size: 0.94rem;
}

.access-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.access-bloom {
  background:
    radial-gradient(circle at center, rgba(255, 253, 249, 0) 0%, rgba(255, 253, 249, 0) 8%, rgba(255, 253, 249, 0.96) 26%, rgba(255, 253, 249, 1) 42%);
  opacity: 0;
  transform: scale(0.72);
}

@keyframes gateBloom {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  35% {
    opacity: 0.72;
  }

  100% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes gatePanelLift {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
}

@keyframes gateBackdropFade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes pageReveal {
  0% {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(12px);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 1rem auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(251, 247, 241, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.site-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--olive-700);
  cursor: pointer;
}

.site-menu-toggle {
  position: relative;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(85, 98, 79, 0.1);
}

.site-menu-toggle span {
  position: absolute;
  width: 1rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.site-menu-toggle span:nth-child(1) {
  transform: translateY(-0.26rem);
}

.site-menu-toggle span:nth-child(3) {
  transform: translateY(0.26rem);
}

.brand-mark,
.site-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.15rem;
  flex: 1;
  min-width: 0;
}

.locale-switch {
  --locale-pill-offset: 0%;
  display: inline-flex;
  position: relative;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(85, 98, 79, 0.08);
  isolation: isolate;
}

.locale-switch::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 0.2rem;
  width: calc(50% - 0.2rem);
  border-radius: 999px;
  background: var(--olive-700);
  box-shadow: 0 10px 24px rgba(63, 78, 58, 0.16);
  transform: translateX(var(--locale-pill-offset));
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
  z-index: 0;
}

.locale-switch[data-active-locale="sv"] {
  --locale-pill-offset: 100%;
}

.locale-button {
  position: relative;
  z-index: 1;
  min-width: 2.5rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(85, 98, 79, 0.72);
  font: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--transition),
    transform var(--transition),
    opacity var(--transition);
  font-size: 1.1rem;
  line-height: 1;
}

.locale-button:hover,
.locale-button:focus-visible {
  transform: translateY(-1px);
}

.locale-button.is-active {
  color: var(--white);
}

.site-nav a {
  position: relative;
  color: rgba(47, 52, 47, 0.72);
  transition:
    color var(--transition),
    transform var(--transition);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--olive-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
  color: var(--olive-700);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.section {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2rem;
  min-height: min(50rem, calc(100vh - 3rem));
  padding-right: clamp(1.4rem, 3vw, 2.8rem);
  padding-left: clamp(1.4rem, 3vw, 2.8rem);
  padding-top: 1.75rem;
  padding-bottom: 3rem;
  perspective: 1200px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 3rem 0 1.5rem;
  border-radius: clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.58), rgba(243, 245, 240, 0.22)),
    linear-gradient(180deg, rgba(255, 253, 249, 0.46), rgba(255, 253, 249, 0.16));
  z-index: 0;
}

.hero-copy,
.hero-card,
.intro-copy,
.intro-photo,
.rsvp-panel,
.registry-card {
  position: relative;
  z-index: 1;
}

.eyebrow,
.card-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-700);
}

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

h1 {
  font-size: clamp(4.25rem, 7.5rem, 7.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2.5rem, 4rem, 4rem);
  max-width: 12ch;
}

h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0;
  line-height: 1.7;
}

.hero-text {
  max-width: 32rem;
  font-size: 1.05rem;
  color: rgba(47, 52, 47, 0.78);
}

.countdown-panel {
  margin-top: 1.5rem;
  max-width: 28rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(85, 98, 79, 0.12);
}

.countdown-note,
.countdown-unit-label {
  color: rgba(47, 52, 47, 0.68);
}

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

.countdown-unit {
  display: grid;
  justify-items: start;
  gap: 0.2rem;
}

.countdown-value {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 2.8rem, 2.8rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.88;
  color: var(--charcoal);
  transform-origin: center;
}

.countdown-value.is-updating {
  animation: countdownTick 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.countdown-unit-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.countdown-note {
  min-height: 1.4rem;
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

.countdown-note.is-hidden {
  visibility: hidden;
}

@keyframes countdownTick {
  0% {
    opacity: 0.35;
    transform: translateY(12px) scale(0.92);
    filter: blur(8px);
  }

  55% {
    opacity: 1;
    transform: translateY(-4px) scale(1.03);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--olive-700);
  color: var(--white);
  box-shadow: var(--shadow);
}

.button-secondary {
  background: rgba(255, 253, 249, 0.6);
  border-color: rgba(85, 98, 79, 0.16);
}

.floating-rsvp {
  position: fixed;
  right: max(1.2rem, calc((100vw - var(--content-width)) / 2));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.15rem);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  border: 1px solid rgba(255, 253, 249, 0.46);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.72), rgba(233, 238, 228, 0.5)),
    rgba(255, 253, 249, 0.5);
  color: var(--olive-900);
  box-shadow:
    0 18px 50px rgba(47, 52, 47, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.floating-rsvp:hover,
.floating-rsvp:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 22px 58px rgba(47, 52, 47, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.floating-rsvp-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(85, 98, 79, 0.76);
}

.floating-rsvp-text {
  display: inline-grid;
  place-items: center;
  min-height: 2.45rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: rgba(85, 98, 79, 0.92);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(63, 78, 58, 0.2);
}

.hero-card {
  max-width: 24rem;
  justify-self: end;
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero-card-inner,
.info-card,
.travel-card,
.registry-card,
.rsvp-panel,
.faq-item {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.hero-card-inner {
  padding: 1.95rem;
  border-radius: var(--radius-lg);
  transform: translateY(1.5rem);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(243, 245, 240, 0.78)),
    var(--surface-strong);
}

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

.detail-grid span,
.timeline-time,
.muted {
  color: rgba(47, 52, 47, 0.72);
}

.detail-grid strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.1rem;
}

.hero-flourish {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
}

.hero-flourish-left {
  top: 10%;
  left: -10%;
  width: 18rem;
  height: 18rem;
  background: rgba(186, 163, 129, 0.2);
}

.hero-flourish-right {
  right: 0;
  bottom: 8%;
  width: 24rem;
  height: 24rem;
  background: rgba(143, 162, 135, 0.24);
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.intro .section-heading h2 {
  max-width: 15ch;
}

.gallery-section {
  position: relative;
}

.gallery-grid {
  display: grid;
  gap: 1.2rem;
}

.media-panel {
  margin: 0;
  min-height: 20rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(85, 98, 79, 0.1);
  background: rgba(255, 253, 249, 0.46);
  will-change: opacity;
}

.media-surface {
  position: relative;
  display: flex;
  align-items: end;
  height: 100%;
  min-height: inherit;
  padding: 1.25rem;
  color: var(--white);
  overflow: hidden;
}

.media-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 35, 27, 0.02), rgba(27, 35, 27, 0.46)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.3), transparent 34%);
}

.media-surface span {
  position: relative;
  z-index: 1;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.18);
  backdrop-filter: blur(12px);
}

.media-surface-one {
  background:
    linear-gradient(160deg, rgba(233, 238, 228, 0.12), rgba(85, 98, 79, 0.46)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1200&q=80")
      center/cover;
}

.media-surface-two {
  background:
    linear-gradient(160deg, rgba(233, 238, 228, 0.08), rgba(186, 163, 129, 0.42)),
    url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=1200&q=80")
      center/cover;
}

.media-surface-three {
  background:
    linear-gradient(160deg, rgba(233, 238, 228, 0.08), rgba(85, 98, 79, 0.42)),
    url("https://images.unsplash.com/photo-1525258946800-98cfd641d0de?auto=format&fit=crop&w=1200&q=80")
      center/cover;
}

.media-panel-tall {
  min-height: 28rem;
}

.intro-layout,
.travel-layout {
  display: grid;
  gap: 1.5rem;
}

.intro-layout {
  align-items: center;
}

.photo-frame {
  padding: 0.7rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(85, 98, 79, 0.1);
  box-shadow: var(--shadow-soft);
}

.photo-placeholder {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 26rem;
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
  background: var(--mist);
}

.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(47, 52, 47, 0.02), rgba(47, 52, 47, 0.34));
  pointer-events: none;
}

.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.photo-placeholder span {
  position: relative;
  z-index: 1;
  margin: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.76);
  color: var(--olive-900);
  backdrop-filter: blur(10px);
}

.intro-copy {
  display: grid;
  gap: 1.25rem;
  font-size: 1.02rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.info-card,
.travel-card {
  padding: 1.6rem;
  border-radius: var(--radius-md);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.info-card:hover,
.travel-card:hover,
.registry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(85, 98, 79, 0.18);
  background: var(--surface-strong);
  box-shadow: 0 22px 52px rgba(63, 78, 58, 0.1);
}

.timeline-grid {
  display: grid;
  gap: 1.25rem;
}

.timeline-day {
  display: grid;
  gap: 1.25rem;
  padding: 1.6rem;
  border: 1px solid rgba(85, 98, 79, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.timeline-day-label {
  margin-bottom: 0;
}

.timeline-day-title {
  font-size: clamp(2rem, 2.7rem, 2.7rem);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 2.3rem;
  top: 1.9rem;
  bottom: 1.2rem;
  width: 1px;
  background: rgba(85, 98, 79, 0.18);
}

.timeline-item {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 1rem;
}

.timeline-item-title {
  margin-bottom: 0.45rem;
  font-size: clamp(1.8rem, 2.3rem, 2.3rem);
}

.timeline-time {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.65rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.timeline-time::after {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--gold-muted);
  box-shadow: 0 0 0 6px rgba(186, 163, 129, 0.16);
  flex: none;
}

.travel-layout {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.map-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(320px, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(85, 98, 79, 0.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 16%, rgba(186, 163, 129, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.9), rgba(233, 238, 228, 0.7));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-shell::before {
  content: "";
  position: absolute;
  inset: auto auto -5rem -4rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(143, 162, 135, 0.18);
  filter: blur(6px);
  pointer-events: none;
}

.map-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.map-copy h2 {
  max-width: 10ch;
}

.map-copy p:not(.eyebrow) {
  max-width: 30rem;
  color: rgba(47, 52, 47, 0.76);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.75;
}

.map-link {
  justify-self: start;
  margin-top: 0.35rem;
}

.event-map {
  position: relative;
  z-index: 1;
  min-height: 26rem;
  overflow: hidden;
  border: 1px solid rgba(85, 98, 79, 0.14);
  border-radius: calc(var(--radius-lg) - 10px);
  background:
    linear-gradient(135deg, rgba(214, 222, 207, 0.86), rgba(251, 247, 241, 0.96)),
    var(--sage-100);
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 249, 0.42),
    0 18px 42px rgba(63, 78, 58, 0.12);
}

.event-map.leaflet-container {
  font-family: "Manrope", sans-serif;
  color: var(--charcoal);
}

.event-map .leaflet-tile {
  filter: saturate(0.5) sepia(0.1) hue-rotate(36deg) brightness(1.04) contrast(0.94);
}

.event-map .leaflet-control-attribution {
  padding: 0.25rem 0.45rem;
  border-radius: 999px 0 0 0;
  background: rgba(255, 253, 249, 0.82);
  color: rgba(47, 52, 47, 0.56);
  font-size: 0.66rem;
}

.event-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(85, 98, 79, 0.12);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(63, 78, 58, 0.12);
}

.event-map .leaflet-control-zoom a {
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  background: rgba(255, 253, 249, 0.9);
  color: var(--olive-700);
  line-height: 2.05rem;
}

.event-map .leaflet-control-zoom a:hover,
.event-map .leaflet-control-zoom a:focus-visible {
  background: var(--sage-100);
  color: var(--olive-900);
}

.event-map .leaflet-popup-content-wrapper {
  border: 1px solid rgba(85, 98, 79, 0.12);
  border-radius: 1rem;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 18px 34px rgba(63, 78, 58, 0.14);
}

.event-map .leaflet-popup-content {
  margin: 0.8rem 0.95rem;
  color: var(--charcoal);
  font-size: 0.86rem;
  line-height: 1.45;
}

.event-map .leaflet-popup-tip {
  background: rgba(255, 253, 249, 0.96);
}

.map-fallback {
  position: absolute;
  inset: 1rem;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  border: 1px dashed rgba(85, 98, 79, 0.22);
  border-radius: calc(var(--radius-lg) - 18px);
  color: var(--olive-700);
  text-align: center;
  transition: opacity var(--transition), visibility var(--transition);
  pointer-events: none;
}

.map-fallback p {
  margin: 0;
}

.map-fallback p:first-child {
  font-family: "Cormorant Garamond", serif;
  color: var(--olive-900);
  font-size: 2.2rem;
  line-height: 1;
}

.event-map.is-loaded .map-fallback {
  opacity: 0;
  visibility: hidden;
}

.event-map-marker {
  display: grid;
  place-items: center;
}

.event-map-marker::before {
  content: "";
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(85, 98, 79, 0.18);
  animation: markerPulse 2.7s ease-out infinite;
}

.event-map-marker span {
  position: relative;
  width: 1.55rem;
  height: 1.55rem;
  border: 3px solid rgba(255, 253, 249, 0.92);
  border-radius: 50%;
  background: var(--olive-700);
  box-shadow:
    0 0 0 7px rgba(85, 98, 79, 0.18),
    0 12px 24px rgba(47, 52, 47, 0.22);
}

@keyframes markerPulse {
  0% {
    opacity: 0.52;
    transform: scale(0.68);
  }

  72% {
    opacity: 0;
    transform: scale(1.42);
  }

  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

.rsvp-panel {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(85, 98, 79, 0.9), rgba(143, 162, 135, 0.84)),
    rgba(255, 253, 249, 0.14);
  color: var(--white);
}

.rsvp-panel .eyebrow {
  color: rgba(255, 253, 249, 0.78);
}

.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.rsvp-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rsvp-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(143, 162, 135, 0.16), transparent 28%),
    rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(14px);
}

.rsvp-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 46rem);
  max-height: min(calc(100vh - 3rem), 54rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(85, 98, 79, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.985);
  box-shadow: 0 28px 70px rgba(63, 78, 58, 0.16);
  backdrop-filter: blur(18px);
}

.rsvp-modal-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 8%, rgba(186, 163, 129, 0.24), transparent 28%),
    radial-gradient(circle at 12% 22%, rgba(143, 162, 135, 0.2), transparent 22%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.rsvp-modal.is-celebrating .rsvp-modal-panel::after {
  opacity: 1;
  animation: rsvpCelebrationGlow 1200ms ease both;
}

.rsvp-confetti {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.rsvp-confetti span {
  position: absolute;
  top: -1rem;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: var(--gold-muted);
  opacity: 0;
  transform: translate3d(-50%, -1rem, 0) rotate(0deg);
  animation: rsvpConfettiFall var(--duration) cubic-bezier(0.16, 1, 0.3, 1) var(--delay) forwards;
}

.rsvp-confetti span:nth-child(3n + 1) {
  background: var(--sage-500);
}

.rsvp-confetti span:nth-child(3n + 2) {
  background: var(--olive-700);
}

.rsvp-confetti span[data-shape="dash"] {
  width: calc(var(--size) * 1.9);
  height: calc(var(--size) * 0.42);
  border-radius: 999px;
}

.rsvp-confetti span[data-shape="petal"] {
  border-radius: 70% 30% 70% 30%;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: inset 0 0 0 1px rgba(186, 163, 129, 0.34);
}

.rsvp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(85, 98, 79, 0.08);
  color: var(--olive-700);
  font-size: 1.35rem;
  cursor: pointer;
}

.rsvp-modal-header {
  display: grid;
  gap: 0.8rem;
  padding: 2rem 2rem 1.15rem;
  border-bottom: 1px solid rgba(85, 98, 79, 0.08);
  background:
    linear-gradient(180deg, rgba(243, 245, 240, 0.88), rgba(255, 253, 249, 0.99));
}

.rsvp-modal-copy {
  max-width: 33rem;
  color: rgba(47, 52, 47, 0.74);
  line-height: 1.6;
}

.rsvp-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.rsvp-form-body {
  display: grid;
  gap: 1.15rem;
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem 2rem 1.25rem;
  scrollbar-gutter: stable;
  background: rgba(255, 253, 249, 0.98);
}

.rsvp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rsvp-form-grid-compact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.rsvp-guest-section {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid rgba(85, 98, 79, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(243, 245, 240, 0.82), rgba(255, 253, 249, 0.96));
}

.rsvp-guest-section-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.rsvp-add-guest,
.rsvp-remove-guest {
  min-height: 2.7rem;
  padding-inline: 1rem;
  white-space: nowrap;
  font-size: 0.9rem;
}

.rsvp-section-title {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.rsvp-section-copy {
  color: rgba(47, 52, 47, 0.72);
  max-width: 30rem;
  line-height: 1.55;
}

.rsvp-guest-list {
  display: grid;
  gap: 0.9rem;
}

.rsvp-guest-row {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.15rem;
}

.rsvp-guest-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.rsvp-guest-row-title {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.rsvp-field {
  display: grid;
  gap: 0.45rem;
}

.rsvp-field-full {
  grid-column: 1 / -1;
}

.rsvp-field span {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.rsvp-field input,
.rsvp-field select,
.rsvp-field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(85, 98, 79, 0.14);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.9);
  color: var(--charcoal);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.rsvp-field select {
  padding-right: 3rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(85, 98, 79, 0.72) 50%),
    linear-gradient(135deg, rgba(85, 98, 79, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) calc(50% - 0.16rem),
    calc(100% - 0.8rem) calc(50% - 0.16rem);
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
}

.rsvp-field textarea {
  resize: vertical;
  min-height: 8.5rem;
}

.rsvp-form-grid-compact .rsvp-field textarea {
  min-height: 6.25rem;
}

.rsvp-field input:focus-visible,
.rsvp-field select:focus-visible,
.rsvp-field textarea:focus-visible,
.rsvp-modal-close:focus-visible {
  outline: 2px solid rgba(85, 98, 79, 0.28);
  outline-offset: 2px;
}

.rsvp-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid rgba(85, 98, 79, 0.08);
  background: rgba(255, 253, 249, 0.99);
}

.rsvp-form-status {
  min-height: 1.5rem;
  padding: 0 2rem;
  margin-top: -0.1rem;
  color: rgba(47, 52, 47, 0.72);
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    color var(--transition);
}

.rsvp-form-actions .button {
  min-width: 8.75rem;
}

.rsvp-confirmation {
  display: grid;
  gap: 0.75rem;
  padding: 1.05rem;
  border: 1px solid rgba(85, 98, 79, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.86), transparent 36%),
    linear-gradient(135deg, rgba(233, 238, 228, 0.9), rgba(255, 253, 249, 0.96));
  box-shadow: 0 1rem 2.5rem rgba(85, 98, 79, 0.12);
}

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

.rsvp-confirmation-kicker,
.rsvp-confirmation-heading {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.rsvp-confirmation-summary {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.08;
  color: var(--charcoal);
}

.rsvp-confirmation-details {
  display: grid;
  gap: 0.45rem;
  color: rgba(47, 52, 47, 0.76);
}

.rsvp-confirmation-details ul {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rsvp-confirmation-details li,
.rsvp-confirmation-empty {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(85, 98, 79, 0.08);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.62);
}

.rsvp-confirmation-edit {
  justify-self: start;
  min-height: 2.65rem;
  padding-inline: 1rem;
}

.rsvp-form-status[data-state="error"] {
  color: #8a4b40;
}

.rsvp-form-status[data-state="success"] {
  margin: 0.2rem 2rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(85, 98, 79, 0.12);
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(233, 238, 228, 0.86), rgba(255, 253, 249, 0.94));
  color: var(--olive-900);
  box-shadow: 0 14px 30px rgba(63, 78, 58, 0.1);
  transform: translateY(-0.1rem);
}

.rsvp-modal.is-celebrating .rsvp-form-status[data-state="success"] {
  animation: rsvpSuccessPop 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rsvp-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@keyframes rsvpCelebrationGlow {
  0% {
    opacity: 0;
  }

  32% {
    opacity: 1;
  }

  100% {
    opacity: 0.42;
  }
}

@keyframes rsvpConfettiFall {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -1rem, 0) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--drift)), 22rem, 0) rotate(calc(var(--spin) * 360deg));
  }
}

@keyframes rsvpSuccessPop {
  0% {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.96);
  }

  58% {
    opacity: 1;
    transform: translateY(-0.18rem) scale(1.015);
  }

  100% {
    opacity: 1;
    transform: translateY(-0.1rem) scale(1);
  }
}

.registry-card {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -0.6rem 0 1.2rem;
}

.faq-toggle {
  min-height: 2.9rem;
  padding-inline: 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-item {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid rgba(85, 98, 79, 0.72);
  border-bottom: 2px solid rgba(85, 98, 79, 0.72);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 260ms ease, border-color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(85, 98, 79, 0.14);
  box-shadow: 0 16px 36px rgba(63, 78, 58, 0.08);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-1px, -1px);
  border-color: var(--olive-700);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition:
    height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  opacity: 0;
}

.faq-answer p {
  padding-top: 0.9rem;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[data-expanded="true"] .faq-answer p {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  width: min(calc(100% - 2rem), var(--content-width));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem) auto;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 1rem auto 1.5rem;
  padding: clamp(1.35rem, 2rem, 2rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.88), rgba(233, 238, 228, 0.68)),
    rgba(255, 253, 249, 0.58);
  box-shadow: var(--shadow-soft);
  color: rgba(47, 52, 47, 0.72);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(85, 98, 79, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.7), transparent 58%);
  pointer-events: none;
}

.footer-main,
.footer-photo,
.footer-actions {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  gap: 1rem;
}

.footer-mark {
  display: inline-grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid rgba(85, 98, 79, 0.16);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.62);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.footer-copy {
  display: grid;
  gap: 0.35rem;
  text-align: left;
}

.footer-copy p:first-child {
  color: var(--charcoal);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 2.75rem, 2.75rem);
  line-height: 0.95;
}

.footer-photo {
  align-self: stretch;
  min-height: 9.5rem;
  border: 1px solid rgba(85, 98, 79, 0.12);
  border-radius: calc(var(--radius-lg) - 0.6rem);
  background:
    linear-gradient(180deg, rgba(47, 52, 47, 0.02), rgba(47, 52, 47, 0.38)),
    url("https://images.unsplash.com/photo-1523438885200-e635ba2c371e?auto=format&fit=crop&w=900&q=80")
      center/cover;
  box-shadow: 0 18px 40px rgba(63, 78, 58, 0.1);
  overflow: hidden;
  display: flex;
  align-items: end;
}

.footer-photo span {
  margin: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.74);
  color: var(--olive-900);
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.footer-actions {
  display: grid;
  justify-items: end;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(47, 52, 47, 0.72);
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--olive-700);
}

.footer-rsvp {
  min-height: 2.9rem;
  background: rgba(255, 253, 249, 0.72);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.985);
  transition:
    opacity var(--spring-transition),
    transform var(--spring-transition),
    filter var(--spring-transition);
  filter: blur(10px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.reveal-media {
  opacity: 0;
  transform: translate3d(-72px, 50px, 0) scale(0.94);
  transition:
    opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(14px);
}

.reveal-media-right {
  transform: translate3d(72px, 50px, 0) scale(0.94);
}

.reveal-media.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.reveal-delay-1 {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 240ms;
}

.reveal-delay-3 {
  transition-delay: 360ms;
}

html[data-admin-access="locked"],
html[data-admin-access="locked"] body {
  overflow: hidden;
}

.cms-page {
  min-height: 100vh;
}

.cms-app {
  width: min(calc(100% - 2rem), 1400px);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

html[data-admin-access="locked"] .cms-app {
  visibility: hidden;
  pointer-events: none;
}

.cms-header,
.cms-editor-panel,
.cms-preview-panel {
  border: 1px solid rgba(85, 98, 79, 0.12);
  background: rgba(255, 253, 249, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cms-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.cms-header h1,
.cms-preview-header h2,
.cms-key h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

.cms-subtitle,
.cms-preview-note,
.cms-key p,
.cms-status {
  color: rgba(47, 52, 47, 0.72);
}

.cms-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.cms-main {
  display: grid;
  gap: 1.25rem;
}

.cms-editor-panel,
.cms-preview-panel {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.cms-toolbar,
.cms-table-head,
.cms-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.cms-toolbar {
  align-items: end;
  margin-bottom: 1rem;
}

.cms-search-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.cms-search,
.cms-field textarea {
  width: 100%;
  border: 1px solid rgba(85, 98, 79, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--charcoal);
  font: inherit;
}

.cms-search {
  min-height: 3rem;
  padding: 0.85rem 1rem;
}

.cms-status {
  margin: 0;
  align-self: center;
}

.cms-table-head {
  padding: 0 0.35rem 0.75rem;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.cms-form {
  display: grid;
  gap: 0.9rem;
}

.cms-row {
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(85, 98, 79, 0.08);
  border-radius: 24px;
  background: rgba(243, 245, 240, 0.66);
}

.cms-key p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.cms-field textarea {
  min-height: 7.5rem;
  padding: 0.9rem 1rem;
  resize: vertical;
  line-height: 1.5;
}

.cms-search:focus-visible,
.cms-field textarea:focus-visible {
  outline: 2px solid rgba(85, 98, 79, 0.28);
  outline-offset: 2px;
}

.cms-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cms-preview-frame {
  width: 100%;
  min-height: 78vh;
  border: 1px solid rgba(85, 98, 79, 0.12);
  border-radius: 24px;
  background: var(--white);
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    gap: 2.5rem;
  }

  .intro-layout {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  }

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

  .gallery-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .gallery-grid .media-panel:last-child {
    grid-column: 2;
    margin-top: -4.5rem;
  }

  .rsvp-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cms-main {
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.9fr);
    align-items: start;
  }

  .cms-editor-panel {
    max-height: calc(100vh - 12rem);
    overflow: auto;
  }

  .cms-preview-panel {
    position: sticky;
    top: 1.25rem;
  }
}

@media (max-width: 759px) {
  .page-shell {
    padding-bottom: 5.25rem;
  }

  .floating-rsvp {
    right: 1rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.85rem);
    left: 1rem;
    justify-content: space-between;
    min-height: 3.75rem;
    padding-left: 1.15rem;
  }

  .floating-rsvp-text {
    min-height: 2.55rem;
    padding: 0 1.15rem;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    top: calc(env(safe-area-inset-top, 0px) + 0.35rem);
    margin-top: 0;
    padding: 0.42rem 0.46rem 0.42rem 0.65rem;
    gap: 0.42rem;
    width: min(calc(100% - 1.25rem), var(--content-width));
    border-radius: 1.05rem;
    background: rgba(251, 247, 241, 0.9);
    box-shadow: 0 10px 22px rgba(63, 78, 58, 0.09);
  }

  .site-menu-toggle {
    display: inline-flex;
    width: 2.45rem;
    height: 2.45rem;
  }

  .site-header-nav,
  .site-header-locale {
    display: flex;
    grid-column: 1 / -1;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition:
      max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      margin-top 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header-nav {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0.32rem;
    max-height: 0;
    margin: 0;
  }

  .site-header-locale {
    order: 4;
    justify-self: start;
    max-height: 0;
    margin-top: 0;
    padding: 0.14rem;
  }

  .brand-mark {
    align-self: center;
    padding-left: 0.1rem;
  }

  .site-header.is-expanded .site-header-nav,
  .site-header.is-expanded .site-header-locale {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header.is-expanded .site-header-nav {
    max-height: 13.75rem;
    margin: 0.15rem 0 0;
  }

  .site-header.is-expanded .site-header-nav a {
    justify-content: flex-start;
    padding: 0.64rem 0.78rem;
    border-radius: 0.86rem;
    background: rgba(85, 98, 79, 0.06);
  }

  .site-header.is-expanded .site-header-nav a::after {
    display: none;
  }

  .site-header.is-expanded .site-header-nav a.is-current {
    background: rgba(85, 98, 79, 0.13);
  }

  .site-header.is-expanded .site-header-locale {
    max-height: 2.65rem;
    margin-top: 0.08rem;
  }

  .site-header.is-expanded .site-menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .site-header.is-expanded .site-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-expanded .site-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .brand-mark,
  .site-header.is-expanded .site-header-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .locale-button {
    min-width: 1.8rem;
    min-height: 1.7rem;
    padding: 0.22rem 0.42rem;
    font-size: 0.84rem;
  }

  .hero.section {
    min-height: auto;
    gap: 1.65rem;
    padding-right: 1.35rem;
    padding-left: 1.35rem;
    padding-top: 2.15rem;
    padding-bottom: 1.45rem;
  }

  .hero::before {
    inset: 1.45rem 0.35rem 0.55rem;
  }

  .hero {
    overflow: hidden;
  }

  .section {
    padding: 3.75rem 0;
  }

  h1 {
    font-size: clamp(3.2rem, 4.35rem, 4.35rem);
    margin-bottom: 0.75rem;
  }

  h2 {
    font-size: clamp(2.35rem, 3rem, 3rem);
    max-width: 12ch;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-text {
    max-width: none;
    font-size: 0.98rem;
  }

  .countdown-panel {
    max-width: none;
    margin-top: 1.15rem;
  }

  .countdown-grid {
    gap: 0.5rem;
    justify-content: center;
  }

  .countdown-value {
    font-size: 1.7rem;
  }

  .countdown-unit-label {
    font-size: 0.62rem;
  }

  .countdown-unit {
    justify-items: center;
    text-align: center;
  }

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

  .hero-actions {
    margin-top: 1.35rem;
  }

  .hero-card {
    width: min(100%, 19rem);
    max-width: none;
    justify-self: start;
    margin-top: 0.2rem;
  }

  .hero-card-inner {
    padding: 1rem 1rem 1.1rem;
    transform: none;
    border-radius: 1.5rem;
  }

  .detail-grid {
    gap: 0.75rem;
    margin-top: 1.15rem;
  }

  .rsvp-modal {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
  }

  .rsvp-modal-panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 1.65rem 1.65rem 0 0;
    background: rgba(255, 253, 249, 0.995);
    transform: translateY(100%);
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .rsvp-modal.is-open .rsvp-modal-panel {
    transform: translateY(0);
  }

  .rsvp-modal-panel::before {
    content: "";
    flex: none;
    align-self: center;
    width: 2.6rem;
    height: 0.25rem;
    margin: 0.65rem 0 0.2rem;
    border-radius: 999px;
    background: rgba(85, 98, 79, 0.2);
  }

  .rsvp-modal-close {
    top: 0.85rem;
    right: 0.85rem;
  }

  .rsvp-modal-header {
    flex: none;
    gap: 0.55rem;
    padding: 0.8rem 1.25rem 0.85rem;
    background: rgba(255, 253, 249, 0.995);
  }

  .rsvp-modal-header h2 {
    max-width: 14ch;
    font-size: 2.45rem;
  }

  .rsvp-modal-copy {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .rsvp-form {
    min-height: 0;
  }

  .rsvp-form-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    background: rgba(255, 253, 249, 0.995);
    -webkit-overflow-scrolling: touch;
  }

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

  .rsvp-guest-section-header,
  .rsvp-guest-row-header {
    flex-direction: column;
    align-items: stretch;
  }

  .rsvp-form-actions {
    flex: none;
    flex-direction: column;
    padding: 0.9rem 1.25rem calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  }

  .rsvp-form-actions .button {
    width: 100%;
    min-width: 0;
  }

  .rsvp-form-status {
    padding: 0 1.25rem;
  }

  .rsvp-form-status[data-state="success"] {
    margin: 0.15rem 1.25rem 0;
    padding: 0.8rem 0.9rem;
    text-align: center;
  }

  .section-heading {
    margin-bottom: 1.4rem;
  }

  .intro-layout {
    gap: 1rem;
  }

  .reveal-media,
  .reveal-media-right {
    transform: translate3d(0, 36px, 0) scale(0.96);
  }

  .map-shell {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 0.8rem;
  }

  .map-copy {
    justify-items: center;
    padding: 1.15rem 0.85rem 0.35rem;
    text-align: center;
  }

  .map-copy h2,
  .map-copy p:not(.eyebrow) {
    max-width: none;
  }

  .map-link {
    justify-self: center;
  }

  .event-map {
    min-height: 20rem;
    border-radius: 1.4rem;
  }

  .map-fallback p:first-child {
    font-size: 1.9rem;
  }

  .photo-placeholder {
    min-height: 18rem;
  }

  .site-footer {
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-bottom: 1rem;
    padding: 1.4rem 1.1rem;
    text-align: center;
  }

  .footer-main,
  .footer-photo,
  .footer-actions {
    justify-items: center;
    width: 100%;
  }

  .footer-photo {
    min-height: 12rem;
    border-radius: 1.4rem;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-copy p:first-child {
    font-size: 2rem;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-rsvp {
    width: 100%;
  }

  .access-gate-panel {
    padding: 1.5rem;
  }

  .timeline-day {
    padding: 1.3rem;
  }

  .timeline-item {
    grid-template-columns: 4.2rem 1fr;
    gap: 0.85rem;
  }

  .cms-app {
    width: min(calc(100% - 1rem), 1400px);
    padding-top: 1rem;
  }

  .cms-header,
  .cms-toolbar,
  .cms-table-head,
  .cms-row,
  .cms-preview-header {
    grid-template-columns: 1fr;
  }

  .cms-header,
  .cms-preview-header {
    align-items: start;
  }

  .cms-header-actions {
    justify-content: start;
  }

  .cms-table-head {
    display: none;
  }

  .cms-row {
    padding: 0.9rem;
  }

  .cms-preview-frame {
    min-height: 62vh;
  }

}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .reveal-media {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .page-shell,
  .access-gate,
  .access-bloom,
  .access-gate-panel,
  .page-shell.is-entering {
    transition: none;
    animation: none;
  }
}
