/* ── Mailing list page ── */

body.ml-page-body {
  background: #0a0a0a;
  min-height: 100vh;
}

body.ml-page-body .site-header,
body.ml-page-body .site-header.scrolled {
  position: fixed;
  background: #0a0a0a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.ml-page-body .brand,
body.ml-page-body .site-header.scrolled .brand {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.ml-page-body .brand:hover {
  color: white;
}

@media (max-width: 1023px) {
  body.ml-page-body .hamburger {
    background: rgba(255, 255, 255, 0.15);
  }

  body.ml-page-body .hamburger span {
    background: white;
  }
}

@media (min-width: 1024px) {
  body.ml-page-body .hamburger span {
    background: white;
  }
}

.ml-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(100px, 16vh, 160px) clamp(24px, 8vw, 120px) clamp(60px, 8vw, 100px);
}

.ml-page__inner {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

/* Left — copy */

.ml-page__eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.6rem, 0.8vw, 0.8rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.ml-page__rule {
  width: clamp(40px, 5vw, 64px);
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.ml-page__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.8rem, 5vw, 6rem);
  font-weight: 200;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.ml-page__sub {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  letter-spacing: -0.01em;
  max-width: 440px;
}

/* Right — form */

.ml-page__form {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 44px);
}

.ml-page__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ml-page__label {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.5rem, 0.65vw, 0.68rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ml-page__input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  padding: 12px 0;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  transition: border-color 0.3s ease;
}

.ml-page__input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.ml-page__submit {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 40px;
  background: white;
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  cursor: pointer;
  -webkit-appearance: none;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.ml-page__submit:hover .btn-arrow { transform: translateX(6px); }
.ml-page__submit:active { transform: scale(0.97); }

/* Success state */

.ml-page__success {
  display: none;
  opacity: 0;
  animation: ml-fade-in 0.6s ease forwards;
}

.ml-page-body--sent .ml-page__form { display: none; }
.ml-page-body--sent .ml-page__success { display: block; }

@keyframes ml-fade-in {
  to { opacity: 1; }
}

.ml-page__success-title {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: clamp(2rem, 3.5vw, 4rem);
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: clamp(12px, 1.5vw, 20px);
}

.ml-page__success-sub {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.55rem, 0.7vw, 0.72rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.ml-page__success-sign {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: clamp(0.85rem, 1vw, 1rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* Mobile */
@media (max-width: 767px) {
  .ml-page {
    align-items: flex-start;
    padding-top: 140px;
  }

  .ml-page__inner {
    grid-template-columns: 1fr;
  }

  .ml-page__sub {
    max-width: none;
  }
}
