:root {
  color-scheme: light;
}

@font-face {
  font-family: "Alliance No.2";
  src: url("assets/fonts/AllianceNo2SemiBold/font.woff2") format("woff2"),
    url("assets/fonts/AllianceNo2SemiBold/font.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

*::selection {
  background: #000000;
  color: #ffffff;
}

html,
body {
  height: 100%;
}

body {
  height: 100vh;
  overflow: hidden;
  font-family: "Georgia", "Times New Roman", serif;
  color: #111;
  background-color: #fdf5eb;
  background-image: url("assets/images/background.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 3rem);
  gap: 1rem;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;

  gap: 2rem;
  backdrop-filter: blur(0.5px);
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.headline {
  align-self: stretch;
  color: #010a21;
  text-align: center;
  font-family: "Alliance No.2", "Georgia", "Times New Roman", serif;
  font-size: clamp(2.5rem, 5.3vw, 4.625rem);
  display: flex;
  flex-direction: column;
  background-color: rgba(254, 245, 235, 0.5);
  font-style: normal;
  font-weight: 600;
  line-height: 105%;
}

.subheadline {
  align-self: center;
  margin: 0 auto;
  color: #010a21;
  text-align: center;
  font-family: "Geist Mono", "SFMono-Regular", "Menlo", "Monaco", "Consolas",
    "Liberation Mono", "Courier New", monospace;
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.125rem);
  font-style: normal;
  font-weight: 400;
  line-height: 132%;
  letter-spacing: -0.18px;
  max-width: 42rem;
}

.contact-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 640px;
}

.contact-input {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 12px 16px;
  border: 1.5px solid #000;
  background: #ffffff;
  color: #010a21;
  font-family: "Geist Mono", "SFMono-Regular", "Menlo", "Monaco", "Consolas",
    "Liberation Mono", "Courier New", monospace;
  font-size: 18px;
  line-height: 132%;
  letter-spacing: -0.18px;
  flex: 1;
}

.contact-input::placeholder {
  color: #010a21;
  opacity: 0.4;
}

.contact-input::selection {
  background: #000000;
  color: #ffffff;
}

.contact-button {
  display: flex;
  height: 48px;
  padding: 12px 18px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #000;
  background: #ffa33e;
  color: #010a21;
  font-family: "Geist Mono", "SFMono-Regular", "Menlo", "Monaco", "Consolas",
    "Liberation Mono", "Courier New", monospace;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 132%;
  letter-spacing: -0.18px;
  cursor: pointer;
  flex: 0 0 auto;
}

.contact-button::selection {
  background: #000000;
  color: #ffffff;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
}

.form-messages {
  width: 100%;
  max-width: 640px;
  display: flex;
  justify-content: center;
}

.form-message {
  display: none;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #000;
  background: #fff3e6;
  color: #010a21;
  font-family: "Geist Mono", "SFMono-Regular", "Menlo", "Monaco", "Consolas",
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 132%;
  letter-spacing: -0.18px;
  text-align: center;
}

.form-message:target {
  display: block;
}

.form-message-success {
  background: #fff3e6;
}

.form-message-error {
  background: #ffe8e8;
}

.logo {
  width: clamp(110px, 22vw, 150px);
  height: auto;
}

.mascot {
  width: min(410px, 72vw);
  height: auto;
  max-height: 40vh;
  max-width: 80vw;
  object-fit: contain;
  animation: floaty 6s ease-in-out infinite;
  transform-origin: center;
}

.footer {
  color: #010a21;
  text-align: center;
  font-family: "Geist Mono", "SFMono-Regular", "Menlo", "Monaco", "Consolas",
    "Liberation Mono", "Courier New", monospace;
  font-size: clamp(0.95rem, 1vw + 0.45rem, 1.125rem);
  font-style: normal;
  font-weight: 400;
  line-height: 132%;
  letter-spacing: -0.18px;
  padding: 1rem 2rem 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cloud {
  position: absolute;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: clamp(140px, 22vw, 320px);
  aspect-ratio: 241/100;
  opacity: 0.9;
  z-index: 0;
  animation: cloud-float var(--float-duration, 14s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.cloud-2 {
  background-image: url("assets/images/clouds/cloud2.svg");
  aspect-ratio: 241/100;
}

.cloud-1 {
  background-image: url("assets/images/clouds/cloud1.svg");
  aspect-ratio: 384/112;
}

.cloud-3 {
  background-image: url("assets/images/clouds/cloud3.svg");
  aspect-ratio: 340/143;
}

.cloud-5 {
  background-image: url("assets/images/clouds/cloud5.svg");
  aspect-ratio: 241/100;
}

.cloud-7 {
  background-image: url("assets/images/clouds/cloud7.svg");
  aspect-ratio: 376/123;
  background-position: right bottom;
}

.cloud-sm {
  width: clamp(110px, 18vw, 220px);
}

.cloud-md {
  width: clamp(150px, 24vw, 300px);
}

.cloud-lg {
  width: clamp(190px, 30vw, 360px);
}

.cloud-pos-1 {
  top: 6vh;
  left: 6vw;
  --float-x: 14px;
  --float-y: -10px;
  --float-duration: 16s;
}

.cloud-pos-2 {
  top: 14vh;
  right: 8vw;
  --float-x: -18px;
  --float-y: -12px;
  --float-duration: 18s;
}

.cloud-pos-3 {
  top: 32vh;
  left: 12vw;
  --float-x: 12px;
  --float-y: -8px;
  --float-duration: 15s;
}

.cloud-pos-4 {
  top: 48vh;
  right: 10vw;
  --float-x: -16px;
  --float-y: -10px;
  --float-duration: 17s;
}

.cloud-pos-5 {
  top: 66vh;
  left: 20vw;
  --float-x: 18px;
  --float-y: -14px;
  --float-duration: 19s;
}

.cloud-pos-6 {
  top: 82vh;
  right: 18vw;
  --float-x: -14px;
  --float-y: -10px;
  --float-duration: 16s;
}

.cloud-pos-10 {
  bottom: 0;
  right: 0;
  --float-x: -12px;
  --float-y: 0;
  --float-duration: 18s;
}

.cloud-pos-9 {
  top: 0;
  left: 0;
  --float-x: -14px;
  --float-y: -10px;
  --float-duration: 20s;
}

.cloud-pos-7 {
  bottom: 18vh;
  --float-duration: 18s;
}

.cloud-pos-8 {
  bottom: 6vh;
  left: 18vw;
  --float-x: -16px;
  --float-y: -12px;
  --float-duration: 17s;
}

.cloud-lg-only {
  display: none;
}

@media (min-width: 1100px) and (max-width: 1600px) {
  .hero {
    gap: 1rem;
  }

  .contact-form {
    max-width: 560px;
  }

  .contact-input {
    max-width: 20rem;
  }

  .cloud-sm {
    width: clamp(90px, 14vw, 180px);
  }

  .cloud-md {
    width: clamp(130px, 20vw, 240px);
  }

  .cloud-lg {
    width: clamp(160px, 24vw, 300px);
  }

  .mascot {
    max-height: 36vh;
  }
}

@media (max-width: 640px) {
  /* body {
    height: auto;
    overflow-y: auto;
  } */
  .contact-form {
    flex-direction: column;
    gap: 12px;
  }

  .contact-input {
    width: 100%;
  }

  .contact-button {
    padding: 12px 16px;
  }

  .footer {
    padding: 0.75rem 1.5rem 1.25rem;
  }
}

@media (min-width: 1100px) {
  .cloud-lg-only {
    display: block;
  }
}

@media (max-height: 840px) and (min-width: 641px) {
  .headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }

  .subheadline {
    font-size: 0.95rem;
  }

  .footer {
    padding: 0.5rem 1.5rem 0.75rem;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

@keyframes cloud-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(var(--float-x, 12px), var(--float-y, -10px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot,
  .cloud {
    animation: none;
  }
}
