/* בשמחתא — coming soon. Fonts: Frank Ruhl Libre & Assistant (SIL OFL 1.1, bundled locally). */

@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/frank-ruhl-libre-hebrew-700-normal.woff2) format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/frank-ruhl-libre-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/frank-ruhl-libre-hebrew-500-normal.woff2) format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/frank-ruhl-libre-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122;
}
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/assistant-hebrew-400-normal.woff2) format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/assistant-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122;
}
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/assistant-hebrew-600-normal.woff2) format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/assistant-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122;
}

:root {
  --cream: #fbf6ec;
  --cream-2: #f6eedf;
  --green: #1e4636;
  --green-2: #2f6b4f;
  --gold: #c9a86a;
  --gold-ink: #7a5a22; /* gold for small text: 5.6:1 on cream */
  --rose: #d9a1a0;
  --rose-soft: #ebc3be;
  --ink-2: #3c4e44;
  --muted: #5a675f;
  --serif: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --sans: 'Assistant', 'Segoe UI', Arial, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--sans);
  color: var(--green);
  background-color: var(--cream);
  background-image:
    radial-gradient(60rem 40rem at 88% -10%, rgba(235, 195, 190, 0.45), transparent 60%),
    radial-gradient(50rem 36rem at 0% 105%, rgba(233, 211, 160, 0.4), transparent 60%),
    radial-gradient(40rem 30rem at 40% 50%, rgba(255, 252, 245, 0.9), transparent 70%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ---------- Layout ---------- */
.stage {
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vh, 2.5rem) clamp(1.25rem, 4vw, 3.5rem) 0.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.copy {
  max-width: 34rem;
}

.scene {
  margin: 0;
  justify-self: center;
  /* Fixed aspect ratio: no layout shift while the SVG paints. */
  width: min(100%, calc((100svh - 9.5rem) * 600 / 640));
  min-width: 15rem;
  aspect-ratio: 600 / 640;
  position: relative;
}
.art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---------- Typography ---------- */
.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--serif);
  font-weight: 700;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--green);
  line-height: 1.1;
}
.brand::before {
  content: '';
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.soon {
  font-size: clamp(3.1rem, 1.6rem + 6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--green);
  padding-block: 0.05em 0.08em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .soon {
    background-image: linear-gradient(100deg, var(--green) 0%, var(--green) 42%, #a07a35 50%, var(--green) 58%, var(--green) 100%);
    background-size: 320% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.flourish {
  display: block;
  width: clamp(9rem, 12vw, 13rem);
  height: auto;
  margin: 0.9rem 0 1.1rem;
  overflow: visible;
}
.flourish path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.flourish circle {
  fill: var(--gold);
}

.lead {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.95rem);
  line-height: 1.35;
  color: var(--green);
}
.body {
  margin: 0;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 32rem;
}

.words {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  color: var(--gold-ink);
}
.word {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
}
.word::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
}

/* ---------- Footer ---------- */
.foot {
  text-align: center;
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
}
.tagline {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  color: var(--green);
}
.dot {
  width: 0.42rem;
  height: 0.42rem;
  transform: rotate(45deg);
  background: var(--gold);
  flex: none;
}
.legal,
.contact {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}
.contact a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding: 0.35rem 0.15rem;
  transition: color 0.2s ease, background-size 0.25s ease;
}
.contact a:hover {
  color: var(--green-2);
  background-size: 100% 2px;
}
.contact a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Illustration ---------- */
.layer {
  /* pointer parallax (desktop only, see script.js); independent of the animations below */
  translate: var(--px, 0px) var(--py, 0px);
  transition: translate 0.6s var(--ease-out);
}

.glow {
  opacity: 1;
}

.arch {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.arch-main {
  stroke: url(#g-arch);
  stroke-width: 15;
}
.arch-gold {
  stroke: var(--gold);
  stroke-width: 1.6;
}
.arch-gold-out {
  stroke-width: 1;
  opacity: 0.75;
}

.wire {
  fill: none;
  stroke: #5a4632;
  stroke-width: 1.3;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.halo {
  fill: url(#g-halo);
  opacity: 0.95;
}
.glass {
  fill: #ffeab2;
  stroke: #e7c477;
  stroke-width: 0.8;
}
.cap {
  fill: #8c6a2e;
}

.floor {
  fill: rgba(30, 70, 54, 0.12);
}

/* paper-cut figures: flat fills, fine gold edges */
.trousers {
  fill: #173a2c;
}
.shoe {
  fill: #1f1b17;
}
.jacket {
  fill: var(--green);
  stroke: var(--gold);
  stroke-width: 0.9;
}
.sleeve {
  fill: none;
  stroke: var(--green);
  stroke-width: 12;
  stroke-linecap: round;
}
.shirt {
  fill: #fffbf4;
}
.lapel {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}
.bowtie {
  fill: var(--gold);
}
.button-line {
  stroke: rgba(201, 168, 106, 0.6);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}
.groom .skin {
  fill: #e6bf9c;
}
.bride .skin {
  fill: #f0cdb0;
}
.hair-groom {
  fill: #2e2420;
}
.hair-bride {
  fill: #6b4532;
}
.crown {
  fill: var(--gold);
}
.face {
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
}
.face-groom {
  stroke: #3a2c25;
}
.face-bride {
  stroke: #6b4532;
}
.blush {
  fill: #e7a9a0;
  opacity: 0.55;
}
.veil {
  fill: #ffffff;
  opacity: 0.62;
  stroke: #e4d3b4;
  stroke-width: 0.8;
}
.dress {
  fill: url(#g-dress);
  stroke: var(--gold);
  stroke-width: 1.4;
}
.dress-fold {
  fill: none;
  stroke: #dcc69d;
  stroke-width: 1;
  opacity: 0.8;
}
.bodice {
  fill: #fffbf4;
  stroke: var(--gold);
  stroke-width: 1.2;
}
.sash {
  fill: var(--rose);
}
.arm-skin {
  fill: none;
  stroke: #f0cdb0;
  stroke-width: 6.5;
  stroke-linecap: round;
}
.ribbon {
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* flowers (symbol content uses inherited custom properties) */
.petals ellipse {
  fill: var(--petal, #d9a1a0);
  stroke: var(--petal-edge, rgba(140, 90, 80, 0.35));
  stroke-width: 0.6;
}
.heart {
  fill: var(--heart, #c9a86a);
}
.rose-outer {
  fill: var(--petal, #d9a1a0);
  stroke: var(--petal-edge, rgba(140, 90, 80, 0.35));
  stroke-width: 0.6;
}
.rose-swirl {
  fill: none;
  stroke: var(--swirl, rgba(120, 60, 60, 0.5));
  stroke-width: 1.3;
  stroke-linecap: round;
}
.flower-rose {
  --petal: #d9a1a0;
  --heart: #c9a86a;
}
.flower-blush {
  --petal: #ebc3be;
  --heart: #c9a86a;
}
.flower-cream {
  --petal: #fff6e8;
  --petal-edge: #d8bf8e;
  --heart: #d9a1a0;
  --swirl: rgba(201, 168, 106, 0.8);
}
.leaf {
  fill: var(--green-2);
}
#leaf .vein {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.8;
}
.spark {
  fill: #d4b26a;
  opacity: 0.85;
}
.c {
  opacity: 0;
}
.c-gold {
  fill: #d4b26a;
}
.c-rose {
  fill: var(--rose);
}
.c-cream {
  fill: #fff3dc;
  stroke: #d8bf8e;
  stroke-width: 0.6;
}
.c-green {
  fill: var(--green-2);
}

/* ---------- Motion ----------
   Base styles above ARE the final composition; animations only play "from" states.
   That keeps a complete, beautiful picture when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  .brand {
    animation: rise 0.9s var(--ease-out) 0.15s both;
  }
  .soon {
    animation:
      rise 1s var(--ease-out) 0.35s both,
      sheen 8s ease-in-out 3.4s infinite;
  }
  .flourish path {
    animation: draw 1.4s ease 0.8s both;
  }
  .flourish circle {
    animation: pop 0.5s var(--ease-out) 1.9s both;
    transform-box: fill-box;
    transform-origin: center;
  }
  .lead {
    animation: rise 0.9s var(--ease-out) 0.85s both;
  }
  .body {
    animation: rise 0.9s var(--ease-out) 1.05s both;
  }
  .word {
    animation: rise 0.8s var(--ease-out) calc(1.6s + var(--w) * 0.45s) both;
  }
  .word::after {
    animation: underline 7.5s ease-in-out calc(3.2s + var(--w) * 1.1s) infinite;
  }
  .tagline {
    animation: rise 0.9s var(--ease-out) 2.9s both;
  }
  .legal,
  .contact {
    animation: fade 0.9s ease 3.2s both;
  }

  .glow {
    animation:
      fade 1.6s ease 0s both,
      breathe 7s ease-in-out 2.4s infinite;
  }
  .arch-main {
    animation: draw 1.7s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both;
  }
  .arch-gold {
    animation: draw 1.7s cubic-bezier(0.65, 0, 0.35, 1) 0.4s both;
  }
  .arch-gold-out {
    animation-delay: 0.55s;
  }
  .wire {
    animation: draw 0.9s ease 1s both;
  }
  .bulb {
    animation: fade 0.45s ease calc(1.3s + var(--i) * 0.07s) both;
  }
  .halo {
    animation: twinkle 3.4s ease-in-out calc(2.6s + var(--i) * 0.27s) infinite;
  }
  .floor {
    animation: fade 1s ease 0.6s both;
  }
  .groom {
    animation: enter-right 1.35s var(--ease-out) 0.55s both;
  }
  .bride {
    animation: enter-left 1.35s var(--ease-out) 0.7s both;
  }
  .twirl {
    transform-origin: 262px 598px;
    animation: twirl 1.5s cubic-bezier(0.45, 0, 0.25, 1) 2.15s both;
  }
  .arm-reach,
  .hand-join {
    animation: let-go 1.5s ease 2.15s both;
  }
  .couple {
    transform-origin: 300px 598px;
    animation: sway 7.5s ease-in-out 3.8s infinite;
  }
  .bloom {
    transform-box: fill-box;
    transform-origin: center;
    animation: bloom 0.85s cubic-bezier(0.2, 0.9, 0.25, 1.25) var(--d) both;
  }
  .spark {
    transform-box: fill-box;
    transform-origin: center;
    animation:
      pop 0.6s var(--ease-out) calc(3s + var(--s) * 0.15s) both,
      sparkle 4s ease-in-out calc(3.7s + var(--s) * 0.65s) infinite;
  }
  .c {
    transform-box: fill-box;
    transform-origin: center;
    animation: confetti 2.9s cubic-bezier(0.3, 0.55, 0.35, 1) var(--d) both;
  }
}

/* Reduced motion: a still, complete composition (confetti resting mid-air). */
@media (prefers-reduced-motion: reduce) {
  .c {
    opacity: 0.85;
    transform-box: fill-box;
    transform-origin: center;
    transform: translate(var(--sx), var(--sy)) rotate(28deg);
  }
  .layer {
    transition: none;
    translate: none;
  }
  .contact a {
    transition: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
}
@keyframes sheen {
  0%,
  55% {
    background-position: 100% 0;
  }
  85%,
  100% {
    background-position: 0% 0;
  }
}
@keyframes underline {
  0% {
    transform: scaleX(0);
    transform-origin: right;
  }
  12% {
    transform: scaleX(1);
    transform-origin: right;
  }
  22% {
    transform: scaleX(1);
    transform-origin: left;
  }
  34%,
  100% {
    transform: scaleX(0);
    transform-origin: left;
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.45;
  }
}
@keyframes enter-right {
  from {
    opacity: 0;
    transform: translateX(90px);
  }
}
@keyframes enter-left {
  from {
    opacity: 0;
    transform: translateX(-90px);
  }
}
@keyframes twirl {
  0% {
    transform: scaleX(1) translateY(0);
  }
  50% {
    transform: scaleX(-1) translateY(-5px);
  }
  100% {
    transform: scaleX(1) translateY(0);
  }
}
@keyframes let-go {
  0%,
  100% {
    opacity: 1;
  }
  12%,
  85% {
    opacity: 0;
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-1.1deg) translateY(-1px);
  }
  75% {
    transform: rotate(1.1deg) translateY(-1px);
  }
}
@keyframes bloom {
  from {
    opacity: 0;
    transform: scale(0) rotate(-35deg);
  }
}
@keyframes sparkle {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.55) rotate(20deg);
  }
}
@keyframes confetti {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg);
  }
  8% {
    opacity: 1;
  }
  78% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--fall)) rotate(var(--r));
  }
}

/* ---------- Small screens: scene on top, text centred ---------- */
@media (max-width: 860px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding-top: 1rem;
    text-align: center;
  }
  .scene {
    order: -1;
    width: min(84vw, calc(48svh * 600 / 640), 26rem);
    min-width: 0;
  }
  .copy {
    margin: 0 auto;
  }
  .title {
    align-items: center;
  }
  .brand::before {
    display: none;
  }
  .flourish {
    margin-inline: auto;
  }
  .body {
    margin-inline: auto;
  }
  .br-wide {
    display: none;
  }
  .words {
    justify-content: center;
  }
}

/* Low, wide screens (landscape phones, short laptops): keep side by side, shrink. */
@media (max-height: 560px) and (min-width: 600px) {
  .stage {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    text-align: start;
  }
  .scene {
    order: 0;
    width: min(100%, calc((100svh - 3rem) * 600 / 640));
    min-width: 0;
  }
  .copy {
    margin: 0;
  }
  .title {
    align-items: flex-start;
  }
  .flourish {
    margin: 0.5rem 0 0.6rem;
  }
  .soon {
    font-size: clamp(2.4rem, 9vh, 4.2rem);
  }
  .lead {
    font-size: 1.2rem;
  }
  .body {
    font-size: 1rem;
    line-height: 1.6;
  }
  .words {
    justify-content: flex-start;
    margin-top: 0.8rem;
  }
}

@media (forced-colors: active) {
  .soon {
    background: none;
    color: CanvasText;
  }
}
