/* ==========================================================================
   Loudoun One Volleyball Experience — base stylesheet
   Brand tokens are the single source of truth; new modules reuse them.
   ========================================================================== */

:root {
  --navy:        #1e2a54;
  --navy-deep:   #141d3c;
  --navy-soft:   #2a3a6e;
  --ball-red:    #c8283c;
  --accent:      #f03c11;
  --accent-dark: #d43109;
  --white:       #ffffff;
  --muted:       rgba(255, 255, 255, 0.72);
  --line:        rgba(255, 255, 255, 0.18);

  --font: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Arial, sans-serif;

  --space:   1rem;
  --radius:  8px;
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.55;
  color: var(--white);
  background-color: var(--navy);
}

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

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

/* --------------------------------------------------------------------------
   Coming soon page
   -------------------------------------------------------------------------- */

.holding {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem) var(--space);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--navy-soft) 0%, transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.holding__inner {
  width: 100%;
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.6rem);
}

.holding__logo {
  width: clamp(150px, 44vw, 240px);
}

.holding__rule {
  width: 64px;
  height: 4px;
  border: 0;
  margin: 0;
  border-radius: 2px;
  background: var(--accent);
}

.holding__heading {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.holding__blurb {
  margin: 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.125rem);
}

.holding__footer {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--accent);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.button:hover,
.button:focus { background: var(--accent-dark); }

.button:active { transform: translateY(1px); }

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

.signup {
  width: 100%;
  max-width: 26rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.signup__label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.signup__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.signup__input::placeholder { color: rgba(255, 255, 255, 0.45); }

.signup__input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.13);
}

.signup__button { flex: 0 0 auto; }

/* Honeypot: off-screen rather than display:none, so bots that skip hidden
   fields still fill it. Never remove aria-hidden/tabindex on the input. */
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.message {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  text-align: left;
}

.message--success {
  color: #eaffef;
  background: rgba(38, 160, 88, 0.22);
  border: 1px solid rgba(90, 220, 140, 0.45);
}

.message--error {
  color: #ffecef;
  background: rgba(200, 40, 60, 0.24);
  border: 1px solid rgba(240, 110, 130, 0.5);
}

/* Short, wide viewports (laptops, landscape) — compress so the signup form and
   footer stay above the fold. Narrow portrait phones are left alone: scrolling
   is expected there and shrinking the logo would only hurt. */
@media (min-width: 700px) and (max-height: 950px) {
  .holding { padding-block: clamp(0.75rem, 2vh, 1.5rem); }
  .holding__inner { gap: clamp(0.6rem, 1.6vh, 1.1rem); }
  .holding__logo { width: clamp(120px, 23vh, 180px); }
  .holding__heading { font-size: clamp(1.25rem, 2.6vh, 1.6rem); }
  .holding__blurb { font-size: 0.9375rem; }
  .button { padding: 0.7rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
