@font-face {
  font-family: "ABC Diatype";
  src: url("assets/fonts/ABCDiatypeVariable.woff2") format("woff2-variations"),
       url("assets/fonts/ABCDiatypeVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TF Arrow ExtraLight";
  src: url("assets/fonts/TFArrowExtraLight-Normal.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SangBleu Kingdom";
  src: url("assets/fonts/SangBleuKingdom-Light-WebXL.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "TF Arrow ExtraLight", "ABC Diatype", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  font-weight: 250;
}

button,
input,
textarea {
  font-weight: 250;
}

/* Hero */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero__bg-carousel {
  position: absolute;
  inset: 0;
}

.hero__bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero__bg-slide.is-active {
  opacity: 1;
}

.hero__logo {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 95px;
  height: auto;
}

.hero__content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__content p {
  margin: 12px 0;
  font-size: 30px;
  line-height: 2.5;
}

.contact-link {
  margin-top: 12px;
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 30px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  cursor: pointer;
  padding: 0;
}

.contact-link:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .hero__logo {
    top: 28px;
    width: 64px;
  }

  .hero__content {
    max-width: 100%;
    padding: 0 32px;
  }

  .hero__content p {
    font-size: 23px;
  }

  .contact-link {
    font-size: 23px;
  }

  .site-footer p {
    font-size: 8px;
  }
}

/* Footer */

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(48px + env(safe-area-inset-bottom));
  z-index: 5;
  text-align: center;
  color: #fff;
  font-family: "ABC Diatype", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-footer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
}

/* Contact modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: #fff;
  color: #111;
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  border-radius: 4px;
  font-family: "ABC Diatype", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.modal h2 {
  margin: 0 0 24px;
  font-weight: 250;
  font-size: 20px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #111;
  padding: 4px;
}

.modal-close:hover {
  opacity: 0.6;
}

#contactForm {
  display: flex;
  flex-direction: column;
}

#contactForm[hidden] {
  display: none;
}

#contactForm label {
  font-size: 13px;
  margin-bottom: 6px;
  margin-top: 16px;
}

#contactForm label:first-of-type {
  margin-top: 0;
}

#contactForm input,
#contactForm textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  resize: vertical;
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: #111;
}

.submit-button {
  margin-top: 24px;
  padding: 12px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

.submit-button:hover {
  opacity: 0.85;
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-success {
  text-align: center;
  margin: 16px 0 0;
}
