:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  color: #0a0a0a;
  background: #f4f1e8;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 2.4vw, 2.5rem);
}

.wordmark {
  display: block;
  width: min(58%, 42rem);
  height: auto;
}

p {
  align-self: center;
  max-width: 44ch;
  margin: clamp(5rem, 12vh, 10rem) 0;
  font-size: clamp(1.6rem, 2.7vw, 3.25rem);
  font-weight: 400;
  line-height: 1.16;
  font-kerning: normal;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
}

.hero-copy span {
  display: block;
}

footer {
  padding-top: 1.5rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1.5rem, 3vw, 3rem);
}

a {
  color: inherit;
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
}

.footer-link {
  appearance: none;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}

a:hover,
a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.waitlist {
  width: min(calc(100% - 2rem), calc(100svh - 2rem), 32rem);
  aspect-ratio: 1;
  padding: 1.5rem;
  border: 0;
  color: #0a0a0a;
  background: #f4f1e8;
  box-shadow: 0 1.5rem 6rem rgb(10 10 10 / 18%);
}

.waitlist:popover-open {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.waitlist::backdrop {
  background: rgb(10 10 10 / 36%);
  backdrop-filter: blur(3px);
}

.waitlist-close {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  appearance: none;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.waitlist-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.waitlist-message {
  align-self: center;
  max-width: none;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.waitlist-message span {
  display: block;
}

.waitlist-close:hover,
.waitlist-close:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.waitlist form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.75rem;
}

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

.waitlist input {
  min-width: 0;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid #0a0a0a;
  border-radius: 0;
  outline: none;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.waitlist input::placeholder {
  color: rgb(10 10 10 / 42%);
}

.waitlist input:focus-visible {
  border-bottom-width: 2px;
}

.waitlist form button {
  padding: 0.9rem 1.1rem;
  border: 1px solid #0a0a0a;
  color: #f4f1e8;
  background: #0a0a0a;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.waitlist form button:hover,
.waitlist form button:focus-visible {
  color: #0a0a0a;
  background: transparent;
}

.legal-page {
  display: block;
  min-height: 100vh;
  min-height: 100svh;
}

.legal-header {
  margin-bottom: clamp(6rem, 14vw, 13rem);
}

.home-link {
  display: block;
  width: min(58%, 42rem);
}

.home-link img {
  display: block;
  width: 100%;
  height: auto;
}

article {
  width: min(100%, 46rem);
}

article h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.effective-date {
  margin: 1rem 0 clamp(5rem, 10vw, 8rem);
  color: #64625d;
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0;
}

article > p:not(.effective-date),
article section p,
article li {
  max-width: 42rem;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

article section {
  margin-top: 3.5rem;
}

article h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

article ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

article li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

article a {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.legal-footer {
  margin-top: clamp(7rem, 14vw, 13rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(10 10 10 / 18%);
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
  }

  main:not(.legal-page) {
    height: 100svh;
    min-height: 0;
  }

  .wordmark {
    width: min(72%, 24rem);
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    margin: clamp(1.5rem, 6svh, 3.5rem) 0;
    font-size: min(3.9vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    white-space: nowrap;
  }

  footer {
    padding-top: 0.75rem;
  }

  nav {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .legal-header {
    margin-bottom: 6rem;
  }

  .home-link {
    width: min(82%, 28rem);
  }

  article h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  article section {
    margin-top: 3rem;
  }

  .legal-footer {
    margin-top: 7rem;
  }

  .waitlist form {
    grid-template-columns: 1fr;
  }

  .waitlist form button {
    width: 100%;
  }
}

@media (max-width: 900px) and (max-height: 600px) {
  main:not(.legal-page) {
    padding: 0.75rem;
  }

  .wordmark {
    width: min(48%, 20rem);
  }

  .hero-copy {
    margin: 0.75rem 0;
    font-size: min(3.9vw, 1.4rem);
    line-height: 1.1;
  }

  footer {
    padding-top: 0.5rem;
  }

  .waitlist {
    padding: 1rem;
  }

  .waitlist-close {
    top: 0.85rem;
    right: 1rem;
  }

  .waitlist-message {
    font-size: 1.4rem;
  }
}
