@font-face {
  font-family: "Kudry Weird";
  src: url("./assets/kudry_weird-headline.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
    font-family: 'Orpheus';
    src: url('./assets/Orpheus.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
  --cream: #f9f2e8;
  --olive: #637342;
  --olive-dark: #53643a;
  --text: #617042;
  --muted: #8f927d;
  --white: #fffaf4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #d8d9c8;
  font-family: "Montserrat", "Avenir Next", Arial, sans-serif;
}

.invite {
  width: min(100%, 420px);
  /*max-width: 320px;*/
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 28px 80px rgba(49, 58, 36, 0.28);
}

section {
  position: relative;
  text-align: center;
}

.cream {
  background: var(--cream);
}

.olive {
  color: var(--white);
  background: var(--olive);
}

h1,
h2 {
  margin: 0;
  font-family: "Kudry Weird", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
}

h2 {
  font-size: clamp(2.05rem, 12.5vw, 3.85rem);
}

p {
  margin: 0 auto;
  max-width: 310px;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.28;
}

.hero {
  height: 555px;
  color: var(--white);
  background: var(--cream);
  overflow: hidden;
    display: flex;
    justify-content: center;
}

.hero .and {
    position: absolute;
    color: #E6C4BB;
    left: 38%;
    bottom: 9%;
    font-size: 5rem;
    font-family: 'Orpheus';
    z-index: -1;
}

.eva {
  margin-left: 35px;
}

.hero::after {
  content: none;
}

.hero img {
  /* width: 100%; */
  height: 100%;
  display: block;
  object-fit: fill;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 46, 22, 0.08), rgba(30, 46, 22, 0.22) 62%, rgba(30, 46, 22, 0.1)),
    linear-gradient(to right, rgba(247, 239, 230, 0.18), transparent 40%);
}

.hero h1 {
  position: absolute;
  left: 20%;
  bottom: 150px;
  z-index: 4;
  font-size: 3.46rem;
  text-align: left;
  text-shadow: 0 2px 20px rgba(42, 51, 29, 0.35);
  max-width: 50%;
}

.hero h1 span {
  display: inline-block;
  min-width: 0.72em;
}
.hero-bkg {
    position: absolute;
    z-index: 7;
    top: 36%;
}
.intro {
  padding: 0 34px 20px;
  z-index: 4;
}

.date {
  height: 405px;
  padding: 70px 32px 0;
  margin-top: 10%;
  z-index: 5;
  overflow: visible;
  background: transparent url("./assets/calendar.svg") center / 110% 100% no-repeat;
}

.date::before,
.date::after,
.countdown::before,
.countdown::after,
.dress::before,
.flowers::before,
.flowers::after,
.final-photo::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.date::before {
  content: none;
}

.date::after {
  content: none;
}

.date h2 {
  margin-bottom: 15px;
  text-align: left;
  margin-top: 10px;
}

.month {
  color: rgba(255, 250, 244, 0.88);
  font-size: 1.05rem;
  text-align: end;
  margin-right: 25px;
}

