@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@400;500;600&display=swap');

:root {
  --forest: #22372e;
  --forest-2: #172920;
  --sage: #849486;
  --cream: #f5f1e8;
  --paper: #fbf9f4;
  --gold: #b89a62;
  --ink: #2c312e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
body.is-loading { overflow: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h2 { color: var(--forest); font: 400 clamp(3rem, 7vw, 5.5rem)/.95 var(--serif); letter-spacing: -.03em; margin-bottom: 1.8rem; }
.section { position: relative; overflow: hidden; }
.kicker, .eyebrow { color: var(--gold); font-size: .66rem; font-weight: 600; letter-spacing: .31em; text-transform: uppercase; }

.intro { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; gap: 1rem; background: var(--forest-2); color: var(--cream); text-align: center; transition: opacity .9s ease .3s, visibility .9s ease .3s; }
.intro::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(184,154,98,.35); transform: scale(.96); animation: frame-in 1s .2s forwards; opacity: 0; }
.intro__mark { display: flex; align-items: center; gap: 1rem; font: 400 clamp(2.7rem, 9vw, 5rem)/1 var(--serif); }
.intro__amp { color: var(--gold); font-style: italic; font-size: .6em; opacity: 0; animation: rise .8s .7s forwards; }
.intro__initial { opacity: 0; animation: rise .8s .35s forwards; }
.intro__line { width: clamp(35px, 8vw, 90px); height: 1px; background: var(--gold); transform: scaleX(0); animation: line-in .9s .8s forwards; }
.intro p { margin: 0; font-size: .55rem; letter-spacing: .36em; text-transform: uppercase; opacity: 0; animation: rise .8s 1s forwards; }
body.ready .intro { opacity: 0; visibility: hidden; pointer-events: none; }

.nav { position: absolute; z-index: 10; top: 0; left: 0; right: 0; height: 92px; padding: 0 clamp(1.4rem, 5vw, 5rem); display: flex; align-items: center; justify-content: space-between; color: white; border-bottom: 1px solid rgba(255,255,255,.2); opacity: 0; transform: translateY(-20px); transition: opacity .8s .45s, transform .8s .45s, background .25s; }
body.ready .nav { opacity: 1; transform: none; }
.nav__brand { font: 500 1.5rem var(--serif); text-decoration: none; letter-spacing: .12em; }
.nav__brand i { color: #dfc892; font-weight: 400; }
.nav nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 3rem); }
.nav nav a { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: color .2s; }
.nav nav a:hover { color: #dfc892; }
.nav__rsvp { border: 1px solid rgba(255,255,255,.55); padding: .7rem 1.2rem; }

.hero { height: 100svh; min-height: 650px; display: grid; place-items: center; color: white; text-align: center; background: #263a31; }
.hero__image, .hero__veil { position: absolute; inset: 0; }
.hero__image { background: url("assets/maja-lucas-hero.jpeg") center 48%/cover no-repeat; transform: scale(1.12); filter: saturate(.8) brightness(.82); transition: transform 7s cubic-bezier(.16,.8,.25,1), filter 2s ease; }
body.ready .hero__image { transform: scale(1.01); filter: saturate(.9) brightness(.84); }
.hero__veil { background: linear-gradient(180deg, rgba(12,23,17,.65) 0%, rgba(13,24,18,.15) 35%, rgba(13,24,18,.27) 68%, rgba(13,24,18,.72) 100%); }
.hero__content { position: relative; z-index: 1; width: min(95%, 1050px); margin-top: 3rem; }
.hero .eyebrow { color: #ead7ad; margin-bottom: 1.3rem; opacity: 0; transform: translateY(20px); transition: 1s .2s; }
.hero h1 { margin: 0; font: 400 clamp(4rem, 10vw, 8.7rem)/.72 var(--serif); letter-spacing: -.04em; text-shadow: 0 3px 25px rgba(0,0,0,.25); opacity: 0; transform: translateY(34px); transition: 1.2s .35s cubic-bezier(.2,.75,.2,1); }
.hero h1 span { display: block; margin-bottom: 1.2rem; font: 500 .085em var(--sans); letter-spacing: .36em; text-transform: uppercase; }
.hero h1 em { color: #ead7ad; font-size: .57em; font-weight: 400; }
.hero__date { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2.6rem; opacity: 0; transition: 1s .72s; }
.hero__date span { width: 55px; height: 1px; background: rgba(255,255,255,.65); }
.hero__date p { margin: 0; font: 500 .63rem var(--sans); letter-spacing: .23em; text-transform: uppercase; }
body.ready .hero .eyebrow, body.ready .hero h1 { opacity: 1; transform: none; }
body.ready .hero__date { opacity: 1; }
.scroll-cue { position: absolute; top: calc(100% + 90px); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: .7rem; color: white; font-size: .52rem; letter-spacing: .25em; text-decoration: none; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 46px; overflow: hidden; background: rgba(255,255,255,.3); }
.scroll-cue i::after { content: ""; display: block; width: 1px; height: 20px; background: white; animation: scroll-line 2s infinite; }

.welcome { min-height: 820px; display: grid; grid-template-columns: minmax(280px, 430px) minmax(420px, 760px); align-items: center; justify-content: center; gap: clamp(4rem, 8vw, 9rem); padding: 9rem max(1.5rem, calc((100% - 1240px)/2)); }
.welcome__content { width: 100%; text-align: left; }
.welcome__photo { position: relative; margin: 0; padding: 14px; border: 1px solid #d8ceb9; background: var(--paper); box-shadow: 0 24px 70px rgba(39,54,46,.11); transform: rotate(-1.4deg); }
.welcome__photo::before { content: ""; position: absolute; z-index: -1; inset: 22px -18px -18px 22px; background: #d8d3c5; }
.welcome__photo img { display: block; width: 100%; height: min(560px, 54vw); object-fit: cover; object-position: center 58%; filter: saturate(.82) contrast(.96); }
.welcome__photo figcaption { padding: 1rem .5rem .2rem; color: #8d826d; font: italic 1rem var(--serif); text-align: center; }
.welcome h2 i { color: var(--gold); font-weight: 400; }
.lead { max-width: 700px; margin: 0; color: #616963; font: 400 1.28rem/1.8 var(--serif); }
.flourish { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; color: var(--gold); margin: 2.4rem auto; }
.flourish span { width: 50px; height: 1px; background: #d8ceb9; }
.note { display: inline-block; max-width: 670px; padding: .9rem 1.5rem; border: 1px solid #ded6c5; color: #747b76; font-size: .72rem; }
.note b { color: var(--forest); }
.botanical { position: absolute; left: -30px; bottom: 50px; width: 250px; height: 330px; opacity: .1; transform: rotate(-15deg); background: radial-gradient(ellipse at 70% 20%, var(--forest) 0 12%, transparent 13%), radial-gradient(ellipse at 40% 40%, var(--forest) 0 14%, transparent 15%), radial-gradient(ellipse at 75% 62%, var(--forest) 0 13%, transparent 14%), linear-gradient(70deg, transparent 49.5%, var(--forest) 50% 50.5%, transparent 51%); }

.day { padding: 8rem max(1.5rem, calc((100% - 1120px)/2)); color: #dce2dc; background: var(--forest); }
.day::after { content: "M & L"; position: absolute; right: -2vw; top: 0; color: rgba(255,255,255,.025); font: 400 14rem var(--serif); white-space: nowrap; }
.day__heading { text-align: center; margin-bottom: 5rem; }
.day h2 { color: white; margin-bottom: 1rem; }
.day__heading > p:last-child { color: #aab6ae; font: 1.08rem var(--serif); }
.kicker--light { color: #d6bd87; }
.timeline { position: relative; width: min(900px, 100%); margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 152px; top: 15px; bottom: 45px; width: 1px; background: rgba(216,195,146,.35); }
.timeline__item { position: relative; display: grid; grid-template-columns: 120px 64px 1fr; min-height: 150px; }
.timeline time { padding-top: .45rem; color: #d8c392; font: 400 1.45rem var(--serif); text-align: right; }
.timeline__dot { position: relative; z-index: 1; justify-self: center; margin-top: .75rem; width: 9px; height: 9px; border: 2px solid var(--forest); border-radius: 50%; background: #d8c392; box-shadow: 0 0 0 1px #d8c392; }
.timeline__item > div { position: relative; padding: 0 0 3.5rem 1rem; }
.timeline__number { position: absolute; right: 0; top: -1.4rem; color: rgba(255,255,255,.055); font: 4rem var(--serif); }
.timeline h3 { color: white; font: 400 2rem var(--serif); margin: 0 0 .3rem; }
.timeline__item > div > p:last-child { max-width: 490px; color: #aeb9b2; font-size: .8rem; margin: 0; }

.details { padding: 9rem max(1.5rem, calc((100% - 1180px)/2)); background: var(--cream); }
.details__intro { text-align: center; }
.details__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 4rem; background: #d9d3c5; border: 1px solid #d9d3c5; }
.detail-card { min-height: 410px; padding: 3.4rem 2.8rem; background: var(--paper); text-align: center; }
.detail-card__icon { display: grid; place-items: center; margin: 0 auto 2.1rem; width: 56px; height: 56px; border: 1px solid #cbb98f; border-radius: 50%; color: var(--gold); font: 1.5rem var(--serif); }
.detail-card .kicker { margin-bottom: .8rem; }
.detail-card h3 { color: var(--forest); font: 400 2rem var(--serif); margin-bottom: .8rem; }
.detail-card > p:not(.kicker) { color: #707772; font-size: .8rem; }
.detail-card small { display: block; margin-top: 1.7rem; color: #a19378; font-size: .57rem; letter-spacing: .15em; text-transform: uppercase; }

.quote { min-height: 650px; display: grid; place-items: center; padding: 7rem 1rem; background: linear-gradient(90deg, rgba(20,31,25,.76), rgba(20,31,25,.4)), url("assets/maja-lucas-solnedgang.jpeg") center 49%/cover fixed; color: white; text-align: center; }
.quote__content > span { color: #dfc892; font: 6rem/.5 var(--serif); }
.quote blockquote { margin: 1.5rem 0; font: italic 400 clamp(2.7rem, 6vw, 5rem)/1.05 var(--serif); }
.quote p { margin: 2rem 0 0; color: #dfc892; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; }

.rsvp { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 8vw, 9rem); padding: 9rem max(1.5rem, calc((100% - 1080px)/2)); background: var(--paper); }
.rsvp__copy { align-self: center; }
.rsvp__copy > p:not(.kicker) { color: #717873; font: 1.12rem/1.7 var(--serif); }
.rsvp__copy .rsvp__hint { font: .67rem/1.6 var(--sans); color: #a09278; }
.rsvp__form { padding: 3rem; border: 1px solid #dcd4c4; background: #fff; box-shadow: 0 24px 70px rgba(39,54,46,.07); }
.rsvp__form > label, .rsvp__form legend { display: block; width: 100%; margin-bottom: 1.8rem; color: var(--forest); font-size: .59rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
input[type="text"], input:not([type]), textarea { width: 100%; border: 0; border-bottom: 1px solid #cfc7b8; border-radius: 0; outline: 0; padding: .8rem 0; color: var(--ink); background: transparent; font: .9rem var(--sans); transition: border-color .2s; }
input:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; }
.rsvp__form legend { margin-bottom: 1rem; }
.radio { display: inline-flex; align-items: center; margin: 0 1.2rem .5rem 0; color: #626a64; font-size: .75rem; cursor: pointer; }
.radio input { position: absolute; opacity: 0; }
.radio span { width: 15px; height: 15px; margin-right: .5rem; border: 1px solid #ad9f81; border-radius: 50%; box-shadow: inset 0 0 0 3px white; }
.radio input:checked + span { background: var(--gold); }
button { width: 100%; display: flex; justify-content: space-between; border: 0; padding: 1.1rem 1.5rem; background: var(--forest); color: white; cursor: pointer; font: 600 .65rem var(--sans); letter-spacing: .18em; text-transform: uppercase; transition: background .2s, transform .2s; }
button:hover { background: #345043; transform: translateY(-2px); }
button i { font-size: 1rem; font-style: normal; }
.form-status { min-height: 1.2rem; margin: .8rem 0 0; color: var(--gold); font-size: .7rem; }

footer { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; padding: 3rem 1.5rem; background: var(--forest-2); color: #aeb7b0; text-align: center; }
.footer__mark { color: white; font: 2.2rem var(--serif); letter-spacing: .15em; margin-bottom: .8rem; }
.footer__mark i { color: #d8c392; font-weight: 400; }
footer > p:not(.footer__mark), footer a { margin: 0; font-size: .56rem; letter-spacing: .22em; text-decoration: none; text-transform: uppercase; }
footer a { margin-top: 1rem; color: #d8c392; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.details__grid .reveal:nth-child(2) { transition-delay: .12s; }
.details__grid .reveal:nth-child(3) { transition-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line-in { to { transform: scaleX(1); } }
@keyframes frame-in { to { opacity: 1; transform: none; } }
@keyframes scroll-line { from { transform: translateY(-22px); } to { transform: translateY(48px); } }

@media (max-width: 820px) {
  .nav { height: 74px; }
  .nav nav a:not(.nav__rsvp) { display: none; }
  .hero { min-height: 620px; }
  .hero h1 { font-size: clamp(3.8rem, 18vw, 6.2rem); line-height: .76; }
  .hero h1 span { font-size: .1em; }
  .scroll-cue { top: calc(100% + 75px); }
  .details__grid { grid-template-columns: 1fr; }
  .detail-card { min-height: 0; }
  .rsvp { grid-template-columns: 1fr; }
  .quote { background-attachment: scroll; }
  .welcome { grid-template-columns: minmax(0, 520px); gap: 5rem; }
  .welcome__content { text-align: center; }
  .welcome__photo { order: 2; width: min(90%, 390px); justify-self: center; }
  .welcome__photo img { height: 500px; }
  .lead { margin-inline: auto; }
  .flourish { justify-content: center; }
}

@media (max-width: 560px) {
  h2 { font-size: 3.4rem; }
  .hero__image { background-image: url("assets/maja-lucas-solnedgang.jpeg"); background-position: center 45%; }
  .hero__date span { width: 25px; }
  .hero__date p { font-size: .53rem; letter-spacing: .16em; }
  .welcome { padding: 7rem 1.3rem; }
  .welcome__photo img { height: 450px; }
  .day { padding-top: 7rem; padding-bottom: 6rem; }
  .timeline::before { left: 75px; }
  .timeline__item { grid-template-columns: 54px 42px 1fr; }
  .timeline time { font-size: 1rem; }
  .timeline__item > div { padding-left: .8rem; }
  .timeline__number { display: none; }
  .details, .rsvp { padding-top: 7rem; padding-bottom: 7rem; }
  .detail-card { padding: 3rem 1.5rem; }
  .rsvp__form { padding: 2rem 1.4rem; }
}

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