:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #101114;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #101114;
}

.page-shell {
  width: min(100% - 3rem, 70rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero {
  width: 100%;
  padding: 5rem 0 4rem;
}

.brand,
.status {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand {
  color: #ffffff;
}

.hero-copy {
  max-width: 43rem;
  margin: clamp(4.5rem, 16vh, 10rem) 0 3.5rem;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.4rem, 13vw, 8.5rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero-copy p {
  max-width: 30rem;
  margin: 1.75rem 0 0;
  color: #d8d8da;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  line-height: 1.5;
}

.early-access {
  margin-top: 2rem;
}

.early-access-button,
.request-access-button {
  border: 0;
  border-radius: 0.35rem;
  background: #dc3535;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.early-access-button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
}

.early-access-button svg,
.dialog-close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.early-access > p {
  margin: 0.7rem 0 0;
  color: #939396;
  font-size: 0.875rem;
}

.early-access-button:hover,
.request-access-button:hover {
  background: #ed4545;
}

.early-access-button:focus-visible,
.request-access-button:focus-visible,
.dialog-close:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.early-access-dialog {
  width: min(calc(100% - 2rem), 30rem);
  margin: auto;
  padding: 0;
  border: 1px solid #313237;
  border-radius: 0.75rem;
  background: #18191d;
  color: #ffffff;
}

.early-access-dialog::backdrop {
  background: rgb(0 0 0 / 65%);
}

.dialog-content {
  position: relative;
  padding: 2rem;
}

.dialog-content h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.dialog-content > p {
  margin: 0.75rem 2rem 1.75rem 0;
  color: #d8d8da;
  line-height: 1.5;
}

.dialog-close {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.dialog-close:hover {
  background: #292a2f;
}

.form-field {
  margin-top: 1.1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 650;
}

.form-field label span {
  color: #939396;
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  border: 1px solid #44454b;
  border-radius: 0.35rem;
  background: #101114;
  color: #ffffff;
  font: inherit;
}

input {
  min-height: 2.85rem;
  padding: 0.6rem 0.75rem;
}

textarea {
  min-height: 6rem;
  padding: 0.7rem 0.75rem;
  resize: vertical;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-feedback {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: #d8d8da;
  font-size: 0.875rem;
  line-height: 1.4;
}

.form-feedback.is-error {
  color: #ff8585;
}

.request-access-button {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.55rem;
  padding: 0.75rem 1rem;
}

.request-access-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status {
  color: #dc3535;
}

footer {
  width: min(100% - 3rem, 70rem);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: #939396;
  font-size: 0.8125rem;
  line-height: 1.4;
}

@media (min-width: 48rem) {
  .page-shell,
  footer {
    width: min(100% - 6rem, 70rem);
  }

  .hero {
    padding: 5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }
}

/* Center landing page content */
.hero {
  text-align: center;
}

.hero-copy {
  margin-left: auto;
  margin-right: auto;
}

h1,
.hero-copy p {
  margin-left: auto;
  margin-right: auto;
}
.brand { text-align: left; }
