:root {
  --ink: #171514;
  --paper: #f7f2ea;
  --cream: #efe6d9;
  --sand: #d6c2a0;
  --deep: #1f1a17;
  --accent: #d2b07a;
  --accent-dark: #a88449;
  --shadow: 0 24px 60px rgba(23, 21, 20, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #5a4635 0%, #3d2f26 55%, #2a1f18 100%);
  color: var(--ink);
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 18px 0;
  color: #fff;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.brand {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-self: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  justify-self: start;
  padding-left: 4px;
}

.nav a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  opacity: 1;
}

.nav a.is-active,
.nav-cta.is-active,
.mobile-nav a.is-active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  opacity: 1;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 24px;
  background: rgba(18, 16, 15, 0.92);
  color: #fff;
  backdrop-filter: blur(6px);
}

.mobile-nav a {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-nav.is-open {
  display: flex;
}

.hidden {
  display: none !important;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 16, 15, 0.7);
}

.gate-card {
  width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.gate-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 28px;
  margin: 0 0 8px;
  color: #2a1f18;
}

.gate-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.gate-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(90, 70, 53, 0.35);
  font-size: 16px;
}

.gate-note {
  margin: 10px 0 0;
  color: #6d5b4c;
  font-size: 13px;
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #2a221c;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 20%;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(12, 10, 9, 0.85), rgba(12, 10, 9, 0.45));
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.08), transparent 60%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 140px 0 120px;
  animation: rise 1.2s ease both;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 12px;
  margin: 0 0 18px;
  opacity: 0.85;
}

.hero h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 600;
  margin: 0 0 10px;
}

.hero-date {
  font-size: clamp(18px, 2.6vw, 28px);
  margin: 0 0 28px;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.btn-light {
  background: #fff;
  color: #1b1714;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-dark {
  background: var(--deep);
  color: #fdf9f2;
}

.section {
  padding: 80px 0;
  background: #f7f1e6;
}

.page-hero {
  padding: 140px 0 70px;
  text-align: center;
  color: #f7f1e6;
}

.page-hero h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(36px, 4.5vw, 54px);
  margin: 0 0 8px;
}

.page-hero p {
  margin: 0;
  font-size: 18px;
  color: #e5d6c1;
}

.section-alt {
  background: linear-gradient(180deg, #f8f1e6 0%, #f3e7d7 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 48px);
  margin: 0 0 10px;
}

.section-lede {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  color: #4d433a;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  padding: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  border: 1px solid rgba(214, 194, 160, 0.4);
  min-height: 180px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.detail {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(214, 194, 160, 0.5);
  box-shadow: var(--shadow);
}

.detail-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent-dark);
  margin: 0 0 12px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.photo {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: linear-gradient(140deg, #e6d2b6, #c9a97d);
  box-shadow: var(--shadow);
}

.section-rsvp {
  background: linear-gradient(120deg, #1d1712, #3a2f26);
  color: #fef8f0;
}

.rsvp-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer {
  padding: 30px 0 40px;
  text-align: center;
  font-size: 14px;
  color: #eadcc8;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav-cta-desktop {
    display: none;
  }

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

  .hero-content {
    padding: 160px 0 110px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }
}
