/* ==========================
   Wedding Invite — Print-like
   Rustam & Guzel • 22 August
   ========================== */

/* Palette */
:root{
  --paper: #FBF6EE;
  --paper-2: #F7F1E6;
  --ink: #2B2B2B;
  --accent: #2F3E56;     /* dusty indigo */
  --accent-2: #364B63;   /* softer indigo */
  --taupe: #B79A86;
  --taupe-2: #C2A08B;

  --border: rgba(47,62,86,.22);
  --hairline: rgba(47,62,86,.18);

  --shadow: 0 18px 45px rgba(15, 20, 28, 0.12);
  --radius: 18px;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --script: "Great Vibes", "Allura", cursive;

  --card-max: 860px;
  --pad: clamp(22px, 3.8vw, 52px);
}

/* Base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  background: #efe8dc;
}

/* Page background with subtle paper ambience + grain */
.page{
  min-height: 100svh;
  padding: clamp(18px, 3.2vw, 48px) 16px;
  background: transparent;
  position: relative;
}

.page::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;

  /* Stronger, yet subtle, background image under content */
  opacity: .06;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  background-size:
    auto;
  background-repeat:
    repeat;
  background-position:
    0 0;
  background-blend-mode:
    multiply;

  /* Slight boost to color presence without hurting readability */
  filter: saturate(1.2) contrast(1.05);
  mix-blend-mode: normal;
}


/* Centering shell */
.invite-shell{
  max-width: calc(var(--card-max) + 64px);
  margin: 0 auto;
}

/* Invite card (paper leaflet) */
.invite-card{
  position: relative;
  margin: 0 auto;
  max-width: var(--card-max);
  background:
    radial-gradient(1200px 900px at 30% 0%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(900px 700px at 70% 100%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;

  /* inner stroke */
  border: 1px solid rgba(47,62,86,.10);
}

.invite-card::before{
  content:"";
  position:absolute;
  inset: 16px;
  border-radius: calc(var(--radius) - 10px);
  border: 1px solid var(--border);
  pointer-events:none;
}

/* subtle texture inside card */
.invite-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 0;

  /* embed image inside main content card only */
  opacity:.22;
  mix-blend-mode: normal;
  background-image:
    url("background/image.jpeg"),
    radial-gradient(900px 650px at 15% 20%, rgba(183,154,134,.08), transparent 60%),
    radial-gradient(900px 650px at 85% 85%, rgba(54,75,99,.06), transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.30'/%3E%3C/svg%3E");
  background-size:
    cover,
    auto,
    auto,
    auto;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    repeat;
  background-position:
    center center,
    0 0,
    0 0,
    0 0;
  background-blend-mode:
    normal,
    normal,
    normal,
    multiply;
  filter: saturate(1.18) contrast(1.06) brightness(1.04);
}

/* Decorative corners */
.floral{
  position: absolute;
  width: min(340px, 45vw);
  aspect-ratio: 1/1;
  pointer-events: none;
  opacity: .95;
  filter: saturate(.98);
  z-index: 0;
}
.floral--tl{ top: -42px; left: -42px; }
.floral--br{ bottom: -56px; right: -56px; transform: rotate(2deg); }
.floral__svg{ width: 100%; height: 100%; }

/* if user swaps to img, keep it fitting */
.floral img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

/* Sections */
.section{
  position: relative;
  z-index: 1;
  padding: var(--pad);
}

/* Decorative hearts */
:root{
  --heart-1: #9d7f68;
  --heart-2: #83baf5;
}

.hearts{
  position: relative;           /* inline by default, next to text */
  display: inline-flex;
  gap: 6px;
  vertical-align: middle;
  pointer-events: none;
}

.hearts__i{
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.35), 0 2px 10px rgba(15,20,28,.08);

  /*
    iOS/Safari может рендерить символ ♥ как emoji (цветной), из-за чего он становится красным
    и игнорирует color:. Решение — принудительно emoji-представление "text" (не emoji)
    через variation selector U+FE0E. Мы добавим его в HTML (см. index.html), а тут — страховка.
  */
  font-variant-emoji: text; /* Safari 17+/современные */
}

.hearts__i:nth-child(1){
  color: var(--heart-1);
  opacity: .9;
  transform: rotate(-8deg);
}
.hearts__i:nth-child(2){
  color: var(--heart-2);
  opacity: .75;
  transform: translateY(-2px) rotate(8deg);
}

/* position helpers if needed */
.hearts--topright{
  position: absolute;
  top: clamp(8px, 2vw, 12px);
  right: clamp(10px, 2vw, 16px);
  display: flex;
  font-size: clamp(16px, 2.4vw, 20px);
}
.hearts--inline{
  display: inline-flex;
  margin-left: 8px;
}
.hearts--final-inline{
  display: inline-flex;
  margin-left: 8px;
}

.section--first{ padding-top: calc(var(--pad) + 12px); }
.section--last{ padding-bottom: calc(var(--pad) + 10px); }

.section + .section{
  padding-top: 0;
}

.section__title{
  margin: 0;
  text-align: center;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  font-size: clamp(22px, 2.3vw, 28px);
}

.section__subtitle{
  margin: 18px 0 12px;
  text-align: center;
  color: var(--taupe);
  font-size: clamp(24px, 2.6vw, 32px);
}

/* Hero */
.hero{
  text-align: center;
  padding-top: clamp(48px, 7vw, 82px);
  padding-bottom: clamp(26px, 4.5vw, 46px);
}

.script{
  font-family: var(--script);
  letter-spacing: .01em;
  font-weight: 500;
}

.hero__kicker{
  color: var(--taupe);
  font-size: clamp(28px, 4.2vw, 44px);
  margin-bottom: 14px;
}

.hero__title{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.06;
}

.amp{
  font-family: var(--serif);
  font-weight: 500;
  text-transform: none;
  letter-spacing: .02em;
  color: var(--accent-2);
  padding: 0 .15em;
}

.hero__meta{
  margin: 14px 0 0;
  font-family: var(--sans);
  font-weight: 500;
  color: rgba(43,43,43,.82);
  font-size: clamp(13px, 1.55vw, 15px);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Hero photo (stylistic processing to match site) */
.hero__photo{
  width: min(640px, 96%);
  margin: 12px auto 8px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(47,62,86,.14);
  background: rgba(255,255,255,.35);
  box-shadow: 0 10px 28px rgba(15,20,28,.08);
}

.hero__img{
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.98) contrast(.98);
}

@media (max-width: 560px){
  .hero__photo{
    width: 94%;
    margin: 10px auto 8px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15,20,28,.08);
  }
}

