/* ═══════════════════════════════════════════════════════
   Марк и Марина — 1 октября 2026
   ═══════════════════════════════════════════════════════ */

:root{
  --cream:      #f9f1e4;
  --cream-hi:   #fdf9f0;
  --gold:       #b98d43;
  --gold-lt:    #d7b678;
  --gold-dk:    #8d6524;
  --ink:        #5c4a30;
  --ink-soft:   #8a765a;
  --line:       rgba(185,141,67,.45);

  --font:       "Playfair Display", Georgia, serif;
  --font-body:  "Cormorant Garamond", Georgia, serif;

  --pad:  clamp(20px, 6vw, 44px);
  --sect-y: clamp(56px, 12vw, 96px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  font-weight:500;
  font-size:19px;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img{ display:block; max-width:100%; }
button{ font:inherit; color:inherit; }

.section{
  position:relative; padding:var(--sect-y) var(--pad);
  opacity:0; transform:translateY(28px);
  transition:opacity .9s cubic-bezier(.22,.7,.3,1), transform .9s cubic-bezier(.22,.7,.3,1);
}
.section.is-visible{ opacity:1; transform:translateY(0); }
#timeline{ padding-top:calc(var(--sect-y) * .35); }
#rsvp{ padding-top:calc(var(--sect-y) * .35); }
@media (prefers-reduced-motion:reduce){
  .section{ opacity:1; transform:none; transition:none; }
}
.wrap{ max-width:520px; margin:0 auto; text-align:center; }

.center{ text-align:center; }

/* ═══════════ MM monogram mark ═══════════ */
.mono{
  display:block;
  width:clamp(38px,9vw,50px); height:auto;
  margin:0 auto 18px;
}

/* ═══════════ diamond rule divider ═══════════ */
.rule{
  display:flex; align-items:center; justify-content:center; gap:14px;
  margin:16px auto; max-width:280px;
}
.rule::before,.rule::after{ content:""; height:1px; flex:1; background:var(--line); }
.rule i{
  width:6px; height:6px; flex:none;
  background:var(--gold); transform:rotate(45deg);
}

/* ═══════════ small caps label ═══════════ */
.label{
  margin:0;
  font-size:clamp(11px,2.8vw,13px);
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold-dk);
}

.heading{
  margin:.2em 0 0;
  font-family:var(--font);
  font-weight:600;
  font-size:clamp(24px,6.4vw,32px);
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--ink);
}

.ic-heart{ width:16px; height:15px; fill:none; stroke:var(--gold); stroke-width:1.4; }
.ic-heart--filled{ fill:var(--gold); stroke:var(--gold); }

/* ═══════════ COVER ═══════════ */
.cover{
  position:relative;
  min-height:100svh;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  padding:calc(var(--pad) + 10px) var(--pad) calc(var(--pad) + 20px);
  text-align:center;
  isolation:isolate;
}
.cover__media{ position:absolute; inset:0; z-index:-1; }
.cover__media img{ width:100%; height:100%; object-fit:cover; object-position:50% 18%; }
.cover__media::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(28,20,10,.62) 0%, rgba(28,20,10,.08) 46%, rgba(28,20,10,.28) 100%);
}
.cover__mark{
  width:clamp(64px,17vw,92px); height:auto;
  margin:0 auto 14px;
  filter:drop-shadow(0 2px 10px rgba(0,0,0,.4));
}
.cover__names{
  display:block; margin:0 auto;
  width:clamp(230px,72vw,380px); height:auto;
  filter:drop-shadow(0 2px 14px rgba(0,0,0,.4));
}
.cover__date{
  margin:.5em 0 0;
  font-family:var(--font-body);
  font-weight:600;
  font-size:clamp(15px,4vw,19px);
  letter-spacing:.3em;
  color:#f3dfa8;
  text-shadow:0 2px 14px rgba(0,0,0,.45);
}

/* ═══════════ VERSE ═══════════ */
.verse-frame{
  margin:0 auto;
  max-width:400px;
  padding:clamp(46px,12vw,72px) clamp(20px,6vw,32px);
}
.verse-flourish{ display:block; width:100%; height:auto; margin:0 auto; }

/* ═══════════ RSVP ═══════════ */
.rsvp__lead{
  margin:.15em 0 0;
  font-family:var(--font);
  font-size:clamp(24px,6.4vw,32px);
  color:var(--ink);
}
.rsvp__lead em{ font-style:italic; font-weight:400; color:var(--gold-dk); }

.small-divider{
  display:block; margin:18px auto 0; width:clamp(140px,42vw,190px); height:auto;
}

