@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree-regular-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree-semibold-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --ink: #050505;
  --graphite: #555552;
  --quiet: #6b6b67;
  --hairline: #d9d9d4;
  --signal: #ffffff;
  --error: #8a1f1f;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--paper);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100%, 96rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(0.875rem, 2.5svh, 2rem) clamp(1.25rem, 5vw, 5rem)
    clamp(0.75rem, 2svh, 1.5rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  border-radius: 0.25rem;
}

.brand img {
  display: block;
  width: clamp(7.25rem, 10vw, 9.25rem);
  height: auto;
}

.brand:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 0.1875rem solid var(--ink);
  outline-offset: 0.25rem;
}

.launch-note,
.site-footer p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.hero {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5svh, 4rem) 0;
}

.welcome {
  width: min(100%, 47rem);
  text-align: center;
}

.gathering-mark {
  position: relative;
  width: 6.5rem;
  height: 1rem;
  margin: 0 auto clamp(0.75rem, 2.5svh, 1.75rem);
}

.gathering-mark::before {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  left: 0.4rem;
  height: 1px;
  background: var(--hairline);
  content: "";
}

.gathering-mark span {
  position: absolute;
  z-index: 1;
  top: 0;
  width: 1rem;
  height: 1rem;
  border: 0.125rem solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.gathering-mark span:first-child {
  left: 0;
}

.gathering-mark span:last-child {
  right: 0;
  background: var(--ink);
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 9vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.introduction {
  max-width: 35ch;
  margin: clamp(0.75rem, 2.5svh, 1.5rem) auto 0;
  color: var(--graphite);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.4;
}

.waitlist {
  width: min(100%, 39rem);
  margin: clamp(1.25rem, 3.5svh, 2.75rem) auto 0;
  padding-top: clamp(1rem, 2.5svh, 1.75rem);
  border-top: 1px solid var(--hairline);
}

.waitlist h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.waitlist-copy {
  margin: 0.5rem auto 1rem;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.4;
}

form {
  position: relative;
  text-align: left;
}

.field-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.625rem;
}

input[type="email"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--ink);
  border-radius: 0.5rem;
  background: var(--signal);
  color: var(--ink);
  font-size: 1rem;
}

input[type="email"]::placeholder {
  color: #797975;
  opacity: 1;
}

input[type="email"][aria-invalid="true"] {
  border-color: var(--error);
}

button {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--signal);
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #252525;
}

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

.field-error {
  min-height: 1rem;
  margin: 0.25rem 0 0;
  color: var(--error);
  font-size: 0.875rem;
  line-height: 1.4;
}

.consent {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.625rem;
  align-items: start;
  margin-top: 0.5rem;
  color: var(--quiet);
  font-size: 0.8125rem;
  line-height: 1.35;
  cursor: pointer;
}

.consent input {
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--ink);
}

.form-status {
  min-height: 1.25rem;
  margin: 0.5rem 0 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.form-status[data-tone="error"] {
  color: var(--error);
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.noscript-note {
  color: var(--error);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

.site-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 38rem) {
  .page-shell {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero {
    padding: clamp(0.75rem, 3svh, 2rem) 0;
  }

  .introduction {
    max-width: 27ch;
  }

  .site-footer {
    align-items: flex-start;
  }
}

@media (max-width: 22rem) {
  .field-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}

@media (max-height: 45rem) and (orientation: landscape) {
  .page-shell {
    padding-top: 0.75rem;
    padding-bottom: 0.625rem;
  }

  .brand img {
    width: 6.5rem;
  }

  .hero {
    padding: 0.5rem 0;
  }

  .gathering-mark {
    display: none;
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 3rem);
  }

  .introduction {
    margin-top: 0.5rem;
    font-size: 1rem;
  }

  .waitlist {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .waitlist-copy {
    margin-bottom: 0.625rem;
  }

  .site-footer {
    padding-top: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --graphite: #282828;
    --quiet: #333333;
    --hairline: #707070;
  }
}
