/* =========================================================
   Cottagecore Wedding — styles.css
   Layout: camera opener on a wooden wall; then a photo strip
   pinned beside an ivory invitation card. Wood, moss, garland
   and florals are painted on a fixed canvas behind everything.
   ========================================================= */

:root {
  color-scheme: light;

  /* Palette from the mood board */
  --sage:        #8f9e84;
  --sage-dark:   #5e6b55;
  --ivory:       #f4eee3;
  --paper:       #fbf7ef;
  --rose:        #cc9893;
  --rose-dark:   #a96f6b;
  --champagne:   #e9d6ab;
  --gold:        #b8955a;
  --gold-dark:   #8f6f3e;
  --taupe:       #c5bbae;
  --ink:         #3f372f;
  --muted:       #7b7066;
  --wood:        #2c1f16;

  --font-serif:  "Cormorant Garamond", Georgia, serif;
  --font-caps:   "Playfair Display", Georgia, serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", "Snell Roundhand", cursive;

  --shadow-soft: 0 18px 40px rgba(30, 20, 12, 0.45), 0 3px 8px rgba(30, 20, 12, 0.25);
  --foil: linear-gradient(135deg, #f3e3bb 0%, #c9a865 30%, #a8853f 55%, #e7d29f 80%, #b8955a 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--wood);
  overflow-x: hidden;
}

[hidden] { display: none !important; }
html { overflow-x: clip; }
.reveal { overflow-x: clip; }

/* ---------- Painted backdrop ---------- */
.garden {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ---------- Foliage curtains ---------- */
.curtain {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  will-change: transform, opacity;
}
.curtain--l { transform-origin: 0 100%; }
.curtain--r { transform-origin: 100% 100%; }

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  margin: 0;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--ivory);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
.scroll-cue span { font-style: normal; font-size: 1.6rem; line-height: 0.6; animation: nudge 1.8s ease-in-out infinite; }
.is-revealed .scroll-cue { display: flex; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ---------- Vintage film look ---------- */
/* The colour grade is baked into the canvases by script; these overlays
   use normal blending so phones can composite them cheaply. */

.tone {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(25, 12, 4, 0) 45%, rgba(25, 12, 4, 0.5) 100%),
    rgba(150, 100, 45, 0.1);
}
.leak {
  position: fixed;
  inset: 0;
  z-index: 56;
  pointer-events: none;
  background:
    radial-gradient(circle at 100% 8%, rgba(255, 165, 90, 0.22), rgba(255, 165, 90, 0) 38%),
    radial-gradient(circle at 0% 100%, rgba(255, 205, 130, 0.12), rgba(255, 205, 130, 0) 35%);
}
.dust {
  position: fixed;
  inset: 0;
  z-index: 57;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
}
.dust::before {
  content: "";
  position: absolute;
  inset: -512px;
  background-image: var(--dust-tex, none);
  background-size: 512px 512px;
  will-change: transform;
  animation: reel 0.9s steps(1) infinite;
}
@keyframes reel {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-173px, 211px, 0); }
  50%  { transform: translate3d(97px, -314px, 0); }
  75%  { transform: translate3d(-261px, -89px, 0); }
}

/* ---------- Aged paper (shared) ---------- */
.sign,
.details,
.strip {
  background-color: #efe3c8 !important;
  background-image: var(--paper-tex, none) !important;
  background-size: cover !important;
  background-position: center !important;
}
.sign,
.details { box-shadow: var(--shadow-soft), inset 0 0 46px rgba(120, 78, 30, 0.32); }
.strip   { box-shadow: var(--shadow-soft), inset 0 0 26px rgba(120, 78, 30, 0.3); }