.field{ margin-top:26px; text-align:left; }
.field__label{
  display:block; text-align:center; margin-bottom:10px;
  font-size:14px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--gold-dk);
}
.field input{
  display:block; width:100%;
  padding:8px 4px 10px;
  font-family:var(--font-body); font-size:17px; color:var(--ink);
  text-align:center;
  background:transparent;
  border:0; border-bottom:1px solid var(--line);
  outline:none;
}
.field input:focus{ border-color:var(--gold); }
.field input::placeholder{ color:#b6a488; }
.field.invalid input{ border-color:#b4573f; }

.choices{
  display:grid; grid-template-columns:1fr 1fr;
  gap:14px; margin-top:10px;
}
.opt{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:18px 8px;
  border:1px solid var(--line); border-radius:4px;
  background:none; cursor:pointer;
  font-family:var(--font-body); font-size:16px; letter-spacing:.03em; text-transform:uppercase;
  color:var(--ink-soft); text-align:center; line-height:1.4;
  -webkit-tap-highlight-color:transparent;
}
.opt[aria-pressed="true"]{ border-color:var(--gold); color:var(--gold-dk); background:rgba(185,141,67,.08); }
.opt__leaf{ width:70px; height:auto; margin:0 auto 8px; }
.opt[data-attending="no"] .opt__leaf{ transform:scaleX(-1); }

.stepper{
  display:flex; align-items:center; justify-content:center; gap:22px;
  margin-top:14px;
}
.stepper__btn{
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--line); background:none;
  color:var(--gold-dk); font-size:19px; line-height:1;
  cursor:pointer;
}
.stepper__btn:disabled{ opacity:.35; cursor:default; }
.stepper__value{
  min-width:34px; text-align:center;
  font-family:var(--font); font-size:22px; color:var(--gold-dk);
}

.guests{ margin-top:0; }
.guest{ margin-top:20px; }

.rsvp-submit{
  display:block; width:100%; margin:32px 0 0;
  padding:15px; border:1px solid var(--gold); border-radius:4px;
  background:none; color:var(--gold-dk);
  font-family:var(--font-body); font-size:16px; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase;
  cursor:pointer;
}
.rsvp-submit:disabled{ opacity:.55; cursor:default; }

.rsvp-err{ margin:14px 0 0; color:#9d4a33; font-size:15px; text-align:center; }

.thanks{ text-align:center; }
.thanks .ic-heart{ width:18px; height:17px; margin:0 auto 8px; }
.thanks p{ margin:0; font-family:var(--font-body); font-size:17px; }
.thanks p + p{ margin-top:2px; text-transform:uppercase; letter-spacing:.1em; font-size:14px; color:var(--gold-dk); }

/* ═══════════ DETAILS ═══════════ */
.details-frame{
  margin-top:20px;
  padding:clamp(30px,8vw,44px) clamp(24px,7vw,36px);
}
.details p{ margin:0; font-size:17px; line-height:1.55; }
.details__phone{ display:block; margin-top:18px; font-weight:700; font-size:19px; color:var(--ink); text-decoration:none; }
.details__phone:hover{ text-decoration:underline; }

/* ═══════════ GALLERY ═══════════ */
.gallery{ margin-top:8px; }
.gallery__grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.gallery__grid img{ width:100%; height:100%; object-fit:cover; aspect-ratio:3/4; }
.gallery__wide{ margin-top:10px; }
.gallery__wide img{ display:block; width:100%; height:auto; }

/* ═══════════ TIMELINE ═══════════ */
.day-image{ display:block; width:100%; height:auto; margin-top:8px; }

/* ═══════════ ornate border frame, reused wherever a card needs a border ═══════════ */
.ornate-frame{
  background:url("../img/icons/border-frame.png") center/100% 100% no-repeat;
  border:none;
}

/* ═══════════ VENUE ═══════════ */
.venue-image{
  display:block; height:auto;
  width:calc(100% + var(--pad) * 2);
  max-width:none;
  margin:0 calc(var(--pad) * -1);
}

/* ═══════════ flourish divider (fancier rule, used in the venue frame) ═══════════ */
.flourish{
  display:block; margin:16px auto; width:clamp(150px,38vw,190px); height:auto;
}

/* ═══════════ INVITE + CALENDAR ═══════════ */
.invite p{ margin:1em 0 0; font-size:17px; line-height:1.7; }

.calendar-image{ display:block; width:100%; height:auto; margin-top:24px; }

/* ═══════════ tablet / laptop ═══════════ */
@media (min-width:820px){
  body{ font-size:20px; }
  .wrap{ max-width:600px; }
  .gallery__grid img{ aspect-ratio:4/5; }
}
