/* =========================================================
   Scroll-story invitation — scroll.html
   Screen 1 cream & gold · Screen 3 ivory, slate & gold (church)
   Screen 4 blush, wine & gold (reception)
   ========================================================= */
:root {
  --cream: #FBF6EC;
  --cream-2: #F3E8D6;
  --paper: #FFFDF8;
  --gold: #A87D34;
  --gold-l: #D8B970;
  --gold-grad: linear-gradient(135deg, #e6cd8e 0%, #b8893b 45%, #f0dca4 70%, #a5772c 100%);
  --ink: #3A2E28;
  --muted: #76675B;

  --ivory: #F7F6F1;
  --sky: #E5ECEE;
  --slate: #3C5560;
  --sage: #9FB3A8;

  --blush: #F8E6DE;
  --blush-2: #F1D2C6;
  --wine: #8E2238;
  --rose: #C66B78;

  --script: 'Great Vibes', cursive;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Lato', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-variant-numeric: lining-nums;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.is-hidden { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .85em 1.7em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible, .btn-link:focus-visible, .gift-card:focus-visible, .rail a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.btn--gold {
  background: var(--gold-grad); background-size: 200% 200%;
  color: #fff; text-shadow: 0 1px 1px rgba(80, 50, 10, .35);
  box-shadow: 0 8px 22px -8px rgba(150, 105, 30, .65), inset 0 1px 0 rgba(255,255,255,.35);
  animation: sheen 5s ease-in-out infinite;
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(150,105,30,.75); }
@keyframes sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn--outline { border-color: var(--slate); color: var(--slate); background: rgba(255,255,255,.6); }
.btn--outline:hover { background: var(--slate); color: #fff; }
.btn--warm { border-color: var(--wine); color: var(--wine); }
.btn--warm:hover { background: var(--wine); color: #fff; }
.btn--sm { min-height: 42px; padding: .7em 1.2em; font-size: .68rem; letter-spacing: .14em; }
.btn--church { background: var(--slate); color: #fff; }
.btn--recep { background: var(--wine); color: #fff; }
.btn-link {
  background: none; border: 0; padding: .6em .4em; cursor: pointer;
  color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- progress rail ---------- */
.rail { position: fixed; right: max(8px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); z-index: 50; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rail a {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  text-decoration: none;
}
.rail a span {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--gold); background: transparent; font-size: 0;
  transition: transform .3s var(--ease), background .3s;
}
.rail a.is-active span { background: var(--gold); transform: scale(1.35); }
.rail a.is-off { pointer-events: none; opacity: .3; }

/* ---------- shared screen layout ---------- */
.screen { position: relative; padding: clamp(72px, 12vh, 120px) 16px; }
.screen-inner { max-width: 560px; margin: 0 auto; text-align: center; padding-right: 14px; padding-left: 14px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   SCREEN 1 — sticky envelope scene
   ========================================================= */
.s1 { background: radial-gradient(120% 80% at 50% 0%, #fffaf0 0%, var(--cream) 55%, var(--cream-2) 100%); }
.s1-track { height: 260vh; position: relative; }
.s1-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
  padding: max(20px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}
.corner { position: absolute; width: clamp(120px, 30vw, 230px); opacity: .55; pointer-events: none; }
.corner--tl { top: 0; left: 0; }
.corner--br { bottom: 0; right: 0; transform: rotate(180deg); }

.parents { width: min(100%, 460px); display: grid; gap: clamp(8px, 1.6vh, 14px); position: relative; z-index: 2; }
.parent { margin: 0; display: flex; align-items: flex-end; gap: 10px; }
.parent--2 { justify-content: flex-end; }
.avatar {
  flex: none; width: clamp(40px, 11vw, 52px); height: clamp(40px, 11vw, 52px);
  filter: drop-shadow(0 4px 8px rgba(120, 90, 40, .2));
}
.av-ring { fill: var(--paper); stroke: var(--gold-l); stroke-width: 2; }
.av-fill { fill: #d9c19a; }
.av-hair { fill: #b99a6c; }
.av-tie { fill: none; stroke: var(--wine); stroke-width: 2.5; stroke-linecap: round; }
.parent--2 .av-tie { fill: var(--wine); stroke: none; }
.bubble {
  margin: 0; position: relative; padding: .7em 1.05em;
  background: var(--paper); border: 1px solid rgba(168,125,52,.35);
  border-radius: 20px; box-shadow: 0 10px 24px -14px rgba(90, 60, 20, .45);
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.02rem, 4.2vw, 1.3rem); line-height: 1.25;
}
.bubble--left { border-bottom-left-radius: 4px; letter-spacing: .04em; }
.bubble--right { border-bottom-right-radius: 4px; font-style: italic; font-weight: 500; }
.together {
  margin: clamp(4px, 1vh, 10px) 0 0; text-align: center;
  font-family: var(--serif); font-size: clamp(1.12rem, 4.6vw, 1.45rem); line-height: 1.3; font-weight: 500;
}
.together em { font-family: var(--script); font-style: normal; font-size: 1.45em; color: var(--gold); font-weight: 400; }
.together-label {
  display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .3em;
}
/* step-in states (JS adds .on) */
[data-step] { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-step].on { opacity: 1; transform: none; }
.parent.on .bubble { animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.7); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* envelope — driven by --flap (0..1) and --lift (0..1) */
.envelope {
  --flap: 0; --lift: 0;
  position: relative; z-index: 1;
  width: min(74vw, 320px); aspect-ratio: 3 / 2;
  margin-top: clamp(30px, 7vh, 70px);
  filter: drop-shadow(0 18px 26px rgba(90, 60, 20, .22));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.env-back, .env-front, .env-flap { position: absolute; inset: 0; border-radius: 6px; }
.env-back { background: linear-gradient(#ead9bb, #e2cda8); }
.env-letter {
  position: absolute; left: 7%; right: 7%; top: 6%; height: 88%;
  background: var(--paper); border-radius: 4px; border: 1px solid rgba(168,125,52,.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center; padding: 8px;
  transform: translateY(calc(var(--lift) * -62%));
}
.letter-kicker { font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.letter-heart { color: var(--wine); font-size: 1.1rem; }
.letter-line { font-family: var(--script); font-size: clamp(1.1rem, 5vw, 1.45rem); color: var(--ink); }
.env-front {
  background: linear-gradient(160deg, #f6ead4, #ead7b5);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  border-bottom: 2px solid rgba(168,125,52,.25);
}
.env-front::after { /* gold edge on the pocket */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom right, transparent 49.4%, rgba(168,125,52,.45) 50%, transparent 50.6%),
              linear-gradient(to bottom left, transparent 49.4%, rgba(168,125,52,.45) 50%, transparent 50.6%);
  background-size: 50% 104%; background-repeat: no-repeat; background-position: left top, right top;
}
.env-flap {
  z-index: 3; transform-origin: 50% 0;
  background: linear-gradient(#f2e2c4, #e5cfa7);
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  transform: perspective(700px) rotateX(calc(var(--flap) * 178deg));
}
.envelope.flap-back .env-flap { z-index: 0; }
.seal {
  position: absolute; z-index: 4; left: 50%; top: 60%; translate: -50% -50%;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #f6dfa8; font-size: 1.15rem;
  background: radial-gradient(circle at 35% 30%, #c2455a, #7e1b30 70%);
  box-shadow: 0 3px 8px rgba(80, 10, 25, .35), inset 0 0 0 3px rgba(255,255,255,.12);
  opacity: calc(1 - var(--flap) * 2.2);
}
.env-front, .env-back { z-index: 0; }
.env-letter { z-index: 1; }
.env-front { z-index: 2; }

.s1-cta { display: grid; justify-items: center; gap: 10px; position: relative; z-index: 4; }
.scroll-hint { margin: 0; display: grid; justify-items: center; gap: 6px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 26px; background: linear-gradient(var(--gold), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* =========================================================
   SCREEN 2 — scratch card
   ========================================================= */
.s2 { background: linear-gradient(var(--cream-2), var(--cream) 40%); min-height: 100vh; min-height: 100svh; display: grid; align-items: center; }
.kicker-title {
  margin: 0 0 clamp(22px, 4vh, 36px);
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(1.35rem, 5.4vw, 2rem); line-height: 1.25; color: var(--ink);
}
.kicker-title::after { content: ""; display: block; width: 64px; height: 1px; margin: 16px auto 0; background: var(--gold-l); }
.scratch {
  position: relative; width: min(100%, 380px); aspect-ratio: 100 / 92; margin: 0 auto;
  filter: drop-shadow(0 18px 22px rgba(110, 75, 20, .32));
}
/* the heart: everything inside is clipped to the heart shape */
.heart {
  position: absolute; inset: 0;
  -webkit-mask: url('../assets/images/heart-mask.svg') center / 100% 100% no-repeat;
          mask: url('../assets/images/heart-mask.svg') center / 100% 100% no-repeat;
}
.scratch-content {
  position: absolute; inset: 0; padding: 10% 14% 22%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(circle at 50% 38%, #fffdf7, #f6e8d4);
}
.heart-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.heart-line path { fill: none; stroke: #c9a25a; stroke-width: 3; vector-effect: non-scaling-stroke; }
.heart-line .inner { stroke-width: 1; opacity: .6; transform: scale(.9); transform-origin: 50% 46%; }
.sc-orn { color: var(--gold); font-size: 1.3rem; line-height: 1; }
.names { margin: 0; font-family: var(--script); color: var(--ink); line-height: 1.02; font-size: clamp(1.8rem, 8.4vw, 2.45rem); }
.names .nm { display: block; white-space: nowrap; }
.names .amp { display: block; font-family: var(--serif); font-size: .5em; color: var(--wine); margin: .05em 0; }
.names-line {
  margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.02rem, 4vw, 1.18rem); color: var(--muted);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .9s var(--ease) .6s, transform .9s var(--ease) .6s, visibility 0s .6s;
}
.scratch.done + .names-line { opacity: 1; visibility: visible; transform: none; }
.scratch-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: grab; transition: opacity .9s var(--ease);
}
/* keep the names invisible until the foil has been painted */
.scratch:not(.ready):not(.done) .scratch-content { visibility: hidden; }
.scratch:not(.ready) .heart { background: linear-gradient(135deg, #e9d293, #c69c48 40%, #f3e2ad 60%, #b98a37); }
.scratch.done .scratch-canvas { opacity: 0; pointer-events: none; }
.scratch.done .names .nm { animation: nameIn 1s var(--ease) both; }
.scratch.done .names .nm:last-child { animation-delay: .18s; }
.scratch.done .names .amp { animation: beat 1.2s ease-in-out .5s 2; }
@keyframes nameIn { from { opacity: 0; transform: translateY(10px); letter-spacing: .08em; } to { opacity: 1; transform: none; } }
@keyframes beat { 0%,100% { transform: scale(1); } 40% { transform: scale(1.35); } }
.burst { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.burst i {
  position: absolute; left: 50%; top: 50%; font-style: normal; line-height: 1;
  animation: fly 1.6s var(--ease) forwards;
}
@keyframes fly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); }
}
.s2-actions { margin-top: 18px; min-height: 56px; display: grid; justify-items: center; gap: 8px; }
#cta-celebrations { animation: rise .8s var(--ease) both, sheen 5s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Event screens — shared pieces
   ========================================================= */
.event-tag {
  display: inline-block; margin: 0 0 22px; padding: .5em 1.2em;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: clamp(.6rem, 2.6vw, .68rem); letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  color: var(--slate); white-space: nowrap;
}
.event-tag b { font-weight: 400; opacity: .5; margin: 0 .3em; }
.event-tag--warm { color: var(--wine); }
.event-title {
  margin: 8px 0 12px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 8.5vw, 3rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1.1;
  color: var(--slate);
}
.event-title--warm { color: var(--wine); }
.event-quote { margin: 0 auto 28px; max-width: 30em; font-family: var(--serif); font-style: italic; font-size: clamp(1.08rem, 4.2vw, 1.25rem); color: var(--muted); }

.date-block {
  display: grid; gap: 2px; margin: 0 auto 28px; padding: 20px 18px; max-width: 360px;
  border-top: 1px solid var(--gold-l); border-bottom: 1px solid var(--gold-l);
}
.db-day { font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.db-date, .sum-date, .db-time {
  font-variant-numeric: lining-nums;
}
.db-date { font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 1.9rem); font-weight: 500; line-height: 1.15; }
.db-date b { display: block; font-family: var(--sans); font-size: 2.1em; font-weight: 300; letter-spacing: .04em; line-height: 1.05; color: var(--slate); }
.date-block--warm .db-date b { color: var(--wine); }
.db-time { font-weight: 700; letter-spacing: .14em; font-size: .95rem; margin-top: 4px; }

.v-label { display: block; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.venue { margin-bottom: 26px; }
.v-name { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 5.2vw, 1.6rem); line-height: 1.2; }
.v-name--sm { font-size: clamp(1.12rem, 4.4vw, 1.3rem); }
.v-addr { margin: 2px 0 0; color: var(--muted); text-wrap: balance; }
.event-quote, .invite-msg, .lead-big, .kicker-title { text-wrap: balance; }
.mini-link { display: inline-block; margin-top: 6px; font-size: .8rem; color: var(--slate); text-underline-offset: 3px; }

.actions { display: grid; gap: 12px; justify-items: center; margin-top: 30px; }
.actions .btn { width: min(100%, 320px); }

/* =========================================================
   SCREEN 3 — church theme
   ========================================================= */
.s3 { background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 14%, var(--sky) 100%); }
.church { width: min(70vw, 240px); margin: 0 auto 10px; }
.bell { transform-origin: 130px 62px; }
.church.in .bell { animation: ring 2.4s ease-in-out .6s 3; }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 45% { transform: rotate(-13deg); } 65% { transform: rotate(8deg); } 85% { transform: rotate(-4deg); } }
.lunch {
  margin: 0 auto; max-width: 380px; padding: 18px 16px;
  background: rgba(255,255,255,.65); border: 1px dashed rgba(60,85,96,.35); border-radius: 14px;
}
.lunch-title { margin: 0 0 4px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; color: var(--slate); }

/* =========================================================
   SCREEN 4 — reception theme
   ========================================================= */
.s4 { background: linear-gradient(180deg, var(--sky) 0%, var(--blush) 12%, #fbeee6 60%, var(--cream) 100%); }
.lead-big { margin: 6px 0 6px; font-family: var(--script); font-size: clamp(2.1rem, 9.5vw, 3.1rem); line-height: 1.1; color: var(--wine); }
.lead-sub { margin: 0 0 30px; font-family: var(--serif); font-size: clamp(1.1rem, 4.4vw, 1.3rem); font-style: italic; }

.gift { display: grid; justify-items: center; gap: 14px; margin-bottom: 10px; }
.gift-card {
  position: relative; width: min(100%, 340px); aspect-ratio: 4 / 3; padding: 0;
  border: 0; border-radius: 16px; cursor: pointer; overflow: hidden;
  background: linear-gradient(145deg, #fffaf5, #f6e2d7);
  box-shadow: 0 22px 44px -22px rgba(142, 34, 56, .55), 0 0 0 1px rgba(201,150,90,.45);
  -webkit-tap-highlight-color: transparent; touch-action: pan-y;
  transition: transform .5s var(--ease);
}
.gift-card:hover { transform: translateY(-3px) rotate(-.4deg); }
.gc-face { position: absolute; inset: 12px; border: 1px solid rgba(168,125,52,.45); border-radius: 10px; display: grid; place-content: center; gap: 6px; }
.gc-kicker { font-family: var(--script); font-size: 1.5rem; color: var(--ink); background: #fdf5ef; padding: 0 .4em; border-radius: 6px; position: relative; z-index: 2; transform: translateY(-58px); }
.gc-heart { color: var(--wine); font-size: 1.4rem; }
.ribbon { position: absolute; pointer-events: none; }
.ribbon i { position: absolute; background: linear-gradient(90deg, #8e2238, #c2455a 45%, #a32b42); transition: transform .9s var(--ease) .15s, opacity .9s .15s; }
.ribbon--v { left: 50%; top: 0; bottom: 0; width: 24px; margin-left: -12px; }
.rv-top { left: 0; right: 0; top: 0; height: 50%; }
.rv-bot { left: 0; right: 0; bottom: 0; height: 50%; }
.ribbon--h { top: 50%; left: 0; right: 0; height: 24px; margin-top: -12px; }
.ribbon--h i { background: linear-gradient(180deg, #8e2238, #c2455a 45%, #a32b42); }
.rh-l { top: 0; bottom: 0; left: 0; width: 50%; }
.rh-r { top: 0; bottom: 0; right: 0; width: 50%; }
.bow {
  position: absolute; left: 50%; top: 50%; width: 112px; translate: -50% -42%;
  filter: drop-shadow(0 6px 8px rgba(90, 10, 30, .35));
  animation: wiggle 2.8s ease-in-out infinite;
  transition: transform .7s var(--ease), opacity .6s;
}
@keyframes wiggle { 0%,86%,100% { rotate: 0deg; } 90% { rotate: -6deg; } 94% { rotate: 5deg; } }
.gift-prompt { margin: 0; display: flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }
.tap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 0 rgba(142,34,56,.5); animation: ping 1.6s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 12px rgba(142,34,56,0); } }

/* untied */
.gift.untied .bow { animation: none; transform: scale(.2) rotate(40deg); opacity: 0; }
.gift.untied .rv-top { transform: translateY(-105%); }
.gift.untied .rv-bot { transform: translateY(105%); }
.gift.untied .rh-l { transform: translateX(-105%); }
.gift.untied .rh-r { transform: translateX(105%); }
.gift.untied .gc-kicker { transform: none; transition: transform .8s var(--ease) .4s; }
.gift.untied .gift-card { cursor: default; }
.gift.untied .gift-prompt { visibility: hidden; }

.reception { padding-top: 10px; }
.r-in { opacity: 0; transform: translateY(24px); }
.reception.open .r-in { animation: rise .9s var(--ease) forwards; }
.reception.open .r-in:nth-child(2) { animation-delay: .12s; }
.reception.open .r-in:nth-child(3) { animation-delay: .24s; }
.reception.open .r-in:nth-child(4) { animation-delay: .36s; }
.reception.open .r-in:nth-child(5) { animation-delay: .46s; }
.reception.open .r-in:nth-child(6) { animation-delay: .56s; }
.reception.open .r-in:nth-child(n+7) { animation-delay: .66s; }
.invite-msg { margin: 0 auto 6px; max-width: 26em; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 4.6vw, 1.35rem); font-weight: 500; }
.invite-msg--soft { color: var(--muted); font-size: clamp(1.02rem, 4vw, 1.15rem); }

/* ---------- compact both-dates summary ---------- */
.summary { margin-top: clamp(56px, 10vh, 90px); padding-top: 36px; border-top: 1px solid rgba(168,125,52,.35); }
.sum-title { margin: 0 0 20px; font-family: var(--sans); font-size: .86rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); }
.sum-grid { display: grid; gap: 14px; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 560px) { .sum-grid { grid-template-columns: 1fr 1fr; } }
.sum-card { position: relative; padding: 20px 18px 18px; border-radius: 16px; display: grid; gap: 2px; align-content: start; }
.sum-card h4 { margin: 2px 0 6px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.sum-num { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.sum-date { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.sum-date b { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; }
.sum-time { margin: 0; font-weight: 700; letter-spacing: .08em; }
.sum-venue { margin: 4px 0 14px; color: var(--muted); font-size: .92rem; }
.sum-card .btn { justify-self: start; }
.sum-card--church { background: linear-gradient(160deg, #fdfdfb, var(--sky)); border: 1px solid rgba(60,85,96,.3); color: var(--slate); }
.sum-card--church h4, .sum-card--church .sum-date b { color: var(--slate); }
.sum-card--recep { background: linear-gradient(160deg, #fffaf6, var(--blush-2)); border: 1px solid rgba(142,34,56,.3); color: var(--wine); }
.sum-card--recep h4, .sum-card--recep .sum-date b { color: var(--wine); }
.sum-card .sum-time, .sum-card .sum-date { color: var(--ink); }
.closing { margin: 40px 0 24px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.sig { font-family: var(--script); font-style: normal; font-size: 2.2rem; color: var(--gold); line-height: 1.4; }
#replay { margin-bottom: 30px; }

/* replay fade */
main, .rail { transition: opacity .45s ease; }
body.resetting main, body.resetting .rail { opacity: 0; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  html { scroll-behavior: auto; }
  .s1-track { height: auto; }
  .s1-stage { position: relative; height: auto; min-height: 100svh; }
}
