/* ==========================================================================
   2027 CVMA Nationals
   Design tokens + a minimal hand-rolled layout layer.

   Bootstrap was removed — this site only ever used a dozen of its grid/
   spacing/form classes, so those are reimplemented below (see "Layout
   layer"). Everything visual — color, type, the hero — lives here.
   ========================================================================== */

:root {
  /* Color: CVMA red / black / gold. Warm charcoal ground rather than pure
     black; brass as the structural gold; a single muted valor-red for CTAs.
     (The Kansas City Chiefs' white/red/gold overlaps this cleanly.) */
  --bg: #14171a;
  --bg-panel: #1b1f23;
  --rule: #2f353b;
  --paper: #ece7dc;
  --paper-dim: #b9b3a4;
  --steel: #64727d;
  --brass: #a9834b;
  --crimson: #7a2028;
  --crimson-bright: #9c2b35;

  /* Type: Staatliches for display — a poster/stencil face in the spirit of
     vintage motorcycle-rally handbills — Source Sans for body copy, JetBrains
     Mono for stamped, dog-tag-style labels (eyebrows, dates, form hints). */
  --font-display: "Staatliches", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --container-max: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: var(--brass);
}

a:hover {
  color: var(--paper);
}

/* ==========================================================================
   Layout layer — replaces the Bootstrap classes this site actually used
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  /* Fluid gutters: tight on phones, generous framing on large screens */
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

/* Spacing utilities (Bootstrap scale: 1=.25rem … 5=3rem) */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }

/* Flex utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }

@media (min-width: 576px) {
  .flex-sm-row { flex-direction: row; }
}

/* Form primitives */
.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.form-control {
  display: block;
  width: 100%;
  font-size: 1rem;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
}

/* ==========================================================================
   Type
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.display-headline {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  color: var(--paper);
  font-size: clamp(2.75rem, 9vw, 7.5rem);
  text-wrap: balance;
  overflow-wrap: break-word;
  margin: 0;
}

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

.lede {
  color: var(--paper-dim);
  font-size: 1.1rem;
  max-width: 42rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: 6rem 8rem;
}

.hero-topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero layout: single column on small screens, two columns (copy | signup)
   once there's room for both. Grid gap scales with the viewport. */
.hero-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
  }
}

.hero-signup {
  width: 100%;
  max-width: 32rem;
}

/* Signature element: a dashed "road line" that draws itself once on load,
   evoking the open road / an odometer trip line. Respects reduced motion. */
.road-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6.5rem;
  z-index: 1;
  width: 100%;
  height: 60px;
  pointer-events: none;
}

.road-line path {
  fill: none;
  stroke: var(--rule);
  stroke-width: 2;
  stroke-dasharray: 14 14;
}

.road-line path.drawn {
  stroke: var(--crimson-bright);
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-road 2.8s ease-out 0.4s forwards;
}

@keyframes draw-road {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .road-line path.drawn {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Kansas City skyline silhouette, low contrast, anchors the hero to place */
.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: auto;
  color: var(--bg-panel);
}

/* ==========================================================================
   Signup
   ========================================================================== */

.signup-panel {
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 2rem;
}

.form-control.cvma-input {
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--paper);
  font-family: var(--font-body);
  padding: 0.75rem 1rem;
}

.form-control.cvma-input:focus {
  background: var(--bg);
  color: var(--paper);
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169, 131, 75, 0.25);
  outline: none;
}

.form-control.cvma-input::placeholder {
  color: var(--steel);
}

.btn-crimson {
  background: var(--crimson);
  border: 1px solid var(--crimson);
  color: var(--paper);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
}

.btn-crimson:hover,
.btn-crimson:focus {
  background: var(--crimson-bright);
  border-color: var(--crimson-bright);
  color: var(--paper);
}

/* Visible keyboard focus everywhere, not just the form */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
}

.form-success,
.form-error {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: none;
}

.form-success {
  color: #7ea877;
}

.form-error {
  color: var(--crimson-bright);
}

/* Honeypot field — hidden from sighted users and screen readers, present in
   the DOM/tab order trap for basic bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem;
}

.site-footer,
.site-footer a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
}

.site-footer a:hover {
  color: var(--brass);
}

@media (max-width: 576px) {
  .hero {
    padding-block: 4rem 6rem;
  }
  .signup-panel {
    padding: 1.5rem;
  }
}
