@font-face {
  font-family: "Forma DJR Text";
  src: url("/assets/fonts/FormaDJRText-Medium.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Forma DJR Deck";
  src: url("/assets/fonts/FormaDJRDeck-Medium.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Museo Sans";
  src: url("/assets/fonts/MuseoSans-300.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

:root {
  background: #431618;
  color: rgb(255 255 255 / 70%);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  background: #431618;
  overflow-x: hidden;
}

main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 756px));
  justify-content: center;
  margin-inline: auto;
  max-width: 1512px;
  min-height: 100svh;
  position: relative;
  width: 100%;
}

.brand-panel {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100svh;
  min-width: 0;
}

.brand-mark {
  display: block;
  height: clamp(500px, 82svh, 962px);
  max-width: none;
  pointer-events: none;
  user-select: none;
  width: auto;
}

.waitlist {
  align-self: center;
  justify-self: center;
  transform: translate(-1.5rem, -0.5rem);
  width: 344px;
}

h1,
.subtitle,
.form-message {
  margin: 0;
}

h1 {
  color: #fff;
  font-family: "Forma DJR Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.36em;
  line-height: 56px;
  text-transform: uppercase;
  white-space: nowrap;
}

.subtitle {
  color: #fff;
  font-family: "Forma DJR Deck", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 24px;
  margin-top: 8px;
  text-transform: uppercase;
}

.launchlist-form {
  height: 133px;
  margin-top: 39px;
}

.launchlist-form.is-success {
  align-items: center;
  display: flex;
  justify-content: center;
}

input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 30%);
  border-radius: 0;
  caret-color: #f7f3e9;
  color: rgb(255 255 255 / 70%);
  display: block;
  font-family: "Museo Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  height: 35px;
  line-height: 24px;
  outline: none;
  padding: 5px 0;
  text-align: center;
  width: 100%;
}

input::placeholder {
  color: rgb(255 255 255 / 50%);
  opacity: 1;
}

input:focus-visible {
  border-color: #f7f3e9;
}

button:focus-visible {
  outline: 2px solid #f7f3e9;
  outline-offset: 3px;
}

.form-message {
  color: #e54040;
  font-family: "Museo Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
  min-height: 40px;
  padding-top: 12px;
  text-align: center;
}

.launchlist-form.is-invalid input,
.launchlist-form.is-invalid input:focus-visible {
  border-color: #e54040;
}

button {
  align-items: center;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 0;
  color: rgb(255 255 255 / 50%);
  cursor: pointer;
  display: flex;
  font-family: "Forma DJR Deck", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  height: 51px;
  justify-content: center;
  letter-spacing: 0.15em;
  margin: 7px auto 0;
  padding: 0;
  text-transform: uppercase;
  width: 143px;
}

button:hover:not(:disabled) {
  border-color: rgb(255 255 255 / 60%);
  color: rgb(255 255 255 / 80%);
}

button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.success-message {
  color: rgb(255 255 255 / 70%);
  font-family: "Forma DJR Deck", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 24px;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

footer {
  bottom: 1rem;
  color: rgb(255 255 255 / 42%);
  font-family: "Museo Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  left: 50%;
  letter-spacing: 0.12em;
  line-height: 1rem;
  padding-block: 1rem;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 64rem) {
  main {
    display: block;
  }

  .brand-panel {
    height: 500px;
    min-height: 500px;
    overflow: hidden;
  }

  .brand-mark {
    height: 500px;
    max-width: none;
    min-height: 500px;
    object-fit: contain;
    width: auto;
  }

  .waitlist {
    margin: clamp(2.5rem, 8vw, 4rem) auto 0;
    padding-bottom: 6rem;
    transform: none;
    width: min(calc(100% - 3rem), 344px);
  }

}

@media (max-width: 24rem) {
  h1 {
    font-size: 26px;
    letter-spacing: 0.28em;
  }
}
