@font-face {
  font-family: "Forum";
  font-weight: 400;
  font-style: normal;
  src: url("./fonts/Forum-Regular.woff2") format("woff2");
  font-display: swap;
}

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

* {
  box-sizing: border-box;
}

*:last-child {
  margin-bottom: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-soft-cream);
  font-family: "Railway", sans-serif;
  font-size: 20px;
  line-height: 1.5;

  --color-soft-cream: #FCF8EB;
  --color-ivory-cream: #F3E6D3;
  --color-soft-blush: #F1C9C4;
  --color-dusty-rose: #C69094;
  --color-warm-clay:  #C39A88;
  --color-taupe-brown: #8B6A55;
  --color-light-sage: #C9CEC1;
  --color-sage-green: #B7C6AD;
  --color-olive-green: #5e6845;
}

img {
  vertical-align: top;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: "Forum", serif;
  font-weight: 400;
  line-height: 0.9;
}

h1 {
  font-size: 115px;
}

h2 {
  font-size: 60px;
  margin-bottom: 24px;
}

h3 {
  font-size: 50px;
}

.text-center {
  text-align: center;
}

.section {
  padding: 120px 0;
}

.grid {
  display: flex;
  flex-wrap: wrap;
}

.grid-align-center {
  align-items: center;
}

.grid-col {
  flex: 1 1 50%;
  max-width: 50%;
}

.ui-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 0 28px;
  height: 52px;
  line-height: 52px;
  font-family: 'Forum', serif;
  font-size: 22px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  border-radius: 32px;
  font-weight: 400;
}

.ui-button--secondary {
  background-color: var(--color-soft-cream);
  color: var(--color-olive-green);
}

.ui-button--outlined {
  box-shadow: inset 0 0 0 1px var(--color-taupe-brown);
  color: var(--color-taupe-brown);
}

.section--olive-green {
  --section-color: var(--color-olive-green);
  background-color: var(--color-olive-green);
  color: var(--color-soft-cream);
}

.section--white {
  --section-color: #fff;
  background-color: #fff;
}

.section--transformed {
  position: relative;
  z-index: 1;
}

.section--transformed::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: var(--section-color);
  transform: skewY(-2deg);
  transform-origin: bottom right;
}

.section--transformed:last-child::after {
  display: none;
}

.section--transformed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
  background: var(--section-color);
  transform: skewY(-2deg);
  transform-origin: top left;
}

.section__subtitle {
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.landing-intro {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: var(--color-sage-green);
}

.landing-intro .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 48px;
}

.landing-intro__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.landing-intro__title {
  text-align: center;
}

.landing-place {
  position: relative;
  z-index: 2;
  padding-top: 0;
}

.landing-place__photo {
  margin: 0 auto 48px;
}

.photo-frame {
  position: relative;
  width: max-content;
  max-width: 100%;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, .1);
}

.photo-frame::before {
  background-image: url('./assets/shadow.png');
  background-repeat: no-repeat;
  background-position: 100% 100%;
  left: -24px;
  bottom: 4%;
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
}

.photo-frame::after {
  background-image: url('./assets/shadow.png');
  background-repeat: no-repeat;
  background-position: 0 100%;
  right: -24px;
  bottom: 4%;
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
}

.photo-frame__container::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 8px #fff;
}

.photo-frame__container::before {
  background: top no-repeat;
  background-image: url('./assets/shadow.png');
  bottom: -2px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.photo-frame__container img {
  max-width: 100%;
  vertical-align: text-bottom;
}

.landing-map {
  position: relative;
}

.landing-map__map {
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
  height: 100%;
}

.landing-map__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-map__button, .landing-register__button {
  margin-top: 40px;
}

.landing-register__photos {
  position: relative;
}

.landing-register__photo:first-child {
  position: relative;
  z-index: 1;
  transform: translateY(48px);
}

.landing-register__photo:last-child {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(240px);
}

.landing-dress-code__text {
  max-width: 820px;
}

.landing-dress-code__colors {
  margin-top: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-dress-code__color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color);
}

@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .grid-col {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .landing-place__photo,
  .landing-register__photo {
    margin: 0 auto 32px;
  }

  .landing-register__photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .landing-map {
    padding-bottom: 60px;
  }

  .landing-map__map {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 40px;
  }

  .landing-map__image {
    height: 360px;
    object-fit: cover;
  }

  h1 {
    font-size: 80px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  .grid-col:not(:first-child) {
    margin-top: 40px;
  }

  .section {
    padding: 60px 0;
  }

  .section__subtitle {
    margin-top: 24px;
  }

  .section--transformed::after,
  .section--transformed::before {
    height: 60px;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 34px;
  }

  .ui-button {
    width: 100%;
    justify-content: center;
  }

  .landing-intro__title {
    font-size: 64px;
  }

  .landing-place {
    padding-top: 0;
  }

  .landing-place__photo {
    margin-bottom: 24px;
  }

  .landing-place__text {
    margin-top: 12px;
  }

  .landing-map {
    padding-bottom: 0;
  }

  .landing-register__photo:first-child {
    transform: none;
    margin-bottom: 0;
  }

  .landing-map__button,
  .landing-register__button {
    width: 100%;
  }

  .landing-dress-code__colors {
    gap: 12px;
  }

  .landing-dress-code__color {
    width: 28px;
    height: 28px;
  }

  .landing-register__photo:last-child {
    display: none;
  }
}
