:root {
  --bg: #fbf7ef;
  --paper: #ffffff;
  --soft: #f1e7d8;
  --text: #29231f;
  --muted: #72675d;
  --gold: #9b7a49;
  --gold-dark: #6f5a3a;
  --champagne: #dac7a7;
  --rose: #d8b8aa;
  --ink: #181513;
  --shadow: 0 24px 70px rgba(41, 35, 31, 0.14);
  --radius: 30px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(216, 184, 170, 0.22), transparent 28rem),
    linear-gradient(180deg, var(--bg), #fff);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header,
.page-header {
  min-height: 100dvh;
  color: white;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(24, 21, 19, 0.46), rgba(24, 21, 19, 0.52)),
    radial-gradient(circle at 50% 15%, rgba(255,255,255,0.42), transparent 15rem),
    linear-gradient(135deg, #2c221c 0%, #856844 45%, #d9c3a0 100%);
}

.page-header {
  min-height: 72dvh;
}

.site-header::before,
.page-header::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 34px;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% -15%;
  height: 48%;
  background: rgba(251, 247, 239, 0.96);
  filter: blur(55px);
}

.nav {
  position: relative;
  z-index: 5;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.brand span { color: #f4dbaf; }

.nav-menu {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-menu a {
  font-size: 0.95rem;
  opacity: 0.92;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: #f4dbaf;
  transition: width .25s ease;
}

.nav-menu a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 1px;
  background: white;
  margin: 4px auto;
  transition: transform .25s ease, width .25s ease;
}

.nav-toggle-line.short { width: 13px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line.short {
  width: 20px;
  transform: translateY(-5px) rotate(-45deg);
}

.hero,
.page-hero {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - 86px);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 70px 0 125px;
}

.page-hero {
  min-height: calc(72dvh - 86px);
}

.eyebrow, .section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #f4dbaf;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(4.2rem, 11vw, 9.4rem);
  line-height: 0.88;
  margin-bottom: 24px;
  font-weight: 400;
  text-shadow: 0 8px 35px rgba(0,0,0,0.22);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.hero-date {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 18px;
}

.hero-text,
.page-hero p {
  max-width: 650px;
  margin-inline: auto;
  font-size: 1.15rem;
}

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

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

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

.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  box-shadow: 0 12px 28px rgba(111, 90, 58, 0.24);
}

.secondary {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.58);
  color: white;
  backdrop-filter: blur(10px);
}

.countdown-section {
  margin-top: -78px;
  position: relative;
  z-index: 4;
}

.countdown-section .container {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(155,122,73,0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.countdown div {
  background: linear-gradient(180deg, #fff, var(--soft));
  border-radius: 22px;
  padding: 22px 10px;
  border: 1px solid rgba(155,122,73,0.12);
}

.countdown strong {
  display: block;
  color: var(--gold-dark);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.countdown span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section { padding: 105px 0; }

.centered {
  text-align: center;
  margin-inline: auto;
}

.section-title {
  max-width: 790px;
  margin-bottom: 38px;
}

.story-list {
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin-inline: auto;
}

.story-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(155,122,73,0.15);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(41, 35, 31, 0.08);
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(155,122,73,0.34);
}

.story-card span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--gold-dark);
  font-weight: 700;
}

.story-card h3 { color: var(--gold-dark); }

.soft {
  background:
    linear-gradient(180deg, rgba(241,231,216,0.82), rgba(251,247,239,0.98));
}

.event-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}

.event-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(114,103,93,0.2);
}

.map-frame {
  width: 100%;
  min-height: 390px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--soft);
}

.rsvp {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(155,122,73,0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.rsvp-form { display: grid; gap: 14px; }

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(114,103,93,0.25);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(155, 122, 73, 0.22);
  border-color: var(--gold);
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-preview {
  border-radius: var(--radius);
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(41,35,31,0.82), rgba(155,122,73,0.72)),
    radial-gradient(circle at 90% 15%, rgba(255,255,255,0.34), transparent 14rem);
  color: white;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.gallery-preview .section-kicker { color: #f4dbaf; }
.gallery-preview p { max-width: 650px; }

.gifts {
  max-width: 760px;
  text-align: center;
}

.gift-box {
  background: var(--paper);
  border: 1px solid rgba(155,122,73,0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-top: 24px;
}

.copy-btn {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  cursor: pointer;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .35s ease;
}

.photo-grid figure:hover img {
  transform: scale(1.04);
}

.photo-grid figcaption {
  padding: 16px 18px 20px;
  color: var(--gold-dark);
  font-weight: 700;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: white;
  box-shadow: 0 14px 32px rgba(37,211,102,0.28);
  transition: transform .2s ease;
}

.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }

.whatsapp-float svg {
  width: 34px;
  height: 34px;
}

.footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }

  .nav-menu {
    position: fixed;
    inset: 18px;
    min-height: calc(100dvh - 36px);
    background:
      linear-gradient(rgba(24,21,19,0.95), rgba(24,21,19,0.95)),
      radial-gradient(circle at 50% 15%, rgba(244,219,175,0.16), transparent 14rem);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 30px;
    color: white;
    display: none;
    flex-direction: column;
    justify-content: center;
    z-index: 30;
    font-size: 1.35rem;
    box-shadow: var(--shadow);
  }

  .nav-menu.open { display: flex; }
  .nav-toggle { z-index: 40; }

  .countdown { grid-template-columns: repeat(2, 1fr); }
  .event-layout, .rsvp, .photo-grid { grid-template-columns: 1fr; }
  .gallery-preview { flex-direction: column; align-items: flex-start; }
  .section { padding: 74px 0; }
  .story-card { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .countdown-section .container,
  .rsvp,
  .gallery-preview { padding: 24px; }
  h1 { font-size: clamp(3.6rem, 18vw, 5rem); }
}

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