:root {
  --bg: #fbf7f4;
  --bg-alt: #f5eee8;
  --surface: #ffffff;
  --text: #2b2622;
  --muted: #7e7268;
  --accent: #c8987c;
  --accent-soft: #f1ded0;
  --accent-dark: #8b5c45;
  --border-subtle: rgba(169, 148, 129, 0.22);
  --shadow-soft: 0 28px 80px rgba(21, 12, 8, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1120px;
  --nav-height: 76px;
  --transition-fast: 160ms ease-out;
  --transition-med: 220ms ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(223, 198, 183, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(204, 187, 199, 0.4), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.7;
}

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

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

main {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--max-width), 100% - 40px);
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-top: 0;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  font-size: 1rem;
}

.section {
  padding: 96px 0;
}

.section--soft {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 240, 233, 0.96)
  );
}

.section-header {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header p {
  margin-top: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(227, 197, 179, 0.45),
    transparent 55%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 86px rgba(21, 12, 8, 0.22);
  border-color: rgba(169, 148, 129, 0.45);
  background-color: #fffaf7;
}

.card:hover::before {
  opacity: 1;
}

.event-panel {
  position: relative;
  padding-block: 32px;
}

.event-panel h2 {
  margin-bottom: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.event-panel h3 {
  margin-top: 4px;
}

.event-panel--primary {
  border-top: 2px solid rgba(200, 152, 124, 0.85);
}

.event-panel--secondary {
  border-top: 2px solid rgba(200, 186, 175, 0.8);
}

.event-panel--soft {
  border-top: 2px solid rgba(181, 164, 151, 0.7);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(241, 222, 208, 0.8);
  color: var(--accent-dark);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(139, 92, 69, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(139, 92, 69, 0.45);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent-dark);
}

.btn-full {
  width: 100%;
}

.text-muted {
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 131, 119, 0.35);
  font-size: 0.78rem;
  color: var(--muted);
}

/* NAVIGATION */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(250, 244, 239, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(197, 177, 160, 0.32);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1.36rem;
  color: var(--accent-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
  color: var(--muted);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link--active {
  color: var(--accent-dark);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(177, 148, 129, 0.4);
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--accent-dark);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--accent-dark);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* HERO */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: stretch;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(35, 23, 18, 0.55), rgba(20, 16, 23, 0.75)),
    url("https://images.unsplash.com/photo-1519742842650-46072c1e578a?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 56px 0 64px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 40px 120px rgba(9, 5, 2, 0.55);
  padding: 40px 34px 34px;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 24px;
  border: 1px solid rgba(234, 216, 203, 0.9);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-names {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 6px;
}

.hero-date-location {
  text-align: center;
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-message {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
}

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

/* CEREMONY / RECEPTION */

.details-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.details-list li + li {
  margin-top: 6px;
}

.details-label {
  font-weight: 600;
}

.details-list li {
  position: relative;
  padding-left: 20px;
}

.details-list li::before {
  content: "✧";
  position: absolute;
  left: 0;
  top: 0.2em;
  font-size: 0.7rem;
  color: var(--accent-dark);
}

.location-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-cta {
  margin-top: 22px;
}

/* TIMELINE */

.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(182, 154, 138, 0.05),
    rgba(182, 154, 138, 0.85),
    rgba(182, 154, 138, 0.05)
  );
}

.timeline-item {
  position: relative;
  padding: 16px 18px 18px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(198, 176, 162, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 20px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: radial-gradient(circle, #fff, #c8987c);
  box-shadow: 0 0 0 3px rgba(201, 160, 132, 0.26);
}

.timeline-time {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
}

.timeline-description {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* MAPS */

.maps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(181, 164, 151, 0.4);
  box-shadow: 0 18px 48px rgba(44, 33, 27, 0.22);
}

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

/* GIFTS */

.gift-iban {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(244, 233, 224, 0.9);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.gift-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* RSVP FORM */

.rsvp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

label {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
select,
textarea {
  border-radius: 14px;
  border: 1px solid rgba(200, 186, 175, 0.8);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.94rem;
  background: rgba(255, 255, 255, 0.96);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(200, 152, 124, 0.45);
  background-color: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.form-footer {
  margin-top: 18px;
}

.form-status {
  margin-top: 10px;
  font-size: 0.86rem;
}

.form-status--success {
  color: #2f7b5b;
}

.form-status--error {
  color: #9b322e;
}

/* FOOTER */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid rgba(197, 177, 160, 0.4);
  background: rgba(250, 244, 239, 0.9);
  backdrop-filter: blur(12px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

/* AUTH OVERLAY */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(223, 198, 183, 0.6), transparent 55%),
    radial-gradient(circle at bottom right, rgba(204, 187, 199, 0.6), transparent 55%),
    linear-gradient(135deg, #201416, #362327);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition-med),
    visibility var(--transition-med);
  visibility: hidden;
}

.auth-overlay--visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.auth-card {
  width: min(460px, 100% - 40px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 34px 120px rgba(4, 2, 0, 0.7);
  padding: 32px 26px 26px;
  text-align: center;
}

.auth-title {
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.96rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.auth-form {
  margin-top: 10px;
}

.auth-error {
  margin-top: 8px;
  font-size: 0.84rem;
  color: #b43d33;
  min-height: 1.2em;
}

/* REVEAL ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms ease-out,
    transform 520ms ease-out;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

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

  .hero-panel {
    padding-inline: 20px;
  }

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

@media (max-width: 780px) {
  .site-header {
    height: auto;
  }

  .nav {
    padding-block: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 10px 20px 16px;
    background: rgba(250, 244, 239, 0.98);
    border-bottom: 1px solid rgba(197, 177, 160, 0.36);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity var(--transition-fast),
      transform var(--transition-fast);
  }

  .nav-links--open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .section {
    padding: 72px 0;
  }

  .hero-inner {
    padding-block: 40px 52px;
  }
}

@media (max-width: 540px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(223, 198, 183, 0.55), transparent 55%),
      var(--bg);
  }

  .hero-panel {
    border-radius: 26px;
  }

  .maps-grid {
    gap: 18px;
  }

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

  .gift-iban {
    font-size: 0.82rem;
  }
}

