/* =========================================================
   InviteUtsav — Letter Theme family: Our Journey + Pre-Wedding Video
   sections. Neither section exists in any of the 7 source themes —
   built once here, shared by all of them, using ONLY the design tokens
   each theme's own css/templates/{slug}.css already defines
   (--color-primary/--color-accent/--font-heading/--sp-*/--radius-lg/
   --shadow-card/--ease etc.) so it re-skins automatically per theme with
   no per-theme CSS needed. Card treatment deliberately mirrors
   .venue-card / .ceremony (same radius/shadow/hover-scale language) so
   these two new sections read as part of the original design, not a
   bolted-on addition.
   ========================================================= */

/* ---------- OUR JOURNEY ---------- */
.journey__timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-7);
  text-align: left;
}
.journey-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition), transform var(--transition);
}
.journey-item.is-visible { opacity: 1; transform: translateY(0); }
.journey-item__media { aspect-ratio: 1/1; overflow: hidden; }
.journey-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.journey-item:hover .journey-item__media img { transform: scale(1.06); }
.journey-item__body { padding: var(--sp-5); }
.journey-item__year {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
}
.journey-item__title { font-family: var(--font-heading); font-size: 1.25rem; color: var(--color-primary); margin-bottom: var(--sp-2); }
.journey-item__desc { color: var(--color-muted); font-size: .92rem; line-height: 1.65; }

/* ---------- PRE-WEDDING VIDEO ---------- */
.video__frame {
  max-width: 780px;
  margin: var(--sp-7) auto 0;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-text);
}
.video__frame iframe { width: 100%; height: 100%; border: none; display: block; }
.video-poster {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-poster__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform var(--dur-fast, .25s) var(--ease);
}
.video-poster:hover .video-poster__play,
.video-poster:focus-visible .video-poster__play { transform: scale(1.08); }

/* ---------- INVITE CREDIT (replaces the old plain .closing__brand link,
   which is why each of the 7 skin CSS files still had its own
   .closing__brand rule removed alongside this) ---------- */
.invite-credit { position: relative; z-index: 1; display: inline-block; margin-top: var(--sp-6); font-size: .78rem; color: var(--color-muted); text-align: center; }
.invite-credit p { margin: 0 0 .5rem; }
.invite-credit strong { color: var(--color-primary); }
.invite-credit__links { display: flex; gap: 16px; justify-content: center; }
.invite-credit__links a { color: var(--color-primary); opacity: .8; transition: opacity var(--dur-fast, .25s) var(--ease); }
.invite-credit__links a:hover, .invite-credit__links a:focus-visible { opacity: 1; }
.video-poster__play svg { width: 20px; height: 20px; margin-left: 3px; }

/* ---------- WHATSAPP RSVP (shown after a guest's RSVP saves) ---------- */
.guest-form__whatsapp { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }
.whatsapp-rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-accent);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--dur-fast, .25s) var(--ease), box-shadow var(--dur-fast, .25s) var(--ease);
}
.whatsapp-rsvp-btn:hover, .whatsapp-rsvp-btn:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* Save the date: the line under "A Date To Remember" that tells guests how to open the hearts (every letter-style design; colours follow the section's own light text).
   Phones and tablets (touch, no hover) read "Tap the Heart to Reveal", computers read "Click the Heart to Reveal". It fades away once the card is open. */
.scratch-hint-line { margin: calc(var(--sp-2) * -1) auto var(--sp-5); max-width: 34ch; font-family: var(--font-accent); font-size: .95rem; line-height: 1.5; letter-spacing: .04em; text-align: center; color: rgba(255,255,255,.92); transition: opacity .6s ease, visibility .6s ease; }
.scratch-hint-line__tap { display: none; }
.scratch-hint-line__click { display: inline; }
@media (hover: none) and (pointer: coarse) {
  .scratch-hint-line__tap { display: inline; }
  .scratch-hint-line__click { display: none; }
}
.is-date-revealed .scratch-hint-line { opacity: 0; visibility: hidden; }

/* The scratch card opens with one tap or click: each heart's foil fades and lifts away in 0.7s. */
#scratchCard:not(.is-revealed) { cursor: pointer; }
#scratchCard[role="button"]:focus-visible { outline: 2px solid rgba(255,255,255,.85); outline-offset: 6px; border-radius: 18px; }
.date-heart__canvas { transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.date-heart__canvas.is-revealed { opacity: 0; transform: scale(1.18); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .date-heart__canvas { transition: opacity .2s linear; }
  .date-heart__canvas.is-revealed { transform: none; }
}

/* Ceremony cards (every letter-style design, custom versions included): date/time line and venue sizes. */
.ceremony__meta {
  font-size: 0.9rem;
}

.ceremony__venue {
  font-size: 1rem;
  font-weight: 500;
}

/* ============ Stay & Accommodation — cards on the page (replaces the old popup) ============
   Colours, fonts, radius and shadow come from each design's own variables, so every letter design keeps its own look. */
.stay .stay-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5, 1.25rem); max-width: 1040px; margin: var(--sp-6, 2rem) auto 0; padding: 0 var(--sp-4, 1rem); }
.stay-card { flex: 0 1 320px; width: min(100%, 320px); display: flex; flex-direction: column; text-align: center; overflow: hidden;
  background: var(--color-surface, #fff); border-radius: var(--radius, 16px); box-shadow: var(--shadow-card, 0 8px 24px rgba(0,0,0,.08));
  border: 1px solid rgba(0,0,0,.06); border: 1px solid color-mix(in srgb, var(--color-accent, #b89b62) 30%, transparent); }
.stay-card__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.stay-card__body { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; padding: 18px 18px 22px; min-width: 0; }
.stay-card__name { margin: 0; font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-primary); overflow-wrap: anywhere; }
.stay-card__loc { margin: 0 0 6px; font-size: .85rem; color: var(--color-muted); overflow-wrap: anywhere; }
.stay-card__distance { margin: 0 0 6px; font-size: .78rem; font-weight: 600; color: var(--color-secondary, var(--color-primary)); }
.stay-card__dir { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.stay-card__pin { flex: none; }

/* =========================================================
   SCROLL FIX (all letter themes) - Android touch scrolling
   Each letter theme set overflow-x:hidden on BOTH <html> and <body>.
   On Android browsers that makes <body> a second scroll box inside the
   viewport, so touch scrolling can stick or stop. Themes that scroll
   fine use only one of them or overflow-x:clip. `clip` hides sideways
   overflow without creating a scroll container.
   ========================================================= */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
/* While the opening curtain is up, lock the real page scroller (<html>);
   locking only <body> does nothing once <html> has its own overflow. */
html.curtain-lock { overflow: hidden; overscroll-behavior: none; }