:root {
  --bg: #f6f1eb;
  --bg-soft: #fbf8f4;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --text: #2d2622;
  --muted: #7b6d64;
  --line: rgba(80, 58, 45, 0.12);
  --accent: #b7937a;
  --accent-dark: #9f7d65;
  --accent-soft: #e8d8cc;
  --shadow: 0 20px 50px rgba(50, 30, 20, 0.1);
  --radius: 22px;
  --radius-sm: 16px;
  --nav-height: 62px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.65),
      transparent 38%
    ),
    linear-gradient(180deg, #f9f5f1 0%, #f4eee8 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

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

.narrow {
  width: min(100%, 760px);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 100px 0;
}

.section-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section h2,
.section-heading h2,
.site-footer h2,
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.section h2,
.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 16px;
}

.section p {
  color: var(--muted);
  font-size: 1.04rem;
}

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

.fade-up {
  opacity: 1;
  transform: none;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.petals span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 70% 30% 60% 40%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(216, 182, 163, 0.7)
  );
  box-shadow: 0 6px 12px rgba(120, 90, 70, 0.12);
  opacity: 0.55;
  animation: floatPetal linear infinite;
}

.petals span:nth-child(1) {
  left: 8%;
  top: -10%;
  animation-duration: 19s;
  animation-delay: 0s;
}
.petals span:nth-child(2) {
  left: 22%;
  top: -14%;
  animation-duration: 22s;
  animation-delay: 3s;
}
.petals span:nth-child(3) {
  left: 46%;
  top: -12%;
  animation-duration: 17s;
  animation-delay: 7s;
}
.petals span:nth-child(4) {
  left: 63%;
  top: -16%;
  animation-duration: 20s;
  animation-delay: 2s;
}
.petals span:nth-child(5) {
  left: 78%;
  top: -11%;
  animation-duration: 24s;
  animation-delay: 6s;
}
.petals span:nth-child(6) {
  left: 92%;
  top: -15%;
  animation-duration: 18s;
  animation-delay: 10s;
}

@keyframes floatPetal {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 0.55;
  }
  100% {
    transform: translate3d(-40px, 110vh, 0) rotate(280deg) scale(1.15);
    opacity: 0;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(20, 16, 14, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease,
    backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(248, 242, 236, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(30, 20, 10, 0.08);
  border-bottom: 1px solid rgba(120, 90, 70, 0.1);
}

.nav {
  position: relative;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 40;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: white;
  transition: color 0.3s ease;
}

.site-header.scrolled .brand {
  color: var(--text);
}

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

.nav-links a {
  position: relative;
  color: white;
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-header.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 8px 10px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.site-header.scrolled .nav-toggle {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 20px) 0 42px;
  background: linear-gradient(rgba(15, 10, 8, 0.1), rgba(15, 10, 8, 0.22)),
    url("hero.jpg") center 22% / cover no-repeat;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 12, 10, 0.22) 0%,
    rgba(17, 12, 10, 0.14) 35%,
    rgba(17, 12, 10, 0.34) 100%
  );
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 28%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  color: white;
  box-shadow: 0 14px 30px rgba(125, 88, 62, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(125, 88, 62, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-large {
  padding: 0 34px;
  min-height: 58px;
  font-size: 1rem;
}

.countdown-section {
  padding-top: 80px;
  padding-bottom: 40px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.countdown-card {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 14px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.countdown-card span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}

.countdown-card small {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro {
  padding-top: 46px;
}

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

.info-card,
.quote-card,
.stay-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.info-card .icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.info-card h3,
.stay-card h3,
.timeline-item .event h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.quote-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(233, 219, 208, 0.72),
    rgba(255, 255, 255, 0.72)
  );
}

.quote-card p {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text);
}

.schedule-section {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0)
  );
}

.timeline {
  position: relative;
  width: min(100%, 860px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 92px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  align-items: start;
}

.timeline-item .time {
  position: relative;
  padding-top: 10px;
  font-weight: 600;
  color: var(--accent-dark);
}

.timeline-item .time::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(183, 147, 122, 0.12);
}

.timeline-item .event {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  padding: 24px 24px 22px;
}

.stay-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gift-section,
.rsvp-section {
  text-align: center;
}
.slideshow {
  position: relative;
  width: min(100%, 880px);
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(40, 24, 16, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: white;
}

.slides {
  position: relative;
  aspect-ratio: 16 / 10;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.slide {
  object-fit: cover;
  object-position: center 20%;
}

.slide.family-wide {
  object-position: center 10%;
}

.slide.family-high {
  object-position: center 0%;
}

.slide.active {
  opacity: 1;
}

.slide-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(40, 24, 16, 0.16);
}

.slide-btn.prev {
  left: 16px;
}

.slide-btn.next {
  right: 16px;
}

.slide-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slide-dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.slide-dot.active {
  background: white;
}

.site-footer {
  position: relative;
  padding: 72px 0 80px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  font-size: 3rem;
  margin: 8px 0 10px;
}

.section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(160px, 26vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(160, 125, 99, 0.32),
    transparent
  );
}

.site-footer::after,
.hero::after {
  display: none;
}

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

  .two-col {
    grid-template-columns: 1fr;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 760px) {
  .slide.family-1 {
    object-fit: contain;
    background: #f4eee8;
  }

}
  :root {
    --nav-height: 52px;
  }

  .site-header {
    background: rgba(20, 16, 14, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .site-header.scrolled {
    background: rgba(248, 242, 236, 0.9);
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav {
    min-height: var(--nav-height);
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 25;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(250, 244, 238, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-links a {
    color: var(--text) !important;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .brand {
    font-size: 1.7rem;
  }

  .hero {
    min-height: 92vh;
    background-position: center 35%;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.8rem);
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .hero-meta {
    font-size: 0.95rem;
  }
  .slides {
    aspect-ratio: 4 / 5;
  }

  .slide {
    object-position: center 18%;
  }

  .slide-btn {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }
  .section {
    padding: 78px 0;
  }

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

  .countdown-card {
    padding: 22px 12px;
  }

  .countdown-card span {
    font-size: 2.35rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 36px;
  }

  .timeline-item .time {
    padding-top: 0;
  }

  .timeline-item .time::after {
    left: -23px;
    right: auto;
    top: 8px;
  }

  .quote-card p {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .slide.family-1 {
    transform: scale(0.92);
  }

}
  .hero-actions {
    width: auto;
    justify-content: center;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 0 15px;
    font-size: 0.9rem;
    border-radius: 999px;
  }

  .countdown {
    grid-template-columns: 1fr 1fr;
  }

  .section h2,
  .section-heading h2 {
    font-size: 2.35rem;
  }

  .site-footer h2 {
    font-size: 2.4rem;
  }
}
