:root {
  --ink: #f4f1ec;
  --ink-soft: rgba(244, 241, 236, 0.82);
  --ink-faint: rgba(244, 241, 236, 0.5);
  --line: rgba(244, 241, 236, 0.28);
  --bg: #0f0f0f;
  --btn: #f4f1ec;
  --btn-ink: #141414;
  --error: #ffb4a8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Full-bleed photo with a dark wash so text stays readable */
.bg { position: fixed; inset: 0; z-index: -1; }
.bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,.55) 0%, rgba(10,10,10,.15) 30%, rgba(10,10,10,.25) 55%, rgba(10,10,10,.8) 100%);
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 6vh, 56px) 16px 24px;
  text-align: center;
}

.brand img { width: clamp(200px, 30vw, 300px); height: auto; display: block; }

.hero { margin-top: auto; padding-top: 40px; width: 100%; max-width: 640px; }

h1 {
  font-weight: 100;
  font-size: clamp(30px, 5.6vw, 56px);
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* balance trailing letter-spacing so it centres */
  text-transform: uppercase;
  line-height: 1.1;
}

.lede {
  margin: 22px auto 0;
  max-width: 30em;
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.signup {
  margin: 28px auto 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 460px;
}

.field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: blur(2px);
  transition: border-color .2s;
}
.field:focus-within { border-color: var(--ink-soft); }
.field svg { flex: none; fill: none; stroke: var(--ink-faint); stroke-width: 1.6; }

.field input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: var(--ink);
  font: inherit; font-size: 14px;
}
.field input::placeholder { color: var(--ink-faint); }

button {
  flex: none;
  height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: var(--btn);
  color: var(--btn-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
button:hover { opacity: .9; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: default; }
button:focus-visible, .field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.status { min-height: 1.6em; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.status.error { color: var(--error); }

.foot {
  margin-top: clamp(28px, 6vh, 56px);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 520px) {
  .signup { flex-direction: column; }
  button { width: 100%; }
  h1 { letter-spacing: 0.22em; margin-right: -0.22em; }
}

@media (max-aspect-ratio: 3/4) {
  .bg img { object-position: 58% 55%; }
}