.countdown{
  margin: 10px auto 18px;
  width: min(520px, 100%);
  text-align: center;
  color: rgba(47,62,86,.78);
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.countdown__label{
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(47,62,86,.62);
}

.countdown__value{
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
}

.countdown{
  margin: 10px auto 18px;
  width: min(520px, 100%);
  text-align: center;
  color: rgba(47,62,86,.78);
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.countdown__label{
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(47,62,86,.62);
}

.countdown__value{
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
}

/* New multi-unit countdown layout */
.countdown{
  width: min(760px, 100%);
}

.countdown__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 6px;
  justify-items: center;
  align-items: stretch;
}

.countdown__box{
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(47,62,86,.14);
  background: rgba(255,255,255,.35);
  box-shadow: 0 6px 18px rgba(15,20,28,.06);
  min-width: 82px;
}

.countdown__num{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  color: var(--accent);
}

.countdown__unit{
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(47,62,86,.72);
}

@media (max-width: 560px){
  .countdown__grid{
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .countdown__box{
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px;
  }
  .countdown__num{
    font-size: clamp(22px, 7vw, 32px);
  }
  .countdown__unit{
    font-size: 10px;
  }
}

.hero__text{
  width: min(640px, 100%);
  margin: 18px auto 0;
  font-size: clamp(16px, 2.0vw, 19px);
  line-height: 1.6;
  color: rgba(43,43,43,.88);
}

.hero__greeting{
  display: inline-block;
  margin-left: .4ch;
  color: var(--taupe);
  font-family: var(--script);
  font-size: 1.2em;
  letter-spacing: .01em;
}

.meta__dot{
  display:inline-block;
  margin: 0 .45em;
  color: rgba(47,62,86,.55);
}

/* Ornament */
.ornament{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin: 22px auto 26px;
  color: rgba(47,62,86,.70);
  width: min(420px, 100%);
}

.ornament__line{
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(47,62,86,.35), transparent);
}
.ornament__mark{
  font-size: 12px;
  letter-spacing: .2em;
  opacity: .95;
}

/* Dividers */
.divider{
  margin: 14px auto 18px;
  width: min(240px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,62,86,.25), transparent);
}
.subdivider{
  margin: 18px auto 8px;
  width: min(420px, 86%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183,154,134,.32), transparent);
}

