:root {
  --cream: #f7efe8;
  --paper: #fffaf5;
  --ink: #213f3d;
  --ink-soft: #50635f;
  --coral: #c96155;
  --gold: #c49a58;
  --line: rgba(33, 63, 61, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.side-garland { align-items: center; display: flex; flex-direction: column; gap: 8px; height: 72vh; justify-content: space-around; pointer-events: none; position: fixed; top: 14vh; width: 28px; z-index: 4; }
.side-garland::before, .side-garland::after { background: linear-gradient(var(--gold), var(--coral), var(--gold)); content: ""; height: 100%; opacity: .7; position: absolute; top: 0; width: 1px; }
.side-garland::before { box-shadow: 0 0 8px rgba(196,154,88,.35); }
.side-garland::after { background: transparent; border-left: 1px dashed rgba(255,255,255,.55); height: calc(100% - 14px); top: 7px; width: 0; }
.side-garland-left { left: 18px; }
.side-garland-right { right: 18px; }
.side-garland-left::before, .side-garland-left::after { left: 13px; }
.side-garland-right::before, .side-garland-right::after { right: 13px; }
.garland-flower, .garland-bead { align-items: center; display: flex; justify-content: center; position: relative; z-index: 1; }
.garland-flower { animation: garland-sway 5s ease-in-out infinite; background: var(--coral); border: 2px solid rgba(255,245,222,.85); border-radius: 50%; box-shadow: 0 2px 9px rgba(91,44,33,.2); color: #ffe3b2; font-size: 15px; height: 25px; width: 25px; }
.garland-flower.small { animation-delay: -2s; background: #e7a25e; font-size: 13px; height: 19px; width: 19px; }
.garland-bead { background: var(--gold); border: 2px solid var(--cream); border-radius: 50%; box-shadow: 0 2px 6px rgba(91,44,33,.16); height: 10px; width: 10px; }
@keyframes garland-sway { 0%, 100% { transform: translateX(0) rotate(-4deg); } 50% { transform: translateX(3px) rotate(4deg); } }

.site-header { align-items: center; display: flex; justify-content: space-between; left: 0; padding: 22px max(5vw, 24px); position: absolute; right: 0; top: 0; z-index: 3; color: #fff; }
.brand { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.08em; }
.brand span { color: var(--gold); font-size: .75em; margin: 0 2px; }
.nav { display: flex; gap: 34px; margin-left: 10%; }
.nav a, .nav-cta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nav a { opacity: .84; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav-cta { border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 8px; }
.nav-cta span, .button span { color: var(--gold); margin-left: 12px; }

.hero { background: linear-gradient(90deg, rgba(20,40,39,.9) 0%, rgba(20,40,39,.43) 52%, rgba(20,40,39,.18)), url("1.JPG") center/cover; color: #fff; min-height: max(720px, 92vh); padding: 17vh max(10vw, 60px) 11vh; position: relative; display: flex; flex-direction: column; justify-content: center; isolation: isolate; overflow: hidden; }
.hero::after { border: 1px solid rgba(235,189,124,.28); content: ""; inset: 20px; pointer-events: none; position: absolute; transform: perspective(800px) rotateX(1deg); z-index: -1; }
.hero::before { background: radial-gradient(circle, rgba(255,215,156,.2), transparent 60%); content: ""; height: 480px; left: 28%; pointer-events: none; position: absolute; top: -220px; width: 480px; }
.hero-glow { border-radius: 50%; filter: blur(1px); pointer-events: none; position: absolute; z-index: -1; }
.glow-one { background: rgba(235,189,124,.18); height: 250px; right: 7%; top: 17%; width: 250px; }
.glow-two { background: rgba(201,97,85,.18); bottom: -100px; height: 360px; left: 34%; width: 360px; }
.petals { height: 100%; inset: 0; pointer-events: none; position: absolute; z-index: -1; }
.petals span { color: rgba(235,189,124,.72); font-size: 19px; position: absolute; }
.petals span:nth-child(1) { animation: drift 9s ease-in-out infinite; left: 19%; top: 18%; }
.petals span:nth-child(2) { animation: drift 11s ease-in-out -3s infinite; left: 61%; top: 24%; }
.petals span:nth-child(3) { animation: drift 10s ease-in-out -6s infinite; left: 77%; top: 68%; }
.petals span:nth-child(4) { animation: drift 13s ease-in-out -1s infinite; left: 41%; top: 75%; }
.petals span:nth-child(5) { animation: drift 8s ease-in-out -4s infinite; left: 88%; top: 38%; }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(16px, -24px, 0) rotate(20deg); } }
.hero-copy { max-width: 680px; }
.eyebrow { color: var(--coral); font-size: 12px; font-weight: 600; letter-spacing: .18em; margin: 0 0 20px; text-transform: uppercase; }
.hero .eyebrow { color: #ebbd7c; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(72px, 11vw, 150px); letter-spacing: -.06em; line-height: .7; margin: 0 0 38px; }
h1 em, h2 em { color: var(--coral); font-style: italic; }
h1 em { font-size: .7em; }
.hero-intro { color: rgba(255,255,255,.88); font-family: var(--serif); font-size: clamp(21px, 2vw, 25px); line-height: 1.38; max-width: 390px; }
.button { align-items: center; display: inline-flex; font-size: 12px; font-weight: 600; justify-content: center; letter-spacing: .12em; padding: 17px 22px; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-light { border: 1px solid rgba(255,255,255,.6); color: #fff; margin-top: 18px; }
.button-dark { background: var(--ink); color: #fff; }
.hero-date { align-items: center; bottom: 11vh; display: flex; gap: 14px; position: absolute; right: 10vw; }
.hero-date span { border-right: 1px solid var(--gold); color: #ebbd7c; font-family: var(--serif); font-size: 56px; line-height: .8; padding-right: 14px; }
.hero-date small { font-size: 10px; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; }
.hero-scroll { align-items: center; bottom: 5vh; display: flex; font-size: 11px; gap: 12px; left: 5vw; letter-spacing: .14em; position: absolute; text-transform: uppercase; }
.scroll-line { background: var(--gold); height: 1px; width: 40px; }

.section-shell { margin: 0 auto; max-width: 1500px; padding: clamp(78px, 9vw, 135px) max(10vw, 60px); }
.section-label { align-items: center; color: var(--ink-soft); display: flex; font-size: 11px; gap: 14px; letter-spacing: .15em; text-transform: uppercase; }
.section-label i { background: var(--gold); display: block; height: 1px; width: 40px; }
.welcome-grid { align-items: center; display: grid; gap: 12vw; grid-template-columns: 1fr 1fr; margin-top: 65px; }
h2 { font-size: clamp(45px, 6vw, 80px); letter-spacing: -.055em; line-height: .86; margin-bottom: 30px; }
.welcome-copy { max-width: 510px; }
.body-copy, .family-heading > p, .details-heading > p, .rsvp > p { color: var(--ink-soft); font-family: var(--serif); font-size: clamp(20px, 1.8vw, 23px); line-height: 1.48; max-width: 470px; }
.signature { color: var(--coral); font-family: "Great Vibes", cursive; font-size: 39px; margin-top: 38px; }
.signature span { color: var(--gold); font-size: 25px; }
.invitation-card { background: linear-gradient(135deg, #f1dfbf, #dfc7a0); box-shadow: 22px 28px 0 rgba(33,63,61,.12), 0 25px 55px rgba(58,42,27,.16); padding: 22px; transform: perspective(900px) rotateY(-7deg) rotateZ(3deg); transition: transform .45s ease, box-shadow .45s ease; }
.invitation-card:hover { box-shadow: 28px 35px 0 rgba(33,63,61,.14), 0 35px 70px rgba(58,42,27,.2); transform: perspective(900px) rotateY(0) rotateZ(1deg) translateY(-8px); }
.card-frame { align-items: center; border: 1px solid rgba(99,64,43,.35); color: #604d3d; display: flex; flex-direction: column; justify-content: center; min-height: 390px; padding: 28px; text-align: center; }
.ornament { color: var(--coral); font-size: 30px; }
.ornament.top { transform: rotate(180deg); }
.card-kicker, .card-date { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.card-script { font-family: "Great Vibes", cursive; font-size: 35px; margin: 24px 0 2px; }
.card-names { font-family: var(--serif); font-size: 40px; }
.card-names small { color: var(--coral); font-size: .7em; }
.card-date { border-top: 1px solid var(--gold); margin-top: 17px; padding-top: 13px; }
.details { background: var(--paper); }
.details-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 62px; }
.details-heading h2 { margin: 24px 0 0; }
.details-heading > p { margin: 0 0 7px; max-width: 250px; }
.event-grid { display: grid; gap: 25px; grid-template-columns: 1fr 1fr; }
.event-card { border: 1px solid var(--line); box-shadow: 0 17px 0 rgba(33,63,61,.06); min-height: 345px; padding: 34px; position: relative; transition: transform .35s ease, box-shadow .35s ease; transform-style: preserve-3d; }
.event-card.featured { background: var(--ink); color: #fff; }
.event-number { color: var(--gold); font-family: var(--serif); font-size: 18px; position: absolute; right: 32px; top: 32px; }
.event-type { color: var(--coral); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.event-card h3 { font-size: 60px; line-height: .78; margin: 35px 0 28px; }
.event-rule { background: var(--gold); height: 1px; margin-bottom: 18px; width: 62px; }
.event-date, .event-time { font-size: 13px; letter-spacing: .07em; line-height: 1.45; text-transform: uppercase; }
.event-time { color: var(--ink-soft); }
.featured .event-time { color: rgba(255,255,255,.72); }
.event-time span { color: var(--gold); padding: 0 7px; }
.event-venue { border-top: 1px solid var(--line); color: var(--ink-soft); font-family: var(--serif); font-size: 15px; line-height: 1.25; margin: 20px 0 0; padding-top: 13px; }
.event-venue strong { color: var(--coral); display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; margin-bottom: 4px; text-transform: uppercase; }
.featured .event-venue { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.76); }
.venue { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 25px; margin-top: 65px; padding-top: 28px; }
.venue-icon { color: var(--coral); font-size: 33px; }
.venue .eyebrow { margin-bottom: 5px; }
.venue h3 { font-size: 30px; margin: 0 0 4px; }
.venue p:last-child { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0; }
.venue .button { margin-left: auto; }

.family { background: #e7ddd3; }
.family-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 55px; }
.family-heading h2 { margin: 22px 0 0; }
.family-heading > p { margin: 0 0 7px; max-width: 275px; }
.family-collage { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }
.family-photo { margin: 0; position: relative; overflow: hidden; transition: box-shadow .35s ease; transform-style: preserve-3d; }
.family-photo::after { border: 1px solid rgba(255,255,255,.55); content: ""; inset: 10px; opacity: 0; pointer-events: none; position: absolute; transition: opacity .3s; }
.family-photo:hover { box-shadow: 0 20px 35px rgba(33,63,61,.2); z-index: 1; }
.family-photo:hover::after { opacity: 1; }
.family-photo img { height: 310px; object-fit: cover; transition: transform .6s; }
.family-photo:hover img { transform: scale(1.04); }
.family-photo:nth-child(1),
.family-photo:nth-child(2),
.family-photo:nth-child(3) { grid-column: span 2; }
.family-photo:nth-child(4) { grid-column: 1 / span 3; }
.family-photo:nth-child(5) { grid-column: 4 / span 3; }
.family-photo.photo-tall img,
.family-photo.photo-wide img { height: 310px; object-position: center 45%; }
.family-photo figcaption { background: linear-gradient(transparent, rgba(0,0,0,.7)); bottom: 0; color: #fff; font-family: var(--serif); font-size: 21px; left: 0; padding: 45px 19px 16px; position: absolute; right: 0; }
.family-photo figcaption span { color: #ebbd7c; float: right; font-family: var(--sans); font-size: 13px; }

.memories { background: linear-gradient(90deg, rgba(17,45,43,.7), rgba(17,45,43,.1)), url("2.JPG") center 35%/cover; min-height: 70vh; position: relative; }
.memory-content { color: #fff; padding: 120px 10vw; position: relative; }
.memory-content .eyebrow { color: #ebbd7c; }
.memory-content h2 { font-size: clamp(65px, 9vw, 125px); }
.circle-link { align-items: center; border: 1px solid #ebbd7c; border-radius: 50%; color: #fff; display: flex; flex-direction: column; font-family: var(--serif); font-size: 20px; height: 130px; justify-content: center; position: absolute; right: 14vw; text-align: center; top: 55%; transform: rotate(-10deg); width: 130px; }
.circle-link span { color: #ebbd7c; font-family: var(--sans); font-size: 13px; margin-top: 7px; }
.rsvp { background: var(--cream); position: relative; text-align: center; }
.rsvp .eyebrow { margin-bottom: 18px; }
.rsvp h2 { font-size: clamp(58px, 8vw, 110px); margin-bottom: 25px; }
.rsvp > p { margin-left: auto; margin-right: auto; }
.rsvp .button { margin-top: 14px; }
.rsvp-flower { color: var(--coral); font-size: 40px; left: 10vw; position: absolute; top: 110px; transform: rotate(20deg); }
.footer { align-items: center; background: var(--ink); color: rgba(255,255,255,.7); display: flex; font-size: 10px; justify-content: space-between; letter-spacing: .1em; padding: 28px 5vw; text-transform: uppercase; }
.footer .brand { color: #fff; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.is-scrolled { background: rgba(20,40,39,.82); box-shadow: 0 5px 25px rgba(0,0,0,.1); position: fixed; transition: background .3s; }

@media (max-width: 700px) {
  .site-header { padding: 18px 6vw; }
  .nav { display: none; }
  .hero { min-height: 820px; padding: 160px 8vw 100px; }
  .hero::after { inset: 12px; }
  h1 { font-size: 82px; }
  .hero-date { bottom: 90px; right: 8vw; }
  .hero-scroll { bottom: 30px; left: 8vw; }
  .section-shell { padding: 78px 7vw; }
  .welcome-grid, .event-grid { grid-template-columns: 1fr; }
  .welcome-grid { gap: 55px; margin-top: 42px; }
  .invitation-card { max-width: 360px; margin: auto; }
  .details-heading, .family-heading { align-items: start; flex-direction: column; gap: 20px; }
  .details-heading > p, .family-heading > p { margin: 0; }
  .event-card { min-height: 310px; padding: 28px; }
  .event-card h3 { font-size: 51px; }
  .venue { align-items: start; flex-wrap: wrap; }
  .venue .button { margin-left: 0; }
  .family-collage { grid-template-columns: 1fr 1fr; }
  .family-photo img, .family-photo.photo-tall img, .family-photo.photo-wide img { height: 220px; }
  .family-photo:nth-child(n) { grid-column: span 1; }
  .family-photo:nth-child(1),
  .family-photo:nth-child(5) { grid-column: span 2; }
  .family-photo figcaption { font-size: 17px; }
  .memory-content { padding: 100px 7vw; }
  .circle-link { right: 8vw; top: 65%; }
  .rsvp-flower { display: none; }
  .footer { align-items: start; flex-direction: column; gap: 14px; }
  .side-garland { display: none; }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .nav { gap: 18px; margin-left: 0; }
  .hero { padding-left: 8vw; padding-right: 8vw; }
  .section-shell { padding-left: 8vw; padding-right: 8vw; }
  .welcome-grid { gap: 6vw; }
  .event-card h3 { font-size: 50px; }
  .family-photo img, .family-photo.photo-tall img { height: 260px; }
}

@media (min-width: 1600px) {
  .hero-copy { margin-left: auto; margin-right: auto; max-width: 1320px; width: 100%; }
  .hero-date { right: max(10vw, calc((100vw - 1320px) / 2)); }
  .hero-scroll { left: max(5vw, calc((100vw - 1500px) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
