/* Tami & Stav: cherry blossom invitation */
@font-face {
  font-family: "OzTemple";
  src: url("assets/fonts/OzTemple-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #FFFBF0;
  --ink: #1B3F8B;
  --ink-soft: #5F759F;
  --hair: #E9DDBE;
  --rose: #E3A917;
  --glow: #fbf3ec;
  --font-he: "OzTemple", "Assistant", "Heebo", "Arial Hebrew", sans-serif;
  --font-la: "Didot", "GFS Didot", "Bodoni Moda", "Times New Roman", serif;
  --vh: 100vh;
  --col: min(100vw, 30rem);
  --ease: cubic-bezier(.22, .8, .24, 1);
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-he);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html.is-locked, html.is-locked body { overflow: hidden; overscroll-behavior: none; }
html.is-locked .intro { touch-action: none; }

img, video { display: block; max-width: 100%; }
h1, h2, p, ol { margin: 0; padding: 0; font-weight: 400; }
ol { list-style: none; }
button { font: inherit; color: inherit; }
[lang="en"] { font-family: var(--font-la); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* watercolor art is painted on white: multiply drops the white onto the paper */
.art { mix-blend-mode: multiply; pointer-events: none; user-select: none; }

.petals {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 40; pointer-events: none;
}
.flash {
  position: fixed; inset: 0; z-index: 60;
  background: var(--glow);
  opacity: 0; pointer-events: none;
  transition: opacity .9s ease;
}
.flash.is-on { opacity: 1; }
.flash.is-slow { transition-duration: 1.8s; }

/* ---------- 1. Envelope ---------- */
.intro {
  position: relative;
  height: 100vh; height: var(--vh);
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}
.stage {
  position: absolute; top: 50%; left: 50%;
  width: max(100vw, 56.25vh);
  width: max(100vw, calc(var(--vh) * .5625));
  aspect-ratio: 9 / 16;
  transform: translate(-50%, -50%);
  transition: transform 2.2s var(--ease);
}
.stage__img, .stage__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; max-width: none;
}
.stage__video { opacity: 0; }
.intro.is-playing .stage__video { opacity: 1; }
.intro.no-video .stage__video { display: none; }
.intro.is-zooming .stage { transform: translate(-50%, -50%) scale(1.35); }

.seal {
  position: absolute; left: 50%; top: 50%;
  width: 30%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.seal::before, .seal::after {
  content: ""; position: absolute; inset: -4%;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 244, .95);
  box-shadow: 0 0 18px rgba(255, 244, 230, .7);
  opacity: 0;
  animation: pulse 2.8s var(--ease) infinite;
}
.seal::after { animation-delay: 1.4s; }
@keyframes pulse {
  0% { transform: scale(.94); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: scale(1.45); opacity: 0; }
}
.seal-hint {
  position: absolute; left: 0; right: 0; top: 62%;
  text-align: center;
  font-size: clamp(.95rem, 4.2vw, 1.15rem);
  letter-spacing: .14em;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 0, 0, .75), 0 0 4px rgba(0, 0, 0, .7);
  animation: hint 1.4s ease 1s both;
}
@keyframes hint { from { opacity: 0; transform: translateY(6px); } to { opacity: .92; transform: none; } }
.intro.is-opening .seal, .intro.is-opening .seal-hint {
  opacity: 0; pointer-events: none; transition: opacity .4s ease; animation: none;
}

/* ---------- shared type ---------- */
.eyebrow {
  font-size: .95rem;
  letter-spacing: .42em;
  margin-inline-end: -.42em;       /* optical centring of tracked text */
  color: var(--ink-soft);
}
.orn {
  display: block; width: 7.5rem; height: 13px; margin: 1.1rem auto;
  background:
    radial-gradient(circle, var(--rose) 0 2.5px, transparent 3px) center / 13px 13px no-repeat,
    linear-gradient(var(--hair), var(--hair)) left center / calc(50% - 14px) 1px no-repeat,
    linear-gradient(var(--hair), var(--hair)) right center / calc(50% - 14px) 1px no-repeat;
}
.names {
  font-family: var(--font-la);
  font-size: clamp(2.9rem, 14.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: .01em;
  white-space: nowrap;
}
.names .amp { color: var(--rose); font-style: italic; padding-inline: .06em; }
.names--sm { font-size: clamp(2.3rem, 11vw, 3.3rem); }

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  width: var(--col);
  margin-inline: auto;
  padding: calc(var(--col) * .47) 0 7rem;
  text-align: center;
}
.hero__arch { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.hero__text { position: relative; width: 88%; margin-inline: auto; }
.hero .names { font-size: clamp(2.6rem, 12.6vw, 3.9rem); }
.hero .lead { margin-top: 1.6rem; }
.bsd { display: none; }
.hero__date {
  font-size: clamp(1.25rem, 5.6vw, 1.6rem);
  letter-spacing: .2em;
}
.scroll-cue {
  position: absolute; bottom: 1.75rem; left: 50%;
  width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid var(--ink-soft); border-radius: 14px;
  opacity: .9;
}
.scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--rose);
  animation: cue-wheel 1.8s ease-in-out infinite;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; bottom: -15px;
  width: 8px; height: 8px; margin-left: -4px;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  animation: cue-chev 1.8s ease-in-out infinite;
}
@keyframes cue-wheel { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(15px); opacity: 0; } 100% { transform: translateY(15px); opacity: 0; } }
@keyframes cue-chev { 0%, 100% { opacity: .35; transform: translateY(-2px) rotate(45deg); } 60% { opacity: 1; transform: translateY(2px) rotate(45deg); } }

