:root {
  --color-bg: #0a0a0a;
  --color-bg-elevated: #12160f;
  --color-dark-green: #012b10;
  --color-lime: #c9f001;
  --color-white: #ffffff;
  --color-white-muted: rgba(255, 255, 255, 0.7);
  --color-white-faint: rgba(255, 255, 255, 0.45);

  --font-display: "Anton", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap-max: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Subtle film-grain texture over the whole page, echoing the brand's gritty photography */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  padding: 28px 0 0;
}

.header-logo {
  height: 20px;
  width: auto;
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 64px 0 56px;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.75) 60%, var(--color-bg) 100%),
    url("images/Running.jpg") center 30% / cover no-repeat,
    var(--color-bg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  animation: rise 0.7s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner {
    animation: none;
  }
}

.eyebrow {
  color: var(--color-lime);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.5rem, 14vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
}

.headline .accent {
  color: var(--color-lime);
}

.subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-white-muted);
  max-width: 46ch;
  margin: 0 0 24px;
}

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

.signup {
  max-width: 480px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-form[hidden] {
  display: none;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 10, 10, 0.72);
  color: var(--color-white);
  font-family: var(--font-body);
  /* 16px min prevents iOS Safari zooming on focus. */
  font-size: 16px;
}

.signup-input::placeholder {
  color: var(--color-white-faint);
}

.signup-input:focus {
  outline: none;
  border-color: var(--color-lime);
  box-shadow: 0 0 0 3px rgba(201, 240, 1, 0.22);
}

.signup-button {
  width: 100%;
  padding: 16px 18px;
  border-radius: 8px;
  border: none;
  background: var(--color-lime);
  color: var(--color-dark-green);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.signup-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 240, 1, 0.28);
}

.signup-button:active {
  transform: translateY(0);
}

.signup-button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

@media (min-width: 560px) {
  .field-row {
    flex-direction: row;
  }
  .field-row .signup-input {
    flex: 1;
  }
}

.signup-status {
  margin: 12px 2px 0;
  font-size: 14px;
  min-height: 1.2em;
  color: var(--color-white-muted);
}

.signup-status.is-success {
  color: var(--color-lime);
  font-weight: 700;
  font-size: 16px;
}

.signup-status.is-error {
  color: #ff6b6b;
}

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

.site-footer {
  position: relative;
  z-index: 2;
  padding: 32px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--color-white-faint);
}
