/* Chompion League landing page. Colours from chompion-app/src/constants/theme.ts:
   BrandRed #E63946 for fills only, BrandRedSurface #C8303C for anything with text
   (5.32:1 with white), warm band #FBF6F5, ink #141413, muted #60646C. Archivo is
   served from this site (no font service, so nothing third-party loads). */
@font-face { font-family: Archivo; src: url(/fonts/Archivo_400Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/Archivo_800ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #fbf6f5; --card: #ffffff; --line: #f0e3e1; --ink: #141413; --muted: #60646c;
  --field: #f4f4f5; --red: #c8303c; --red-hover: #ad2833; --ok: #2e7d4f; --err: #c8303c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141413; --card: #1f1f21; --line: #2e3135; --ink: #f0f0f3; --muted: #b0b4ba;
          --field: #2a2a2d; --ok: #7fd4a0; --err: #ff8a80; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 24px 16px; background: var(--bg); color: var(--ink);
  font: 16px/1.5 Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.card {
  width: 100%; max-width: 600px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 40px 32px 32px; text-align: center;
}
.wordmark {
  margin: 0; font-weight: 800; font-size: clamp(32px, 9vw, 48px); line-height: 1.25; letter-spacing: -0.02em;
}
/* Same proportions as the admin's wordmark: the mouth is 1.25x the text, centred on it. */
.wordmark img { display: inline-block; height: 1.25em; width: auto; margin-right: 0.04em; vertical-align: middle; position: relative; top: -0.06em; }
.soon {
  margin: 14px 0 32px; font-weight: 800; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}
@media (prefers-color-scheme: dark) { .soon { color: #ff6b75; } }

.signup { text-align: left; }
.signup > label { display: block; font-weight: 800; font-size: 17px; margin-bottom: 10px; text-align: center; }
.row { display: flex; gap: 8px; }
input[type="email"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; font: inherit; color: var(--ink);
  background: var(--field); border: 2px solid transparent; border-radius: 10px;
}
input[type="email"]::placeholder { color: var(--muted); }
input[type="email"]:focus { outline: none; border-color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--err); }
button {
  height: 48px; padding: 0 22px; font: inherit; font-weight: 800; color: #fff; background: var(--red);
  border: 0; border-radius: 10px; cursor: pointer;
}
button:hover { background: var(--red-hover); }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button[disabled] { opacity: 0.6; cursor: default; }
.status { min-height: 24px; margin: 10px 0 0; text-align: center; font-weight: 800; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.note { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.foot { font-size: 13px; color: var(--muted); }
.note a { color: inherit; }
.unsub { margin: 8px 0 0; text-align: center; }
/* The privacy notice: plain reading text, left-aligned under the centred wordmark. */
.notice { text-align: left; }
.notice .wordmark, .notice .soon { text-align: center; }
.notice h2 { margin: 22px 0 4px; font-size: 16px; font-weight: 800; }
.notice p { margin: 0 0 8px; }
.foot a, .card a { color: inherit; }

@media (max-width: 420px) {
  .card { padding: 32px 20px 24px; }
  .row { flex-direction: column; }
  input[type="email"] { flex: none; width: 100%; }
  button { width: 100%; }
}
