@font-face {
  font-family: "American Oak";
  src: url("fonts/american-oak-script.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  ascent-override: 70.4%;
  descent-override: 29.6%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Foglihten No06";
  src: url("fonts/FoglihtenNo06_076.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  ascent-override: 93.4%;
  descent-override: 25.7%;
  line-gap-override: 0%;
}

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

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #faedde;
  --ink: #240000;
  --muted: #c3b29d;
  --sand: #e0d0bc;
  --wine: #6c1010;
}

* {
  box-sizing: border-box;
}

html {
  background: #2a0909;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: #2a0909;
  font-family: "Montserrat", Arial, sans-serif;
}

body.is-loading {
  overflow: hidden;
}

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

.motion {
  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(--motion-delay, 0ms);
  will-change: opacity, translate, scale;
}

.motion--hero {
  translate: none;
  scale: none;
  transition-duration: 650ms;
  transition-timing-function: ease;
  will-change: opacity;
}

.motion--left {
  translate: -36px 0;
}

.motion--right {
  translate: 36px 0;
}

.motion--scale {
  translate: 0;
  scale: 0.94;
}

.motion.motion-in {
  opacity: 1;
  translate: 0;
  scale: 1;
}

.motion.motion--hero.motion-in {
  translate: none;
  scale: none;
}

.preloader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--cream);
  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: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preloader__eyebrow {
  color: var(--wine);
}

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

.preloader__spinner::before {
  position: absolute;
  inset: 0;
  border: 2px solid rgb(108 16 16 / 22%);
  border-top-color: var(--wine);
  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: var(--muted);
  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);
  }
}

