:root {
  --bg-top: #f8f4ec;
  --bg-bottom: #eef3f2;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: rgba(253, 249, 242, 0.96);
  --border: rgba(64, 89, 109, 0.16);
  --shadow: 0 20px 60px rgba(51, 70, 88, 0.14);
  --text-main: #2f4d67;
  --text-soft: #5a7081;
  --accent: #355f53;
  --accent-strong: #29473e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(178, 199, 223, 0.42), transparent 28%),
    radial-gradient(circle at bottom right, rgba(161, 192, 177, 0.3), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

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

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

.page-shell {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(1rem, 2vw, 2rem) 0 clamp(2rem, 6vw, 4rem);
}

.invitation-frame {
  width: min(100%, 560px);
  margin: 0;
  border-radius: clamp(18px, 4vw, 32px);
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.invitation-image {
  width: 100%;
  height: auto;
}

.scroll-note {
  margin: clamp(1rem, 3vw, 1.5rem) 0 0;
  font-family: "Marcellus", serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.location-panel {
  width: min(100%, 760px);
  margin: 0 auto clamp(5rem, 10vw, 7rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: clamp(20px, 4vw, 28px);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(71, 95, 115, 0.1);
  text-align: center;
  backdrop-filter: blur(12px);
}

.location-kicker {
  margin: 0 0 0.5rem;
  font-family: "Marcellus", serif;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.location-panel h1 {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.05;
}

.location-copy {
  width: min(100%, 32rem);
  margin: 1rem auto 0;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  line-height: 1.45;
  color: var(--text-soft);
}

.location-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-family: "Marcellus", serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fdf9f2;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 32px rgba(41, 71, 62, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.location-link:hover,
.location-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(41, 71, 62, 0.28);
  filter: saturate(1.05);
}

.floating-map-button {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.7rem 1rem 0.7rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fdf9f2;
  background: linear-gradient(135deg, rgba(53, 95, 83, 0.96), rgba(47, 77, 103, 0.96));
  box-shadow: 0 18px 40px rgba(35, 55, 69, 0.24);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.floating-map-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-map-button:hover,
.floating-map-button:focus-visible {
  box-shadow: 0 20px 44px rgba(35, 55, 69, 0.32);
}

.floating-map-button__icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.floating-map-button__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.floating-map-button__label {
  font-family: "Marcellus", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-link:focus-visible,
.floating-map-button:focus-visible {
  outline: 3px solid rgba(51, 95, 83, 0.35);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 0.75rem;
  }

  .hero {
    padding-top: 0.75rem;
  }

  .location-panel {
    margin-bottom: 5.5rem;
  }
}

@media (max-width: 460px) {
  .floating-map-button {
    padding: 0;
    width: 3.75rem;
    justify-content: center;
  }

  .floating-map-button__label {
    display: none;
  }
}

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

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