/* brass photo corners */
.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  z-index: 2;
  background: linear-gradient(135deg, #f4e2b4 0%, #c49a52 35%, #8a6631 70%, #b98f4c 100%);
  box-shadow: 0 2px 3px rgba(40, 25, 10, 0.45);
}
.corner--tl { top: 0;    left: 0;  clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner--tr { top: 0;    right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner--bl { bottom: 0; left: 0;  clip-path: polygon(0 0, 0 100%, 100% 100%); }
.corner--br { bottom: 0; right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ---------- Photographic grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-size: 180px 180px;
}

/* ---------- Flash ---------- */
.flash {
  position: fixed;
  inset: 0;
  background: #fffdf8;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}
.flash.is-firing { animation: flash 900ms ease-out forwards; }

@keyframes flash {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  45%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- Floral arrangements (painted images) ---------- */
.bouquet {
  position: absolute;
  width: clamp(120px, 30vw, 190px);
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* =========================================================
   INTRO / CAMERA
   ========================================================= */
.intro {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  padding-block: 6rem 2.5rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  text-align: center;
}

/* Hanging ivory card */
.sign {
  position: relative;
  padding: 1.3rem 2.6rem 1.4rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.7), transparent 60%),
    var(--paper);
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
}
.sign::after {          /* gold foil inner border */
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px solid transparent;
  border-image: var(--foil) 1;
  pointer-events: none;
}
.sign__ribbon {
  position: absolute;
  bottom: 100%;
  width: 6px;
  height: 70px;
  background: linear-gradient(90deg, #d9c193, #f3e6c8 45%, #c9ad74);
  box-shadow: 1px 1px 2px rgba(0,0,0,0.25);
}
.sign__ribbon--l { left: 20%; transform: rotate(14deg); transform-origin: bottom; }
.sign__ribbon--r { right: 20%; transform: rotate(-14deg); transform-origin: bottom; }

.sign .bouquet { top: -46px; left: -52px; width: 132px; rotate: -10deg; }

.intro__eyebrow {
  font-family: var(--font-caps);
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.intro__title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.8rem, 11vw, 4.6rem);
  line-height: 1.15;
  color: var(--rose-dark);
}

.intro__hint {
  margin: 0;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
  text-shadow: 0 2px 8px rgba(20, 12, 6, 0.85);
  animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

/* --- Vintage brass & leather camera --- */
.camera {
  --w: min(300px, 76vw);
  position: relative;
  width: var(--w);
  aspect-ratio: 300 / 220;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 22px 22px rgba(20, 12, 6, 0.55));
}
.camera:hover         { transform: translateY(-3px); }
.camera:focus-visible { outline: 2px solid var(--champagne); outline-offset: 14px; border-radius: 16px; }

.camera__top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20%;
}

.camera__viewfinder {
  position: absolute;
  left: 10%; bottom: 0;
  width: 24%; height: 78%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #f2e4c2, #c8aa6e 45%, #9a7a45);
  border-radius: 7px 7px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.camera__viewfinder::after {
  content: "";
  position: absolute;
  inset: 26% 20%;
  border-radius: 3px;
  background: radial-gradient(circle at 30% 30%, #8d9a97, #232a29 60%, #0c0f0e);
  box-shadow: 0 0 0 2px #7a5f35, inset 0 1px 3px rgba(0,0,0,0.6);
}

.camera__flashbulb {
  position: absolute;
  left: 42%; bottom: 0;
  width: 19%; height: 92%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.55) 0 2px, rgba(225,214,190,0.35) 2px 4px),
    linear-gradient(180deg, #fffdf7, #e8dbbf);
  border: 3px solid #b8955a;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
}

.camera__shutter {
  position: absolute;
  right: 13%; bottom: 0;
  width: 11%; height: 46%;
  background: radial-gradient(circle at 40% 25%, #fbefcd, #c9a865 45%, #7d6034);
  border-radius: 45% 45% 3px 3px;
  box-shadow: inset 0 -2px 3px rgba(0,0,0,0.3);
  transition: height 0.12s ease;
}

.camera__body {
  position: absolute;
  top: 20%; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #f4e7c6 0%, #d8bc84 14%, #b8955a 50%, #96773f 86%, #c4a66c 100%);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    inset 0 -3px 5px rgba(0,0,0,0.3);
  overflow: hidden;
}

.camera__leather {
  position: absolute;
  left: 0; right: 0;
  top: 17%; bottom: 14%;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.10) 0.8px, transparent 1.2px) 0 0 / 4px 4px,
    radial-gradient(circle at 3px 2px, rgba(0,0,0,0.18) 0.8px, transparent 1.4px) 0 0 / 5px 5px,
    linear-gradient(180deg, #6b7a61, #55634c 50%, #46523f);
  box-shadow:
    inset 0 3px 4px rgba(0,0,0,0.45),
    inset 0 -2px 3px rgba(0,0,0,0.3);
}

.camera__lens {
  position: absolute;
  top: 52%; left: 50%;
  width: 54%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(#7d6034 0 3deg, #d8bd86 3deg 6deg);
  box-shadow:
    0 10px 18px rgba(0,0,0,0.45),
    inset 0 0 0 3px #6c522c,
    inset 0 0 0 5px rgba(255,240,200,0.35);
}
.camera__lens-ring {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle,
    #1a1816 50%, #c9ad74 51.5%, #f3e3bb 54%, #8f7040 59%,
    #22201c 63%, #3a342c 90%, #6c5a3e 100%);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}
.camera__lens-glass {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95) 0 4%, rgba(255,255,255,0) 10%),
    radial-gradient(circle at 66% 70%, rgba(210,175,200,0.4) 0 7%, rgba(0,0,0,0) 18%),
    radial-gradient(circle at 45% 40%, rgba(120,170,160,0.35) 0 20%, rgba(0,0,0,0) 45%),
    radial-gradient(circle, #34404d 0%, #121820 55%, #040506 100%);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.85), 0 0 0 2px #0b0b0b;
}

.camera__badge {
  position: absolute;
  top: 3%; right: 6%;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: #6c522c;
  text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}

/* Shutter press */
.camera.is-snapping { transform: scale(0.97); }
.camera.is-snapping .camera__shutter { height: 22%; }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  min-height: calc(100vh + 260px);
  padding-block: clamp(6rem, 10vw, 7.5rem) 5rem;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Photo strip ---------- */
.strip {
  position: sticky;
  top: 6rem;
  width: 210px;
  max-width: 100%;
  padding: 14px 14px 12px;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(255,255,255,0.8), transparent 60%),
    var(--paper);
  box-shadow: var(--shadow-soft);
  rotate: -2.5deg;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* brass pin */
.strip::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 16px; height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbefcd, #c9a865 45%, #6d532c);
  box-shadow: 0 3px 4px rgba(0,0,0,0.45);
}
.strip .bouquet { bottom: -40px; right: -62px; width: 140px; rotate: 6deg; }

.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  overflow: hidden;
  background: var(--ivory);
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo { border-radius: 6px; }
.photo img { filter: sepia(0.35) contrast(1.05) saturate(0.85); }
.photo--placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #b9a88b 0%, #8a7559 70%, #5d4b36 100%);
  box-shadow: inset 0 0 0 1px rgba(60,40,20,0.4), inset 0 0 26px rgba(30,18,8,0.55);
}
.photo--placeholder span { color: #f1e6cf !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.photo--placeholder span {
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.strip__caption {
  font-family: var(--font-caps);
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- Invitation card ---------- */
.details {
  position: relative;
  min-width: 0;
  padding: clamp(2.6rem, 5vw, 3.4rem) clamp(1.5rem, 5vw, 3.6rem);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.75), transparent 55%),
    var(--paper);
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
}
.details::before {        /* gold foil inner border */
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px solid transparent;
  border-image: var(--foil) 1;
  pointer-events: none;
}
.details > .bouquet--tl { top: -56px; left: -58px; rotate: -16deg; }
.details > .bouquet--br { bottom: -54px; right: -56px; rotate: 164deg; }

.details__eyebrow {
  font-family: var(--font-caps);
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.details__names {
  text-shadow: 0 1px 0 rgba(255,250,235,0.6);
  margin: 0.15em 0 0.1em;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 5rem);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.details__names .amp { color: var(--rose-dark); }

.details__lede {
  margin: 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
}

/* ornament */
.divider--small { margin: 1.4rem 0 0.4rem; }
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0;
  color: var(--gold);
  font-size: 0.9rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 2.2rem;
}
.info__item {
  padding: 1rem 0.9rem;
  border-top: 1px solid rgba(184, 149, 90, 0.55);
  border-bottom: 1px solid rgba(184, 149, 90, 0.55);
  background: rgba(233, 214, 171, 0.14);
}
.info dt {
  font-family: var(--font-caps);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.info dd {
  margin: 0.4rem 0 0;
  font-weight: 600;
}
.muted { color: var(--muted); font-weight: 400; font-size: 0.95em; }

.block { margin-bottom: 1.8rem; max-width: 62ch; }
.block h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-script);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--sage-dark);
}
.block p { margin: 0 0 0.8rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: linear-gradient(180deg, #6b795f, #55634c);
  border: 1px solid #46523f;
  border-radius: 2px;
  box-shadow: inset 0 0 0 3px rgba(233,214,171,0.35), 0 4px 10px rgba(40,30,20,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover  { transform: translateY(-1px); box-shadow: inset 0 0 0 3px rgba(233,214,171,0.5), 0 6px 14px rgba(40,30,20,0.3); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.signoff {
  margin: 2.5rem 0 1rem;
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--rose-dark);
}

.replay {
  padding: 0.4rem 0;
  border: 0;
  background: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  cursor: pointer;
}
.replay:hover { color: var(--rose-dark); }

/* ---------- Reveal animations ---------- */
.is-revealed .strip   { animation: print 1.1s cubic-bezier(.2,.8,.3,1) both; }
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #2e2114;
  opacity: 0;
  pointer-events: none;
}
.is-revealed .photo::after { animation: develop 2.2s ease-out both; }
.is-revealed .photo:nth-child(2)::after { animation-delay: 0.25s; }
.is-revealed .photo:nth-child(3)::after { animation-delay: 0.5s; }
.is-revealed .photo:nth-child(4)::after { animation-delay: 0.75s; }
.is-revealed .photo:nth-child(5)::after { animation-delay: 1s; }
.is-revealed .details { animation: rise 0.9s ease-out 0.4s both; }

@keyframes print {
  from { transform: translateY(-60px) scale(0.92); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes develop {
  from { opacity: 0.92; }
  to   { opacity: 0; }
}
@keyframes rise {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .info { grid-template-columns: 1fr 1fr; }
  .info__item:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 1.08rem; }

  .intro { padding-block: 5.5rem 2rem; }
  .sign { padding: 1.2rem 1.8rem 1.3rem; }
  .sign .bouquet { top: -40px; left: -34px; width: 112px; }

  .reveal {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4rem;
    padding-block: 5.5rem 4rem;
    text-align: center;
  }

  .strip {
    position: relative;
    top: 0;
    width: min(200px, 60vw);
    rotate: -2deg;
  }
  .strip .bouquet { right: -46px; width: 116px; }

  .details { width: 100%; padding-top: 3rem; }
  .details::before { inset: 8px; }
  .details > .bouquet--tl { top: -48px; left: -20px; width: 116px; }
  .details > .bouquet--br { bottom: -44px; right: -18px; width: 116px; }

  .info { grid-template-columns: 1fr; }
  .info__item:last-child { grid-column: auto; }

  .block { text-align: left; margin-inline: auto; }
  .block h3 { text-align: center; }
  .block .btn { display: block; width: fit-content; margin: 0 auto; }
}

/* ---------- Canon FTb camera (photo) ---------- */
.camera {
  --w: min(330px, 82vw);
  aspect-ratio: 760 / 476;
  filter: drop-shadow(0 22px 20px rgba(15, 8, 3, 0.6)) drop-shadow(0 4px 5px rgba(15, 8, 3, 0.4));
}
.camera__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
/* glint across the lens when the shutter fires */
.camera__flashglow {
  position: absolute;
  left: 42%;
  top: 41.8%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fffef8 0%, rgba(255, 244, 215, 0.85) 35%, rgba(255, 230, 190, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.camera.is-snapping .camera__flashglow { animation: bulb 0.5s ease-out forwards; }

@keyframes bulb {
  0%   { opacity: 0; transform: scale(1); }
  30%  { opacity: 1; transform: scale(1.8); }
  100% { opacity: 0.7; transform: scale(2.4); }
}


/* =========================================================
   Bolder, larger type + Spanish translations
   ========================================================= */
body { font-size: 1.32rem; font-weight: 600; line-height: 1.55; }
.details p, .details dd, .block p { font-weight: 600; }

.intro__eyebrow, .details__eyebrow, .info dt, .strip__caption {
  font-family: var(--font-caps);
  font-weight: 700;
  letter-spacing: 0.22em;
}
.intro__eyebrow  { font-size: 1rem; }
.details__eyebrow { font-size: 0.95rem; }
.info dt { font-size: 0.9rem; }

.intro__title    { font-size: clamp(3.4rem, 14vw, 5.6rem); }
.details__names  { font-size: clamp(3.6rem, 12vw, 6rem); font-weight: 400; }
.details__lede   { font-size: 1.45rem; font-weight: 600; }
.intro__hint     { font-size: 1.55rem; font-weight: 600; }
.info dd         { font-size: 1.3rem; font-weight: 700; }
.muted           { font-weight: 600; }

.block h3,
.rsvp-band h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.3rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--sage-dark);
}
.signoff { font-size: 2.8rem; margin-bottom: 0.2rem; }

/* Spanish lines */
.es {
  display: block;
  margin-top: 0.15em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.72em;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  opacity: 0.95;
}
.intro__eyebrow .es,
.details__eyebrow .es,
.info dt .es,
.strip__caption .es { letter-spacing: 0.06em; font-size: 0.95em; }
.intro__hint .es,
.scroll-cue .es { color: var(--ivory); opacity: 0.85; }
.scroll-cue .es { font-size: 0.8em; }
.es--title { margin: -0.2rem 0 0.2rem; font-size: 1.15rem; }
.es--signoff { margin-bottom: 1.2rem; font-size: 1.05rem; }
.block h3 + .es,
.rsvp-band h3 + .es { margin: 0 0 0.6rem; font-size: 1.02rem; }
.block p .es { font-size: 0.82em; margin-top: 0.5em; }
.info dd .es { font-weight: 500; font-size: 0.72em; }
.info .muted { display: block; margin-top: 0.4rem; }
.replay .es { font-size: 0.85em; }

/* RSVP band at the top of the invitation */
.rsvp-band {
  margin: 0 0 2rem;
  padding: 1.3rem 1rem 1.5rem;
  text-align: center;
  border-top: 1.5px solid rgba(184, 149, 90, 0.7);
  border-bottom: 1.5px solid rgba(184, 149, 90, 0.7);
  background: rgba(233, 214, 171, 0.22);
}
.rsvp-band h3 { margin: 0; }
.rsvp-band p { margin: 0 0 1rem; }
.rsvp-band p .es { font-size: 0.82em; }
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.8rem 2.6rem;
}
.btn__es {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: none;
  opacity: 0.9;
}
.block .btn { display: inline-flex; }

/* =========================================================
   Live countdown (vintage flip clock)
   ========================================================= */
.countdown {
  margin: 2.2rem 0 0.4rem;
  text-align: center;
}
.countdown__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4.6vw, 1.55rem);
  color: var(--sage-dark);
}
.countdown__title .es { font-family: var(--font-serif); }
.countdown__clock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.25rem, 1.6vw, 0.7rem);
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.cd-tile {
  position: relative;
  display: block;
  min-width: 2.1ch;
  padding: 0.28em 0.22em 0.22em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 8.6vw, 2.9rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: #f3e3bb;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, #3b4733 0%, #2c3626 49.5%, #1f271b 50.5%, #2b3525 100%);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1.5px rgba(201, 168, 101, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 12px rgba(30, 20, 10, 0.35);
  transform-origin: 50% 50%;
}
.cd-tile::after {               /* split line of the flip card */
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cd-tile.is-flip { animation: flip 0.45s ease-out; }
@keyframes flip {
  0%   { transform: perspective(300px) rotateX(-70deg); filter: brightness(0.6); }
  100% { transform: perspective(300px) rotateX(0); filter: none; }
}
.cd-sep {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  line-height: 1.5;
  color: var(--gold-dark);
}
.cd-label {
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: clamp(0.62rem, 2.4vw, 0.8rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.cd-label .es { font-size: 1em; letter-spacing: 0.04em; text-transform: none; }
.countdown__note {
  margin: 1rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.countdown.is-done .countdown__clock { display: none; }

/* =========================================================
   Notes + suggested hotels
   ========================================================= */
.notes {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.notes li {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 600;
  text-align: left;
}
.notes li::before {
  content: "❦";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--gold);
}
.notes strong { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.notes .es { font-size: 0.82em; margin-top: 0.4em; }

.hotels__title {
  margin: 1.4rem 0 0.7rem;
  font-family: var(--font-caps);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-dark);
}
.hotels__title .es { letter-spacing: 0.04em; text-transform: none; font-size: 1.05em; }
.hotels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.hotel {
  min-width: 0;
  padding: 0.9rem 1rem 0.8rem;
  text-align: left;
  border: 1px solid rgba(184, 149, 90, 0.5);
  border-radius: 4px;
  background: rgba(233, 214, 171, 0.18);
}
.hotel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.hotel__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(184, 149, 90, 0.7);
  text-underline-offset: 3px;
}
.hotel__name:hover { color: var(--rose-dark); }
.hotel__name:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hotel__price {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}
.block .hotel p { margin: 0.35rem 0 0; font-size: 1.02rem; }
.block .hotel__addr { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.block .hotels__legend { margin-top: 0.8rem; font-size: 0.9rem; color: var(--muted); text-align: center; }
@media (min-width: 900px) {
  .hotels { grid-template-columns: 1fr 1fr; }
}

/* Couple's names and the lines around them sit centred on every screen size */
.details__eyebrow,
.details__names,
.details__lede {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  .dust { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
