/* ============================================
   FOURFORTYFOUR — Waitlist
   Morning · Body · Matter
   ============================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --coal: #0A0A0A;
  --bone: #F2EFE8;
  --ash:  #7A7A78;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bone);
  color: var(--coal);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

a:hover {
  border-bottom-color: currentColor;
}

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

[data-fade] {
  opacity: 0;
  transition: opacity 200ms ease-out;
}

[data-fade].is-visible {
  opacity: 1;
}

/* ============================================
   SECTION 1 — HERO
   ============================================ */

.hero {
  min-height: 100vh;
  background: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.hero__inner {
  text-align: center;
  max-width: 1200px;
}

.mark {
  display: block;
  width: auto;
  height: 88px;
  margin: 0 auto 48px;
  user-select: none;
}

.wordmark {
  margin: 0 0 80px;
  line-height: 0;
}

.wordmark img {
  display: block;
  width: auto;
  height: 32px;
  margin: 0 auto;
  user-select: none;
}

.hero__statement {
  font-size: 24px;
  font-weight: 400;
  color: var(--coal);
  margin: 0 0 80px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}

.hero__mantra {
  font-size: 18px;
  font-weight: 400;
  color: var(--coal);
  margin: 0;
  line-height: 1.4;
}

/* ============================================
   SECTION 2 — ATMOSPHERE
   ============================================ */

.atmosphere {
  position: relative;
  min-height: 20vh;
  background: var(--coal);
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.atmosphere__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.atmosphere__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   SECTION 3 — INVITATION
   ============================================ */

.invitation {
  min-height: 100vh;
  background: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 32px;
}

.invitation__inner {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.invitation__heading {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--coal);
  margin: 0;
  line-height: 1.3;
  text-wrap: balance;
}

.invitation__subline {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--coal);
  margin: 16px 0 48px;
}

/* ---------- Form ---------- */

.form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.form__counter {
  font-size: 13px;
  font-weight: 400;
  color: var(--ash);
  margin: 0 0 24px;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-style: italic;
}

.form__email {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--ash);
  background: transparent;
  padding: 14px 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--coal);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  transition: border-color 160ms ease;
}

.form__email::placeholder {
  color: var(--ash);
}

.form__email:focus {
  outline: none;
  border-bottom-color: var(--coal);
}

.form__email:focus-visible {
  outline: none;
  border-bottom-color: var(--coal);
  box-shadow: 0 1px 0 0 var(--coal);
}

/* Kill Chrome/Safari autofill yellow */
.form__email:-webkit-autofill,
.form__email:-webkit-autofill:hover,
.form__email:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--coal);
  -webkit-box-shadow: 0 0 0 1000px var(--bone) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ash);
  cursor: pointer;
  margin-top: 20px;
}

.form__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  margin: 3px 0 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--coal);
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  position: relative;
}

.form__consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--coal);
}

.form__consent a {
  color: var(--ash);
  border-bottom: 1px solid var(--ash);
}

.form__consent a:hover {
  color: var(--coal);
  border-bottom-color: var(--coal);
}

.form__submit {
  background: none;
  border: none;
  padding: 0;
  margin: 40px 0 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--coal);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  letter-spacing: 0;
  transition: border-color 200ms ease;
}

.form__submit:hover {
  border-bottom-color: var(--coal);
}

.form__submit:focus {
  outline: none;
}

.form__submit:focus-visible {
  outline: 1px solid var(--coal);
  outline-offset: 6px;
}

.form__submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form__message {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--coal);
  text-align: left;
  line-height: 1.6;
}

.form__message:empty {
  margin: 0;
}

.form.is-submitted .form__counter,
.form.is-submitted .form__email,
.form.is-submitted .form__consent,
.form.is-submitted .form__submit {
  display: none;
}

.form.is-submitted .form__message {
  margin: 0;
  text-align: center;
  font-size: 16px;
}

/* ---------- Signature (mono, after form) ---------- */

.signature {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--ash);
  text-align: center;
  margin: 48px 0 0;
  letter-spacing: 0;
}

/* ============================================
   SECTION 4 — FOUNDING MEMBERS · "The First 444"
   ============================================ */

.founding {
  background: var(--bone);
  padding: 80px 32px;
  display: flex;
  justify-content: center;
}

.founding__inner {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.founding__label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0;
}

.founding__intro {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--coal);
  max-width: 480px;
  margin: 24px auto 0;
  text-wrap: balance;
}

.founding__list {
  margin-top: 40px;
}

.founding__item {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--coal);
  margin: 0;
  text-wrap: balance;
}

.founding__item + .founding__item {
  margin-top: 24px;
}

/* ============================================
   SECTION 5 — FOOTER
   ============================================ */

.footer {
  background: var(--bone);
  text-align: center;
  padding: 96px 32px 64px;
  font-size: 12px;
  color: var(--ash);
}

.footer p {
  margin: 0 0 8px;
  letter-spacing: 0;
}

.footer p.footer__mark {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer p:last-child {
  margin-top: 16px;
  margin-bottom: 0;
}

.footer a {
  color: var(--ash);
}

/* ============================================
   PRIVACY / IMPRESSUM PAGES
   ============================================ */

.page {
  min-height: 100vh;
  background: var(--bone);
  padding: 48px 32px 96px;
  max-width: 720px;
  margin: 0 auto;
}

.page__back {
  font-size: 14px;
  font-weight: 400;
  color: var(--coal);
  display: inline-block;
  margin-bottom: 64px;
}

.page__title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--coal);
  margin: 0 0 32px;
  line-height: 1.2;
}

.page__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--coal);
  margin: 0 0 64px;
}

.page__signature {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ash);
  letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
  .hero {
    padding: 96px 64px;
  }

  .mark {
    height: 120px;
    margin-bottom: 56px;
  }

  .wordmark img {
    height: 48px;
  }

  .wordmark {
    margin-bottom: 96px;
  }

  .hero__statement {
    margin-bottom: 96px;
  }

  .invitation {
    padding: 120px 64px;
  }

  .founding {
    padding: 120px 64px;
  }

  .footer {
    padding: 120px 64px 80px;
  }

  .page__title {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .mark {
    height: 72px;
    margin-bottom: 32px;
  }

  .wordmark img {
    height: 28px;
    max-width: 90vw;
  }

  .wordmark {
    margin-bottom: 56px;
  }

  .hero__statement {
    font-size: 18px;
    margin-bottom: 60px;
  }

  .hero__mantra {
    font-size: 14px;
  }

  .founding {
    padding: 64px 32px;
  }

  .founding__intro {
    font-size: 16px;
  }

  .founding__item {
    font-size: 15px;
  }

  .invitation {
    padding: 80px 32px;
  }

  .invitation__heading {
    font-size: 20px;
  }

  .invitation__subline {
    font-size: 16px;
  }

  .atmosphere {
    min-height: 20vh;
  }
}
