:root {
  --bg-color: #DFBFDF;
  --frame-color: #ffffff;
  --text-color: #5f4632;
  --placeholder-bg: rgba(255, 255, 255, 0.42);
  --placeholder-text: rgba(95, 70, 50, 0.72);
  --heading-font: "Amatic SC", "Comic Sans MS", "Comic Sans", cursive;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Trebuchet MS", sans-serif;
}

main.hero + section,
section + section {
  margin-top: 15px;
}

img {
  display: block;
  max-width: 100%;
}

.decorated-section {
  position: relative;
}

.decorated-section::before,
.decorated-section::after {
  position: absolute;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: rgba(219, 87, 111, 0.42);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.decorated-section::before {
  content: "♡";
  top: 18px;
  left: 6px;
  font-size: 34px;
  transform: rotate(-12deg);
}

.decorated-section::after {
  content: "✿";
  right: 8px;
  bottom: 20px;
  font-size: 42px;
  transform: rotate(10deg);
}

.decorated-section--story::before {
  content: "◜";
  top: 36px;
  left: 0;
  font-size: 44px;
}

.decorated-section--story::after {
  content: "✿";
  right: 18px;
  bottom: 72px;
  font-size: 38px;
  transform: rotate(-8deg);
}

.decorated-section--invitation::before {
  content: "❦";
  top: -2px;
  left: 20px;
  font-size: 30px;
  transform: rotate(14deg);
}

.decorated-section--invitation::after {
  content: "♡";
  right: 24px;
  bottom: 8px;
  font-size: 30px;
  transform: rotate(18deg);
}

.decorated-section--calendar::before {
  content: "✿";
  top: 54px;
  left: 8px;
  font-size: 30px;
  transform: rotate(-18deg);
}

.decorated-section--calendar::after {
  content: "♡";
  right: 14px;
  bottom: 90px;
  font-size: 34px;
  transform: rotate(12deg);
}

.decorated-section--journey::before {
  content: "❦";
  top: 8px;
  left: -2px;
  font-size: 32px;
  transform: rotate(-20deg);
}

.decorated-section--journey::after {
  content: "◜";
  right: 10px;
  bottom: 24px;
  font-size: 34px;
  transform: rotate(24deg);
}

.decorated-section--venue::before {
  content: "♡";
  top: 22px;
  left: 2px;
  font-size: 28px;
  transform: rotate(-24deg);
}

.decorated-section--venue::after {
  content: "✿";
  right: 16px;
  bottom: 130px;
  font-size: 36px;
  transform: rotate(6deg);
}

.decorated-section--schedule::before {
  content: "✦";
  top: 12px;
  left: 12px;
  font-size: 22px;
  transform: rotate(-10deg);
}

.decorated-section--schedule::after {
  content: "♡";
  right: 12px;
  bottom: 18px;
  font-size: 30px;
  transform: rotate(16deg);
}

.decorated-section--countdown::before {
  content: "✿";
  top: 22px;
  left: 10px;
  font-size: 28px;
  transform: rotate(12deg);
}

.decorated-section--countdown::after {
  content: "❦";
  right: 18px;
  bottom: 18px;
  font-size: 34px;
  transform: rotate(-14deg);
}

.decorated-section--form::before {
  content: "◜";
  top: 14px;
  left: 12px;
  font-size: 32px;
  transform: rotate(-22deg);
}

.decorated-section--form::after {
  content: "♡";
  right: 14px;
  bottom: 26px;
  font-size: 28px;
  transform: rotate(10deg);
}

.decorated-section--group::before {
  content: "✿";
  top: 18px;
  left: 14px;
  font-size: 32px;
  transform: rotate(-12deg);
}

.decorated-section--group::after {
  content: "◜";
  right: 14px;
  bottom: 16px;
  font-size: 30px;
  transform: rotate(18deg);
}

.decorated-section--contact::before {
  content: "❦";
  top: 10px;
  left: 8px;
  font-size: 30px;
  transform: rotate(-14deg);
}

.decorated-section--contact::after {
  content: "✦";
  right: 20px;
  bottom: 20px;
  font-size: 24px;
  transform: rotate(16deg);
}

.decorated-section--thanks::before {
  content: "♡";
  top: 8px;
  left: 18px;
  font-size: 32px;
  transform: rotate(-8deg);
}

.decorated-section--thanks::after {
  content: "✿";
  right: 8px;
  bottom: 90px;
  font-size: 34px;
  transform: rotate(20deg);
}

.story-section > *,
.invitation-section > *,
.calendar-section > *,
.journey-section > *,
.venue-section > *,
.schedule-section > *,
.countdown-section > *,
.guest-form-section > *,
.group-section > *,
.contact-section > *,
.thanks-section > * {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 100px 24px 48px;
}

.hero__title {
  margin: 34px auto 0;
  text-align: center;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.photo-placeholder {
  width: 190px;
  height: 220px;
  border: 4px solid var(--frame-color);
  background: var(--placeholder-bg);
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(95, 70, 50, 0.12);
}

.photo-placeholder--top {
  margin-left: 80px;
  --reveal-rotate: 10deg;
}

.photo-placeholder--bottom {
  margin-top: 48px;
  margin-left: 148px;
  --reveal-rotate: -10deg;
}

.hero__doodle {
  position: absolute;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: rgba(219, 87, 111, 0.72);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.hero__doodle--top-left {
  top: 150px;
  left: 14px;
  font-size: 58px;
  transform: rotate(-16deg);
}

.hero__doodle--middle-right {
  top: 248px;
  right: 28px;
  font-size: 74px;
  transform: rotate(12deg);
}

.hero__doodle--bottom-left {
  top: 540px;
  left: 44px;
  font-size: 42px;
  transform: rotate(-10deg);
}

.story-section {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 16px 24px 0;
}

.story-block {
  text-align: center;
}

.section-title {
  margin: 0;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 700;
  color: #000000;
  line-height: 1.15;
}

.section-subtitle {
  margin: 12px 0 18px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 700;
  color: #c73b3b;
  line-height: 1.2;
}

.section-text {
  width: min(100%, 560px);
  margin: 0 auto;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.7;
}

.section-text--lower {
  margin-top: 20px;
}

.story-divider {
  display: flex;
  justify-content: center;
  margin: 34px 0 0;
}

.story-divider__image {
  width: min(100%, 220px);
  opacity: 0.75;
}

.story-block--spaced {
  margin-top: 100px;
}

.invitation-section {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 8px 24px 0;
  text-align: center;
}

.feature-photo {
  width: fit-content;
  margin: 0 auto;
  position: relative;
}

.feature-photo__placeholder {
  width: min(100vw - 48px, 320px);
  aspect-ratio: 4 / 5;
  border-top: 4px solid var(--frame-color);
  border-right: 4px solid var(--frame-color);
  border-bottom: 30px solid var(--frame-color);
  border-left: 4px solid var(--frame-color);
  background: var(--placeholder-bg);
  box-shadow: 0 12px 28px rgba(95, 70, 50, 0.14);
  display: block;
  object-fit: cover;
  position: relative;
}

.feature-photo__caption {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
  text-transform: lowercase;
}

.invitation-section__text {
  width: min(100%, 540px);
  margin: 28px auto 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: DimGrey;
  line-height: 1.7;
}

.calendar-section {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 24px 0;
  text-align: center;
}

.calendar-section .section-title {
  font-size: clamp(28px, 6.2vw, 38px);
  font-weight: 400;
}

.calendar-section__month {
  margin: 40px 0 0;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 700;
  color: #c73b3b;
  line-height: 1.2;
}

.calendar-card {
  width: min(100%, 360px);
  margin: 20px auto 0;
  padding: 22px 18px 20px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 12px 30px rgba(95, 70, 50, 0.12);
  border-radius: 22px;
}

.calendar-card__header {
  margin-bottom: 14px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}

.calendar-card__weekdays,
.calendar-card__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-card__weekdays {
  margin-bottom: 10px;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(105, 105, 105, 0.92);
}

.calendar-card__day {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 15px;
  color: #333333;
  border-radius: 50%;
}

.calendar-card__day--muted {
  color: rgba(105, 105, 105, 0.45);
}

.calendar-card__day--accent {
  border: 2px solid #c73b3b;
  color: #c73b3b;
  font-weight: 700;
}

.calendar-section__text {
  width: min(100%, 400px);
  margin: 24px auto 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.7;
}

.journey-section {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 24px;
}

.journey-section__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

.journey-section__media,
.journey-section__title-wrap {
  width: 100%;
}

.journey-section__image {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.journey-section__title-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
}

.journey-section__title {
  width: fit-content;
  margin: 0;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700;
  color: #000000;
  line-height: 1.08;
  text-align: left;
}

.journey-section__text {
  margin: 20px 0 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.7;
  text-align: left;
}

.venue-section {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.venue-section__content {
  width: min(100%, 520px);
  margin: 0 auto;
  text-align: left;
}

.venue-section__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

.venue-section__title-wrap,
.venue-section__media {
  width: 100%;
}

.venue-section__title-wrap {
  display: flex;
  align-items: center;
}

.venue-section__title {
  width: 100%;
  font-size: clamp(22px, 4.4vw, 34px);
}

.venue-section__image {
  width: 100%;
  max-width: 150px;
  margin: 0 auto;
  transform: translateY(14px);
}

.venue-section__text {
  width: 100%;
  margin: 20px 0 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.7;
}

.venue-section__lead {
  margin: 30px 0 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.6;
}

.venue-section__address {
  margin: 10px 0 0;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.venue-section__map-wrap {
  margin-top: 24px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(95, 70, 50, 0.12);
  background: rgba(255, 255, 255, 0.3);
}

.venue-section__map {
  display: block;
  width: 100%;
  border: 0;
}

.schedule-section {
  width: min(100%, 760px);
  margin: 24px auto 0;
  padding: 0 5px;
}

.schedule-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 36px;
  padding: 28px 20px 24px;
  text-align: center;
}

.schedule-card__guest-title,
.schedule-card__guest-time,
.schedule-card__intro,
.schedule-item__time,
.schedule-item__label {
  margin: 0;
}

.schedule-card__guest-title {
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 17px;
  color: DimGrey;
  line-height: 1.5;
}

.schedule-card__guest-time {
  margin-top: 4px;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 18px;
  color: #000000;
  line-height: 1.5;
}

.schedule-card__title {
  margin-top: 18px;
}

.schedule-card__intro {
  width: min(100%, 430px);
  margin: 14px auto 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.7;
}

.schedule-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.schedule-item {
  border: 2px solid #000000;
  border-radius: 18px;
  padding: 18px 16px;
}

.schedule-item__time {
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.schedule-item__label {
  margin-top: 8px;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.5;
}

.dresscode-block {
  margin-top: 28px;
}

.dresscode-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  align-items: center;
  gap: 10px;
}

.dresscode-pair + .dresscode-pair {
  margin-top: 20px;
}

.dresscode-pair__content,
.dresscode-pair__media {
  width: 100%;
}

.dresscode-block__title {
  margin: 0;
}

.dresscode-block__accent {
  margin: 12px 0 0;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: #c73b3b;
  line-height: 1.2;
}

.dresscode-pair__image {
  width: 100%;
  max-width: 120px;
  margin: 0 0 0 auto;
  transform: translateX(10px);
}

.dresscode-pair__image--small {
  max-width: 84px;
}

.dresscode-block__text {
  margin: 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.7;
  text-align: left;
}

.dresscode-block__fullwidth {
  margin-top: 10px;
}

.dresscode-block__fullwidth-image {
  width: 100%;
  border-radius: 20px;
}

.countdown-section {
  width: min(100%, 760px);
  margin: 24px auto 0;
  padding: 0 5px;
}

.countdown-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 36px;
  padding: 28px 20px 24px;
  text-align: center;
}

.countdown-card__title,
.countdown-card__accent,
.countdown-card__subtitle,
.countdown-card__wishes-title,
.countdown-card__text,
.countdown-card__thanks,
.countdown-note__text {
  margin: 0;
}

.countdown-card__accent {
  margin-top: 10px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: #c73b3b;
  line-height: 1.2;
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.countdown-timer__item {
  text-align: center;
}

.countdown-timer__value {
  display: block;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 700;
  color: #d73356;
  line-height: 1;
}

.countdown-timer__label {
  display: block;
  margin-top: 10px;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.4;
}

.countdown-card__subtitle {
  margin-top: 10px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.countdown-card__fullwidth {
  margin-top: 10px;
}

.countdown-card__fullwidth-image {
  width: 100%;
  border-radius: 20px;
}

.countdown-card__wishes-title {
  margin-top: 10px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.countdown-card__text {
  margin-top: 5px;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.7;
}

.countdown-note-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.countdown-note {
  position: relative;
  padding: 16px 16px 16px 42px;
  border: 2px solid #000000;
  border-radius: 18px;
  text-align: left;
}

.countdown-note::before {
  content: "♡";
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 18px;
  color: #d73356;
  line-height: 1;
}

.countdown-note__text {
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.7;
}

.countdown-card__thanks {
  margin-top: 5px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  color: #c73b3b;
  line-height: 1.35;
}

.guest-form-section {
  width: min(100%, 760px);
  margin: 24px auto 0;
  padding: 0 5px 90px;
}

.guest-form-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 36px;
  padding: 0 20px 24px;
  overflow: hidden;
  text-align: center;
}

.guest-form-card__image-wrap {
  width: min(100%, 520px);
  margin: 0 auto;
}

.guest-form-card__image {
  width: 100%;
  display: block;
  border-radius: 0 0 20px 20px;
}

.guest-form-card__title {
  margin-top: 18px;
}

.guest-form-field {
  width: min(100%, 520px);
  margin: 20px auto 0;
  text-align: left;
}

.guest-form-field--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guest-form-field__label {
  display: block;
  margin-bottom: 12px;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: DimGrey;
  line-height: 1.4;
}

.guest-form-field__label--compact {
  margin-bottom: 0;
}

.guest-form-field__input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid rgba(95, 70, 50, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 16px;
  color: #3f342b;
  outline: none;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.guest-form-field__input::placeholder {
  color: rgba(63, 52, 43, 0.48);
}

.guest-form-field__input:focus {
  border-color: rgba(199, 59, 59, 0.5);
  box-shadow: 0 0 0 4px rgba(199, 59, 59, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.guest-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.guest-counter__value {
  width: 68px;
  padding: 12px 14px;
  border: 2px solid rgba(95, 70, 50, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #3f342b;
  text-align: center;
}

.guest-counter__button {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #c73b3b;
  color: #ffffff;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(199, 59, 59, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.guest-counter__button:hover {
  background: #b63232;
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(199, 59, 59, 0.24);
}

.guest-counter__button:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(199, 59, 59, 0.2);
}

.guest-children-fields {
  width: min(100%, 520px);
  margin: 0 auto;
}

.guest-child-field {
  margin-top: 14px;
  opacity: 0;
  transform: translateY(12px);
  animation: child-field-enter 360ms ease forwards;
}

@keyframes child-field-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guest-form-card__submit {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  background: #c73b3b;
  color: #ffffff;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(199, 59, 59, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.guest-form-card__submit.is-disabled {
  background: rgba(199, 59, 59, 0.5);
  box-shadow: none;
}

.guest-form-card__submit:hover {
  background: #b63232;
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(199, 59, 59, 0.24);
}

.guest-form-card__submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(199, 59, 59, 0.2);
}

.guest-form-card__submit.is-disabled:hover {
  background: rgba(199, 59, 59, 0.5);
  transform: none;
  box-shadow: none;
}

.guest-form-card__submit-burst {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

.guest-form-toast {
  min-height: 28px;
  margin-top: 12px;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #b63232;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.guest-form-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.guest-form-card__submit-heart {
  position: absolute;
  left: var(--submit-heart-left, 50%);
  top: 52%;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: var(--submit-heart-size, 22px);
  color: rgba(255, 255, 255, 0.96);
  line-height: 1;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.6);
  text-shadow: 0 8px 18px rgba(199, 59, 59, 0.28);
  animation: submit-heart-burst 1200ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.guest-form-card__submit.is-sending {
  pointer-events: none;
}

.guest-form-card__submit.is-sent {
  animation: submit-button-fly 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes submit-heart-burst {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -35%, 0) scale(0.5);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(
      calc(-50% + var(--submit-heart-x, 0px)),
      calc(-50% + var(--submit-heart-y, -70px)),
      0
    ) scale(1.22);
  }
}

@keyframes submit-button-fly {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -36px, 0) scale(0.88);
  }
}

.guest-form-options {
  display: grid;
  gap: 12px;
}

.guest-form-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid rgba(95, 70, 50, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.guest-form-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.guest-form-option__mark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(199, 59, 59, 0.55);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.guest-form-option__mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #c73b3b;
  transform: scale(0);
  transition: transform 180ms ease;
}

.guest-form-option__input:checked + .guest-form-option__mark::after {
  transform: scale(1);
}

.guest-form-option__input:checked ~ .guest-form-option__text {
  color: #3f342b;
}

.guest-form-option__text {
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 16px;
  color: DimGrey;
  line-height: 1.45;
}

.group-section {
  width: min(100%, 760px);
  margin: 24px auto 0;
  padding: 0 5px 90px;
}

.group-card {
  background: #8f2f47;
  border-radius: 36px;
  padding: 28px 20px 24px;
  text-align: center;
}

.group-card__title,
.group-card__text {
  margin: 0;
}

.group-card__title {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
}

.group-card__text {
  width: min(100%, 520px);
  margin: 18px auto 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.7;
}

.group-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  margin-top: 18px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #c73b3b;
  text-decoration: none;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(63, 20, 31, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.group-card__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(63, 20, 31, 0.26);
  background: #fff6f6;
}

.group-card__button:active {
  transform: translateY(0);
  box-shadow: 0 8px 14px rgba(63, 20, 31, 0.22);
}

.contact-section {
  width: min(100%, 760px);
  margin: 24px auto 0;
  padding: 0 5px 90px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 36px;
  padding: 28px 20px 24px;
  text-align: center;
}

.contact-card__title,
.contact-card__text {
  margin: 0;
}

.contact-card__text {
  width: min(100%, 520px);
  margin: 14px auto 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.7;
}

.contact-person {
  width: min(100%, 360px);
  margin-top: 18px;
  padding: 5px 14px 14px;
  border: 2px solid #000000;
  border-radius: 22px;
  margin-left: auto;
  margin-right: auto;
}

.contact-person__photo {
  width: calc(100% + 14px);
  max-width: none;
  aspect-ratio: 16 / 8.4;
  margin: 0 auto;
  border: 3px solid #ffffff;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  display: block;
  object-fit: cover;
  transform: translateX(-7px);
}

.contact-person__photo--bride {
  object-position: center -60px;
}

.contact-person__title,
.contact-person__phone {
  margin: 0;
}

.contact-person__title {
  margin-top: 10px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.contact-person__phone {
  display: block;
  margin-top: 6px;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 16px;
  color: DimGrey;
  line-height: 1.4;
  text-decoration: none;
}

.contact-person__vk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: #ffffff;
  color: #2787f5;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(39, 135, 245, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.contact-person__vk:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(39, 135, 245, 0.24);
}

.contact-person__vk-icon {
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.thanks-section {
  width: min(100%, 760px);
  margin: 24px auto 0;
  padding: 0 24px 90px;
  text-align: center;
}

.thanks-section__title,
.thanks-section__text,
.thanks-section__name {
  margin: 0;
}

.thanks-section__text {
  width: min(100%, 540px);
  margin: 16px auto 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  font-size: 14px;
  color: DimGrey;
  line-height: 1.7;
}

.thanks-section__pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.thanks-section__name {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.thanks-section__photo {
  width: 210px;
  height: 255px;
  border: 4px solid var(--frame-color);
  background: var(--placeholder-bg);
  box-shadow: 0 10px 24px rgba(95, 70, 50, 0.12);
  display: block;
  object-fit: cover;
}

.thanks-section__photo--top {
  transform: rotate(10deg);
}

.thanks-section__photo--bottom {
  transform: rotate(-10deg);
}

.thanks-section__image-wrap {
  margin-top: 22px;
}

.thanks-section__image {
  width: min(100%, 360px);
  margin: 0 auto;
}

.guest-form-option__burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.guest-form-option__heart {
  position: absolute;
  bottom: 14px;
  left: var(--heart-left, 50%);
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: var(--heart-size, 18px);
  color: rgba(215, 51, 86, 0.98);
  line-height: 1;
  opacity: 0;
  transform: translate3d(-50%, 0, 0) scale(0.7);
  animation: heart-float 1200ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  text-shadow: 0 4px 10px rgba(215, 51, 86, 0.18);
}

@keyframes heart-float {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 6px, 0) scale(0.7);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--heart-drift, 0px)), -40px, 0) scale(1.16);
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 92px 18px 32px;
  }

  .hero__title {
    margin-top: 30px;
    font-size: clamp(44px, 16vw, 60px);
  }

  .photo-placeholder {
    width: 168px;
    height: 198px;
    font-size: 13px;
  }

  .photo-placeholder--top {
    margin-left: 14px;
  }

  .photo-placeholder--bottom {
    margin-top: 44px;
    margin-left: auto;
    margin-right: 6px;
  }

  .hero__doodle--top-left {
    top: 136px;
    left: -2px;
    font-size: 46px;
  }

  .hero__doodle--middle-right {
    top: 255px;
    right: 18px;
    font-size: 58px;
  }

  .hero__doodle--bottom-left {
    top: 520px;
    left: 28px;
    font-size: 34px;
  }

  .story-section {
    padding: 8px 18px 0;
  }

  .decorated-section::before {
    left: 2px;
    font-size: 28px;
  }

  .decorated-section::after {
    right: 4px;
    font-size: 34px;
  }

  .decorated-section--calendar::after,
  .decorated-section--venue::after,
  .decorated-section--thanks::after {
    right: 2px;
  }

  .decorated-section--story::after,
  .decorated-section--calendar::after,
  .decorated-section--venue::after,
  .decorated-section--thanks::after {
    bottom: 36px;
  }

  .section-subtitle {
    margin-top: 10px;
    margin-bottom: 16px;
  }

  .story-divider {
    margin-top: 28px;
  }

  .story-divider__image {
    width: min(100%, 180px);
  }

  .story-block--spaced {
    margin-top: 100px;
  }

  .invitation-section {
    padding: 0 18px;
  }

  .feature-photo__placeholder {
    width: min(100vw - 36px, 300px);
    font-size: 16px;
  }

  .feature-photo__caption {
    bottom: 3px;
  }

  .invitation-section__text {
    margin-top: 24px;
  }

  .calendar-section {
    padding: 0 18px;
  }

  .calendar-card {
    width: min(100%, 340px);
    padding: 20px 14px 18px;
  }

  .calendar-card__weekdays,
  .calendar-card__grid {
    gap: 6px;
  }

  .calendar-card__day {
    font-size: 14px;
  }

  .journey-section {
    padding: 0 18px;
  }

  .journey-section__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  .journey-section__title-wrap {
    justify-content: flex-start;
  }

  .journey-section__title {
    width: 100%;
    font-size: clamp(24px, 6vw, 30px);
    text-align: left;
  }

  .journey-section__image {
    max-width: 100%;
  }

  .journey-section__text {
    text-align: center;
  }

  .venue-section {
    padding: 0 18px;
  }

  .venue-section__content {
    width: min(100%, 100%);
  }

  .venue-section__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  .venue-section__title-wrap {
    justify-content: flex-start;
  }

  .venue-section__title {
    text-align: left;
    font-size: clamp(18px, 4.9vw, 24px);
  }

  .venue-section__image {
    max-width: 72%;
    transform: translateY(10px);
  }

  .venue-section__map-wrap {
    margin-top: 20px;
    border-radius: 20px;
  }

  .schedule-section {
    padding: 0 5px;
  }

  .schedule-card {
    border-radius: 28px;
    padding: 24px 16px 20px;
  }

  .dresscode-pair {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    gap: 10px;
  }

  .dresscode-block__title,
  .dresscode-block__accent,
  .dresscode-block__text {
    text-align: left;
  }

  .dresscode-pair__image {
    max-width: 78%;
    transform: translateX(10px);
  }

  .dresscode-pair__image--small {
    max-width: 56%;
  }

  .countdown-section {
    padding: 0 5px;
  }

  .countdown-card {
    border-radius: 28px;
    padding: 24px 16px 20px;
  }

  .countdown-timer {
    gap: 6px;
  }

  .countdown-timer__value {
    font-size: clamp(28px, 10vw, 38px);
  }

  .countdown-timer__label {
    margin-top: 6px;
    font-size: 12px;
  }

  .guest-form-section {
    padding: 0 5px 72px;
  }

  .guest-form-card {
    border-radius: 28px;
    padding: 0 16px 20px;
  }

  .guest-form-card__image-wrap {
    width: min(100%, 440px);
    margin: 0 auto;
  }

  .guest-form-card__title {
    margin-top: 16px;
  }

  .guest-form-field {
    margin-top: 18px;
  }

  .guest-form-field--inline {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .guest-form-field__label {
    font-size: 18px;
  }

  .group-section {
    padding: 0 5px 72px;
  }

  .group-card {
    border-radius: 28px;
    padding: 24px 16px 20px;
  }

  .group-card__button {
    min-width: 100%;
  }

  .contact-section {
    padding: 0 5px 72px;
  }

  .contact-card {
    border-radius: 28px;
    padding: 24px 16px 20px;
  }

  .contact-person__phone {
    font-size: 15px;
  }

  .thanks-section {
    padding: 0 18px 72px;
  }

  .thanks-section__pair {
    gap: 12px;
    margin-top: 18px;
  }

  .thanks-section__photo {
    width: 164px;
    height: 196px;
  }

  .thanks-section__image {
    width: min(100%, 300px);
  }
}

@media (min-width: 768px) {
  .hero {
    max-width: 900px;
    margin: 0 auto;
  }

  .photo-placeholder {
    width: 260px;
    height: 300px;
  }

  .photo-placeholder--top {
    margin-left: 110px;
  }

  .photo-placeholder--bottom {
    margin-top: 58px;
    margin-left: 332px;
  }

  .hero__doodle--top-left {
    top: 140px;
    left: 28px;
    font-size: 72px;
  }

  .hero__doodle--middle-right {
    top: 250px;
    right: 90px;
    font-size: 96px;
  }

  .hero__doodle--bottom-left {
    top: 650px;
    left: 90px;
    font-size: 54px;
  }

  .story-section {
    padding: 12px 32px 0;
  }

  .section-text {
    width: min(100%, 620px);
  }

  .story-divider__image {
    width: 240px;
  }

  .invitation-section {
    padding: 0 32px;
  }

  .feature-photo__placeholder {
    width: 360px;
  }

  .feature-photo__caption {
    font-size: 18px;
    bottom: 5px;
  }

  .calendar-section {
    padding: 0 32px;
  }

  .journey-section {
    padding: 0 32px;
  }

  .journey-section__image {
    max-width: 390px;
  }

  .venue-section {
    padding: 0 32px;
  }

  .venue-section__content {
    width: min(100%, 760px);
  }

  .venue-section__image {
    max-width: 155px;
    transform: translateY(18px);
  }

  .schedule-section {
    padding: 0 5px;
  }

  .countdown-section {
    padding: 0 5px;
  }

  .guest-form-section {
    padding: 0 5px 120px;
  }

  .group-section {
    padding: 0 5px 120px;
  }

  .contact-section {
    padding: 0 5px 120px;
  }

  .thanks-section {
    padding: 0 32px 120px;
  }
}

html.js-ready .reveal {
  opacity: 0;
  will-change: transform, opacity;
}

html.js-ready .reveal--photo {
  transform: translate3d(0, 46px, 0) rotate(var(--reveal-rotate, 0deg)) scale(0.96);
  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 900ms ease;
}

html.js-ready .reveal--text {
  transform: translate3d(0, 18px, 0);
  transition:
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 760ms ease;
}

html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--reveal-rotate, 0deg)) scale(1);
}

html.js-ready .reveal-delay-1 {
  transition-delay: 80ms;
}

html.js-ready .reveal-delay-2 {
  transition-delay: 160ms;
}

html.js-ready .reveal-delay-3 {
  transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal,
  html.js-ready .reveal--photo,
  html.js-ready .reveal--text,
  html.js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .guest-form-option__heart {
    animation: none;
    opacity: 0;
  }

  .guest-form-card__submit.is-sent {
    animation: none;
    opacity: 0;
  }

  .guest-form-card__submit-heart {
    animation: none;
    opacity: 0;
  }
}

.hero__title,
.section-title,
.section-subtitle,
.feature-photo__caption,
.calendar-section__month,
.calendar-card__header,
.journey-section__title,
.venue-section__address,
.dresscode-block__accent,
.countdown-card__accent,
.countdown-timer__value,
.countdown-card__subtitle,
.countdown-card__wishes-title,
.countdown-card__thanks,
.group-card__title,
.contact-person__title,
.thanks-section__name {
  font-family: var(--heading-font);
}
