:root {
  --dark: #00291d;
  --dark-deep: #001d15;
  --cream: #eee3d8;
  --cream-light: #f6eee6;
  --ink: #173328;
  --gold: #d8a13e;
  --white: #f6f0e8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: #061d16;
  color: var(--ink);
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body,
button,
input,
select,
textarea {
  font-family: Georgia, "Times New Roman", serif;
}

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

button,
input,
select,
textarea {
  border-radius: 0;
}

.site-shell {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
}

.site-shell:focus {
  outline: none;
}

section,
footer {
  position: relative;
  overflow: hidden;
}

.paper {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 14% 22%, rgb(255 255 255 / 16%) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 73%, rgb(158 116 78 / 9%) 0 1px, transparent 2px),
    repeating-linear-gradient(38deg, transparent 0 23px, rgb(130 100 73 / 2%) 24px 25px);
  background-size: 41px 43px, 53px 51px, 73px 73px;
}

.dark {
  color: var(--white);
  background-color: var(--dark);
  background-image:
    radial-gradient(circle at 22% 40%, rgb(8 83 57 / 42%), transparent 32%),
    radial-gradient(circle at 75% 15%, rgb(2 54 36 / 56%), transparent 29%),
    repeating-linear-gradient(125deg, transparent 0 58px, rgb(211 155 55 / 2%) 59px 60px),
    linear-gradient(110deg, var(--dark-deep), var(--dark) 52%, #001d15);
}

.decor {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}

.ornament {
  display: flex;
  align-items: center;
  color: var(--gold);
}

.ornament i {
  display: block;
  height: 1px;
  flex: 1;
  background: var(--gold);
  opacity: .95;
}

.ornament span {
  margin: 0 6px;
  font: 20px/1 Georgia, serif;
  transform: translateY(-1px);
}

.hero {
  min-height: 650px;
  color: var(--white);
  background: #001c13;
}

.hero__photo,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__photo {
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  z-index: 1;
  display: none;
}

.hero__monogram {
  position: absolute;
  z-index: 6;
  top: 12px;
  left: 20px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .34em;
  font: 10px/1.2 Arial, sans-serif;
}

.hero__content {
  position: relative;
  z-index: 6;
  width: min(86%, 420px);
  padding: 105px 24px 0;
}

.hero__invite {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 29px;
  line-height: 1.28;
}

.hero__title {
  margin: 0;
  font-size: clamp(52px, 15vw, 74px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.035em;
}

.hero__title span {
  display: block;
}

.hero__title b {
  color: var(--gold);
  font-weight: 400;
}

.ornament--hero {
  width: 100%;
  margin: 31px 0 25px;
}

.hero__date {
  margin: 0;
  color: var(--gold);
  text-align: center;
  font-size: 25px;
}

.hero__scroll {
  position: absolute;
  z-index: 7;
  bottom: 35px;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  place-items: center;
  color: var(--gold);
  transform: translateX(-50%);
}

.hero__scroll img {
  width: 22px;
  color: var(--gold);
  filter: brightness(0) saturate(100%) invert(71%) sepia(59%) saturate(555%) hue-rotate(358deg) brightness(88%);
}

.decor--hero-left-top,
.decor--hero-left-bottom,
.decor--hero-right {
  display: none;
}

.invitation {
  min-height: 760px;
  padding: 74px 28px 50px;
}

.invitation__copy {
  position: relative;
  z-index: 3;
  max-width: 360px;
  margin: 0 auto 36px;
}

.invitation h2,
.place h2,
.wishes h2,
.countdown h2,
.rsvp h2 {
  margin: 0;
  font-weight: 400;
}

.invitation h2 {
  font-size: 32px;
  line-height: 1.12;
}

.ornament--small {
  width: 205px;
  margin: 18px 0 28px;
}

.invitation__copy p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.42;
}

.invitation__photo {
  position: relative;
  z-index: 2;
  width: min(84vw, 380px);
  height: min(84vw, 380px);
  margin: 0 auto;
  padding: 17px;
  background: #f9f6f1;
  box-shadow: 0 7px 17px rgb(34 21 12 / 29%);
  transform: rotate(-1.2deg);
}

.invitation__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 49%;
}

.decor--invitation-left,
.decor--invitation-center,
.decor--invitation-right {
  display: none;
}

.date-section {
  min-height: 620px;
  padding: 52px 28px;
}

.calendar {
  position: relative;
  z-index: 2;
  max-width: 300px;
  margin: 0 auto 45px;
  text-align: center;
}

.calendar h2 {
  margin: 0;
  color: var(--gold);
  font-size: 29px;
  font-weight: 400;
}

.ornament--calendar {
  width: 220px;
  margin: 10px auto 12px;
}

.calendar__month {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 15px;
}

.calendar table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.calendar th {
  padding-bottom: 8px;
  font-size: 10px;
  font-weight: 400;
}

.calendar td {
  height: 27px;
  padding: 0;
}

.calendar__chosen {
  display: inline-grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  place-items: center;
  color: white;
  background: var(--gold);
}

.date-section__big {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  line-height: 1;
}

.date-section__big span,
.date-section__big b {
  display: block;
  font-weight: 400;
}

.date-section__big span {
  font-size: 70px;
}

.date-section__big b {
  margin-top: 9px;
  font-size: 34px;
}

.decor--date-left,
.decor--date-right {
  display: none;
}

.place {
  min-height: 580px;
  padding: 58px 28px 0;
}

.place__copy {
  position: relative;
  z-index: 4;
  max-width: 340px;
  margin: 0 auto 40px;
}

.place h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 29px;
}

.place h2 img {
  width: 22px;
  height: 28px;
}

.ornament--place {
  width: 220px;
  margin: 10px 0 12px;
}

.place__name {
  margin: 0 0 4px;
  font-size: 39px;
}

.place__time {
  margin: 0 0 24px;
  font-size: 18px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: linear-gradient(180deg, #07462f, #003523);
  box-shadow: 0 4px 10px rgb(16 37 25 / 28%), inset 0 0 9px rgb(0 0 0 / 34%);
  text-decoration: none;
  font-size: 16px;
}

.place__route {
  gap: 18px;
}

.place__route span {
  font-size: 25px;
  line-height: .5;
}

.place__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 265px;
}

.place__photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--cream) 0%, transparent 35%);
}

.place__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decor--place-left,
.decor--place-right {
  display: none;
}

.wishes {
  min-height: 560px;
  padding: 42px 26px;
}

.wishes > h2,
.countdown > h2 {
  position: relative;
  z-index: 5;
  color: var(--gold);
  text-align: center;
  font-size: 29px;
}

.ornament--center,
.ornament--countdown {
  position: relative;
  z-index: 5;
  width: 130px;
  margin: 8px auto 26px;
}