img {
  display: block;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

.page-shell {
  position: relative;
  width: min(100%, 393px);
  height: 4516px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
}

.invitation {
  position: absolute;
  inset: 0 auto auto 0;
  width: 393px;
  height: 4516px;
  overflow: hidden;
  background: var(--cream);
  transform-origin: left top;
}

.script {
  font-family: "American Oak", cursive;
  font-weight: 400;
  overflow: visible;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke: 0.01px transparent;
}

.display {
  font-family: "Foglihten No06", serif;
  font-weight: 400;
}

.section-title {
  font-size: 33px;
  line-height: 38px;
  text-align: center;
}

.script.section-title {
  padding: 0.18em 0.1em 0.24em;
  margin-bottom: -0.42em;
}

.light {
  color: var(--cream);
}

.hero {
  position: absolute;
  inset: 0 0 auto;
  height: 706px;
}

.hero-the,
.hero-day {
  position: absolute;
  width: 100%;
  font-size: 32px;
  line-height: 1.3;
  text-align: center;
}

.hero-the {
  top: 74px;
}

.hero-day {
  top: 154px;
}

.hero-title {
  position: absolute;
  top: 109px;
  width: 100%;
  font-size: 57px;
  line-height: 1;
  text-align: center;
}

.hero-photo {
  position: absolute;
  top: 222px;
  left: 67px;
  width: 269px;
  height: 374px;
  overflow: hidden;
}

.hero-photo img {
  width: 114.2%;
  height: 123.2%;
  margin: -17px 0 0 -23px;
  object-fit: cover;
}

.couple-names {
  position: absolute;
  width: 393px;
  height: 46px;
  font-size: 33px;
  line-height: normal;
}

.couple-names span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.couple-names span:first-child {
  left: 106px;
}

.couple-names span:last-child {
  left: 276.5px;
}

.couple-names img {
  position: absolute;
  top: 16px;
  left: 171px;
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.hero .couple-names {
  top: 620px;
  left: 0;
}

.intro {
  position: absolute;
  top: 712px;
  left: 0;
  width: 100%;
  height: 170px;
  padding-top: 0;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  text-transform: uppercase;
}

.intro p {
  width: 246px;
  margin: 0 auto;
}

.calendar {
  position: absolute;
  top: 896px;
  left: 0;
  width: 100%;
  height: 434px;
}

.calendar-grid {
  position: absolute;
  top: 49px;
  left: 54px;
  display: grid;
  grid-template-columns: repeat(7, 41px);
  grid-template-rows: 48px repeat(5, 40px);
  grid-auto-rows: 40px;
  width: 287px;
  font-size: 15px;
  line-height: 40px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid .weekday {
  color: var(--muted);
  font-weight: 500;
}

.calendar-grid span {
  position: relative;
  z-index: 1;
}

.wedding-day {
  color: var(--cream);
  font-weight: 700;
}

.wedding-day img {
  position: absolute;
  z-index: -1;
  top: 2px;
  left: 3px;
  width: 35px;
  height: 34px;
}

.foliage {
  position: absolute;
  z-index: 2;
  width: 479px;
  height: 160px;
  object-fit: fill;
  pointer-events: none;
}

.foliage-top {
  top: 1161px;
  left: 30px;
}

.foliage-bottom {
  top: 1551px;
  left: -116px;
  transform: rotate(180deg);
}

.location {
  position: absolute;
  top: 1321px;
  left: 0;
  width: 100%;
  height: 230px;
  overflow: visible;
}

.location-media,
.important-media,
.location-photo,
.important-photo {
  display: block;
  width: 100%;
  height: 100%;
}

.location-media,
.important-media {
  overflow: hidden;
}

.location-photo,
.important-photo {
  object-fit: fill;
}

.location-photo {
  object-position: center bottom;
}

.location-shade,
.important-shade {
  position: absolute;
  inset: 0;
  background: rgb(108 16 16 / 67%);
}

.location-copy {
  position: absolute;
  inset: 0;
  color: var(--cream);
  text-align: center;
}

.location-copy h2 {
  margin-top: 74px;
}

.location-copy p {
  margin-top: 15px;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

.timing {
  position: absolute;
  top: 1698px;
  left: 0;
  width: 100%;
  height: 740px;
}

.timeline-branch-group {
  position: absolute;
  top: 90px;
  left: 67px;
  width: 33px;
  height: 645px;
  pointer-events: none;
}

.timeline-branch {
  position: absolute;
  left: 0;
  width: 33px;
  height: 375px;
  object-fit: fill;
}

.branch-upper {
  top: 0;
  transform: scaleY(-1);
}

.branch-lower {
  top: 270px;
}

.timeline-item {
  position: absolute;
  width: 205px;
}

.timeline-item h3 {
  font-size: 25px;
  line-height: 1.12;
}

.timeline-item p {
  position: absolute;
  left: 0;
  width: 163px;
  margin: 0;
  line-height: 1.2;
}

.timeline-item time {
  position: absolute;
  left: 0;
  font-size: 24px;
  line-height: 36px;
}

.item-one {
  top: 96px;
  left: 124px;
}

.item-one p {
  top: 41px;
  width: 205px;
  font-size: 11px;
}

.item-one time {
  top: 87px;
}

.item-two {
  top: 260px;
  left: 125px;
  width: 201px;
}

.item-two p {
  top: 67px;
  font-size: 11px;
}

.item-two time {
  top: 131px;
}

.item-three {
  top: 467px;
  left: 122px;
}

.item-three p {
  top: 38px;
  font-size: 10px;
}

.item-three time {
  top: 82px;
}

.item-four {
  top: 628px;
  left: 122px;
}

.item-four p {
  top: 40px;
  font-size: 10px;
}

.item-four time {
  top: 71px;
}

.dress-code {
  position: absolute;
  top: 2443px;
  left: 0;
  width: 100%;
  height: 398px;
  text-align: center;
}

.dress-code h2 {
  margin-top: 75px;
}

.dress-code p,
.wishes p,
.information p,
.contacts p {
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  text-transform: uppercase;
}

.dress-code p {
  width: 241px;
  margin: 27px auto 0;
}

.swatches {
  position: absolute;
  top: 235px;
  left: 94px;
  display: flex;
  gap: 6px;
  margin: 0;
}

.swatches img {
  width: 36px;
  height: 37px;
}

.floral-mark {
  object-fit: contain;
}

.dress-mark {
  position: absolute;
  z-index: 2;
  top: 364px;
  left: 179px;
  width: 40px;
  height: 50px;
  margin: 0;
}

.wishes {
  position: absolute;
  top: 2833px;
  left: 0;
  width: 100%;
  height: 387px;
  padding-top: 46px;
  background: var(--sand);
  text-align: center;
}

.wishes p {
  margin-top: 28px;
}

.wishes h2 {
  position: relative;
  top: 10px;
}

.rings {
  position: absolute;
  top: 218px;
  left: 100px;
  width: 193px;
  height: 117px;
  margin: 0;
  object-fit: cover;
}

.information {
  position: absolute;
  top: 3236px;
  left: 0;
  width: 100%;
  height: 323px;
  padding-top: 80px;
  text-align: center;
}

.information p {
  margin-top: 14px;
}

.info-mark {
  position: absolute;
  top: 242px;
  left: 176.5px;
  width: 47px;
  height: 55px;
  margin: 0;
}

.contacts {
  position: absolute;
  top: 3560px;
  left: 0;
  width: 100%;
  height: 254px;
  padding-top: 20px;
  text-align: center;
}

.contacts p {
  margin-top: 13px;
}

.contacts a {
  position: absolute;
  top: 152px;
  left: 0;
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
}

.important {
  position: absolute;
  top: 3802px;
  left: 0;
  width: 100%;
  height: 302px;
  overflow: visible;
  color: var(--cream);
  text-align: center;
}

.important-shade {
  background: rgb(128 0 0 / 57%);
}

.important-copy {
  position: absolute;
  inset: 0;
}

.important-copy h2 {
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  margin: 0;
}

.important-copy p {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  color: #faedde;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.important-copy p:first-of-type {
  top: 110px;
}

.important-copy time {
  position: absolute;
  top: 164px;
  left: 0;
  width: 100%;
  font-size: 33px;
  line-height: 38px;
}

.important-copy p:last-child {
  top: 209px;
}

.footer {
  position: absolute;
  top: 4104px;
  left: 0;
  width: 100%;
  height: 412px;
  overflow: hidden;
  background: var(--cream);
  text-align: center;
}

.bottom-branch {
  position: absolute;
  top: -33px;
  left: 125px;
  width: 141px;
  height: 294px;
  object-fit: cover;
  transform: rotate(87.84deg) scaleY(-1);
}

.footer-names {
  top: 212px;
  left: 0;
}

.footer > time {
  position: absolute;
  top: 294px;
  left: 0;
  width: 100%;
  font-size: 14px;
  line-height: 29px;
}

@media (max-width: 392px) {
  .page-shell {
    height: 4504.51px;
  }

  .invitation {
    zoom: 0.997455;
  }
}

@media (max-width: 375px) {
  .page-shell {
    height: 4309.16px;
  }

  .invitation {
    zoom: 0.954198;
  }
}

@media (max-width: 360px) {
  .page-shell {
    height: 4136.79px;
  }

  .invitation {
    zoom: 0.916031;
  }
}

@media (max-width: 320px) {
  .page-shell {
    height: 3677.15px;
  }

  .invitation {
    zoom: 0.814249;
  }
}

@media (min-width: 394px) {
  html,
  body {
    background: var(--cream);
  }

  .page-shell {
    width: 100%;
    max-width: none;
    height: 4516px;
    margin: 0;
    background: linear-gradient(
      to bottom,
      var(--cream) 0 1321px,
      var(--wine) 1321px 1551px,
      var(--cream) 1551px 2833px,
      var(--sand) 2833px 3220px,
      var(--cream) 3220px 3802px,
      var(--wine) 3802px 4104px,
      var(--cream) 4104px 4516px
    );
    box-shadow: none;
  }

  .invitation {
    right: 0;
    left: 0;
    margin-inline: auto;
    overflow: visible;
    background: transparent;
    transform: none;
  }

  .wishes,
  .footer {
    background: transparent;
  }

  .location,
  .important {
    overflow: visible;
  }

  .location-media,
  .important-media,
  .location-shade,
  .important-shade {
    position: absolute;
    top: 0;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
  }

  .location-photo,
  .important-photo {
    object-fit: cover;
  }
}

@media (min-width: 394px) and (max-width: 1023px) {
  .location-media {
    filter: blur(1px);
  }
}

@media (min-width: 1024px) {
  .location-media {
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 393px;
    height: 230px;
    overflow: hidden;
    filter: none;
    transform: none;
  }

  .location-media .location-photo {
    object-fit: fill;
    object-position: center bottom;
  }

  .location::before,
  .location::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    display: block;
    width: 48px;
    height: 230px;
    pointer-events: none;
  }

  .location::before {
    left: 0;
    background: linear-gradient(to right, var(--wine), transparent);
  }

  .location::after {
    right: 0;
    background: linear-gradient(to left, var(--wine), transparent);
  }

  .location .location-shade {
    z-index: 2;
  }

  .location-copy {
    z-index: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
