:root {
  --wine: #641f2c;
  --wine-dark: #43131e;
  --wine-deep: #2f0c14;
  --cream: #f5efe6;
  --paper: #fbf8f2;
  --sand: #d8c6b4;
  --ink: #281c1e;
  --muted: #76676a;
  --line: rgba(100, 31, 44, .22);
  --serif: "Libre Baskerville", Georgia, serif;
  --body: "Libre Baskerville", Georgia, serif;
  --sans: "Libre Baskerville", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 19px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--paper); color: var(--wine); font-family: var(--sans); font-size: .75rem; }
.skip-link:focus { top: 1rem; }
.grain { position: fixed; z-index: 20; inset: 0; pointer-events: none; opacity: .13; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E"); }
.section-pad { padding: clamp(5rem, 10vw, 9rem) max(6vw, calc((100vw - 1280px) / 2)); }
.eyebrow { margin: 0 0 1.5rem; font: 600 .67rem/1.4 var(--sans); letter-spacing: .23em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h2 { margin: 0; font: 400 clamp(3.2rem, 7vw, 7.4rem)/.84 var(--serif); letter-spacing: -.045em; }
h2 em { font-weight: 400; color: var(--wine); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.nav { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 2rem 4vw; color: var(--cream); }
.nav__mark { font: 500 1.35rem/1 var(--serif); text-decoration: none; letter-spacing: .08em; }
.nav__mark span { margin: 0 .2em; font-style: italic; font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a { font: 500 .66rem/1 var(--sans); text-decoration: none; text-transform: uppercase; letter-spacing: .15em; }
.nav__links a:not(.nav__rsvp) { position: relative; }
.nav__links a:not(.nav__rsvp)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.5rem; border-bottom: 1px solid currentColor; transition: right .35s var(--ease); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { right: 0; }
.nav__rsvp { padding: .9rem 1.3rem; border: 1px solid rgba(255,255,255,.55); transition: background .3s, color .3s; }
.nav__rsvp:hover { background: var(--cream); color: var(--wine); }
.nav__toggle { display: none; border: 0; background: transparent; color: inherit; font: 600 .7rem var(--sans); letter-spacing: .15em; text-transform: uppercase; }

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: var(--cream); background: radial-gradient(circle at 50% 41%, #7d3040 0, var(--wine) 31%, var(--wine-dark) 72%, var(--wine-deep) 100%); }
.hero__content { position: relative; z-index: 2; text-align: center; padding: 8rem 1.5rem 6rem; animation: hero-in 1.4s var(--ease) both; }
.hero__eyebrow { opacity: .75; animation: hero-in 1.2s .12s var(--ease) both; }
.hero__logo-wrap { width: clamp(220px, 28vw, 365px); margin: -1rem auto -1.5rem; border-radius: 50%; overflow: hidden; }
.hero__logo { display: block; width: 100%; opacity: .95; }
.hero h1 { margin: 0; font: italic 400 clamp(1.9rem, 3.4vw, 3.25rem)/1 var(--serif); letter-spacing: .03em; }
.hero__place { margin: 1rem 0 2rem; font: 500 .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .82; }
.countdown { display: flex; justify-content: center; gap: clamp(1.2rem, 4vw, 3.3rem); padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.22); }
.countdown div { min-width: 3.2rem; }
.countdown strong { display: block; font: 400 clamp(1.6rem, 3vw, 2.3rem)/1 var(--serif); }
.countdown span { font: 500 .55rem var(--sans); letter-spacing: .15em; text-transform: uppercase; opacity: .63; }
.hero__scroll { position: absolute; z-index: 3; bottom: 2rem; left: 4vw; display: flex; gap: .8rem; align-items: center; color: inherit; text-decoration: none; font: 500 .58rem var(--sans); text-transform: uppercase; letter-spacing: .17em; }
.hero__scroll i { display: block; width: 44px; border-top: 1px solid currentColor; animation: line-pulse 2s infinite; }
.hero__ornament { position: absolute; width: 26vw; height: 26vw; border: 1px solid rgba(245,239,230,.08); transform: rotate(45deg); }
.hero__ornament--left { left: -16vw; bottom: 4vw; }

.intro { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.intro h2 { max-width: 1000px; }
.intro > p:last-child { max-width: 600px; margin: 3rem auto 0; color: var(--muted); font-size: 1.2rem; }

.editorial-photo { position: relative; margin: 0; overflow: hidden; background: var(--cream); }
.editorial-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.editorial-photo figcaption, .story-photo figcaption { font: 400 .6rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.editorial-photo figcaption { position: absolute; right: 2rem; bottom: 2rem; padding: .7rem 1rem; color: var(--cream); background: rgba(47,12,20,.72); backdrop-filter: blur(8px); }
.editorial-photo--wide { height: min(72vw, 830px); margin: 0 max(2vw, calc((100vw - 1440px) / 2)); border-radius: 3px; }
.editorial-photo--wide img { object-position: center 46%; }
.editorial-photo--detail { height: min(62vw, 760px); margin: clamp(2rem, 6vw, 6rem) max(6vw, calc((100vw - 1280px) / 2)); border-radius: 2px 70px 2px 70px; }
.editorial-photo--detail img { object-position: center; }

.story { background: var(--cream); }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; align-items: start; padding-bottom: 7rem; border-bottom: 1px solid var(--line); }
.timeline { max-width: 1060px; margin: 0 auto; }
.story-card { position: relative; display: grid; grid-template-columns: 70px minmax(200px, .7fr) 1.3fr; gap: clamp(1rem, 4vw, 4rem); padding: 5rem 0; border-bottom: 1px solid var(--line); }
.story-card__index { margin: 0; color: var(--wine); font: 500 .6rem var(--sans); letter-spacing: .15em; }
.story-card time { font: 600 .62rem var(--sans); letter-spacing: .13em; color: var(--wine); }
.story-card h3 { margin: .55rem 0 0; font: 400 clamp(2.2rem, 4vw, 4.1rem)/.95 var(--serif); }
.story-card > p:last-child { margin: 0; color: var(--muted); }
.story-card--offset > p:last-child { transform: translateY(3rem); }
.story-card--final { border-bottom: 0; }
.story-photo { width: 82%; margin: 5rem 0 5rem auto; }
.story-photo img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; object-position: center; border-radius: 60px 2px 60px 2px; }
.story-photo figcaption { margin-top: 1rem; color: var(--wine); text-align: right; }

.schedule { display: grid; grid-template-columns: .82fr 1.18fr; gap: 8vw; color: var(--cream); background: var(--wine-dark); }
.schedule h2 em { color: var(--sand); }
.schedule__intro > p:last-child { max-width: 430px; margin-top: 2.5rem; color: rgba(245,239,230,.68); }
.schedule__list { border-top: 1px solid rgba(255,255,255,.2); }
.schedule-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 1.5rem; align-items: center; padding: 2.6rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.schedule-item > span { font: 500 .6rem var(--sans); color: var(--sand); }
.schedule-item p { margin: 0; font-style: italic; color: var(--sand); }
.schedule-item h3 { margin: -.25rem 0 0; font: 400 clamp(2.4rem, 4vw, 4.2rem)/1 var(--serif); }
.schedule-item small { max-width: 120px; text-align: right; font: 500 .58rem/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .55; }

.location { display: grid; grid-template-columns: 1fr 1.12fr; min-height: 760px; }
.location__copy { display: flex; flex-direction: column; justify-content: center; background: var(--sand); }
.location__copy > p:not(.eyebrow):not(.location__address) { max-width: 430px; color: #5e494c; }
.location__address { margin: 2.5rem 0 1rem; font: italic 400 1.8rem/1.25 var(--serif); }
.button-row { display: flex; gap: 1.5rem; align-items: center; margin-top: 2rem; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 2rem; padding: .9rem 1.25rem; border: 0; cursor: pointer; text-decoration: none; font: 600 .63rem var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: transform .3s var(--ease), background .3s, color .3s; }
.button:hover { transform: translateY(-3px); }
.button--light { color: var(--wine); background: var(--cream); }
.button--outline { border: 1px solid var(--wine); color: var(--wine); background: transparent; }
.text-link { font: 600 .63rem var(--sans); text-underline-offset: .4rem; text-transform: uppercase; letter-spacing: .09em; }
.location__map { position: relative; min-height: 580px; background: #ddd3c8; overflow: hidden; }
.location__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(100,31,44,.1); mix-blend-mode: color; }
.location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.86) sepia(.2); }
.map-stamp { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; place-items: center; width: 130px; height: 130px; border-radius: 50%; color: var(--cream); background: var(--wine); transform: translate(-50%, -50%); font: 400 2.1rem var(--serif); box-shadow: 0 18px 50px rgba(67,19,30,.2); }
.map-stamp i { margin: 0 .15em; }

.stay { display: grid; grid-template-columns: 1fr 1fr auto; gap: 5vw; align-items: center; border-bottom: 1px solid var(--line); }
.stay h2 { font-size: clamp(3rem, 5vw, 5.5rem); }
.stay > p { color: var(--muted); max-width: 440px; }
.gift { text-align: center; background: var(--cream); }
.gift__ornament { color: var(--wine); font-size: 2.8rem; }
.gift h2 { max-width: 900px; margin: 0 auto; font-size: clamp(3rem, 6vw, 6rem); }
.gift > p:last-child { max-width: 570px; margin: 2.5rem auto 0; color: var(--muted); font-size: 1.2rem; }

.rsvp { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; color: var(--cream); background: var(--wine); }
.rsvp h2 em { color: var(--sand); }
.rsvp__heading > p:last-child { max-width: 400px; margin-top: 2.5rem; color: rgba(245,239,230,.74); }
.rsvp-card { position: relative; max-width: 620px; padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(255,255,255,.28); background: rgba(245,239,230,.07); }
.rsvp-card::before { content: ""; position: absolute; top: 1rem; right: 1rem; width: 28px; height: 28px; border-top: 1px solid var(--sand); border-right: 1px solid var(--sand); }
.rsvp-card h3 { margin: 0 0 1.5rem; font: 400 clamp(2rem, 4vw, 3.5rem)/1.12 var(--serif); }
.rsvp-card h3 em { color: var(--sand); font-weight: 400; }
.rsvp-card > p:not(.eyebrow) { max-width: 440px; color: rgba(245,239,230,.72); }
.rsvp-card .button { margin-top: 1.5rem; }
.rsvp-card small { display: block; margin-top: 1rem; font: 400 .55rem var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .48; }

.footer { display: flex; min-height: 400px; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--paper); }
.footer img { width: 145px; mix-blend-mode: multiply; }
.footer p { margin: .5rem 0 2rem; font: italic 400 clamp(1.8rem, 4vw, 3.2rem) var(--serif); }
.footer span { font: 600 .6rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(25px); } }
@keyframes line-pulse { 0%, 100% { transform: scaleX(.45); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } }

@media (max-width: 900px) {
  .nav { padding: 1.5rem 1.25rem; }
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: 2rem; visibility: hidden; opacity: 0; background: var(--wine-dark); transition: opacity .35s, visibility .35s; }
  .nav__links.is-open { visibility: visible; opacity: 1; }
  .nav__links a { font-size: .85rem; }
  .hero__logo-wrap { width: min(65vw, 310px); }
  .section-heading, .schedule, .rsvp { grid-template-columns: 1fr; }
  .section-heading { gap: 2rem; }
  .story-card { grid-template-columns: 35px 1fr; }
  .story-card > p:last-child { grid-column: 2; }
  .story-card--offset > p:last-child { transform: none; }
  .schedule { gap: 4rem; }
  .location { grid-template-columns: 1fr; }
  .location__map { min-height: 500px; }
  .stay { grid-template-columns: 1fr; gap: 1.5rem; }
  .stay .button { justify-self: start; }
  .rsvp { gap: 5rem; }
  .story-photo { width: 92%; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .section-pad { padding-left: 1.3rem; padding-right: 1.3rem; }
  .hero__content { padding-top: 6rem; }
  .hero__logo-wrap { margin-bottom: -.6rem; }
  .countdown { gap: .6rem; }
  .countdown div { min-width: 2.8rem; }
  .hero__scroll { display: none; }
  .editorial-photo--wide { height: 72svh; margin: 0; border-radius: 0; }
  .editorial-photo--wide img { object-position: center; }
  .editorial-photo--detail { height: 68svh; margin: 2rem 1.3rem; border-radius: 2px 40px 2px 40px; }
  .editorial-photo figcaption { right: 1rem; bottom: 1rem; }
  .story-card { padding: 3.5rem 0; gap: .6rem 1rem; }
  .story-card > p:last-child { font-size: 1rem; }
  .schedule-item { grid-template-columns: 28px 1fr; }
  .schedule-item small { grid-column: 2; text-align: left; }
  .location__map { min-height: 420px; }
  .story-photo { width: 100%; margin: 3rem 0; }
  .story-photo img { aspect-ratio: 4 / 5; border-radius: 35px 2px 35px 2px; }
}

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