/* ---------- blocks ---------- */
.block {
  width: var(--col);
  margin-inline: auto;
  padding: 2.5rem 1.75rem;
  text-align: center;
}
.lead { font-size: clamp(1.3rem, 5.6vw, 1.55rem); line-height: 1.75; }
.day { font-size: clamp(1.5rem, 6.4vw, 1.8rem); }
.hebdate { font-size: clamp(1.15rem, 5vw, 1.35rem); color: var(--ink-soft); }

.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 2rem auto 0; max-width: 22rem;
}
.cd { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.cd + .cd { border-inline-start: 1px solid var(--hair); }
.cd__n {
  font-size: clamp(2rem, 10vw, 2.8rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  direction: ltr; unicode-bidi: isolate;
}
.cd__l { font-size: .9rem; letter-spacing: .08em; color: var(--ink-soft); }

/* ---------- 4. Place ---------- */
.place__art { width: calc(100% + 2rem); max-width: none; margin: .5rem -1rem 1rem; height: auto; }
.venue { font-size: clamp(2.1rem, 9.5vw, 2.8rem); line-height: 1.2; }
.area { font-size: clamp(1.15rem, 5vw, 1.35rem); color: var(--ink-soft); }
.actions { display: grid; gap: .75rem; max-width: 17rem; margin: 2.25rem auto 0; }
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .6rem 1.25rem;
  border: 1px solid var(--hair); border-radius: 0;
  background: rgba(255, 252, 248, .45);
  color: var(--ink); font-family: var(--font-he); font-size: 1.05rem; letter-spacing: .08em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .3s ease, border-color .3s ease;
}
.btn [lang="en"] { letter-spacing: .06em; font-size: 1.05em; }
.btn:hover { background: color-mix(in srgb, var(--rose) 14%, transparent); border-color: var(--rose); }
.btn:active { background: color-mix(in srgb, var(--rose) 24%, transparent); }

/* ---------- 5. Timeline ---------- */
.timeline {
  position: relative;
  width: max-content; max-width: 100%;
  margin: 2.5rem auto 0;
  padding-inline-start: 2.75rem;
  text-align: start;
}
.timeline::before {
  content: ""; position: absolute; top: .9rem; bottom: 1.6rem;
  inset-inline-start: .55rem; width: 1px;
  background: linear-gradient(var(--hair), var(--hair) 80%, transparent);
}
.tl { position: relative; display: grid; padding-bottom: 2.75rem; }
.tl:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute; top: .55rem; inset-inline-start: -2.75rem;
  width: 1.1rem; height: 1.1rem; margin-inline-start: .025rem;
  border: 1px solid var(--rose); background: var(--paper);
  transform: rotate(45deg);
}
.tl__dot::after {
  content: ""; position: absolute; inset: 30%;
  background: var(--rose); border-radius: 50%;
}
.tl__time {
  font-size: clamp(2.4rem, 11vw, 3rem); line-height: 1.1;
  font-variant-numeric: lining-nums;
  justify-self: start; unicode-bidi: isolate;
}
.tl__label { font-size: clamp(1.25rem, 5.4vw, 1.45rem); }

.branch { width: min(100vw, 34rem); height: auto; margin: 0 auto; }
.branch--sm { width: min(62vw, 17rem); margin-block: .5rem; transform: scaleX(-1); }
.js img.branch--sm.rv { transform: translateY(18px) scaleX(-1); }
.js img.branch--sm.rv.in { transform: scaleX(-1); }
.invite { padding-top: 1.5rem; }

/* ---------- 6. Parents ---------- */
.parents { padding-block: 1.5rem 2.5rem; }
.parents__grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  column-gap: 1.25rem; align-items: start;
}
.parents__rule { width: 1px; align-self: stretch; background: var(--hair); }
.parents__label { font-size: .95rem; letter-spacing: .14em; color: var(--ink-soft); }
.parents__names { margin-top: .5rem; font-size: clamp(1.2rem, 5.3vw, 1.4rem); line-height: 1.5; }

/* ---------- 7. Closing ---------- */
.closing {
  position: relative;
  width: var(--col);
  aspect-ratio: 10 / 14;
  margin-inline: auto;
  text-align: center;
}
.closing__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.closing__text { position: relative; padding-top: 9%; }
.closing__line { font-size: clamp(1.5rem, 6.6vw, 1.9rem); }

