:root {
  --paper: #f0e8da;
  --paper-dark: #e0d4c0;
  --ink: #2a2a2a;
  --muted: rgba(27, 27, 27, 0.68);
  --accent: #2f66b3;
}

html {
  height: 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
    will-change: opacity;
}

body.map-bg-loaded::before {
  background-image: url('/img/paderborn_map.svg');
  opacity: 1;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    radial-gradient(800px 500px at 10% 10%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0) 30%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.06) 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    ),
    linear-gradient(180deg, var(--paper), var(--paper-dark));
  background-attachment: fixed;
  font-family: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
}

.landing {
  flex: 1;
}

.landing-card {
  max-width: 520px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  backdrop-filter: blur(6px);
}

.landing-hero {
  position: relative;
  padding-top: 18px;
  background:
    radial-gradient(700px 260px at 50% 10%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.12);
}

.hero-photo {
  width: min(420px, 86%);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: 22px;
  clip-path: ellipse(66% 58% at 50% 38%);
  background-image: url("/img/img.png"), url("/img/placeholder.svg");
  background-size: cover;
  background-position: center;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  border: 10px solid #e8dcc8;
}

.hero-floral {
  width: min(360px, 86%);
  margin: -38px auto 0;
  position: relative;
  z-index: 1;
}

.hero-floral svg {
  display: block;
  width: 100%;
  height: auto;
}

.landing-body {
  padding-top: 6px;
}

.headline-script {
  font-family: "Great Vibes", ui-script, "Brush Script MT", cursive;
  font-size: clamp(44px, 7vw, 62px);
  letter-spacing: 0.4px;
  color: rgba(28, 28, 28, 0.88);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.copy {
  font-size: 20px;
  line-height: 1.35;
  color: var(--muted);
}

.signature-label {
  font-size: 18px;
  color: rgba(27, 27, 27, 0.65);
}

.signature-names {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(25, 25, 25, 0.86);
}

.divider {
  width: 62px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(47, 102, 179, 0), rgba(47, 102, 179, 0.75), rgba(47, 102, 179, 0));
}

.footer-text {
  color: rgba(27, 27, 27, 0.56);
  font-size: 16px;
  line-height: 1.25;
}

@media (max-width: 420px) {
  .copy {
    font-size: 18px;
  }

  .signature-names {
    font-size: 38px;
  }
}

/* Site footer */
.site-footer {
  background: var(--paper-dark);
  border-top: 1px solid rgba(42, 42, 42, 0.1);
  margin-top: auto;
}

/* Locale prompt banner */
.locale-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--accent);
  color: #fff;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.locale-prompt-visible {
  transform: translateY(0);
}

.locale-prompt-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  text-align: center;
}

.locale-prompt-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.locale-prompt-btn {
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.locale-prompt-btn-accept {
  background: #fff;
  color: var(--accent);
  font-weight: 600;
}

.locale-prompt-btn-dismiss {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.locale-prompt-btn-dismiss:hover {
  border-color: #fff;
}
