@font-face {
  font-family: "Aida";
  src: url("../fonts/aida-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MontserrartArm";
  src: url("../fonts/montserratarm-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MontserrartArm";
  src: url("../fonts/montserratarm-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #492e14;
  --ink-soft: #5f3f24;
  --gold: #b69152;
  --paper: #fbfaf6;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "MontserrartArm", Arial, sans-serif;
  font-weight: 300;
  background:
    linear-gradient(rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.70)),
    url("../img/bg-flowers.png") center top / cover fixed,
    var(--paper);
}

img {
  max-width: 100%;
}

.invite-container {
  max-width: 760px;
}

.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 78px 0;
}

.hero-screen {
  align-items: flex-start;
  padding-top: 56px;
}

.name-mark {
  display: block;
  width: min(560px, 92vw);
  margin: 0 auto 26px;
  color: var(--ink);
  font-family: "Aida", "Times New Roman", serif;
  font-size: min(40px, 11.83vw);
  font-weight: 300;
  line-height: min(112px, 18.4vw);
  text-align: center;
}

.section-mark {
  display: block;
  width: min(520px, 90vw);
  margin: 0 auto 34px;
}

.hero-copy,
.body-copy,
.place-kind {
  color: var(--ink);
  font-family: "MontserrartArm", Arial, sans-serif;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 300;
  line-height: 1.55;
}

.hero-copy {
  margin: 0 auto 58px;
}

.hero-photo {
  display: block;
  width: min(365px, 80vw);
  aspect-ratio: 0.88 / 1;
  margin: 0 auto 66px;
  object-fit: cover;
  object-position: center 44%;
}

.next-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 1.05rem;
  text-decoration: none;
}

.next-link.compact {
  margin-top: 42px;
}

.triangle {
  width: 0;
  height: 0;
  border-right: 14px solid transparent;
  border-left: 14px solid transparent;
  border-top: 8px solid var(--gold);
  animation: arrowFloat 1.6s ease-in-out infinite;
}

.body-copy {
  max-width: 620px;
  margin: 0 auto;
}

.guests-screen {
  align-items: flex-start;
  padding-top: 72px;
}

.guests-screen .section-mark {
  width: min(407px, 86vw);
  margin-bottom: 52px;
}

.guests-screen .body-copy {
  max-width: 527px;
  font-size: 1.375rem;
}

.calendar {
  width: min(330px, 92vw);
  margin: 96px auto 0;
  color: var(--ink);
}

.calendar-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.2vw, 2.45rem);
  font-family: "MontserrartArm", Arial, sans-serif;
  font-weight: 300;
  line-height: 1;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 14px 9px;
}

.weekdays {
  margin-bottom: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.days span {
  position: relative;
  z-index: 0;
  min-height: 24px;
  font-size: 1.02rem;
  line-height: 24px;
}

.days .active::before {
  position: absolute;
  z-index: -1;
  top: calc(50% + 2px);
  left: 50%;
  width: 58px;
  height: 52px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath fill='%23eeb1bd' fill-opacity='.78' d='M32 55S4 38.5 4 19.2C4 8.8 11.4 2 20.2 2 25.5 2 29.6 5 32 9.4 34.4 5 38.5 2 43.8 2 52.6 2 60 8.8 60 19.2 60 38.5 32 55 32 55Z'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  transform: translate(-50%, -50%);
}

.event-time {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: "MontserrartArm", Arial, sans-serif;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-weight: 300;
  line-height: 1;
}

.place-block h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: "MontserrartArm", Arial, sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
}

.place-kind {
  margin: 0 0 26px;
}

.place-photo {
  display: block;
  width: min(460px, 86vw);
  aspect-ratio: 1.33 / 1;
  margin: 0 auto 56px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
}

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  min-height: 60px;
  padding: 13px 34px;
  border-radius: 999px;
  color: #17130f;
  font-family: "MontserrartArm", Arial, sans-serif;
  font-size: 1.3rem;
  text-decoration: none;
  background: var(--gold);
  box-shadow: 0 14px 26px rgba(73, 46, 20, 0.10);
}

.restaurant-block {
  margin-top: 128px;
}

.restaurant-block .place-photo {
  aspect-ratio: 4 / 3;
}

@keyframes arrowFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 767.98px) {
  body {
    background-attachment: scroll;
  }

  .screen {
    min-height: 100svh;
    padding: 72px 0;
  }

  .hero-screen {
    padding-top: 70px;
  }

  .name-mark {
    width: min(326px, 86vw);
    font-size: min(41.92px, 11.06vw);
    line-height: min(65.2px, 17.2vw);
    margin-bottom: 12px;
  }

  .section-mark {
    width: min(360px, 90vw);
    margin-bottom: 26px;
  }

  .guests-screen {
    padding-top: 16px;
  }

  .guests-screen .section-mark {
    width: min(376px, 92vw);
    margin-bottom: 67px;
  }

  .guests-screen .body-copy {
    max-width: min(462px, 96vw);
    font-size: 1.25rem;
  }

  .hero-copy,
  .body-copy,
  .place-kind {
    font-size: 1.125rem;
  }

  .hero-photo {
    width: min(335px, 86vw);
  }

  .calendar {
    margin-top: 66px;
  }

  .calendar-head {
    gap: 18px;
  }

  .restaurant-block {
    margin-top: 96px;
  }
}

@media (max-width: 479.98px) {
  .guests-screen .body-copy {
    max-width: 317px;
    font-size: 1.0625rem;
  }
}
