/* BBC BULLY — one-page newsletter signup. Flat monochrome, mobile-first. */

:root {
  --ink: #000;
  --surface: #0a0a0b;
  --paper: #e7e9ea;
  --muted: #71767b;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --danger: #f2a0a0;
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* ── Optional background image layer ─────────────────────── */
/* Uncomment once art is in place:
   .bg {
     position: fixed; inset: 0; z-index: 0;
     background: #000 center/cover no-repeat;
     background-image: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.86)), url("hero-mobile.webp");
   }
   @media (min-width: 700px) {
     .bg { background-image: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.86)), url("hero-desktop.webp"); }
   }
*/
.bg { position: fixed; inset: 0; z-index: 0; background: var(--ink); }

/* ── Layout ──────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 10vh, 120px);
}

.top { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.badge {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.hero { max-width: 620px; }

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--paper);
  margin-right: 8px;
  vertical-align: 1px;
}

.title {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 6.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.002em;
}

.copy { margin: 0 0 28px; color: var(--muted); max-width: 46ch; font-size: 1.02rem; }

/* ── Form ────────────────────────────────────────────────── */
.form { max-width: 560px; }
.form__row { display: flex; gap: 10px; }

.form__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.form__input::placeholder { color: var(--muted); }
.form__input:focus { border-color: rgba(255, 255, 255, 0.35); outline: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.04); }
.btn--primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.08);
}
.btn--primary:hover { background: #fff; box-shadow: 0 0 42px rgba(255, 255, 255, 0.16); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.agree input { margin-top: 3px; accent-color: var(--paper); }
.agree a { color: var(--paper); }

.msg { min-height: 1.4em; margin: 12px 0 0; font-size: 0.88rem; }
.msg--ok { color: var(--paper); }
.msg--err { color: var(--danger); }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.discord-line { margin: 22px 0 0; color: var(--muted); font-size: 0.85rem; }
.discord-line a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); }
.discord-line a:hover { border-bottom-color: var(--paper); }

/* Success state replaces the form */
.form--done .form__row,
.form--done .agree,
.form--done .msg { display: none; }
.form--done::after {
  content: "You’re on the list. We’ll open the doors to you first.";
  display: block;
  margin-top: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--paper);
  font-size: 0.95rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}
.foot p { margin: 0; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 560px) {
  .page { gap: 36px; }
  .form__row { flex-direction: column; }
  .form__btn { width: 100%; }
  .foot { flex-direction: column; }
}
