:root {
  --cream: #faf7f2;
  --blush: #e8d5d0;
  --rose: #c9a89a;
  --gold: #b8956a;
  --dark: #3d2f2a;
  --text: #5c4a42;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(61, 47, 42, 0.12);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Petals decoration */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(201, 168, 154, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(184, 149, 106, 0.06) 0%, transparent 40%);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(250, 247, 242, 0.95), transparent);
}

.nav a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--gold);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem 3rem 4rem;
}

.hero-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.couple-names {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.couple-names span {
  display: block;
}

.ampersand {
  font-style: italic;
  color: var(--rose);
  font-size: 0.7em;
  margin: 0.3rem 0;
}

.hero-date {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 2rem;
  font-weight: 300;
}

.countdown {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.countdown-item {
  text-align: center;
  background: var(--white);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 70px;
}

.countdown-item span {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--dark);
  line-height: 1;
}

.countdown-item small {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 0.3rem;
  display: block;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--dark);
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: background 0.3s, transform 0.3s;
  align-self: flex-start;
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 30%);
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  text-align: center;
  margin-bottom: 3.5rem;
  font-weight: 400;
}

/* Story */
.story {
  background: var(--white);
}

.story-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-card.reverse {
  direction: rtl;
}

.story-card.reverse > * {
  direction: ltr;
}

.story-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.story-text h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 1rem;
  font-weight: 400;
}

.story-text p {
  font-weight: 300;
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Event */
.event {
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%);
}

.event-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.event-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.event-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.event-detail {
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.event-note {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
}

.couple-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.person {
  text-align: center;
}

.person img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.person h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--dark);
  font-weight: 400;
}

.person p {
  font-size: 0.8rem;
  color: var(--rose);
  letter-spacing: 0.1em;
}

.heart-divider {
  font-size: 1.5rem;
  color: var(--rose);
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--dark);
  color: var(--blush);
}

.footer p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.footer-sub {
  font-family: var(--font-sans);
  font-size: 0.8rem !important;
  margin-top: 0.5rem;
  opacity: 0.7;
  font-weight: 300;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(61, 47, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image {
    height: 50vh;
    order: -1;
  }

  .hero-image::before {
    background: linear-gradient(to bottom, transparent 60%, var(--cream) 100%);
  }

  .hero-content {
    padding: 2rem 1.5rem 4rem;
    text-align: center;
    align-items: center;
  }

  .btn-primary {
    align-self: center;
  }

  .nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .story-card,
  .story-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .story-card img {
    height: 260px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .event-cards {
    grid-template-columns: 1fr;
  }

  .couple-footer {
    flex-direction: column;
    gap: 2rem;
  }
}
