@font-face {
  font-family: 'IranYekan';
  src: url('../fonts/iranyekanwebregular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'IranNastaliq';
  src: url('../fonts/IranNastaliq.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'IranYekan', 'Times New Roman', serif;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: #fdfafa;
  color: #333;
  text-align: center;
  direction: rtl;
  font-family: inherit;
  line-height: 1.75;
}

p {
  max-width: 800px;
  margin: auto;
}

a {
  color: inherit;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.header {
  background: #dcdcdc;
  background-image: url('../img/bg.jpg');
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2rem 1rem 1rem;
  display: flex;
  justify-content: start;
  min-height: 50vh;
  /* max-height: 100vh; */
  aspect-ratio: 16/10;
  width: 100%;
  color: #383634;
}

.header-title {
  margin-bottom: 0;
  text-align: start;
  font-family: 'IranNastaliq';
  font-size: 80px;
  line-height: normal;
}

.quote-wrapper {
  padding: 60px;
  position: relative;
  font-family: 'IranNastaliq';
  font-size: 36px;
  line-height: 80px;
  overflow: hidden;
}

.quote-wrapper::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 160px;
  bottom: 20px;
  right: -40px;
  background-image: url("../img/pigeon.svg");
  opacity: .1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  rotate: -24deg;
}


.quote-wrapper::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 160px;
  top: 40px;
  left: -40px;
  background-image: url("../img/pigeon.svg");
  opacity: .1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  rotate: 24deg;
  transform: scaleX(-1);
}

.details-section {
  font-family: 'IranYekan';
  font-size: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #dce9fb;
}

.details {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  gap: 48px;
}

.block {
  text-align: center;
}

.date-block {
  border-right: 1px solid #ccc;
  border-left: 1px solid #ccc;
  padding: 0 40px;
}

.date-block .day {
  font-size: 40px;
  margin: 10px 0;
}

.location {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.location-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.location-icons {
  display: flex;
  justify-content: center;
  gap: .5rem;
  align-items: center;
}

.rsvp {
  font-family: 'IranYekan';
  font-size: 16px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.rsvp p {
  max-width: 400px;
}

.caption {
  font-size: 80%;
  color: #666;
  margin-bottom: 8px;
}

.rsvp a {
  padding: 6px 16px;
  border-radius: 4px;
  background-color: #dce9fb;
  transition: background-color .2s ease;
  box-shadow: 0px 2px 6px #0000002e;
}

.rsvp a:hover {
  background-color: #bed3ef;
}

@media screen and (max-width: 600px) {
  .header {
    padding: 14px;
  }

  .quote-wrapper {
    padding: 52px;
    font-size: 24px;
    line-height: 52px;
  }

  .quote-wrapper::before,
  .quote-wrapper::after {
    width: 120px;
    height: 120px;
  }

  .quote-wrapper::before {
    right: -20px;
  }

  .quote-wrapper::after {
    left: -20px;
  }

  .header-title {
    font-size: 40px;
    line-height: 2;
  }

  .details {
    gap: 32px;
  }

  .header {
    min-height: 30vh;
  }
}