/* ------------------------------------------------------------------
   Precues
   Background photograph: assets/images/Background.png
   or point --background-image at a different file.
   --overlay-opacity washes the photo toward white (0 to 1).
   ------------------------------------------------------------------ */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-roman.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-italic.woff2") format("woff2");
}

:root {
  --background-image: url("../images/Background.png");
  --overlay-opacity: 0.82;
  --ink: #141414;
  --muted: #1c1c1c;
  --line: #cfcfcf;
  --input-border: #c6c6c6;
  --footer: #6f6f6f;
  --error: #8c1d1d;
  --font: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-color: #f7f7f7;
  background-image: var(--background-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body::after {
  z-index: -1;
  background: rgba(255, 255, 255, var(--overlay-opacity));
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button,
input {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

.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;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  padding: max(1.85rem, env(safe-area-inset-top)) max(2.4rem, env(safe-area-inset-right)) 0 max(2.4rem, env(safe-area-inset-left));
}

.brand {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.frame {
  width: min(100%, 52rem);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8.35rem 1.75rem 1.6rem;
  text-align: center;
}

.frame > main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.15rem, 2.4vh, 2.1rem);
}

.hero-title {
  font-size: clamp(1.9rem, 2.7vw, 2.28rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.24;
}

.break-desktop,
.lede-break {
  display: none;
}

.lede {
  max-width: 44rem;
  margin: clamp(1.35rem, 2.4vh, 1.9rem) auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.55;
}

.lede em,
.built em {
  font-style: italic;
  font-weight: 400;
}

.story {
  display: flex;
  flex-direction: column;
}

.rule {
  width: 3rem;
  height: 1px;
  margin: 1.35rem auto 1.15rem;
  border: 0;
  background: #1a1a1a;
}

.invite {
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.4;
}

.system {
  margin-top: 0.28rem;
  font-size: clamp(2rem, 3.15vw, 2.55rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.032em;
  line-height: 1.14;
}

.built {
  margin-top: 0.5rem;
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.45;
}

.features {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.feature + .feature {
  position: relative;
  margin-left: 1.75rem;
  padding-left: 1.75rem;
}

.feature + .feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 2rem;
  background: var(--line);
  transform: translateY(-50%);
}

.icon {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access {
  margin-bottom: clamp(1.15rem, 2.2vh, 1.65rem);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.waitlist {
  position: relative;
  width: min(100%, 32rem);
  margin: 0 auto;
}

.waitlist.is-done .form-fields {
  visibility: hidden;
}

.form-fields {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.email-input {
  width: 19rem;
  height: 3.25rem;
  padding: 0 1.4rem;
  border: 1.5px solid var(--input-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 400;
  appearance: none;
}

.email-input::placeholder {
  color: #8a8a8a;
  opacity: 1;
}

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

.submit-btn {
  display: inline-grid;
  grid-template-areas: "label";
  justify-items: center;
  align-items: center;
  flex: none;
  min-width: 12.25rem;
  height: 3.25rem;
  padding: 0 1.7rem;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
}

.btn-label,
.submit-btn::after {
  grid-area: label;
}

.submit-btn::after {
  content: "Join the waitlist";
  visibility: hidden;
}

.submit-btn:hover {
  background: #000;
}

.submit-btn:disabled {
  cursor: progress;
  opacity: 0.72;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.7rem);
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--error);
}

.form-status.is-success {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  bottom: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.45;
}

.noscript-note {
  margin-top: 0.9rem;
  color: var(--footer);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: clamp(1.35rem, 2.8vh, 2.25rem);
  padding-bottom: env(safe-area-inset-bottom);
}

.site-footer p {
  margin: 0;
  padding-left: 0.38em;
  color: var(--footer);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .break-desktop,
  .lede-break {
    display: inline;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    padding-top: max(1.05rem, env(safe-area-inset-top));
    padding-left: max(1.15rem, env(safe-area-inset-left));
    padding-right: max(1.15rem, env(safe-area-inset-right));
  }

  .brand {
    font-size: 1.5rem;
  }

  .frame {
    padding: 1.45rem 1.2rem 1.25rem;
  }

  .frame > main {
    flex: none;
    gap: 0;
  }

  .hero-title {
    font-size: 1.42rem;
    line-height: 1.26;
  }

  .lede {
    margin-top: 0.8rem;
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .rule {
    margin: 0.85rem auto 0.75rem;
  }

  .invite,
  .built {
    font-size: 0.98rem;
    line-height: 1.4;
  }

  .system {
    margin-top: 0.15rem;
    font-size: 1.52rem;
    line-height: 1.15;
  }

  .built {
    margin-top: 0.32rem;
  }

  .features {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.72rem;
    margin: 1.05rem auto 0.95rem;
  }

  .feature {
    width: auto;
    justify-content: center;
    text-align: center;
    font-size: 0.92rem;
    gap: 0.55rem;
  }

  .feature br {
    display: none;
  }

  .feature span {
    white-space: nowrap;
  }

  .feature + .feature {
    margin-left: 0;
    padding-left: 0;
  }

  .feature + .feature::before {
    display: none;
  }

  .icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .access {
    margin-bottom: 0.75rem;
    font-size: 0.96rem;
    line-height: 1.38;
  }

  .email-input,
  .submit-btn {
    height: 2.95rem;
    min-height: 2.95rem;
    font-size: 0.96rem;
  }

  .submit-btn {
    min-width: 0;
    padding: 0 1.3rem;
  }

  .form-status {
    font-size: 0.92rem;
  }

  .site-footer {
    margin-top: 1.25rem;
  }

  .site-footer p {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
  }
}

@media (max-width: 560px) {
  .form-fields {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
  }

  .email-input,
  .submit-btn {
    width: 100%;
  }
}

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