.wishes__cards {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.wish-card {
  display: grid;
  min-height: 165px;
  padding: 22px 20px;
  border-radius: 5px;
  grid-template-columns: 50px 1fr;
  gap: 15px;
  color: var(--ink);
  background: var(--cream-light);
  box-shadow: 0 3px 10px rgb(0 0 0 / 23%);
}

.wish-card img {
  width: 45px;
  height: 45px;
}

.wish-card h3 {
  margin: 0 0 7px;
  font-size: 22px;
  font-weight: 400;
}

.wish-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.38;
}

.decor--wishes-left,
.decor--wishes-right,
.decor--countdown-left,
.decor--countdown-right {
  display: none;
}

.countdown {
  min-height: 410px;
  padding: 34px 24px 44px;
}

.countdown__grid {
  position: relative;
  z-index: 5;
  display: grid;
  max-width: 560px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.time-card {
  display: flex;
  min-height: 125px;
  border: 1px solid rgb(58 124 90 / 35%);
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgb(0 43 29 / 77%);
  box-shadow: inset 0 0 15px rgb(0 0 0 / 15%);
}

.time-card span {
  font-size: 47px;
  line-height: 1;
}

.time-card small {
  margin-top: 9px;
  font-size: 17px;
}

.rsvp {
  min-height: 650px;
  padding: 58px 28px;
}

.rsvp__heading {
  position: relative;
  z-index: 4;
  max-width: 320px;
  margin: 0 auto 34px;
}

.rsvp h2 {
  font-size: 30px;
  line-height: 1.06;
}

.ornament--rsvp {
  width: 210px;
  margin-top: 15px;
}

.rsvp-form {
  position: relative;
  z-index: 5;
  display: grid;
  max-width: 500px;
  margin: 0 auto;
  gap: 18px;
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.field {
  display: grid;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 6px;
  min-width: 0;
}

.field > span,
.field legend {
  padding: 0;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgb(98 82 69 / 12%);
  border-radius: 4px;
  outline: none;
  color: #4f4b45;
  background: rgb(255 250 246 / 66%);
  box-shadow: inset 0 1px 3px rgb(55 31 12 / 6%);
  font-size: 14px;
}

.field input,
.field select {
  height: 40px;
  padding: 0 13px;
}

.field textarea {
  min-height: 92px;
  padding: 10px 13px;
  resize: vertical;
}

.guest-stepper {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
}

.guest-stepper button {
  border: 1px solid rgb(98 82 69 / 12%);
  color: #716b64;
  background: rgb(255 250 246 / 66%);
  cursor: pointer;
}

.guest-stepper input {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  text-align: center;
  -moz-appearance: textfield;
}

.guest-stepper input::-webkit-inner-spin-button,
.guest-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.rsvp-form__submit {
  border: 1px solid var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  cursor: pointer;
}

.rsvp-form__submit:disabled {
  cursor: wait;
  opacity: .82;
}

.rsvp-form.is-error .rsvp-form__note {
  color: #8b2f24;
}

.rsvp-form__note {
  margin: -7px 0 0;
  font-size: 13px;
}

.decor--rsvp-left,
.decor--rsvp-branch,
.decor--rsvp-right {
  display: none;
}

.footer {
  min-height: 180px;
  padding: 28px 20px 20px;
  text-align: center;
}

.footer p {
  position: relative;
  z-index: 5;
  margin: 0;
  font-size: 42px;
  line-height: 1;
}

.footer p span {
  color: var(--gold);
}

.ornament--footer {
  position: relative;
  z-index: 5;
  width: 220px;
  margin: 14px auto 8px;
}

.footer time {
  position: relative;
  z-index: 5;
  color: var(--gold);
  font-size: 17px;
}

.decor--footer-left,
.decor--footer-right {
  display: none;
}

@media (min-width: 700px) {
  .hero {
    min-height: 440px;
    height: 440px;
  }

  .hero__monogram {
    top: 3px;
    left: 35px;
    font-size: 8px;
  }

  .hero__content {
    position: absolute;
    top: 52px;
    left: 151px;
    width: 208px;
    padding: 0;
  }

  .hero__invite {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.22;
  }

  .hero__title {
    font-size: 64px;
    line-height: .98;
    letter-spacing: -.04em;
  }

  .hero__title span:nth-child(2) {
    white-space: nowrap;
  }

  .ornament--hero {
    width: 205px;
    margin: 28px 0 19px;
  }

  .ornament--hero span {
    font-size: 19px;
  }

  .hero__date {
    font-size: 22px;
  }

  .hero__scroll {
    bottom: 28px;
    width: 52px;
    height: 52px;
  }

  .decor--hero-left-top,
  .decor--hero-left-bottom,
  .decor--hero-right {
    display: block;
  }

  .decor--hero-left-top {
    top: 0;
    left: 0;
    width: 150px;
    height: 220px;
    z-index: 4;
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }

  .hero__photo {
    right: auto;
    left: 0;
    width: 840px;
    max-width: none;
    transform: translateX(96px);
  }

  .hero__monogram {
    left: 31px;
    padding: 1px 4px;
    background: rgb(0 25 18 / 88%);
    box-shadow: 0 0 6px 5px rgb(0 25 18 / 88%);
  }

  .decor--hero-left-bottom {
    bottom: 0;
    left: 0;
    width: 195px;
    height: 340px;
    z-index: 5;
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 77%);
    mask-image: linear-gradient(90deg, #000 70%, transparent 77%);
  }

  .decor--hero-right {
    top: 0;
    right: 0;
    width: 150px;
    height: 440px;
    z-index: 5;
    -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent);
    mask-image: linear-gradient(270deg, #000 82%, transparent);
  }

  .invitation {
    min-height: 345px;
    height: 345px;
    padding: 0;
  }

  .invitation__copy {
    position: absolute;
    z-index: 5;
    top: 53px;
    left: 165px;
    width: 220px;
    margin: 0;
  }

  .invitation h2 {
    font-size: 27px;
    line-height: 1.08;
  }

  .ornament--small {
    width: 190px;
    margin: 9px 0 20px;
  }

  .ornament--small span {
    font-size: 17px;
  }

  .invitation__copy p {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.42;
  }

  .invitation__photo {
    position: absolute;
    top: 25px;
    left: 445px;
    width: 298px;
    height: 291px;
    margin: 0;
    padding: 9px 18px 18px;
    transform: rotate(-.8deg);
    background: #eee9e3;
  }

  .decor--invitation-left,
  .decor--invitation-center,
  .decor--invitation-right {
    display: block;
  }

  .decor--invitation-left {
    top: 0;
    left: 0;
    width: 150px;
    height: 345px;
    -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
    mask-image: linear-gradient(90deg, #000 78%, transparent);
  }

  .decor--invitation-center {
    right: 175px;
    bottom: 0;
    width: 300px;
    height: 225px;
    z-index: 6;
  }

  .decor--invitation-right {
    top: 0;
    right: 0;
    width: 115px;
    height: 345px;
    z-index: 7;
    -webkit-mask-image: linear-gradient(270deg, #000 79%, transparent);
    mask-image: linear-gradient(270deg, #000 79%, transparent);
  }

  .date-section {
    min-height: 265px;
    height: 265px;
    padding: 0;
  }

  .calendar {
    position: absolute;
    top: 24px;
    left: 157px;
    width: 205px;
    margin: 0;
  }

  .calendar h2 {
    font-size: 20px;
    white-space: nowrap;
  }

  .ornament--calendar {
    width: 203px;
    margin: 7px auto 8px;
  }

  .ornament--calendar span {
    font-size: 15px;
  }

  .calendar__month {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .calendar table {
    font-size: 11px;
  }

  .calendar th {
    padding-bottom: 4px;
    font-size: 8px;
  }

  .calendar td {
    height: 22px;
  }

  .calendar__chosen {
    width: 21px;
    height: 21px;
  }

  .date-section__big {
    position: absolute;
    top: 67px;
    left: 428px;
    width: 150px;
  }

  .date-section__big span {
    font-size: 64px;
  }

  .date-section__big b {
    margin-top: 8px;
    font-size: 29px;
  }

  .decor--date-left,
  .decor--date-right {
    display: block;
  }

  .decor--date-left {
    top: 0;
    left: 0;
    width: 160px;
    height: 265px;
    -webkit-mask-image: linear-gradient(90deg, #000 77%, transparent);
    mask-image: linear-gradient(90deg, #000 77%, transparent);
  }

  .decor--date-right {
    top: 0;
    right: 0;
    width: 240px;
    height: 265px;
    -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent);
    mask-image: linear-gradient(270deg, #000 82%, transparent);
  }

  .place {
    min-height: 220px;
    height: 220px;
    padding: 0;
  }

  .place__photo {
    top: 0;
    right: 0;
    bottom: auto;
    left: 370px;
    height: 220px;
  }

  .place__photo::after {
    background: linear-gradient(90deg, var(--cream) 0%, rgb(238 227 216 / 82%) 5%, transparent 24%);
  }

  .place__photo img {
    width: 391px;
    height: 220px;
    max-width: none;
    object-fit: fill;
  }

  .place__copy {
    position: absolute;
    top: 24px;
    left: 157px;
    width: 215px;
    margin: 0;
  }

  .place h2 {
    gap: 7px;
    font-size: 23px;
    white-space: nowrap;
  }

  .place h2 img {
    width: 18px;
    height: 23px;
  }

  .ornament--place {
    width: 205px;
    margin: 7px 0 10px;
  }

  .ornament--place span {
    font-size: 15px;
  }

  .place__name {
    margin-bottom: 5px;
    font-size: 31px;
  }

  .place__time {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .place__route {
    width: 181px;
    min-height: 35px;
    padding: 0 16px;
    gap: 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .decor--place-left,
  .decor--place-right {
    display: block;
  }

  .decor--place-left {
    top: 0;
    left: 0;
    width: 155px;
    height: 220px;
    z-index: 6;
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }

  .decor--place-right {
    top: 0;
    right: 0;
    width: 170px;
    height: 220px;
    z-index: 6;
    -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent);
    mask-image: linear-gradient(270deg, #000 82%, transparent);
  }

  .wishes {
    min-height: 200px;
    height: 200px;
    padding: 0;
  }

  .wishes > h2 {
    position: absolute;
    top: 11px;
    left: 0;
    width: 100%;
    font-size: 22px;
  }

  .ornament--center {
    position: absolute;
    top: 38px;
    left: 364px;
    width: 112px;
    margin: 0;
  }

  .ornament--center span {
    font-size: 13px;
  }

  .wishes__cards {
    position: absolute;
    top: 55px;
    left: 148px;
    display: grid;
    width: 540px;
    max-width: none;
    margin: 0;
    grid-template-columns: 266px 266px;
    gap: 8px;
  }

  .wish-card {
    min-height: 130px;
    height: 130px;
    padding: 15px 14px;
    grid-template-columns: 43px 1fr;
    gap: 8px;
  }

  .wish-card img {
    width: 38px;
    height: 38px;
  }

  .wish-card h3 {
    margin-bottom: 5px;
    font-size: 17px;
  }

  .wish-card p {
    font-size: 11px;
    line-height: 1.32;
  }

  .decor--wishes-left,
  .decor--wishes-right {
    display: block;
  }

  .decor--wishes-left {
    top: 0;
    left: 0;
    width: 150px;
    height: 335px;
    z-index: 4;
    -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
    mask-image: linear-gradient(90deg, #000 78%, transparent);
  }

  .decor--wishes-right {
    top: 0;
    right: 0;
    width: 150px;
    height: 335px;
    z-index: 4;
    -webkit-mask-image: linear-gradient(270deg, #000 78%, transparent);
    mask-image: linear-gradient(270deg, #000 78%, transparent);
  }

  .countdown {
    min-height: 135px;
    height: 135px;
    padding: 0;
  }

  .decor--countdown-left,
  .decor--countdown-right {
    display: block;
    top: 0;
    height: 135px;
    z-index: 4;
  }

  .decor--countdown-left {
    left: 0;
    width: 165px;
    -webkit-mask-image: linear-gradient(90deg, #000 76%, transparent);
    mask-image: linear-gradient(90deg, #000 76%, transparent);
  }

  .decor--countdown-right {
    right: 0;
    width: 150px;
    -webkit-mask-image: linear-gradient(270deg, #000 78%, transparent);
    mask-image: linear-gradient(270deg, #000 78%, transparent);
  }

  .countdown > h2 {
    position: absolute;
    top: 6px;
    left: 0;
    width: 100%;
    font-size: 22px;
  }

  .ornament--countdown {
    position: absolute;
    top: 34px;
    left: 281px;
    width: 278px;
    margin: 0;
  }

  .ornament--countdown span {
    font-size: 13px;
  }

  .countdown__grid {
    position: absolute;
    top: 47px;
    left: 165px;
    display: grid;
    width: 523px;
    max-width: none;
    margin: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .time-card {
    min-height: 84px;
    height: 84px;
  }

  .time-card span {
    font-size: 39px;
  }

  .time-card small {
    margin-top: 7px;
    font-size: 14px;
  }

  .rsvp {
    min-height: 220px;
    height: 220px;
    padding: 0;
  }

  .rsvp__heading {
    position: absolute;
    top: 25px;
    left: 122px;
    width: 195px;
    margin: 0;
  }

  .rsvp h2 {
    font-size: 22px;
    line-height: 1.05;
  }

  .ornament--rsvp {
    width: 180px;
    margin-top: 10px;
  }

  .ornament--rsvp span {
    font-size: 15px;
  }

  .rsvp-form {
    position: absolute;
    top: 16px;
    left: 336px;
    display: grid;
    width: 365px;
    max-width: none;
    margin: 0;
    grid-template-columns: 177px 170px;
    grid-template-rows: 44px 44px 64px 18px;
    column-gap: 18px;
    row-gap: 6px;
  }

  .field {
    gap: 4px;
  }

  .field > span,
  .field legend {
    font-size: 8px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 8px;
  }

  .field input,
  .field select {
    height: 29px;
    padding: 0 10px;
  }

  .field textarea {
    min-height: 57px;
    height: 57px;
    padding: 7px 9px;
    resize: none;
  }

  .field--name {
    grid-column: 1;
    grid-row: 1;
  }

  .field--guests {
    grid-column: 2;
    grid-row: 1;
  }

  .field--attendance {
    grid-column: 1;
    grid-row: 2;
  }

  .field--alcohol {
    grid-column: 2;
    grid-row: 2;
  }

  .field--comment {
    grid-column: 2;
    grid-row: 3;
  }

  .guest-stepper {
    grid-template-columns: 35px 1fr 35px;
  }

  .guest-stepper input {
    height: 29px;
  }

  .guest-stepper button {
    font-size: 10px;
  }

  .rsvp-form__submit {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    height: 31px;
    min-height: 31px;
    padding: 0 10px;
    font-size: 12px;
  }

  .rsvp-form__note {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0;
    font-size: 8px;
  }

  .decor--rsvp-left,
  .decor--rsvp-branch,
  .decor--rsvp-right {
    display: block;
  }

  .decor--rsvp-left {
    top: 0;
    left: 0;
    width: 130px;
    height: 200px;
    z-index: 4;
    -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
    mask-image: linear-gradient(90deg, #000 78%, transparent);
  }

  .decor--rsvp-branch {
    bottom: 0;
    left: 100px;
    width: 230px;
    height: 125px;
    z-index: 3;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 63%, transparent 97%);
    mask-image: radial-gradient(ellipse at center, #000 63%, transparent 97%);
  }

  .decor--rsvp-right {
    top: 0;
    right: 0;
    width: 180px;
    height: 267px;
    z-index: 6;
    -webkit-mask-image: linear-gradient(270deg, #000 78%, transparent);
    mask-image: linear-gradient(270deg, #000 78%, transparent);
  }

  .footer {
    min-height: 65px;
    height: 65px;
    padding: 7px 20px 0;
  }

  .footer p {
    font-size: 35px;
  }

  .ornament--footer {
    width: 220px;
    margin: 4px auto 0;
  }

  .ornament--footer span {
    font-size: 13px;
  }

  .footer time {
    display: none;
  }

  .decor--footer-left {
    display: block;
    top: 0;
    left: 0;
    width: 190px;
    height: 65px;
    z-index: 4;
    -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent);
    mask-image: linear-gradient(90deg, #000 75%, transparent);
  }

  .decor--footer-right {
    display: block;
    top: 0;
    right: 0;
    width: 190px;
    height: 65px;
    z-index: 6;
    -webkit-mask-image: linear-gradient(270deg, #000 79%, transparent);
    mask-image: linear-gradient(270deg, #000 79%, transparent);
  }
}

/* Вступительный экран и анимации не меняют геометрию утверждённого макета. */
body.intro-active {
  height: 100dvh;
  overflow: hidden;
}

.intro-screen {
  --intro-x: 50%;
  --intro-y: 42%;
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  min-width: 320px;
  overflow: hidden;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at var(--intro-x) var(--intro-y), rgb(33 111 75 / 32%), transparent 34%),
    radial-gradient(circle at 50% 120%, rgb(216 161 62 / 13%), transparent 42%),
    linear-gradient(135deg, #00170f, #003120 52%, #00170f);
  isolation: isolate;
  transition: opacity .8s ease, visibility .8s, transform .8s cubic-bezier(.22, .75, .3, 1);
}

.intro-screen::before,
.intro-screen::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.intro-screen::before {
  inset: 0;
  opacity: .32;
  background-image:
    radial-gradient(circle, rgb(216 161 62 / 42%) 0 1px, transparent 1.7px),
    repeating-linear-gradient(120deg, transparent 0 64px, rgb(216 161 62 / 3%) 65px 66px);
  background-position: 0 0, 0 0;
  background-size: 78px 81px, auto;
  mask-image: linear-gradient(90deg, #000, transparent 40%, transparent 60%, #000);
}

.intro-screen::after {
  inset: 18px;
  border: 1px solid rgb(216 161 62 / 27%);
}

.intro-screen.is-opening {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
}

.intro-screen[hidden] {
  display: none;
}

.intro-screen__stage {
  position: relative;
  display: grid;
  width: min(100%, 840px);
  min-height: 100dvh;
  padding: 34px 20px;
  place-items: center;
}

.intro-card {
  position: relative;
  z-index: 3;
  width: min(88vw, 490px);
  padding: 54px 30px 48px;
  border: 1px solid rgb(216 161 62 / 68%);
  text-align: center;
  background:
    linear-gradient(rgb(246 238 230 / 96%), rgb(238 227 216 / 97%)),
    repeating-linear-gradient(35deg, transparent 0 21px, rgb(95 70 50 / 5%) 22px 23px);
  box-shadow:
    0 25px 70px rgb(0 0 0 / 43%),
    inset 0 0 0 7px rgb(255 255 255 / 30%);
  color: var(--ink);
  animation: introCardEnter 1.05s cubic-bezier(.2, .72, .22, 1) both;
  transition: opacity .55s ease, transform .7s cubic-bezier(.22, .75, .3, 1);
}

.intro-card::before,
.intro-card::after {
  position: absolute;
  width: 34px;
  height: 34px;
  content: "";
  border-color: var(--gold);
  opacity: .65;
}

.intro-card::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.intro-card::after {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.intro-screen.is-opening .intro-card {
  opacity: 0;
  transform: translateY(-18px) scale(.96);
}

.intro-card__eyebrow {
  margin: 0 0 17px;
  color: #7a673d;
  text-transform: uppercase;
  letter-spacing: .25em;
  font: 10px/1.4 Arial, sans-serif;
}

.intro-card__names {
  margin: 0;
  font-size: clamp(42px, 12vw, 70px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.035em;
}

.intro-card__names span {
  color: var(--gold);
  font-weight: 400;
}

.intro-card__ornament {
  width: min(250px, 78%);
  margin: 27px auto 18px;
}

.intro-card__date {
  display: block;
  color: #8a6a2d;
  font-size: 20px;
}

.intro-card__message {
  max-width: 285px;
  margin: 17px auto 28px;
  font-size: 15px;
  line-height: 1.45;
}

.intro-card__button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px 0 27px;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 4px;
  align-items: center;
  gap: 16px;
  color: #f6e8cc;
  background: linear-gradient(180deg, #075038, #003321);
  box-shadow: 0 8px 20px rgb(0 40 27 / 28%), inset 0 0 12px rgb(0 0 0 / 24%);
  cursor: pointer;
  font: 16px/1 Georgia, "Times New Roman", serif;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.intro-card__button::before {
  position: absolute;
  top: -60%;
  left: -35%;
  width: 24%;
  height: 220%;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(255 244 213 / 50%), transparent);
  transform: rotate(18deg);
  animation: buttonShine 3.6s 1.4s ease-in-out infinite;
}

.intro-card__button:hover {
  box-shadow: 0 11px 26px rgb(0 40 27 / 35%), inset 0 0 14px rgb(216 161 62 / 12%);
  transform: translateY(-2px);
}

.intro-card__button:active {
  transform: translateY(0) scale(.98);
}

.intro-card__button:focus-visible {
  outline: 2px solid #f5c86f;
  outline-offset: 4px;
}

.intro-card__button b {
  color: var(--gold);
  font-size: 28px;
  font-weight: 400;
  line-height: .5;
}

.intro-screen__leaf {
  position: absolute;
  z-index: 2;
  max-width: none;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 15px 25px rgb(0 0 0 / 38%));
  will-change: transform;
}

.intro-screen__leaf--left {
  top: -30px;
  left: -65px;
  width: 260px;
  height: 360px;
  object-fit: cover;
  object-position: left top;
  transform-origin: left top;
  -webkit-mask-image: radial-gradient(ellipse 105% 105% at 0 0, #000 52%, transparent 91%);
  mask-image: radial-gradient(ellipse 105% 105% at 0 0, #000 52%, transparent 91%);
  animation: introLeafLeft 1.15s cubic-bezier(.2, .72, .22, 1) both;
}

.intro-screen__leaf--right {
  right: -80px;
  bottom: -55px;
  width: 285px;
  height: 520px;
  object-fit: cover;
  object-position: right center;
  transform-origin: right bottom;
  -webkit-mask-image: radial-gradient(ellipse 105% 108% at 100% 100%, #000 54%, transparent 92%);
  mask-image: radial-gradient(ellipse 105% 108% at 100% 100%, #000 54%, transparent 92%);
  animation: introLeafRight 1.25s cubic-bezier(.2, .72, .22, 1) both;
}

.intro-screen__spark {
  position: absolute;
  z-index: 4;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd47c;
  box-shadow: 0 0 4px 2px rgb(255 194 84 / 50%), 0 0 14px 5px rgb(255 176 49 / 22%);
  pointer-events: none;
  animation: sparkPulse 2.6s ease-in-out infinite;
}

.intro-screen__spark--one {
  top: 21%;
  left: 16%;
}

.intro-screen__spark--two {
  top: 18%;
  right: 19%;
  animation-delay: .8s;
}

.intro-screen__spark--three {
  right: 14%;
  bottom: 22%;
  animation-delay: 1.45s;
}

.intro-active .hero__content,
.intro-active .hero__monogram,
.intro-active .hero__scroll,
.intro-active .hero__invite,
.intro-active .hero__title,
.intro-active .ornament--hero,
.intro-active .hero__date {
  opacity: 0;
  translate: 0 18px;
}

.content-ready .hero__content {
  opacity: 1;
  transform: none;
  translate: none;
}

.content-ready .hero__monogram,
.content-ready .hero__invite,
.content-ready .hero__title,
.content-ready .ornament--hero,
.content-ready .hero__date {
  animation: heroPieceReveal .72s cubic-bezier(.2, .72, .22, 1) both;
}

.content-ready .hero__monogram {
  animation-delay: .03s;
}

.content-ready .hero__invite {
  animation-delay: .14s;
}

.content-ready .hero__title {
  animation-delay: .29s;
}

.content-ready .ornament--hero {
  animation-delay: .44s;
}

.content-ready .hero__date {
  animation-delay: .56s;
}

.content-ready .hero__scroll {
  animation-name: heroScrollReveal, scrollCue;
  animation-duration: .8s, 2.2s;
  animation-delay: .68s, 1.55s;
  animation-timing-function: ease, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both;
}

.hero__photo {
  transform-origin: 58% 50%;
}

.content-ready .hero__photo {
  animation: heroPhotoBreath 14s ease-in-out infinite alternate;
}

.decor--hero-left-top {
  translate: 0 var(--hero-left-top-y, 0);
}

.decor--hero-left-bottom {
  translate: 0 var(--hero-left-bottom-y, 0);
}

.decor--hero-right {
  translate: 0 var(--hero-right-y, 0);
}

.hero-sparkles {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-sparkles i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  background: #ffd47c;
  box-shadow: 0 0 5px 2px rgb(255 199 92 / 56%), 0 0 16px 6px rgb(255 176 49 / 18%);
  animation: heroSparkle 4.4s ease-in-out infinite;
}

.hero-sparkles i:nth-child(1) {
  top: 18%;
  left: 15%;
}

.hero-sparkles i:nth-child(2) {
  top: 31%;
  right: 13%;
  animation-delay: .9s;
}

.hero-sparkles i:nth-child(3) {
  top: 64%;
  left: 9%;
  animation-delay: 1.8s;
}

.hero-sparkles i:nth-child(4) {
  right: 18%;
  bottom: 22%;
  animation-delay: 2.7s;
}

.hero-sparkles i:nth-child(5) {
  top: 11%;
  right: 32%;
  animation-delay: 3.4s;
}

.hero-sparkles i:nth-child(6) {
  bottom: 13%;
  left: 38%;
  animation-delay: 1.25s;
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .75s ease var(--reveal-delay, 0ms),
    transform .85s cubic-bezier(.2, .72, .22, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal-on-scroll.reveal-from-left {
  transform: translateX(-28px);
}

.js .reveal-on-scroll.reveal-from-right {
  transform: translateX(28px);
}

.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

.js .invitation__photo.reveal-on-scroll img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .95s cubic-bezier(.2, .72, .22, 1) var(--reveal-delay, 0ms);
  will-change: clip-path;
}

.js .place__photo.reveal-on-scroll img {
  clip-path: inset(0 0 0 100%);
  transition: clip-path .95s cubic-bezier(.2, .72, .22, 1) var(--reveal-delay, 0ms);
  will-change: clip-path;
}

.js .invitation__photo.reveal-on-scroll.is-visible img,
.js .place__photo.reveal-on-scroll.is-visible img {
  clip-path: inset(0);
}

.ornament i {
  transform-origin: center;
  transition: transform .85s cubic-bezier(.2, .72, .22, 1) .18s;
}

.js .reveal-on-scroll:not(.is-visible) .ornament i,
.js .ornament.reveal-on-scroll:not(.is-visible) i {
  transform: scaleX(0);
}

.intro-active .ornament--hero i {
  transform: scaleX(0);
}

.content-ready .ornament--hero i {
  transform: scaleX(1);
}

.js .site-shell > section:not(.hero) .decor,
.js .site-shell > footer .decor {
  opacity: 0;
  transition: opacity .7s ease .08s, translate .9s cubic-bezier(.2, .72, .22, 1) .08s;
}

.js .site-shell > section:not(.hero) .decor[class*="left"],
.js .site-shell > footer .decor[class*="left"] {
  translate: -18px 0;
}

.js .site-shell > section:not(.hero) .decor[class*="right"],
.js .site-shell > footer .decor[class*="right"] {
  translate: 18px 0;
}

.js .site-shell > section:not(.hero).is-slide-visible .decor,
.js .site-shell > footer.is-slide-visible .decor {
  opacity: 1;
  translate: 0 0;
}

.pointer-glow {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  overflow: hidden;
}

.pointer-glow::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  opacity: 0;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgb(255 220 153 / 22%), transparent 34%);
  pointer-events: none;
  transition: opacity .28s ease;
}

.pointer-glow:hover::after {
  opacity: 1;
}

.button,
.guest-stepper button,
.time-card,
.wish-card {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 15px rgb(16 37 25 / 34%), inset 0 0 11px rgb(216 161 62 / 14%);
}

.guest-stepper button:hover {
  color: #87651f;
  background: rgb(255 251 246 / 92%);
}

.guest-stepper button:active {
  transform: scale(.92);
}

.time-card:hover {
  border-color: rgb(216 161 62 / 48%);
  transform: translateY(-3px);
}

.wish-card:hover {
  box-shadow: 0 8px 20px rgb(0 0 0 / 26%);
  transform: translateY(-3px);
}

.time-card,
.wish-card {
  perspective: 600px;
}

.time-card:active,
.wish-card:active {
  transform: translateY(-1px) scale(.985);
}

.calendar__chosen {
  position: relative;
  isolation: isolate;
}

.calendar__chosen::before {
  position: absolute;
  z-index: -1;
  inset: -5px;
  border: 1px solid rgb(244 198 104 / 82%);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: scale(.45);
}

.date-section.is-slide-visible .calendar__chosen::before {
  animation: calendarRing 1.25s .65s cubic-bezier(.16, .8, .24, 1) both;
}

.place.is-slide-visible h2 img {
  animation: pinArrival 1.1s .45s cubic-bezier(.16, .8, .24, 1) both;
}

.rsvp-form {
  isolation: isolate;
}

.rsvp-form > .field,
.rsvp-form__submit,
.rsvp-form__note {
  transition:
    opacity .38s ease,
    transform .42s cubic-bezier(.2, .72, .22, 1),
    filter .38s ease;
}

.rsvp-form.is-sent .rsvp-form__submit {
  color: #fff0cb;
  background: linear-gradient(180deg, #0b5b40, #06442f);
}

.rsvp-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.rsvp-submit__check {
  display: inline-grid;
  width: 0;
  overflow: hidden;
  place-items: center;
  opacity: 0;
  transform: scale(.4) rotate(-25deg);
  transition: width .3s ease, margin-right .3s ease, opacity .3s ease, transform .42s cubic-bezier(.16, .8, .24, 1);
}

.rsvp-form.is-sent .rsvp-submit__check {
  width: 18px;
  margin-right: 8px;
  opacity: 1;
  transform: scale(1) rotate(0);
}

.rsvp-form.is-complete > .field,
.rsvp-form.is-complete > .rsvp-form__submit,
.rsvp-form.is-complete > .rsvp-form__note {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(-8px) scale(.985);
  pointer-events: none;
}

.rsvp-success[hidden] {
  display: none;
}

.rsvp-success {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgb(216 161 62 / 48%);
  border-radius: 6px;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 20%, rgb(216 161 62 / 17%), transparent 38%),
    linear-gradient(145deg, rgb(255 251 246 / 97%), rgb(238 227 216 / 98%));
  box-shadow: 0 15px 42px rgb(33 24 16 / 19%), inset 0 0 0 5px rgb(255 255 255 / 30%);
  text-align: center;
  animation: successCardIn .64s cubic-bezier(.16, .8, .24, 1) both;
}

.rsvp-success__check {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 13px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  place-items: center;
  color: #fff3d7;
  background: linear-gradient(180deg, #0b5b40, #06442f);
  box-shadow: 0 8px 20px rgb(0 47 32 / 23%);
  font-size: 27px;
  animation: successCheckIn .58s .18s cubic-bezier(.16, .8, .24, 1) both;
}

.rsvp-success strong {
  color: #856222;
  font-size: 30px;
  font-weight: 400;
}

.rsvp-success p {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.rsvp-success__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rsvp-success__particles i {
  --particle-x: 0px;
  --particle-y: -70px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px rgb(216 161 62 / 52%);
  animation: successParticle .92s .16s ease-out both;
}

.rsvp-success__particles i:nth-child(1) { --particle-x: -94px; --particle-y: -68px; }
.rsvp-success__particles i:nth-child(2) { --particle-x: -48px; --particle-y: -105px; animation-delay: .22s; }
.rsvp-success__particles i:nth-child(3) { --particle-x: 34px; --particle-y: -112px; animation-delay: .19s; }
.rsvp-success__particles i:nth-child(4) { --particle-x: 92px; --particle-y: -70px; animation-delay: .28s; }
.rsvp-success__particles i:nth-child(5) { --particle-x: 104px; --particle-y: 20px; animation-delay: .21s; }
.rsvp-success__particles i:nth-child(6) { --particle-x: 52px; --particle-y: 77px; animation-delay: .25s; }
.rsvp-success__particles i:nth-child(7) { --particle-x: -58px; --particle-y: 72px; animation-delay: .18s; }
.rsvp-success__particles i:nth-child(8) { --particle-x: -105px; --particle-y: 10px; animation-delay: .3s; }

@keyframes introCardEnter {
  from {
    opacity: 0;
    transform: translateY(26px) scale(.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes introLeafLeft {
  from {
    opacity: 0;
    transform: translate(-45px, -35px) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes introLeafRight {
  from {
    opacity: 0;
    transform: translate(50px, 42px) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes buttonShine {
  0%,
  58% {
    left: -35%;
  }
  78%,
  100% {
    left: 125%;
  }
}

@keyframes sparkPulse {
  0%,
  100% {
    opacity: .3;
    transform: scale(.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes heroPieceReveal {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes heroPhotoBreath {
  from {
    scale: 1;
  }
  to {
    scale: 1.035;
  }
}

@keyframes heroSparkle {
  0%,
  68%,
  100% {
    opacity: 0;
    transform: scale(.5);
  }
  78% {
    opacity: .95;
    transform: scale(1.25);
  }
  88% {
    opacity: .22;
    transform: scale(.78);
  }
}

@keyframes heroScrollReveal {
  from {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes scrollCue {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

@keyframes calendarRing {
  0% {
    opacity: 0;
    transform: scale(.45);
  }
  35% {
    opacity: .95;
  }
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

@keyframes pinArrival {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(.75);
  }
  45% {
    opacity: 1;
    transform: translateY(3px) scale(1.08);
  }
  70% {
    transform: translateY(-2px) scale(.98);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes successCardIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(.975);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes successCheckIn {
  from {
    opacity: 0;
    transform: scale(.35) rotate(-28deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes successParticle {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(.3);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--particle-x), var(--particle-y)) scale(.15);
  }
}

@media (min-width: 700px) {
  .intro-card {
    min-height: 420px;
    padding: 70px 54px 54px;
  }

  .intro-card__eyebrow {
    font-size: 11px;
  }

  .intro-card__message {
    font-size: 16px;
  }

  .intro-screen__leaf--left {
    left: -22px;
    width: 330px;
    height: 440px;
  }

  .intro-screen__leaf--right {
    right: -35px;
    width: 345px;
    height: 620px;
  }

  .intro-screen__spark--one {
    left: 11%;
  }

  .intro-screen__spark--two {
    right: 12%;
  }
}

.screen-nav,
.mobile-rsvp-cta {
  display: none;
}

@media (max-width: 699px) {
  html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-bottom: 54px;
  }

  body {
    background: var(--dark-deep);
  }

  .site-shell {
    width: 100%;
    max-width: none;
    overflow: clip;
  }

  .site-shell > section,
  .site-shell > footer {
    width: 100%;
    min-height: 100svh;
    height: auto;
    scroll-margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .screen-nav {
    position: fixed;
    z-index: 45;
    top: 50%;
    right: max(10px, env(safe-area-inset-right));
    display: flex;
    padding: 9px 6px;
    border: 1px solid rgb(216 161 62 / 18%);
    border-radius: 18px;
    flex-direction: column;
    gap: 9px;
    background: rgb(0 28 19 / 48%);
    box-shadow: 0 5px 18px rgb(0 0 0 / 18%);
    backdrop-filter: blur(5px);
    transform: translateY(-50%);
    transition: opacity .35s ease, transform .35s ease;
  }

  .screen-nav a {
    display: block;
    width: 7px;
    height: 7px;
    border: 1px solid rgb(245 216 158 / 80%);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 0 rgb(216 161 62 / 0%);
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
  }

  .screen-nav a[aria-current="true"] {
    background: var(--gold);
    box-shadow: 0 0 0 3px rgb(216 161 62 / 18%);
    transform: scale(1.25);
  }

  .screen-nav a:focus-visible {
    outline: 2px solid #f5c86f;
    outline-offset: 3px;
  }

  .mobile-rsvp-cta {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 50px;
    padding: 0 48px max(0px, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    color: #173328;
    background: linear-gradient(180deg, #e0b353, #c99434);
    box-shadow: 0 -6px 20px rgb(0 24 16 / 20%);
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    transition: opacity .35s ease, transform .35s ease, background-color .2s ease;
  }

  .mobile-rsvp-cta::after {
    margin-left: 12px;
    content: "↓";
    font-size: 18px;
    transition: transform .25s ease;
  }

  .mobile-rsvp-cta:active::after {
    transform: translateY(3px);
  }

  body.intro-active .screen-nav,
  body.intro-active .mobile-rsvp-cta {
    opacity: 0;
    pointer-events: none;
  }

  .hero {
    min-height: 100svh;
    height: auto;
  }

  .hero__photo {
    object-position: 56% center;
  }

  .hero__content {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
  }

  .hero__invite {
    position: absolute;
    top: clamp(48px, 7svh, 64px);
    left: 20px;
    max-width: min(330px, calc(100% - 48px));
    margin: 0;
    padding: 7px 18px 9px 11px;
    border-left: 2px solid rgb(216 161 62 / 88%);
    border-radius: 2px;
    background: linear-gradient(90deg, rgb(0 28 19 / 78%), rgb(0 28 19 / 30%) 78%, transparent);
    text-shadow: 0 2px 5px rgb(0 15 10 / 100%), 0 0 11px rgb(0 24 16 / 90%);
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.18;
  }

  .hero__title {
    position: absolute;
    bottom: clamp(232px, 28.5svh, 255px);
    left: 22px;
    margin: 0;
    font-size: clamp(54px, 15.5vw, 70px);
  }

  .ornament--hero {
    position: absolute;
    bottom: clamp(190px, 23.5svh, 210px);
    left: 22px;
    width: min(285px, calc(100% - 76px));
    margin: 0;
  }

  .hero__date {
    position: absolute;
    bottom: clamp(138px, 16.5svh, 150px);
    left: 22px;
    width: min(285px, calc(100% - 76px));
    margin: 0;
    font-size: clamp(22px, 6vw, 26px);
  }

  .hero__scroll {
    bottom: 75px;
  }

  .decor--hero-left-top,
  .decor--hero-left-bottom,
  .decor--hero-right {
    display: block;
  }

  .decor--hero-left-top {
    top: 0;
    left: -18px;
    width: 142px;
    height: 240px;
    z-index: 4;
    object-fit: cover;
    object-position: left top;
    -webkit-mask-image: radial-gradient(ellipse 115% 108% at 0 0, #000 45%, transparent 90%);
    mask-image: radial-gradient(ellipse 115% 108% at 0 0, #000 45%, transparent 90%);
  }

  .decor--hero-left-bottom {
    bottom: 0;
    left: -35px;
    width: 148px;
    height: 310px;
    z-index: 5;
    object-fit: cover;
    object-position: left bottom;
    -webkit-mask-image: radial-gradient(ellipse 115% 105% at 0 100%, #000 45%, transparent 91%);
    mask-image: radial-gradient(ellipse 115% 105% at 0 100%, #000 45%, transparent 91%);
  }

  .decor--hero-right {
    top: 0;
    right: -30px;
    width: 118px;
    height: 100%;
    z-index: 5;
    object-fit: cover;
    object-position: right center;
    -webkit-mask-image: radial-gradient(ellipse 105% 72% at 100% 50%, #000 45%, transparent 92%);
    mask-image: radial-gradient(ellipse 105% 72% at 100% 50%, #000 45%, transparent 92%);
  }

  .invitation {
    display: grid;
    min-height: 100svh;
    padding: 62px 26px 92px;
    align-content: center;
  }

  .invitation__copy {
    max-width: 330px;
    margin-bottom: 26px;
  }

  .invitation__photo {
    width: min(76vw, 330px);
    height: min(76vw, 330px);
  }

  .decor--invitation-left,
  .decor--invitation-center,
  .decor--invitation-right {
    display: block;
  }

  .decor--invitation-left {
    bottom: 0;
    left: -25px;
    width: 120px;
    height: 300px;
    object-fit: cover;
    object-position: left bottom;
    -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent);
    mask-image: linear-gradient(90deg, #000 65%, transparent);
  }

  .decor--invitation-center {
    right: -18px;
    bottom: 48px;
    width: 210px;
    height: 165px;
    z-index: 6;
    object-fit: contain;
    object-position: right bottom;
  }

  .decor--invitation-right {
    top: 0;
    right: -28px;
    width: 94px;
    height: 260px;
    z-index: 5;
    object-fit: cover;
    object-position: right top;
    -webkit-mask-image: linear-gradient(270deg, #000 65%, transparent);
    mask-image: linear-gradient(270deg, #000 65%, transparent);
  }

  .date-section {
    display: grid;
    min-height: 100svh;
    padding: 72px 28px 92px;
    align-content: center;
  }

  .calendar {
    margin-bottom: 50px;
  }

  .date-section__big {
    z-index: 5;
  }

  .decor--date-left,
  .decor--date-right {
    display: block;
  }

  .decor--date-left {
    bottom: 0;
    left: -35px;
    width: 160px;
    height: 390px;
    object-fit: cover;
    object-position: left bottom;
    -webkit-mask-image: radial-gradient(ellipse 115% 105% at 0 100%, #000 48%, transparent 92%);
    mask-image: radial-gradient(ellipse 115% 105% at 0 100%, #000 48%, transparent 92%);
  }

  .decor--date-right {
    right: -45px;
    bottom: 0;
    width: 205px;
    height: 380px;
    object-fit: cover;
    object-position: right bottom;
    -webkit-mask-image: radial-gradient(ellipse 112% 105% at 100% 100%, #000 48%, transparent 92%);
    mask-image: radial-gradient(ellipse 112% 105% at 100% 100%, #000 48%, transparent 92%);
  }

  .place {
    min-height: 100svh;
    padding: 70px 28px 92px;
  }

  .place__copy {
    max-width: 330px;
    margin: 0 auto;
  }

  .place__photo {
    height: 49svh;
  }

  .place__photo::after {
    background: linear-gradient(180deg, var(--cream) 0%, transparent 28%);
  }

  .decor--place-left,
  .decor--place-right {
    display: block;
  }

  .decor--place-left {
    bottom: 0;
    left: -32px;
    width: 135px;
    height: 320px;
    z-index: 6;
    object-fit: cover;
    object-position: left bottom;
    -webkit-mask-image: radial-gradient(ellipse 115% 108% at 0 100%, #000 48%, transparent 92%);
    mask-image: radial-gradient(ellipse 115% 108% at 0 100%, #000 48%, transparent 92%);
  }

  .decor--place-right {
    right: -34px;
    bottom: 0;
    width: 140px;
    height: 330px;
    z-index: 6;
    object-fit: cover;
    object-position: right bottom;
    -webkit-mask-image: radial-gradient(ellipse 115% 108% at 100% 100%, #000 48%, transparent 92%);
    mask-image: radial-gradient(ellipse 115% 108% at 100% 100%, #000 48%, transparent 92%);
  }

  .wishes {
    display: grid;
    min-height: 100svh;
    padding: 70px 26px 92px;
    align-content: center;
  }

  .wishes__cards {
    width: min(100%, 560px);
  }

  .wish-card {
    min-height: 165px;
  }

  .decor--wishes-left,
  .decor--wishes-right {
    display: block;
  }

  .decor--wishes-left {
    top: 0;
    left: -35px;
    width: 125px;
    height: 100%;
    z-index: 4;
    object-fit: cover;
    object-position: left center;
    -webkit-mask-image: linear-gradient(90deg, #000 69%, transparent);
    mask-image: linear-gradient(90deg, #000 69%, transparent);
  }

  .decor--wishes-right {
    top: 0;
    right: -35px;
    width: 125px;
    height: 100%;
    z-index: 4;
    object-fit: cover;
    object-position: right center;
    -webkit-mask-image: linear-gradient(270deg, #000 69%, transparent);
    mask-image: linear-gradient(270deg, #000 69%, transparent);
  }

  .countdown {
    display: grid;
    min-height: 100svh;
    padding: 70px 24px 100px;
    align-content: center;
  }

  .countdown__grid {
    width: min(100%, 560px);
  }

  .decor--countdown-left,
  .decor--countdown-right {
    display: block;
  }

  .decor--countdown-left {
    bottom: 0;
    left: -35px;
    width: 150px;
    height: 360px;
    z-index: 4;
    object-fit: cover;
    object-position: left bottom;
    -webkit-mask-image: radial-gradient(ellipse 115% 108% at 0 100%, #000 48%, transparent 92%);
    mask-image: radial-gradient(ellipse 115% 108% at 0 100%, #000 48%, transparent 92%);
  }

  .decor--countdown-right {
    right: -35px;
    bottom: 0;
    width: 150px;
    height: 360px;
    z-index: 4;
    object-fit: cover;
    object-position: right bottom;
    -webkit-mask-image: radial-gradient(ellipse 115% 108% at 100% 100%, #000 48%, transparent 92%);
    mask-image: radial-gradient(ellipse 115% 108% at 100% 100%, #000 48%, transparent 92%);
  }

  .rsvp {
    display: grid;
    min-height: 100svh;
    padding: 68px 28px 94px;
    align-content: center;
  }

  .rsvp__heading {
    margin-bottom: 28px;
  }

  .rsvp-form {
    gap: 14px;
  }

  .decor--rsvp-left,
  .decor--rsvp-branch,
  .decor--rsvp-right {
    display: none;
  }

  .footer {
    display: grid;
    min-height: 100svh;
    padding: 80px 26px 100px;
    place-content: center;
  }

  .footer p {
    font-size: clamp(42px, 12vw, 58px);
  }

  .footer time {
    display: block;
    margin-top: 12px;
    font-size: 20px;
  }

  .decor--footer-left,
  .decor--footer-right {
    display: block;
  }

  .decor--footer-left {
    top: 0;
    bottom: 0;
    left: -42px;
    width: 185px;
    height: 100%;
    z-index: 4;
    object-fit: cover;
    object-position: left center;
    -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent);
    mask-image: linear-gradient(90deg, #000 72%, transparent);
  }

  .decor--footer-right {
    top: 0;
    right: -45px;
    bottom: 0;
    width: 190px;
    height: 100%;
    z-index: 4;
    object-fit: cover;
    object-position: right center;
    -webkit-mask-image: linear-gradient(270deg, #000 72%, transparent);
    mask-image: linear-gradient(270deg, #000 72%, transparent);
  }
}

@media (max-width: 699px) and (max-height: 760px) {
  .invitation {
    padding: 46px 24px 76px;
  }

  .invitation__copy {
    margin-bottom: 18px;
  }

  .invitation__copy p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.36;
  }

  .invitation__photo {
    width: min(70vw, 290px);
    height: min(70vw, 290px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .js .invitation__photo.reveal-on-scroll img,
  .js .place__photo.reveal-on-scroll img {
    clip-path: inset(0);
  }

  .js .site-shell > section:not(.hero) .decor,
  .js .site-shell > footer .decor {
    opacity: 1;
    translate: 0 0;
  }

  .content-ready .hero__photo {
    animation: none;
    scale: 1;
  }

  .hero-sparkles {
    display: none;
  }
}