/* Lead invitation text */
.lead{
  margin: 0;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
  color: rgba(43,43,43,.92);
}

.lead__accent{
  display:inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
}

/* Space between lead text and CTA button in hero */
.hero > .btn{
  margin-top: clamp(12px, 2vw, 18px);
}

/* Details & timeline */
.details,
.timeline{
  margin: 0 auto;
  width: min(560px, 100%);
}

.details__row,
.timeline__row{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.details__row:last-child{ border-bottom: 0; }

.details dt,
.timeline dt{
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
  color: rgba(47,62,86,.72);
}

.details dd,
.timeline dd{
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: rgba(43,43,43,.92);
}

.timeline dd{
  margin: 0;
  text-align: right;
}

.timeline__time{
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(47,62,86,.75);
  min-width: 64px;
}

.timeline__event{
  font-size: 20px;
  font-weight: 500;
  color: rgba(43,43,43,.92);
}

.timeline__label{
  display:flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 1px;
  align-items: flex-end;
}

.timeline__note{
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(43,43,43,.76);
  max-width: 28em;
  text-align: right;
}

/* Readable long text in Details */
.details__row--note{
  align-items: flex-start;
  justify-content: flex-start; /* override space-between to avoid "staircase" look */
  gap: 14px;
}
.details__row--note dt{
  min-width: 160px;
}
.details__row--note dd{
  flex: 1;
}
.details dd.details__text{
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(43,43,43,.95);
  text-align: justify;
  margin: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (max-width: 560px){
  .details__row--note dt{ min-width: 120px; }
}

/* Notes */
.note{
  width: min(560px, 100%);
  margin: 14px auto 0;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(43,43,43,.70);
  line-height: 1.5;
}
.note__label{
  color: rgba(47,62,86,.78);
  font-weight: 500;
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .95em;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .5ch;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--outline{
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(47,62,86,.35);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.btn--outline:hover{
  background: rgba(47,62,86,.06);
  border-color: rgba(47,62,86,.42);
  transform: translateY(-1px);
}

.btn--outline:active{
  transform: translateY(0);
}

.btn--small{
  padding: 10px 16px;
}

.btn--ghost{
  background: transparent;
  border: 1px solid transparent;
  color: rgba(47,62,86,.72);
  padding: 12px 14px;
}

.btn--ghost:hover{
  border-color: rgba(47,62,86,.18);
  background: rgba(47,62,86,.04);
}

/* Gallery */
.gallery{
  width: min(760px, 100%);
  margin: 0 auto;
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.gallery__item{
  position: relative;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(47,62,86,.14);
  background: rgba(255,255,255,.35);
  box-shadow: 0 6px 18px rgba(15,20,28,.07);
  cursor: zoom-in;
  transform: translateZ(0);
}

.gallery__item::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(251,246,238,0) 0%, rgba(251,246,238,.0) 60%, rgba(47,62,86,.08) 100%);
  opacity: .0;
  transition: opacity .18s ease;
}

.gallery__item:hover::after{ opacity: 1; }

.gallery__img{
  display:block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  filter: saturate(.98) contrast(.98);
  transition: transform .35s ease;
}

.gallery__item:hover .gallery__img{
  transform: scale(1.03);
}

.gallery__caption{
  position:absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(251,246,238,.72);
  border: 1px solid rgba(47,62,86,.12);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(47,62,86,.78);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
  backdrop-filter: blur(2px);
}

.gallery__item:hover .gallery__caption{
  opacity: 1;
  transform: translateY(0);
}

/* Dress code swatches */
.swatches{
  width: min(760px, 100%);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(48px, 1fr));
  gap: 5px;
  justify-items: center;
  align-items: center;
}

.dress__intro{
  text-align: center;
  width: min(640px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.swatch{
  width: clamp(48px, 10vw, 64px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--sw, #ccc);
  border: 1px solid rgba(47,62,86,.14);
  box-shadow: 0 14px 34px rgba(15,20,28,.14);
  position: relative;
}

@media (max-width: 860px){
  .swatches{
    grid-template-columns: repeat(6, minmax(44px, 1fr));
    gap: 5px;
  }
}

@media (max-width: 560px){
  .swatches{
    grid-template-columns: repeat(6, minmax(40px, 1fr));
    gap: 5px;
  }
  .swatch{
    width: clamp(40px, 12vw, 52px);
    box-shadow: 0 12px 26px rgba(15,20,28,.14);
  }
}

/* Location */
.location__line{
  margin: 0;
  text-align:center;
  font-size: clamp(18px, 2.2vw, 22px);
  color: rgba(43,43,43,.90);
}
.location__line strong{
  font-weight: 600;
  color: var(--accent);
}

.location__sub{
  display:block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(47,62,86,.62);
}

.location__actions{
  margin-top: 12px;
  display:flex;
  justify-content:center;
}

.map{
  width: min(760px, 100%);
  height: clamp(220px, 38vw, 360px);
  margin: 16px auto 0;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(47,62,86,.16);
  background: rgba(255,255,255,.28);
  box-shadow: 0 10px 28px rgba(15,20,28,.08);
}

.location__sub{
  display:block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(47,62,86,.62);
}

.location__actions{
  margin-top: 12px;
  display:flex;
  justify-content:center;
}

.map{
  width: min(760px, 100%);
  height: clamp(220px, 38vw, 360px);
  margin: 16px auto 0;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(47,62,86,.16);
  background: rgba(255,255,255,.28);
  box-shadow: 0 10px 28px rgba(15,20,28,.08);
}

/* RSVP form */
.rsvp__hint{
  margin: 0 auto 16px;
  width: min(640px, 100%);
  text-align:center;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(43,43,43,.86);
}

.form{
  width: min(640px, 100%);
  margin: 0 auto;
}

.form__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
}

/* Choice groups (radio/checkbox) */
.choice-group{
  border: 0;
  margin: 0;
  padding: 0;
}
.choice-group legend{
  margin: 0 0 6px;
  padding: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(47,62,86,.78);
}

.options{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.options--inline{ flex-wrap: nowrap; }
.options--wrap{ flex-wrap: wrap; }

.option{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(47,62,86,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.40));
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: rgba(43,43,43,.92);
  user-select: none;
}
.option input{
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.field{
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.field--wide{ grid-column: 1 / -1; }

.field__label{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(47,62,86,.78);
}

.field__input{
  appearance:none;
  border: 1px solid rgba(47,62,86,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.40));
  border-radius: 14px;
  padding: 12px 12px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: rgba(43,43,43,.94);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.field__input:focus{
  border-color: rgba(47,62,86,.38);
  box-shadow: 0 0 0 4px rgba(54,75,99,.08);
}

.field__textarea{
  resize: vertical;
  min-height: 110px;
}

.form__actions{
  display:flex;
  gap: 10px;
  justify-content:center;
  margin-top: 16px;
}

.form__status{
  min-height: 22px;
  margin: 12px 0 0;
  text-align:center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(47,62,86,.78);
}

.form__details{
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(43,43,43,.72);
  line-height: 1.55;
}
.form__details summary{
  cursor:pointer;
  color: rgba(47,62,86,.78);
}

/* Final */
.final{
  margin: 12px 0 6px;
  text-align:center;
  color: var(--taupe);
  font-size: clamp(26px, 3.5vw, 40px);
}

.fineprint{
  margin: 0;
  text-align:center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(47,62,86,.62);
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 30, 0.62);
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
  z-index: 50;
}

.lightbox.is-open{
  opacity: 1;
  visibility: visible;
}

.lightbox__img{
  width: min(860px, 95vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
  background: rgba(255,255,255,.04);
}

.lightbox__caption{
  margin-top: 10px;
  text-align:center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
}

.lightbox__close{
  position: fixed;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.lightbox__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.45);
}

/* Reveal animations (very subtle) */
[data-reveal]{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Overrides */
#dresscode{ margin-top: clamp(18px, 6vw, 56px); }
#countdown{ margin-top: clamp(18px, 6vw, 56px); }
.details dt, .timeline dt{ font-size: 13px; }
.form{ margin-top: 14px; }
.location__actions{ margin-top: 18px; }

/* Responsive */
@media (max-width: 860px){
  .invite-card::before{ inset: 14px; }
  .floral--tl{ top: -58px; left: -58px; }
  .floral--br{ bottom: -72px; right: -72px; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px){
  .invite-card{ border-radius: 16px; }
  .invite-card::before{ inset: 12px; border-radius: 10px; }
  .hero{ padding-top: 44px; }
  .hero__title{ letter-spacing: .06em; }
  .form__grid{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; gap: 10px; }
  .details dd, .timeline__event{ font-size: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  [data-reveal]{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .gallery__img, .gallery__caption, .gallery__item::after{
    transition: none !important;
  }
}
