:root {
  --paper: #f5f1e9;
  --cream: #fffdf8;
  --ink: #27241f;
  --wine: #741f34;
  --sage: #747b51;
  --sand: #b79b7a;
  --cocoa: #5b463c;
  --line: rgba(38, 35, 31, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; font-weight: 300; overflow-x: hidden; }
a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero { min-height: 100svh; position: relative; overflow: hidden; padding: 28px 4vw 40px; background: var(--cream); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr); grid-template-rows: auto 1fr; gap: 20px 7vw; }
.nav { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.monogram { font-family: "Cormorant Garamond", serif; font-size: 25px; text-decoration: none; letter-spacing: .08em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 600; }
.hero-copy { align-self: center; padding: 60px 0 40px 4vw; z-index: 2; }
.eyebrow { margin: 0 0 25px; text-transform: uppercase; letter-spacing: .23em; font-size: 11px; font-weight: 600; }
h1, h2 { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 400; letter-spacing: -.045em; line-height: .82; }
h1 { font-size: clamp(80px, 10.5vw, 180px); }
h1 em, h2 em { color: var(--wine); font-weight: 400; }
.hero-date { margin: 45px 0 0; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
.hero-photo { align-self: stretch; position: relative; min-height: 68vh; clip-path: inset(0 round 300px 300px 20px 20px); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(28,20,17,.45)); }
.hero-flower { position: absolute; width: min(20vw, 280px); height: auto; left: -85px; bottom: -140px; object-fit: contain; z-index: 1; transform: rotate(-13deg); pointer-events: none; }
.photo-note { position: absolute; z-index: 1; bottom: 35px; right: 45px; color: white; font-family: "Cormorant Garamond", serif; font-size: 27px; font-style: italic; }
.scroll-cue { position: absolute; bottom: 30px; left: 4vw; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }

.section { padding: 130px max(6vw, 24px); }
.welcome { min-height: 90vh; display: grid; place-content: center; text-align: center; }
.welcome h2, .schedule h2, .closing h2 { font-size: clamp(64px, 9vw, 135px); }
.lead { max-width: 610px; margin: 55px auto 0; font-size: 16px; line-height: 1.8; }
.signature { margin-top: 55px; color: var(--wine); font-family: "Cormorant Garamond", serif; font-size: 28px; font-style: italic; }

.photo-story { padding-top: 40px; display: grid; grid-template-columns: 1.05fr .6fr .85fr; gap: 3vw; align-items: center; }
.photo-card { margin: 0; position: relative; }
.photo-card--tall { height: 720px; }
.photo-card--wide { height: 520px; }
.photo-card img { filter: saturate(.72) contrast(.95); }
.photo-card figcaption { margin-top: 13px; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 20px; }
.story-copy { min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.story-number { font-family: "Cormorant Garamond", serif; font-size: 74px; color: var(--wine); }
.story-copy p { margin: 0; line-height: 1.8; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

.date-section { color: var(--cream); background: var(--wine); text-align: center; }
.big-date { display: flex; align-items: center; justify-content: center; font-family: "Cormorant Garamond", serif; font-size: clamp(82px, 15vw, 230px); line-height: .8; letter-spacing: -.06em; }
.big-date i { font-weight: 300; opacity: .35; }
.countdown { max-width: 740px; margin: 70px auto 55px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3); }
.countdown div { padding: 28px 10px; border-right: 1px solid rgba(255,255,255,.3); }
.countdown div:last-child { border-right: 0; }
.countdown strong { display: block; font: 400 37px/1 "Cormorant Garamond", serif; }
.countdown span { display: block; margin-top: 9px; text-transform: uppercase; letter-spacing: .18em; font-size: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 15px 24px; border: 1px solid var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 600; transition: .25s ease; }
.button:hover { color: var(--paper); background: var(--ink); }
.button--light { border-color: var(--cream); }
.button--light:hover { color: var(--wine); background: var(--cream); }

.place { display: grid; grid-template-columns: .9fr 1.1fr; align-items: end; gap: 8vw; }
.place h2, .dress-copy h2 { font-size: clamp(90px, 12vw, 180px); }
.place-card { min-height: 460px; padding: 40px; color: var(--cream); background: var(--sage); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.place-card .button { color: var(--cream); border-color: var(--cream); }
.place-card .button:hover { color: var(--sage); background: var(--cream); }
.place-index { align-self: flex-end; font: italic 45px "Cormorant Garamond", serif; opacity: .45; }
.place-time { font-family: "Cormorant Garamond", serif; font-size: 33px; }
.place-time strong { color: var(--wine); font-weight: 500; }
address { font-style: normal; line-height: 1.7; }

.schedule { background: var(--cream); text-align: center; }
.timeline { max-width: 850px; margin: 80px auto 0; }
.timeline-item { display: grid; grid-template-columns: 140px 1fr; text-align: left; align-items: baseline; padding: 25px 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font: 400 35px "Cormorant Garamond", serif; color: var(--wine); }
.timeline span { font-size: 14px; letter-spacing: .04em; }

.dresscode { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; align-items: center; }
.dress-copy > p:last-child { max-width: 450px; line-height: 1.8; margin-top: 45px; }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); height: 560px; gap: 8px; }
.swatch { position: relative; border-radius: 120px 120px 0 0; }
.swatch span { position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%) rotate(-90deg); color: white; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; white-space: nowrap; }
.swatch--wine { background: var(--wine); }
.swatch--sage { background: var(--sage); transform: translateY(55px); }
.swatch--sand { background: var(--sand); transform: translateY(110px); }
.swatch--cream { background: #ddd2c0; transform: translateY(55px); }
.swatch--cream span { color: var(--ink); }
.swatch--cocoa { background: var(--cocoa); }

.florals { min-height: 850px; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; overflow: hidden; color: var(--cream); background: var(--wine); }
.florals-art { width: 100%; height: 720px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(28, 10, 15, .2)); }
.florals-copy h2 { font-size: clamp(68px, 8vw, 125px); }
.florals-copy h2 em { color: #e0a2a7; }
.florals-copy > p:last-child { max-width: 490px; margin-top: 48px; line-height: 1.8; }

.closing { text-align: center; min-height: 85vh; display: grid; place-content: center; color: var(--cream); background: #596044; position: relative; overflow: hidden; }
.closing::before, .closing::after { content: ""; position: absolute; width: 280px; height: 340px; background: url("assets/floral-bouquet.svg") center / contain no-repeat; opacity: .85; }
.closing::before { left: -80px; bottom: -90px; transform: rotate(18deg); }
.closing::after { right: -70px; top: -80px; transform: rotate(195deg); }
.closing > * { position: relative; z-index: 1; }
.closing > p:not(.eyebrow) { margin-top: 45px; line-height: 1.8; }
.heart { margin-top: 50px; font: 60px "Cormorant Garamond", serif; color: var(--wine); }
footer { padding: 25px 4vw; display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
footer a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero .reveal { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; padding: 22px 20px 70px; }
  .nav-links { gap: 18px; }
  .hero-copy { padding: 70px 0 5px; }
  h1 { font-size: clamp(70px, 22vw, 98px); }
  .hero-photo { min-height: 49vh; clip-path: inset(0 round 150px 150px 8px 8px); }
  .hero-flower { display: none; }
  .photo-note { bottom: 25px; right: 25px; font-size: 20px; }
  .scroll-cue { display: none; }
  .section { padding: 90px 22px; }
  .welcome { min-height: 80vh; }
  .welcome h2, .schedule h2, .closing h2 { font-size: clamp(52px, 17vw, 78px); }
  .photo-story { grid-template-columns: 1fr; gap: 28px; }
  .photo-card--tall, .photo-card--wide { height: auto; }
  .photo-card--tall img, .photo-card--wide img { height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
  .story-copy { order: 3; grid-column: auto; min-height: 0; padding-top: 0; }
  .story-number { font-size: 50px; }
  .big-date { font-size: 22vw; }
  .countdown { margin-top: 50px; }
  .countdown strong { font-size: 28px; }
  .countdown div { padding: 22px 2px; }
  .place, .dresscode { grid-template-columns: 1fr; gap: 55px; }
  .place-heading, .place-card, .dress-copy { min-width: 0; }
  .place h2, .dress-copy h2 { font-size: clamp(76px, 22vw, 95px); }
  .place-card { min-height: 420px; padding: 28px; }
  .timeline { margin-top: 55px; }
  .timeline-item { grid-template-columns: 100px 1fr; }
  .palette { height: 400px; gap: 5px; }
  .swatch span { font-size: 8px; }
  .florals { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .florals-art { height: 470px; order: 2; margin-bottom: -90px; }
  .florals-copy h2 { font-size: clamp(58px, 19vw, 82px); }
  .closing::before, .closing::after { width: 180px; opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
