/* Intergalactic Space Slugs from Space.
   Palette is the game's own "Atomic pulp" set from Docs/Design/ArtBible.md:
   cream enamel, signal red, polished chrome, teal glass. Hostile red
   (#E03A2F) is deliberately absent: in game it means enemies and harm, and
   it should not be spent on decoration. The world accents (violet, magenta,
   acid green) belong to the worlds, so they stay out too. */

:root {
  --ink: #0b0f16;          /* deep space ground */
  --cream: #efe3c8;        /* cream enamel, the body colour */
  --cream-dim: #c3b9a4;
  --red: #b5212e;          /* signal red enamel */
  --red-bright: #d4323f;
  --chrome: #e4e7ea;       /* polished chrome */
  --teal: #2ba6a0;         /* teal glass */
  --rule: #26303f;
  --display: "Alfa Slab One", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

img { display: block; height: auto; max-width: 100%; }

a { color: var(--teal); }
a:hover, a:focus-visible { color: var(--chrome); }

/* The key art carries the title and the tagline, so it is shown whole rather
   than cropped to a box. object-fit: cover would cut the lettering at some
   viewport widths and there is no safe area to crop into. */
.hero { border-bottom: 1px solid var(--rule); }
.hero img { width: 100%; }

.sr { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute;
  white-space: nowrap; width: 1px; }

footer { border-top: 1px solid var(--rule); color: var(--cream-dim); font-size: 0.9rem;
  margin: 4rem auto 0; max-width: 1060px; padding: 2rem 1.5rem 3rem; }
footer p { margin: 0 0 0.5rem; }
.fine { font-size: 0.8rem; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---- page ---- */
main { margin: 0 auto; max-width: 820px; padding: 3rem 1.5rem 0; text-align: center; }

.teaser { margin: 0 auto; max-width: 660px; }
.teaser .lead {
  color: var(--cream);
  display: block;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  letter-spacing: 0.005em;
  line-height: 1.2;
  /* A thin dark edge so the slab face keeps its weight against the ink. */
  text-shadow: 0 2px 0 rgb(0 0 0 / 45%);
}
.teaser .follow {
  color: var(--teal);
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  margin-top: 1.1rem;
  text-transform: uppercase;
}

/* ---- signup ---- */
.signup { border: 1px solid var(--rule); border-radius: 6px; margin-top: 3rem;
  padding: 2.25rem 1.5rem; }
.signup h2 { color: var(--chrome); font-family: var(--display); font-size: 1.35rem;
  font-weight: 400; letter-spacing: 0.02em; margin: 0 0 0.5rem; text-transform: uppercase; }
.signup > p { color: var(--cream-dim); margin: 0 auto 1.4rem; max-width: 42ch; }
#signup-form { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
#signup-form input[type=email] { background: #080b11; border: 1px solid var(--rule);
  border-radius: 3px; color: var(--cream); font-family: var(--sans); font-size: 1rem;
  min-width: 250px; padding: 0.75rem 0.95rem; }
#signup-form input[type=email]:focus-visible { border-color: var(--teal); outline: 1px solid var(--teal); outline-offset: 2px; }
#signup-form button { background: var(--red); border: 1px solid var(--red); border-radius: 3px;
  color: var(--cream); cursor: pointer; font-family: var(--sans); font-size: 1rem;
  font-weight: 500; padding: 0.75rem 1.3rem; }
#signup-form button:hover:not(:disabled), #signup-form button:focus-visible { background: var(--red-bright); border-color: var(--red-bright); }
#signup-form button:disabled { cursor: progress; opacity: 0.6; }
.hp { left: -9999px; position: absolute; }
.status { border-radius: 3px; display: inline-block; margin: 1.1rem auto 0;
  max-width: 100%; padding: 0.55rem 0.95rem; }
.status.good { background: rgb(43 166 160 / 12%); border: 1px solid var(--teal); color: #9fded9; }
.status.bad { background: rgb(181 33 46 / 14%); border: 1px solid var(--red); color: #e8a9ae; }

/* ---- social ---- */
.social { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  margin-top: 2.75rem; }
.social a {
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--cream-dim);
  display: flex;
  height: 44px;              /* a real touch target, not a 22px glyph */
  justify-content: center;
  transition: color .12s ease, border-color .12s ease, background-color .12s ease;
  width: 44px;
}
.social a:hover, .social a:focus-visible {
  background: rgb(43 166 160 / 10%);
  border-color: var(--teal);
  color: var(--teal);
}
@media (prefers-reduced-motion: reduce) { .social a { transition: none; } }

footer { text-align: center; }
