/* Grey Hen Athletics: coming-soon site
   Tokens come from the Grey Hen design system (dark theme). */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("fonts/barlow-condensed-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/bebas-neue-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-600-normal.woff2") format("woff2"); }

:root {
  --ground: #0B0F14;
  --surface: #141B24;
  --surface-raised: #1D2733;
  --line: #2A3644;
  --line-strong: #3A4959;
  --field-edge: #5B6A7C; /* 3:1 against the card, for input outlines */
  --ink: #E6EDF5;
  --ink-muted: #8FA0B4;
  --ink-subtle: #7B8CA1;
  --slate: #4A5568;
  --blue: #0088CC;
  --orange: #FF6B00;
  --blue-text: #3FAEE8;
  --orange-text: #FF9040;
  --on-orange: #0B0F14;
  --blue-wash: rgba(0, 136, 204, 0.15);
  --blue-edge: rgba(0, 136, 204, 0.65);
  --bad: #EE6166;
  --focus: #3FAEE8;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --font-kicker: "Bebas Neue", "Barlow Condensed", sans-serif;

  --radius-md: 11px;
  --radius-lg: 13px;
  --radius-full: 999px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px;
  padding: 10px 14px; border-radius: var(--radius-md);
  background: var(--surface-raised); color: var(--ink); text-decoration: none; font-weight: 600;
  z-index: 10;
}
.skip:focus { top: 16px; }

.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;
}

/* ---------- Page frame ---------- */

.page {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo { display: block; width: 216px; height: auto; margin: 0 auto 44px; }
.logo-link { display: inline-block; border-radius: var(--radius-lg); }

.kicker {
  margin: 0 0 18px;
  font-family: var(--font-kicker);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.3em;
  padding-left: 0.3em; /* balance the trailing tracking so it centers */
  color: var(--orange-text);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(60px, 11vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.headline .lead { display: block; color: var(--orange); }

.lede {
  margin: 28px auto 0;
  max-width: 31em;
  font-size: 19px;
  color: var(--ink-muted);
  text-wrap: balance;
}

/* Launch status: edit the date in index.html */
.launch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 0;
  padding: 8px 16px 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.launch strong { font-weight: 600; color: var(--ink); }
.launch .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }

/* ---------- Signup card ---------- */

.signup {
  width: 100%;
  max-width: 540px;
  margin: 48px auto 0;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}

.signup h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
}
.signup .sub { margin: 10px 0 24px; font-size: 17px; color: var(--ink-muted); }

.label,
.choices legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.label .opt, .choices legend .opt { letter-spacing: 0.1em; text-transform: none; font-weight: 500; }

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--field-edge);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.3;
}
.input::placeholder { color: var(--ink-subtle); opacity: 1; }
.input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--blue-edge); }
.input:user-invalid { border-color: var(--bad); }

.choices { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--ground);
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}
.choice:hover span { border-color: var(--field-edge); }
.choice input:checked + span { background: var(--blue-wash); border-color: var(--blue-edge); color: var(--ink); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.16s;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn-fire { background: var(--orange); color: var(--on-orange); }
.btn-fire:hover { color: var(--on-orange); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-raised); border-color: var(--line-strong); color: var(--ink); filter: none; }
.signup .btn { width: 100%; margin-top: 26px; }

.fine { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-subtle); }

/* ---------- Message pages (thanks, 404) ---------- */

.message { margin: auto 0; max-width: 34em; }
.message .headline { font-size: clamp(56px, 10vw, 96px); }
.message .btn { margin-top: 36px; }

/* ---------- Speed lines (decor, from the logo's tapered rules) ---------- */

.speed {
  position: absolute;
  right: 0;
  top: 372px;
  width: 300px;
  height: auto;
  pointer-events: none;
}

/* ---------- Footer ---------- */

.foot {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-subtle);
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.foot p { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 1080px) {
  .speed { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .page { padding: 40px 16px 48px; }
  .logo { width: 168px; margin-bottom: 32px; }
  .kicker { font-size: 17px; letter-spacing: 0.24em; padding-left: 0.24em; }
  .lede { font-size: 17px; margin-top: 22px; }
  .launch { margin-top: 26px; font-size: 11px; letter-spacing: 0.12em; }
  .signup { margin-top: 36px; padding: 24px 20px; }
  .signup h2 { font-size: 34px; }
  .foot { padding: 20px 16px; }
  .foot-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
