/* Meme Hombre — Coming Soon. Values from
   ../MemeHombre-Design/design_handoff_coming_soon/README.md (high-fidelity;
   don't invent). Single dark look by design — no light theme. */

:root {
  --ground: #1a1815;
  --text: #f3f2f2;
  --muted: #b7ab98;
  --faint: #7d7365;
  --field-border: #4a4237;
  --gold: #b68235;
  --gold-light: #e9c98f;
  --gold-ghost: rgba(233, 201, 143, 0.06);
  --gold-rule: rgba(182, 130, 53, 0.35);
  --error: #b3402f;

  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Lora", Georgia, serif;

  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --control-h: 48px;

  color-scheme: dark;
}

html, body {
  margin: 0;
  background: var(--ground);
}

body {
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}
a:hover { color: var(--text); }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Page frame ─────────────────────────────────────────────────────── */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden; /* clips the ghost numeral only */
}

.ghost {
  position: absolute;
  right: -2vw;
  top: -6vw;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: min(46vw, 560px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-ghost);
  font-feature-settings: "tnum";
  pointer-events: none;
  user-select: none;
}

.header, .main, .footer { position: relative; }

/* ── Header ─────────────────────────────────────────────────────────── */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 22.4%;
}
.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--gold-light);
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Main ───────────────────────────────────────────────────────────── */

.main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px var(--gutter) 64px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.headline {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: pretty;
  color: var(--text);
}

.rule {
  width: 56px;
  height: 2px;
  background: var(--gold);
}

.pitch {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  text-wrap: pretty;
}

/* ── Sign-up form ───────────────────────────────────────────────────── */

.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  transition: opacity 150ms ease;
}
.signup.is-leaving { opacity: 0; }

.signup__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signup__input {
  flex: 1 1 220px;
  min-width: 0;
  height: var(--control-h);
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}
.signup__input::placeholder { color: var(--faint); }
.signup__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(182, 130, 53, 0.35);
}

.signup__button {
  height: var(--control-h);
  padding: 0 22px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.signup__button:hover { background: rgba(182, 130, 53, 0.14); }
.signup__button:active { background: rgba(182, 130, 53, 0.26); }
.signup__button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.signup__button:disabled {
  opacity: 0.45;
  cursor: default;
}
.signup__button:disabled:hover { background: transparent; }

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

.signup__error {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--error);
}

.signup__helper {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}

[hidden] { display: none !important; }

/* ── Success state ──────────────────────────────────────────────────── */

.sent {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
  padding: 18px 20px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  animation: sent-in 150ms ease;
}
@keyframes sent-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sent { animation: none; }
  .signup { transition: none; }
}

.sent__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--gold-light);
}
.sent__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Mascot ─────────────────────────────────────────────────────────── */

.mascot {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.mascot img {
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--gold-rule);
  font-size: 13px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer__bsky {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
