@font-face {
  font-family: "Atziluth Script";
  src: url("fonts/Atziluth-Script_1.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fbf3ec;
  --ink: #0f3f5d;
  --dusty-blue: #8ba7b2;
}

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

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

html {
  scrollbar-gutter: stable;
}

body {
  background: var(--paper);
  color: var(--ink);
}

body.is-loading {
  overflow: hidden;
}

body.is-loading main {
  visibility: hidden;
}

.hero-intro {
  opacity: 0;
  transition: opacity 650ms ease;
  transition-delay: var(--hero-delay, 0ms);
  will-change: opacity;
}

.hero.hero-is-ready .hero-intro {
  opacity: 1;
}

.scroll-reveal {
  opacity: 0;
  translate: 0 28px;
  scale: 1;
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 700ms cubic-bezier(0.22, 1, 0.36, 1),
    scale 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, translate, scale;
}

.scroll-reveal--left {
  translate: -36px 0;
}

.scroll-reveal--right {
  translate: 36px 0;
}

.scroll-reveal--scale {
  translate: 0;
  scale: 0.94;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  translate: 0;
  scale: 1;
}

.scroll-reveal.no-reveal-motion {
  transition: none;
}

.preloader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__content {
  display: grid;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.preloader__eyebrow,
.preloader__status {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preloader__eyebrow {
  color: #526f80;
}

.preloader__spinner {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: 18px;
  color: var(--ink);
}

.preloader__spinner::before {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(139, 167, 178, 0.35);
  border-top-color: var(--ink);
  border-radius: 50%;
  content: "";
  animation: preloader-spin 800ms linear infinite;
}

.preloader__heart {
  font-size: 17px;
  line-height: 1;
  animation: preloader-heart 1200ms ease-in-out infinite;
}

.preloader__status {
  margin-top: 17px;
  color: #526f80;
  font-size: 8px;
  letter-spacing: 0.08em;
}

@keyframes preloader-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes preloader-heart {
  0%,
  100% {
    transform: scale(0.86);
  }

  50% {
    transform: scale(1.08);
  }
}

.invitation {
  width: 100%;
  min-height: 481px;
  padding: 48px 24px 0;
  overflow: hidden;
  background: var(--dusty-blue);
  color: #fff;
}

.invitation__content {
  width: min(100%, 620px);
  margin-inline: auto;
  text-align: center;
}

.invitation__title,
.invitation__month {
  margin: 0;
  font-family: "Atziluth Script", cursive;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.invitation__title {
  color: #fbfbf3;
  font-size: 40px;
  line-height: normal;
  text-align: center;
}

.invitation__text {
  margin: 23px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0px;
  text-align: center;
  text-transform: uppercase;
}

.invitation__calendar {
  width: min(100%, 400px);
  margin: 45px auto 0;
}

.invitation__month {
  color: #fbfbf3;
  font-size: 40px;
  line-height: normal;
  text-align: center;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(5, 16px);
  row-gap: 18px;
  align-items: center;
  width: 227px;
  height: 160px;
  margin: 22px auto 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0px;
  text-align: center;
}

.calendar time,
.calendar > span {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 16px;
}

.calendar__wedding-day {
  position: relative;
  isolation: isolate;
  color: #fbfbf3;
  font-family: "Atziluth Script", cursive;
  font-size: 36px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
}

.calendar__wedding-day img {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 32px;
  max-width: none;
  height: auto;
  transform: translate(-45%, -47%) rotate(4deg);
}

.calendar__wedding-day span {
  position: relative;
  z-index: 1;
}

.location {
  width: 100%;
  min-height: 520px;
  padding: 72px 40px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.location__inner {
  display: grid;
  grid-template-columns: 330px 240px;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(100%, 570px);
  min-height: 376px;
  margin-inline: auto;
}

.location__illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.location__illustration img {
  display: block;
  width: min(100%, 330px);
  height: auto;
}

.location__content {
  width: min(100%, 240px);
  text-align: center;
}

.location__title {
  margin: 0;
  font-family: "Atziluth Script", cursive;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.location__address {
  margin: 20px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.location__map-button {
  display: block;
  width: 152px;
  height: 24px;
  margin: 14px auto 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.location__map-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.program {
  width: 100%;
  min-height: 650px;
  padding: 60px 40px 72px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.program__inner {
  display: grid;
  grid-template-columns: 150px 260px;
  grid-template-rows: auto 1fr;
  justify-content: center;
  column-gap: 28px;
  row-gap: 54px;
  width: min(100%, 500px);
  margin-inline: auto;
}

.program__title {
  grid-column: 1 / -1;
  margin: 0;
  font-family: "Atziluth Script", cursive;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.program__schedule {
  display: grid;
  align-content: start;
  row-gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program__item {
  margin: 0;
}

.program__time {
  display: block;
  font-family: "Atziluth Script", cursive;
  font-size: 40px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0;
}

.program__event {
  margin: 2px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.program__illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.program__illustration img {
  display: block;
  width: min(100%, 260px);
  height: auto;
}

.dress-code {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 222px;
  padding: 20px 20px 16px;
  overflow: hidden;
  background: var(--dusty-blue);
  color: #fff;
}

.dress-code__content {
  width: min(100%, 390px);
  text-align: center;
}

.dress-code__title {
  margin: 0;
  font-family: "Atziluth Script", cursive;
  font-size: 40px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0;
}

.dress-code__text {
  margin: 16px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.wishes {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 650px;
  padding: 55px 20px 0px;
  overflow: hidden;
  border-top: 1px solid var(--dusty-blue);
  background: var(--paper);
  color: var(--ink);
}

.wishes__content {
  width: min(100%, 390px);
  text-align: center;
}

.wishes__title,
.wishes__waiting,
.wishes__date {
  margin: 0;
  font-family: "Atziluth Script", cursive;
  font-size: 40px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0;
  text-align: center;
}

.wishes__text {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.wishes__text--intro {
  margin-top: 11px;
}

.wishes__gifts {
  display: block;
  width: 270px;
  height: auto;
  margin: 20px auto 0;
}

.wishes__waiting {
  margin-top: 58px;
}

.wishes__confirmation {
  margin-top: 36px;
}

.wishes__date {
  display: block;
  margin-top: 14px;
}

.location__title,
.program__title,
.dress-code__title,
.wishes__title,
.wishes__waiting,
.wishes__date,
.rsvp__title {
  -webkit-text-stroke: 0.4px #516e80;
  paint-order: stroke fill;
}

.wishes__questionnaire {
  margin-top: 16px;
}

@media (min-width: 768px) {
  .wishes__content {
    width: min(100%, 520px);
  }

  .wishes__gifts {
    width: min(42vw, 405px);
  }
}

.questionnaire {
  position: relative;
  width: 100%;
  min-height: 328px;
  overflow: hidden;
  background: var(--paper);
}

.questionnaire__button {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 50%;
  width: 152px;
  height: 24px;
  padding: 0 16px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.questionnaire__button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.questionnaire__illustration {
  position: absolute;
  z-index: 1;
  top: 15px;
  left: 50%;
  display: block;
  width: 393px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .questionnaire {
    min-height: 430px;
  }

  .questionnaire__illustration {
    width: min(58vw, 540px);
  }

  .questionnaire__button {
    width: 170px;
    height: 28px;
    font-size: 10px;
  }
}

.rsvp {
  width: 100%;
  min-height: 800px;
  padding: 40px 20px 53px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.rsvp[hidden] {
  display: none;
}

.rsvp.is-visible {
  animation: reveal-form 500ms ease both;
}

.rsvp__form {
  width: min(100%, 250px);
  margin-inline: auto;
}

[data-honeypot] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rsvp__title {
  margin: 0;
  font-family: "Atziluth Script", cursive;
  font-size: 40px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0;
  text-align: center;
}

.rsvp__label,
.rsvp__legend,
.rsvp__option,
.rsvp__text-input,
.rsvp__submit {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rsvp__names {
  margin-top: 26px;
  text-align: center;
}

.rsvp__label {
  display: block;
}

.rsvp__text-input {
  display: block;
  width: 100%;
  height: 26px;
  margin-top: 10px;
  padding: 2px 12px;
  border: 1px solid #526f80;
  border-radius: 999px;
  outline: 0;
  background: transparent;
  color: var(--ink);
  text-transform: none;
}

.rsvp__text-input:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.rsvp__group {
  min-width: 0;
  margin-inline: 0;
  padding: 0;
  border: 0;
}

.rsvp__attendance {
  margin-top: 34px;
}

.rsvp__drinks,
.rsvp__transfer {
  margin-top: 30px;
}

.rsvp__legend {
  width: 100%;
  padding: 0;
  text-align: center;
}

.rsvp__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 10px 0 0 28px;
  cursor: pointer;
}

.rsvp__option input {
  display: grid;
  flex: 0 0 16px;
  place-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  border: 1px solid #526f80;
  background: transparent;
  cursor: pointer;
}

.rsvp__option input[type="radio"] {
  border-radius: 50%;
}

.rsvp__option input::before {
  width: 8px;
  height: 8px;
  transform: scale(0);
  background: var(--ink);
  content: "";
  transition: transform 120ms ease;
}

.rsvp__option input[type="radio"]::before {
  border-radius: 50%;
}

.rsvp__option input:checked::before {
  transform: scale(1);
}

.rsvp__option input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.rsvp__submit {
  display: block;
  width: 152px;
  height: 24px;
  margin: 28px auto 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.rsvp__submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.rsvp__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.rsvp__message {
  margin: 14px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
}

.rsvp__message--error {
  color: #8b2f2f;
}

@media (min-width: 768px) {
  .rsvp__submit {
    width: 170px;
    height: 28px;
    font-size: 10px;
  }
}

@keyframes reveal-form {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(54px, 10vh, 112px) 0 clamp(44px, 7vh, 80px);
  overflow: hidden;
  background: var(--paper);
}

.hero__title,
.hero__names {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Atziluth Script", cursive;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.hero__title {
  top: -12px;
  padding-inline: 24px;
  font-size: 40px;
}

.hero__illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin-block: clamp(28px, 5vh, 58px);
}

.hero__illustration img {
  display: block;
  width: min(68vw, 650px);
  height: min(40.28vw, 385px);
}

.hero__names {
  width: 100%;
  padding-inline: 24px;
  font-size: 60px;
  -webkit-text-stroke: 0.6px #0f3f5d;
  paint-order: stroke fill;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .hero {
    grid-template-rows: 0.84fr auto 0.76fr;
    height: calc(100svh - clamp(170px, 23svh, 220px) + 8px);
    min-height: 0;
    max-height: 720px;
    padding: 0;
  }

  .hero__title {
    align-self: end;
    padding-bottom: clamp(52px, 7vh, 84px);
  }

  .hero__illustration {
    height: clamp(260px, min(48.8vh, 82vw), 550px);
    margin: 0;
    overflow: hidden;
  }

  .hero__illustration img {
    position: relative;
    top: 8px;
    flex: none;
    width: auto;
    max-width: none;
    height: 100%;
    transform: translateX(2.5%);
  }

  .hero__names {
    top: 10px;
    align-self: start;
    padding-top: clamp(58px, 8vh, 90px);
    padding-inline: 12px;
    font-size: 60px;
  }
}

@media (max-width: 767px) and (max-height: 760px) {
  .hero {
    height: calc(100svh - 64px);
    min-height: 0;
    max-height: none;
  }

  .hero__title {
    padding-bottom: clamp(28px, 5vh, 38px);
  }

  .hero__illustration {
    height: min(45vh, 82vw);
  }

  .hero__names {
    padding-top: clamp(38px, 6vh, 48px);
  }
}

@media (max-width: 380px) {
  .hero__names {
    font-size: min(60px, 15.5vw);
  }
}

@media (max-width: 520px) {
  .invitation__month {
    font-size: 40px;
  }

  .invitation__text {
    margin-top: 23px;
    font-size: 11px;
  }

  .invitation__calendar {
    width: min(100%, 360px);
    margin-top: 45px;
  }

  .calendar {
    margin-top: 22px;
  }
}

@media (max-width: 767px) {
  .location {
    position: relative;
    min-height: 348px;
    padding: 0;
  }

  .location__inner {
    position: relative;
    display: block;
    width: 100%;
    min-height: 348px;
  }

  .location__illustration {
    position: absolute;
    top: 57px;
    left: -24px;
    display: block;
    width: 208px;
  }

  .location__illustration img {
    width: 208px;
    max-width: none;
  }

  .location__content {
    position: absolute;
    top: 70px;
    right: 20px;
    left: 172px;
    width: auto;
  }

  .location__address {
    margin-top: 14px;
  }
}

@media (max-width: 370px) {
  .location__illustration {
    left: -42px;
  }

  .location__content {
    right: 12px;
    left: 168px;
  }
}

@media (max-width: 767px) {
  .program {
    position: relative;
    min-height: 479px;
    padding: 0;
  }

  .program__inner {
    position: relative;
    top: -40px;
    display: block;
    width: 100%;
    min-height: 479px;
  }

  .program__title {
    position: absolute;
    top: 52px;
    right: 20px;
    left: 20px;
  }

  .program__schedule {
    position: absolute;
    z-index: 1;
    top: 132px;
    left: max(28px, calc((100vw - 390px) / 2 + 58px));
    row-gap: 20px;
  }

  .program__illustration {
    position: absolute;
    top: 132px;
    left: calc(50% - 3px);
    display: block;
    width: 202px;
  }

  .program__illustration img {
    width: 216px;
    max-width: none;
  }
}

@media (max-width: 370px) {
  .program__schedule {
    left: 34px;
  }

  .program__illustration {
    left: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro {
    opacity: 1;
    transition: none;
  }

  .scroll-reveal {
    opacity: 1;
    translate: 0;
    scale: 1;
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
