@font-face { font-family: Rubik; src: url('assets/rubik-variable.ttf') format('truetype'); font-weight: 300 900; font-display: swap; }
:root { --ink: #293d49; --cream: #fff8e3; --body: Rubik, Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; background: #3d8ece; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #b64875; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 50; padding: 12px 18px; background: var(--cream); border-radius: 24px; }
.skip-link:focus { top: 16px; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; justify-content: flex-end; padding: 22px 30px; pointer-events: none; direction: ltr; }
.language-switch { display: flex; align-items: center; gap: 2px; background: #fffbedc9; color: var(--ink); border-radius: 40px; padding: 4px; box-shadow: 0 3px 20px #24394b0d, inset 0 1px 0 #ffffffb0; pointer-events: auto; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.language-switch button { border: 0; background: none; min-height: 36px; min-width: 49px; padding: 5px 12px; cursor: pointer; font-size: 14px; border-radius: 24px; transition: background .2s, color .2s; }
.language-switch button[aria-pressed=true] { background: #fffdf3; box-shadow: 0 1px 5px #293d4910; }
.pixel-icon { display: inline-block; flex: none; width: 22px; height: 22px; background: currentColor; mask: var(--icon) center/contain no-repeat; -webkit-mask: var(--icon) center/contain no-repeat; }
.pin { --icon: url('assets/pin.svg'); }
.map { --icon: url('assets/map.svg'); }
.external-link { --icon: url('assets/external-link.svg'); }
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #5491e4; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #1735690a, transparent 45%, transparent 70%, #15234c3b); }
.hero-heading { position: absolute; top: 4.5%; left: 50%; transform: translateX(-50%); width: min(85%, 820px); text-align: center; direction: ltr; }
.arched-title { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 3px 8px #28447626); }
.date-text { font-family: var(--body); font-size: 133px; fill: var(--cream); letter-spacing: 2px; }

.event-panel { position: absolute; z-index: 2; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(830px, calc(100% - 48px)); padding: 21px 34px 22px; background: linear-gradient(145deg, #fffdf2f5, #fffbedeb); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 34px; box-shadow: 0 16px 50px #122b4326, inset 0 1px 0 #ffffff; text-align: center; }
.event-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.detail { min-width: 0; }

.detail h2 { font-family: var(--body); font-size: 16px; font-weight: 400; line-height: 1.4; margin: 9px 0 4px; color: #596875; }
.detail-value { font-family: var(--body); font-size: 36px; line-height: 1.2; margin: 0; }
.date-value { font-size: 32px; line-height: 1.35; }
.map-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 600px; margin: 19px auto 0; padding-top: 16px; border-top: 1px solid #293d4912; }
.map-button { padding: 11px 21px; display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; font-family: var(--body); font-size: 16px; line-height: 1.5; border-radius: 50px; transition: transform .2s, background .2s; min-height: 48px; }
.map-button:hover { transform: translateY(-2px); }
.map-button:active { transform: translateY(0); }
.map-button>.external-link { width: 16px; height: 16px; margin-inline-start: auto; }
.map-button>[dir=ltr] { white-space: nowrap; }
.map-button>.pin, .map-button>.map { margin-inline-end: auto; }
.waze-button { background: #d7e9ea; }
.waze-button:hover { background: #c2dfe2; }
.google-button { background: #f2dfe3; }
.google-button:hover { background: #ebcdd5; }
html[lang=he] .detail h2 { font-family: var(--body); font-size: 17px; }

@media(min-width:701px) and (max-height:740px) { .hero-heading { width: min(65%, 650px); top: 2%; } .event-panel { padding-block: 15px; bottom: 16px; }  .detail h2 { margin-top: 3px; } .detail-value { font-size: 32px; } .date-value { font-size: 29px; } .map-links { margin-top: 12px; } .map-button { min-height: 44px; padding-block: 8px; } }
@media(max-width:700px) {
  .site-header { padding: 16px 18px; }
  .language-switch { padding: 3px; }
  .hero { min-height: 520px; }
  .hero-photo { top: -28%; height: 128%; object-position: 65% 100%; }
  .hero-heading { top: 12%; width: 100%; }
  .date-text { font-size: 139px; }

  .event-panel { bottom: max(16px, env(safe-area-inset-bottom)); width: calc(100% - 28px); padding: 17px 15px 15px; border-radius: 28px; }
  .event-details { gap: 8px; }
  
  .detail h2 { font-size: 14px; margin: 6px 0 3px; }
  .detail-value { font-size: 29px; }
  .date-value { font-size: clamp(18px, 5.4vw, 23px); line-height: 1.6; }
  .map-links { gap: 10px; margin-top: 11px; padding-top: 11px; }
  .map-button { min-height: 44px; padding: 10px 13px; font-size: 14px; gap: 8px; }
  .map-button>.pixel-icon { width: 18px; height: 18px; }
  .map-button>.external-link { display: none; }
  .map-button>.pin, .map-button>.map { margin: 0; }
  html[lang=he] .detail h2 { font-size: 15px; }
}
@media(max-width:370px) { .event-panel { padding-inline: 11px; padding-block: 13px; }  .date-value { font-size: 18px; line-height: 1.93; } .detail h2 { font-size: 14px; } .map-button { font-size: 14px; padding-inline: 8px; gap: 6px; } .map-button>.pin, .map-button>.map { display: none; } html[lang=he] .detail h2 { font-size: 14px; } }
@media(max-height:500px) and (min-width:550px) { .hero { min-height: 350px; } .hero-photo { top: 0; height: 100%; object-position: 50% 100%; } .hero-heading { left: 23%; width: min(390px, 50%); top: 3%; } .event-panel { width: min(420px, 52%); left: 16px; transform: none; padding: 13px 15px; border-radius: 25px; } .detail h2 { font-size: 15px; margin-top: 3px; }  .detail-value { font-size: 27px; } .date-value { font-size: 22px; line-height: 1.47; } .map-links { gap: 10px; margin-top: 10px; } .map-button { font-size: 16px; padding: 8px 12px; min-height: 44px; } .map-button>.external-link { display: none; }  html[lang=he] .detail h2 { font-size: 14px; } }
@media(max-height:519px) and (max-width:549px) { .hero { min-height: 420px; } .hero-heading { top: 3%; width: 75%; }  }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none!important; transition: none!important; } }

/* The greeting animates in the sky while the photo and details stay usable. */
.arrival-message { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--cream); text-shadow: 0 4px 0 #294466, 0 8px 18px #20446733; direction: ltr; pointer-events: none; }
.arrival-message[hidden] { display: none; }

.arrival-message p { margin: 8px 0 0; line-height: 1.1; }
.arrival-names { display: block; font-family: var(--body); font-size: clamp(36px, 6vw, 72px); letter-spacing: -.025em;  }
.arrival-announcement { display: block; margin-top: 8px; font-family: var(--body); font-size: clamp(22px, 3.4vw, 39px);  }
.is-celebrating .arched-title { opacity: 0; }
.celebration-finished .arched-title { animation: date-reveal .65s .1s ease-out both; }
.celebration-finished .arrival-message { animation: welcome-away .55s ease-in forwards; }

.calendar { --icon: url('assets/calendar.svg'); }
.map-links { grid-template-columns: 1fr 1fr 1.25fr; max-width: 720px; gap: 10px; }
.calendar-button { background: #f3e7b7; }
.calendar-button:hover { background: #eadd9e; }
.calendar-short, .maps-short { display: none; }
.calendar-full, .calendar-short { white-space: nowrap; }
.map-button { padding-inline: 17px; gap: 9px; }
.map-button>.external-link { display: none; }
.map-button>.pin, .map-button>.map { margin: 0; }
html[lang=he] .arrival-names { font-family: var(--body); font-size: clamp(32px, 5.4vw, 64px); letter-spacing: -.025em; }
html[lang=he] .arrival-announcement { font-family: var(--body); font-size: clamp(24px, 3vw, 36px); }

@keyframes welcome-away { to { opacity: 0; translate: 0 -8px; } }
@keyframes date-reveal { 0% { opacity: 0; transform: translateY(20px) scale(.94); } 55% { opacity: 1; transform: translateY(-10px) scale(1.02); } 78% { transform: translateY(4px) scale(.995); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

@media(max-width:700px) {
  .arrival-message { top: -26px; bottom: 14px; }
  
  .arrival-names { font-size: clamp(33px, 8.8vw, 52px); }
  .arrival-announcement { font-size: clamp(20px, 5.4vw, 29px); margin-top: 5px; }
  
  .map-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .map-button { padding-inline: 8px; font-size: 14px; }
  .map-button>.pixel-icon { display: none; }
  .calendar-full { display: none; }
  .calendar-short { display: inline; }
  html[lang=he] .arrival-names { font-size: clamp(29px, 7.8vw, 46px); }
  html[lang=he] .arrival-announcement { font-size: clamp(22px, 5.5vw, 29px); }
}
@media(max-width:380px) { .maps-full { display: none; } .maps-short { display: inline; } }
@media(max-height:500px) and (min-width:550px) {
  .arrival-message { top: -5px; bottom: -5px; }
  
  .arrival-names { font-size: 31px; }
  .arrival-announcement { font-size: 20px; }
  .map-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .map-button { padding-inline: 6px; font-size: 14px; }
  .map-button>.pixel-icon, .calendar-full, .maps-full { display: none; }
  .calendar-short, .maps-short { display: inline; }
  html[lang=he] .arrival-names { font-size: 29px; }
  html[lang=he] .arrival-announcement { font-size: 22px; }
}
@media(prefers-reduced-motion:reduce) { .arrival-message,  .is-celebrating .arched-title { opacity: 1; } }

/* A staggered spring jump, inspired by the reference's playful typography. */
.arrival-message p { margin: 0; }
.arrival-announcement { color: #ffe1e9; }
html[lang=he] .arrival-message { direction: rtl; }
.jump-word { display: inline-block; transform-origin: center bottom; animation: text-jump 1.55s var(--jump-delay) 2 both; }
@keyframes text-jump {
  0%, 8%, 100% { transform: translateY(0) scale(1) rotate(0); }
  18% { transform: translateY(3px) scale(1.07,.89) rotate(-2deg); }
  38% { transform: translateY(-25px) scale(.96,1.06) rotate(2deg); }
  55% { transform: translateY(0) scale(1.08,.88) rotate(-1deg); }
  69% { transform: translateY(-8px) scale(.99,1.02) rotate(0); }
  82% { transform: translateY(0) scale(1); }
}

/* Oversized comic lettering: heavy rounded type, ink outline and offset shadow. */
.hero-heading { top: 5%; width: min(94%, 1100px); }
.arched-title { filter: drop-shadow(0 7px 0 #172e46); }
.date-text { font-size: 146px; font-weight: 900; letter-spacing: -6px; stroke: #172e46; stroke-width: 11px; stroke-linejoin: round; paint-order: stroke fill; }
.arrival-message { text-shadow: 0 7px 0 #172e46; }
.arrival-names, html[lang=he] .arrival-names { font-size: clamp(50px, 8.7vw, 112px); font-weight: 900; letter-spacing: -.055em; line-height: 1.05; text-transform: uppercase; }
.arrival-announcement, html[lang=he] .arrival-announcement { font-size: clamp(28px, 4.7vw, 60px); font-weight: 900; letter-spacing: -.035em; margin-top: 16px; line-height: 1.1; }
.jump-word { -webkit-text-stroke: 7px #172e46; paint-order: stroke fill; }
.arrival-names .jump-word:nth-child(odd) { rotate: -4deg; }
.arrival-names .jump-word:nth-child(even) { rotate: 3deg; }
.detail-value { font-weight: 800; letter-spacing: -.055em; }
.date-value { font-size: 30px; }
.map-button { font-weight: 500; }
@media(max-width:700px) {
  .hero-heading { top: 12%; width: 94%; }
  .arrival-message { top: -15px; bottom: 0; text-shadow: 0 4px 0 #172e46; }
  .arrival-names, html[lang=he] .arrival-names { font-size: clamp(32px, 10.8vw, 70px); letter-spacing: -.065em; }
  .arrival-announcement, html[lang=he] .arrival-announcement { font-size: clamp(23px, 6.5vw, 43px); margin-top: 12px; }
  .jump-word { -webkit-text-stroke-width: 4px; }
  .date-value { font-size: clamp(16px, 4.8vw, 23px); line-height: 1.7; }
  .detail-value:not(.date-value) { font-size: 28px; }
}
@media(max-height:500px) and (min-width:550px) {
  .hero-heading { left: 25%; top: 3%; width: 47%; }
  .arrival-names, html[lang=he] .arrival-names { font-size: 40px; }
  .arrival-announcement, html[lang=he] .arrival-announcement { font-size: 25px; margin-top: 8px; }
  .jump-word { -webkit-text-stroke-width: 4px; }
  .date-value { font-size: 20px; }
}

/* Layer order: photograph, floating illustrations, original people, invitation. */
.floating-toons { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.floating-toon { position: absolute; left: var(--x); top: 100%; width: var(--size); opacity: .5; animation: drift-up var(--duration) var(--delay) linear infinite; }
.people-foreground { z-index: 2; pointer-events: none; mask-image: url('assets/guy-and-liron-cutout.png'); mask-size: cover; mask-position: 50% 100%; mask-repeat: no-repeat; }
.hero-shade { z-index: 3; pointer-events: none; }
.hero-heading { z-index: 4; top: 5%; width: min(94%, 1100px); }
.event-panel { z-index: 5; }
.arrival-message { position: relative; inset: auto; }
.arrival-names, html[lang=he] .arrival-names { font-size: clamp(44px, 7.6vw, 98px); }
.arrival-announcement, html[lang=he] .arrival-announcement { font-size: clamp(28px, 4vw, 52px); margin-top: 10px; }



@keyframes drift-up { 0% { transform: translate3d(0, 10vh, 0) rotate(calc(-1 * var(--tilt))); } 100% { transform: translate3d(var(--sway), -130vh, 0) rotate(var(--tilt)); } }
@media(max-width:700px) {
  .hero-heading { top: 12%; }
  .people-foreground { mask-position: 65% 100%; }
  .arrival-names, html[lang=he] .arrival-names { font-size: clamp(32px, 10.8vw, 70px); }
  .arrival-announcement, html[lang=he] .arrival-announcement { font-size: clamp(23px, 6.5vw, 43px); margin-top: 10px; }
  
  .floating-toon { width: calc(var(--size) * .7); }
  
}
@media(max-height:740px) and (min-width:701px) { .hero-heading { top: 5%; } .arrival-names, html[lang=he] .arrival-names { font-size: 65px; } .arrival-announcement, html[lang=he] .arrival-announcement { font-size: 36px; }  }
@media(max-height:500px) and (min-width:550px) { .hero-heading { top: 6%; width: 47%; left: 25%; } .arrival-names, html[lang=he] .arrival-names { font-size: 36px; } .arrival-announcement, html[lang=he] .arrival-announcement { font-size: 23px; }  .people-foreground { mask-position: 50% 100%; } }
@media(prefers-reduced-motion:reduce) { .floating-toons,  }
