:root {
  --font-hebrew: "Calibri Light", Calibri, "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.envelope-locked {
  overflow: hidden;
}

.envelope-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #f0ebe3;
  transition: opacity 1s ease, visibility 1s ease;
}

.envelope-splash__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  background-color: #f0ebe3;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.envelope-splash--video-ready .envelope-splash__video {
  opacity: 1;
}

.envelope-splash__tap {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  font: inherit;
  color: transparent;
  background: transparent;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.envelope-splash--playing .envelope-splash__tap {
  opacity: 0;
  pointer-events: none;
}

.envelope-splash--exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-splash--exit .envelope-splash__tap {
  visibility: hidden;
}

.envelope-splash--hiding-video .envelope-splash__video {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

body {
  font-family: var(--font-hebrew);
  background: #1a1816;
  color: #faf7f2;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.hero__kicker {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.88);
}

.hero__meta {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 400;
  color: rgba(250, 247, 242, 0.92);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.hero__dot {
  opacity: 0.55;
}

.verse {
  font-family: var(--font-hebrew);
  background: #ffffff;
  color: #1a1a1a;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 5vw, 2.5rem);
}

.verse__blockquote {
  margin: 0 auto;
  max-width: 52rem;
}

.verse__blockquote::before {
  content: "";
  display: block;
  width: min(11rem, 42vw);
  height: 1px;
  margin-inline: auto;
  margin-block-end: clamp(0.75rem, 2vw, 1.25rem);
  background: rgba(26, 26, 26, 0.2);
}

.verse__line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.3em 0.5em;
  font-family: inherit;
  font-size: clamp(1.35rem, 4.2vw, 2.15rem);
  font-weight: 300;
  line-height: 1.45;
  text-align: center;
}

.verse__word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.35em, 0);
  filter: blur(5px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}

.verse--revealed .verse__word {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  transition-delay: var(--stagger, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .verse__word {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.shuttle {
  font-family: var(--font-hebrew);
  background: #ffffff;
  color: #000000;
  padding: clamp(2.75rem, 8vw, 4.5rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.shuttle__inner {
  max-width: 36rem;
  margin-inline: auto;
}

.shuttle__title {
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  font-size: clamp(1.65rem, 4.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
}

.shuttle__text {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  font-weight: 300;
  line-height: 1.75;
  color: #000000;
}

.shuttle__question {
  margin: 0 0 clamp(1.35rem, 3.5vw, 2rem);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 400;
}

.shuttle__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.shuttle__btn {
  margin: 0;
  appearance: none;
  box-sizing: border-box;
  font-family: inherit;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 400;
  color: #000000;
  background: #ffffff;
  border: 1px solid #000000;
  padding: 0.85rem clamp(1.75rem, 5vw, 2.5rem);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.shuttle__btn:hover {
  background: #f5f5f5;
}

.shuttle__btn:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 3px;
}

.shuttle__btn--solo {
  display: block;
  margin-inline: auto;
  max-width: min(100%, 26rem);
  width: 100%;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  white-space: normal;
  line-height: 1.35;
}

.gift {
  font-family: var(--font-hebrew);
  background: #ffffff;
  color: #000000;
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.gift__inner {
  max-width: 42rem;
  margin-inline: auto;
}

.gift__title {
  margin: 0 0 clamp(1.35rem, 3.5vw, 2rem);
  font-size: clamp(1.2rem, 3.6vw, 1.68rem);
  font-weight: 600;
  line-height: 1.45;
}

.gift__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.25rem);
}

.gift .gift__link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.site-footer {
  margin: 0;
  padding: clamp(0.85rem, 2.5vw, 1.1rem) clamp(1rem, 4vw, 1.5rem)
    clamp(1.1rem, 3vw, 1.5rem);
  background: #fafafa;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  text-align: center;
}

.site-footer__line {
  margin: 0;
  font-family: Calibri, "Calibri Light", "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
  font-size: clamp(0.62rem, 1.65vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #9a9a9a;
  line-height: 1.4;
}

.shuttle__status {
  margin: 0 0 clamp(1rem, 3vw, 1.5rem);
  padding: 0.75rem 1rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.5;
  background: #f7f7f7;
  border: 1px solid #0000001a;
  border-radius: 0.25rem;
}

.shuttle-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
}

.shuttle-modal[hidden] {
  display: none;
}

.shuttle-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.shuttle-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  padding: clamp(1.35rem, 4vw, 1.85rem);
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.shuttle-modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-hebrew);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
}

.shuttle-modal__text {
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.65;
}

.shuttle-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.shuttle-modal__actions .shuttle__btn {
  flex: 1 1 auto;
  min-width: 7rem;
}

.shuttle-modal__err {
  margin: 0.85rem 0 0;
  min-height: 1.25rem;
  font-size: 0.88rem;
  color: #8b1538;
}

.cal-invite {
  font-family: Calibri, "Calibri Light", "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
  background: #ffffff;
  color: #000000;
  padding: clamp(2.75rem, 8vw, 4.5rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.cal-invite__inner {
  max-width: 36rem;
  margin-inline: auto;
}

.cal-invite__title {
  margin: 0 0 clamp(0.65rem, 1.8vw, 0.9rem);
  font-family: inherit;
  font-size: clamp(1.65rem, 4.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
}

.cal-invite__note {
  margin: 0 0 clamp(1.35rem, 3.5vw, 1.85rem);
  font-family: inherit;
  font-size: clamp(0.82rem, 2.05vw, 0.95rem);
  font-weight: 400;
  line-height: 1.55;
  color: #2a2a2a;
}

.cal-invite__btn {
  text-decoration: none;
  color: #000000;
}

.cal-invite__btn:visited {
  color: #000000;
}

.guest-welcome {
  font-family: var(--font-hebrew);
  background: #ffffff;
  color: #1a1a1a;
  padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.guest-welcome__inner {
  max-width: 32rem;
  margin-inline: auto;
}

.guest-welcome__hello {
  margin: 0 0 clamp(0.65rem, 2vw, 1rem);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
}

.guest-welcome__name {
  font-weight: 600;
}

.guest-welcome__line {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
}

.pause-text {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  line-height: 0;
}

.pause-text__img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.memory {
  font-family: var(--font-hebrew);
  background: #ffffff;
  color: #1a1a1a;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.memory__header {
  text-align: center;
  padding: clamp(1.75rem, 4.5vw, 2.75rem) clamp(1rem, 4vw, 2rem)
    clamp(1rem, 2.5vw, 1.5rem);
}

.memory__headlines {
  max-width: 28rem;
  margin-inline: auto;
}

.memory__headlines::after {
  content: "";
  display: block;
  width: min(5.5rem, 40vw);
  height: 1px;
  margin: clamp(1rem, 2.5vw, 1.35rem) auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(138, 118, 92, 0.55),
    transparent
  );
}

.memory__title {
  margin: 0;
  font-family: "Noto Serif Hebrew", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.2vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: #141210;
}

.memory__title-en {
  margin: 0.45rem 0 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.14em;
  color: #6e6558;
}

.memory__subtitle {
  margin: 0.85rem 0 0;
  font-family: "Noto Serif Hebrew", Georgia, "Times New Roman", serif;
  font-size: clamp(0.82rem, 2vw, 0.98rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #5a5349;
}

.memory__media {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  line-height: 0;
}

.memory__phone {
  position: relative;
  width: 100%;
  height: min(92svh, calc(100vw * 16 / 9));
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.memory__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  -webkit-object-fit: cover;
  pointer-events: none;
}

.closing {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.closing__wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.closing__img {
  display: block;
  width: 100%;
  height: auto;
}

.closing__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  font-family: var(--font-hebrew);
  color: #2a2a2a;
  pointer-events: none;
}

.closing__hello {
  margin: 0 0 0.4em;
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.75);
}

.closing__name {
  font-weight: 600;
}

.closing__lead {
  margin: 0;
  max-width: min(36rem, 92vw);
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 300;
  line-height: 1.55;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 255, 255, 0.7);
}

.countdown {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(260px, 44vw, 400px);
  background: #ebe9e6;
  color: #0c0c0c;
}

.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: center / cover no-repeat url("public/countdown-bg.svg");
  opacity: 0.5;
}

.countdown__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.22);
}

.countdown__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
}

.countdown__kicker {
  margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0a0a0a;
}

.countdown__timer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem 0.45rem;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(4rem, 16vw, 6.75rem);
}

.countdown__value {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(3rem, 11vw, 5.75rem);
  font-weight: 400;
  line-height: 1;
  color: #050505;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  margin-top: 0.65rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #141414;
}

.countdown__sep {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.35rem, 8.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1;
  color: #0a0a0a;
  padding: 0 0.08rem;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero__media {
    background: #2c2824 center / cover no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%233d3832'/%3E%3Cstop offset='100%25' stop-color='%231a1816'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23g)' width='400' height='300'/%3E%3C/svg%3E");
  }
}