.calendar {
  width: 270px;
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 10px;
  color: rgba(255, 250, 244, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1;
}

.calendar span {
  height: 29px;
  width: 30px;
  display: grid;
  place-items: center;
  font-family: "Kudry Weird";
}

.calendar .muted {
  color: #AEB596;
}

.calendar .chosen {
    background: url('./assets/heart.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.location {
  /*padding: 0px 28px 0;*/
  z-index: 6;
  overflow: visible;
  margin-top: 5%;
}


.location::after {
  content: none;
}

.location h2 {
  margin-bottom: 34px;
}

.location p {
  padding: 0 28px;
}

.location p + p {
  margin-top: 26px;
}

.location img {
  width: calc(100% + 18px);
  max-width: none;
  display: block;
  margin: 6px -9px -28px;
  object-fit: cover;
  position: relative;
  z-index: 2;
}
.location-bkg {
    position: absolute !important;
    top: -22%;
    z-index: -1 !important;
}
.countdown {
  height: 331px;
  padding: 86px 28px 0;
  margin-top: -70px;
  z-index: 7;
  overflow: visible;
  background: transparent url("./assets/countdown.svg") center / 100% 100% no-repeat;
}

.countdown::before {
  content: none;
}

.countdown::after {
  content: none;
}

.countdown h2 {
  margin-bottom: 30px;
  /*font-size: clamp(3.3rem, 14vw, 4rem);*/
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 310px;
  margin: 0 auto;
}

.timer div {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.timer strong {
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--white);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 500;
}

.timer span {
  color: rgba(255, 250, 244, 0.9);
  font-size: 0.68rem;
}

.dress {
  padding: 15px 24px 0px;
  margin-top: 5%;
  z-index: 8;
  overflow: visible;
}

.dress::before {
  content: none;
}

.dress h2 {
  margin-bottom: 30px;
}

.palette {
  width: calc(100% + 73px);
  margin: 34px -35px 0px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.palette span {
  aspect-ratio: 1;
  background: var(--color);
  border-radius: 50%;
}

.flowers {
  height: 820px;
  padding: 110px 30px 0;
  margin: 32px auto;
  z-index: 9;
  overflow: visible;
  background: transparent url("./assets/wishlist.svg") center / 100% 100% no-repeat;
  background-size: cover;
}
.flowers-bkg {
    position: absolute;
    left: 0;
    z-index: -1;
    top: -30%;
}
.flowers::before {
  content: none;
}

.flowers::after {
  content: none;
}

.flowers h2 {
  margin-bottom: 26px;
  text-align: left;
  font-size: clamp(3rem, 13vw, 3.75rem);
}

.flowers h2.first::after {
  content: "";
  height: 17px;
  width: 17px;
  display: inline-flex;
  background: url(./assets/arrow.svg);
  background-repeat: no-repeat;
  position: relative;
  left: 7px;
}

.flowers h2.second::before {
  content: "";
  height: 17px;
  width: 17px;
  display: inline-flex;
  background: url(./assets/arrow.svg);
  background-repeat: no-repeat;
  position: relative;
  right: 7px;
}

/*.arrow-down {*/
/*    background: url(./assets/arrow.svg);*/
/*    background-size: cover;*/
/*    height: 17px;*/
/*    display: block;*/
/*    width: 17px;*/
/*    background-repeat: no-repeat;*/
/*    position: absolute;*/
/*}*/
/*.arrow-down.first {*/
/*  right: 95px;*/
/*  top: 160px;*/
/*}*/
/*.arrow-down.second {*/
/*  top: 396px;*/
/*  left: 36px;*/
/*}*/
/*.flowers h2::after {*/
/*  content: "⌄";*/
/*  margin-left: 10px;*/
/*  font-family: "Montserrat", "Avenir Next", Arial, sans-serif;*/
/*  font-size: 1.35rem;*/
/*  vertical-align: middle;*/
/*}*/

.flowers .second {
  margin-top: 58px;
  text-align: right;
}

.flowers p,
.flowers .text-link {
  text-align: left;
}

.flowers .second + p,
.flowers .second + p + .text-link {
  text-align: right;
}

.text-link {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  color: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note {
  margin-top: 16px;
}

.care {
  padding: 0px 28px 0px;
  z-index: 10;
}
.care-first {
  text-align: left;
}
.care h2 {
  margin-bottom: 26px;
  text-align: left;
}

.care p + h2 {
  margin-top: 58px;
  text-align: end;
}

.care-support, .contact {
  text-align: end;
}

.contact {
  margin-top: 18px;
  margin-bottom: 45px;
}

.final-photo {
  width: 425px;
  background: var(--cream);
  overflow: hidden;
  z-index: 11;
}

.final-photo::before {
  content: none;
}

.final-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.link {
    color: #E6C4BB;
    font-size: 0.88rem;
    font-weight: 500;
}
.light-link {
    font-size: 0.88rem;
    color: #53643a;
    font-weight: 500;
}
.link.shop-link {
    text-align: left;
    font-weight: 500;
}
.wish-p {
    text-align: right !important;
}
.address-link {
    text-decoration: underline;
    cursor: pointer;
}
.bkg-blur {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(41,41,41,.35);
    backdrop-filter: blur(8px);

    z-index: 999;
}
/* .map-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    position: absolute;
    z-index: 100;
    background-color: #F9F1E8;
    max-width: 420px;
    width: 92%;
    height: 350px;
    border-radius: 42px;
} */

.map-container {
    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 92%;
    max-width: 420px;
    height: 350px;

    display: none;

    z-index: 1000;

    background: #F9F1E8;
    border-radius: 42px;

    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}

.map-close {
    position: absolute;
    top: 12px;
    right: 16px;

    width: 36px;
    height: 36px;

    border: 0;
    background: transparent;

    font-size: 32px;
    cursor: pointer;
    color: #637342;
}
.bkg-blur,
.map-container {
    display: none;
}

.bkg-blur.active {
    display: block;
}

.map-container.active {
    display: flex;
}
@media (min-width: 760px) {
  body {
    padding: 0;
  }

  .invite {
    border-radius: 0;
  }
}

@media (max-width: 360px) {
  p {
    font-size: 0.82rem;
  }

  .hero h1 {
    left: 30px;
    font-size: 3.45rem;
  }

  .timer {
    gap: 8px;
  }

  .timer strong {
    width: 48px;
  }

  .calendar {
    width: 220px;
    gap: 0px 1px;
  }
}