/* ---------- reveals ---------- */
.js .rv {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js .rv.in { opacity: 1; transform: none; }
.js img.rv { transform: translateY(18px) scale(.97); }
.js img.rv.in { transform: none; }
.js .hero__arch { opacity: 0; transform: translateY(-14px); transition: opacity 2s ease, transform 3s var(--ease); }
.js .hero.in .hero__arch { opacity: 1; transform: none; }

/* ---------- wide screens ---------- */
@media (min-aspect-ratio: 3/4) {
  .intro { background: radial-gradient(90% 90% at 50% 45%, #FFFBF0, #E9DDBE 85%); }
  .stage {
    width: 56.25vh; width: calc(var(--vh) * .5625);
    box-shadow: 0 30px 80px -20px rgba(70, 48, 34, .45), 0 4px 14px rgba(70, 48, 34, .18);
  }
  .seal-hint { font-size: 1.05rem; }
  .names { font-size: 3.5rem; }
  .names--sm { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .seal::before { opacity: .8; }
  .js .rv, .js img.rv, .js .hero__arch { transform: none; }
}

/* ===== VARIANT ===== */

/* ===== CONCEPT fresco ===== */
.names, .cd__n, .hero__date, .clock__time, .tl__time, .menu time, .badge__time, .tcard time { font-family: "Marcellus", var(--font-la); }
.names .amp { color: var(--rose); }
.hero .names { font-size: clamp(2.1rem, 9.6vw, 3rem) !important; } .hero__text { width: 74%; }
.closing { aspect-ratio: auto; min-height: calc(var(--col) * 1.45); padding-bottom: calc(var(--col) * .78); } .closing__art { top: auto; bottom: 0; height: auto; } .closing__text { padding-top: 3.5rem; }
.names--stack { display: grid; justify-items: center; gap: .05em; white-space: normal; font-size: clamp(2.8rem, 14vw, 4.2rem) !important; line-height: 1; }
.names--stack .amp { font-size: .5em; padding: .2em 0; display: grid; grid-template-columns: 3rem auto 3rem; align-items: center; gap: .8rem; }
.names--stack .amp::before, .names--stack .amp::after { content: ""; height: 1px; background: var(--hair); }
.countdown { gap: .55rem; max-width: 21rem; } .cd { padding: .9rem 0 .7rem; background: color-mix(in srgb, var(--rose) 14%, transparent); border-radius: 1rem; } .cd + .cd { border: 0; } .cd__n { font-size: clamp(1.7rem, 8vw, 2.2rem); }
.clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.25rem; }
.clock { display: grid; justify-items: center; gap: .35rem; }
.clock svg { width: min(34vw, 9rem); height: auto; fill: none; stroke: var(--rose); stroke-width: 1.2; }
.clock svg .thin { stroke-width: .5; opacity: .7; } .clock svg .hand { stroke-linecap: round; stroke: var(--ink); }
.clock svg .hand--h { stroke-width: 2.6; } .clock svg .hand--m { stroke-width: 1.5; } .clock svg .pin { fill: var(--rose); stroke: none; }
.clock__time { font-size: 1.9rem; margin-top: .5rem; unicode-bidi: isolate; } .clock__label { font-size: 1.15rem; color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 2rem; }
.tcard { display: grid; gap: .4rem; padding: 1.4rem .6rem 1.2rem; background: color-mix(in srgb, var(--paper) 60%, #fff); border: 1px solid var(--hair); border-radius: 999px 999px 1rem 1rem; }
.tcard__label { font-size: 1.1rem; } .tcard time { font-size: 2.1rem; line-height: 1; unicode-bidi: isolate; color: var(--rose); }
.menu { margin: 2rem auto 0; max-width: 21rem; display: grid; gap: 1.4rem; }
.menu__row { display: flex; align-items: baseline; gap: .6rem; } .menu__label { font-size: clamp(1.25rem, 5.4vw, 1.45rem); white-space: nowrap; }
.menu__dots { flex: 1; border-bottom: 2px dotted var(--hair); transform: translateY(-.3em); } .menu time { font-size: clamp(1.6rem, 7vw, 1.9rem); unicode-bidi: isolate; }
.badges { display: grid; gap: 1.5rem; margin: 2.25rem auto 0; max-width: 19rem; }
.badge { display: flex; align-items: center; gap: 1.1rem; text-align: start; } .badge--alt { flex-direction: row-reverse; text-align: end; }
.badge__time { flex: none; display: grid; place-items: center; width: 6rem; aspect-ratio: 1; border-radius: 50%; background: var(--rose); color: #fff; font-size: 1.7rem; unicode-bidi: isolate; box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--rose); }
.badge--alt .badge__time { background: var(--ink-soft); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--ink-soft); }
.badge__label { font-size: clamp(1.35rem, 6vw, 1.6rem); }
.place__art { mix-blend-mode: normal; width: 86%; margin: 1.5rem auto; padding: 14px; background: repeating-conic-gradient(var(--rose) 0 25%, var(--paper) 0 50%) 0 0 / 14px 14px; }
.block::before { content: ""; display: block; width: 7rem; height: 14px; margin: 0 auto 1.5rem; background: repeating-conic-gradient(var(--rose) 0 25%, transparent 0 50%) 0 0 / 14px 14px; opacity: .8; } .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-conic-gradient(var(--rose) 0 25%, transparent 0 50%) 0 0 / 10px 10px; opacity: .55; }
