:root {
  --paper: #eee5d2;
  --paper-deep: #ded1b8;
  --ink: #25231b;
  --olive: #6f7144;
  --wine: #6f1721;
  --gold: #aa8953;
  --night: #16160f;
  --cream: #f3ead8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--night); font-family: "Cormorant Garamond", Georgia, serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.grain { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .08; background-image: url("./assets/grain.png"); mix-blend-mode: soft-light; }
.eyebrow { margin: 0 0 1rem; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; }
.eyebrow.ink { color: var(--olive); }
.folio { position: absolute; top: 2.2rem; left: 5vw; font: 600 .66rem/1 "Cormorant Garamond", serif; letter-spacing: .25em; color: #6c624f; }
.folio--light { color: #aaa38f; }
.paper-section { position: relative; background-color: var(--paper); background-image: radial-gradient(circle at 30% 10%, rgba(255,255,255,.65), transparent 30%), linear-gradient(90deg, rgba(90,63,30,.04) 1px, transparent 1px); background-size: auto, 5px 5px; }
.dark-section { position: relative; background: var(--night); color: var(--cream); }

.hero { height: 88svh; min-height: 610px; position: relative; overflow: hidden; color: #fff6e9; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transform: scale(1.02); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,10,.28), transparent 35%, rgba(13,12,8,.76)); }
.hero__date { position: absolute; top: 2rem; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: .75rem; font-size: .75rem; letter-spacing: .22em; }
.hero__date i { width: 2.25rem; height: 1px; background: rgba(255,255,255,.5); }
.hero__title { position: absolute; left: 6vw; right: 6vw; bottom: 12vh; text-align: center; }
.hero__title > .eyebrow { margin-bottom: 2rem; }
.hero__title h1 { display: flex; align-items: center; justify-content: center; gap: .18em; margin: 0; font-family: "Mrs Saint Delafield", cursive; font-style: normal; font-weight: 400; font-size: clamp(5rem, 13vw, 10rem); line-height: .82; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero__title h1 span { display: inline-block; }
.hero__title h1 b { margin: 0; color: #d8b178; font-family: inherit; font-size: .72em; font-style: normal; font-weight: 400; }
.hero__place { margin: 2.2rem 0 0; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-decoration: none; text-transform: uppercase; font-size: .62rem; letter-spacing: .22em; }
.hero__scroll b { font-size: 1.25rem; font-weight: 400; animation: drift 1.8s ease-in-out infinite; }

.invitation { min-height: 670px; padding: 6.5rem 8vw 4.5rem; display: grid; place-items: center; overflow: hidden; }
.invitation__card { position: relative; z-index: 2; width: min(650px, 100%); text-align: center; padding: 3.2rem clamp(1.3rem, 5vw, 4.5rem); border: 1px solid rgba(98,78,47,.35); background: rgba(241,233,216,.82); box-shadow: 0 24px 70px rgba(59,43,22,.12); }
.invitation__card::before { content: "B  ·  V"; position: absolute; top: -1.2rem; left: 50%; translate: -50%; padding: .45rem 1rem; background: var(--paper); color: var(--wine); font-family: "Italiana", serif; letter-spacing: .18em; }
.invitation h2, .details h2, .rsvp h2 { margin: 0; font: 400 clamp(2.6rem, 7vw, 5.4rem)/.95 "Italiana", serif; }
.invitation h2 em, .details h2 em, .rsvp h2 em { font-family: "Cormorant Garamond", serif; color: var(--wine); }
.ornament { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1.4rem 0; color: var(--gold); }
.ornament span { width: 3rem; height: 1px; background: var(--gold); }
.ornament b { font-size: .65rem; }
.invitation__copy { margin: 0 auto; max-width: 31rem; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.65; }
.signature { margin: 1.5rem 0 0; color: var(--olive); font: 400 3.2rem/1 "Mrs Saint Delafield", cursive; }
.botanical { position: absolute; z-index: 1; width: clamp(240px, 35vw, 520px); pointer-events: none; filter: saturate(.7); }
.botanical--left { left: max(-170px, -14vw); bottom: -100px; rotate: -14deg; }
.date-stamp { position: absolute; right: 4vw; bottom: 3rem; display: grid; width: 90px; aspect-ratio: 1; place-content: center; text-align: center; border: 1px solid var(--wine); border-radius: 50%; color: var(--wine); rotate: -9deg; }
.date-stamp strong { font: 400 2.2rem/1 "Italiana", serif; }
.date-stamp small { font-size: .52rem; letter-spacing: .24em; }

.save-date { position: relative; padding: 6.5rem 6vw 5rem; text-align: center; overflow: hidden; }
.save-date__title { position: relative; z-index: 2; margin: 0 0 1.5rem; color: var(--wine); font: 400 clamp(4.8rem, 11vw, 8.5rem)/.8 "Mrs Saint Delafield", cursive; }
.triptych { width: min(830px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.45rem, 1.5vw, 1rem); }
.triptych figure { position: relative; height: clamp(330px, 48vw, 540px); margin: 0; overflow: hidden; background: #c7bca8; }
.triptych img { width: 100%; height: 100%; object-fit: cover; }
.triptych figure:nth-child(1) img { object-position: 50% 35%; }
.triptych figure:nth-child(2) img { object-position: 50% 55%; }
.triptych figure:nth-child(3) img { object-position: 50% 55%; }
.triptych figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(24,20,13,.28)); }
.triptych figure span { position: absolute; z-index: 2; left: 50%; bottom: .35rem; translate: -50%; color: var(--cream); font: 400 clamp(4rem, 10vw, 8.5rem)/1 "Italiana", serif; letter-spacing: -.05em; text-shadow: 0 4px 24px #0005; }
.save-date__copy { margin-top: 2.8rem; }
.save-date__copy > p { margin: 0; text-transform: uppercase; font-size: .72rem; letter-spacing: .2em; }
.save-date__copy > p:last-child { font-size: .78rem; }
.save-date__copy > .romantic-quote { color: var(--olive); font-size: clamp(1.5rem, 3vw, 2rem); font-style: italic; line-height: 1.4; letter-spacing: normal; text-transform: none; }
.save-date__copy h3 { margin: .5rem 0 0; color: var(--olive); font: 400 clamp(3.6rem, 8vw, 6rem)/.9 "Mrs Saint Delafield", cursive; }
.save-date__copy h3 b { color: var(--wine); font-weight: 400; }
.save-date__copy .ornament { margin: 1.25rem 0; }

.details { padding: 7rem 7vw 5rem; }
.details__grid { width: min(700px, 100%); margin: auto; display: grid; grid-template-columns: 1fr; align-items: center; }
.details__copy { text-align: center; }
.details__copy dl { margin: 2rem 0; }
.details__copy dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(78,67,47,.3); }
.details__copy dt { color: #766b58; text-transform: uppercase; font-size: .68rem; letter-spacing: .18em; }
.details__copy dd { margin: 0; font-size: 1.15rem; font-weight: 600; text-align: right; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; padding-bottom: .3rem; border-bottom: 1px solid var(--ink); text-decoration: none; text-transform: uppercase; font-size: .74rem; letter-spacing: .14em; }
.text-link span { font-size: 1rem; }
.map-link { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .5rem 1rem; color: var(--wine); border: 1px solid #ab9a7e; text-decoration: none; font-size: 1rem; }
.map-link img { flex-shrink: 0; }
.contact-apps { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.contact-apps a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem 1rem; border: 1px solid #ab9a7e; color: var(--wine); font-size: 1rem; text-decoration: none; }
.map-link:hover, .contact-apps a:hover { background: var(--paper-deep); }
.map-link:focus-visible, .contact-apps a:focus-visible, .phone-only:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.rsvp { padding: 5rem 6vw 5rem; display: grid; place-items: center; overflow: hidden; }
.rsvp__envelope { position: relative; z-index: 2; width: min(720px, 100%); padding: 1rem; background: #776b54; box-shadow: 0 35px 90px #0009; rotate: -1deg; }
.rsvp__letter { position: relative; padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.5rem, 7vw, 5rem) 4.3rem; text-align: center; color: var(--ink); background: var(--paper); }
.rsvp__letter::before { content: ""; position: absolute; inset: 14px; border: 1px solid #b7a789; pointer-events: none; }
.rsvp__letter > p:not(.eyebrow) { max-width: 28rem; margin: 1.35rem auto; font-size: 1.1rem; line-height: 1.5; }
.phone-only { display: inline-block; margin: .75rem auto 0; padding: .35rem 0; color: var(--wine); border-bottom: 1px solid #ab9a7e; font-size: 1.3rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; }
.seal { position: absolute; z-index: 3; bottom: -48px; left: 50%; translate: -50%; width: 120px; filter: drop-shadow(0 12px 15px #0007); }
.botanical--right { right: max(-160px, -10vw); bottom: -130px; rotate: 18deg; opacity: .48; }

footer { position: relative; height: 72svh; min-height: 540px; color: white; overflow: hidden; }
footer > img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.footer__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, #1113, #1112 40%, #111b); }
.footer__copy { position: absolute; left: 5vw; right: 5vw; bottom: 10vh; text-align: center; }
.footer__copy h2 { margin: 0; font: 400 clamp(4.5rem, 14vw, 10rem)/.9 "Mrs Saint Delafield", cursive; }
.footer__copy h2 span { color: #d7b274; }
.footer__copy > p:last-child { letter-spacing: .25em; text-transform: uppercase; font-size: .72rem; }

.reveal { opacity: 0; translate: 0 28px; transition: opacity .9s ease, translate .9s ease; }
.reveal.is-visible { opacity: 1; translate: 0 0; }
@keyframes drift { 50% { translate: 0 6px; } }

@media (max-width: 760px) {
  .hero__title { bottom: 13vh; }
  .hero__title > .eyebrow { margin-bottom: 1.5rem; }
  .hero__title h1 { flex-direction: column; gap: .08em; font-size: clamp(3.8rem, 18vw, 5.5rem); line-height: .88; }
  .hero__title h1 span { display: block; }
  .hero__title h1 b { display: block; margin: 0; font-size: .42em; }
  .hero__place { margin-top: 1.5rem; }
  .invitation { padding-inline: 5vw; }
  .botanical--left { opacity: .32; width: 350px; }
  .date-stamp { right: -12px; bottom: 2rem; scale: .78; }
  .save-date { padding: 6rem 4vw 4.5rem; }
  .save-date__title { margin-bottom: 1.1rem; }
  .triptych { gap: .35rem; }
  .triptych figure { height: 410px; }
  .triptych figure span { bottom: .5rem; font-size: clamp(3.5rem, 18vw, 5.2rem); }
  .save-date__copy { margin-top: 2.3rem; }
  .details__grid { grid-template-columns: 1fr; }
  .details__copy dl div { text-align: left; }
  .rsvp { padding: 5rem 4vw 4.5rem; }
  .rsvp__letter { padding-bottom: 4.2rem; }
  .botanical--right { opacity: .22; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}
