/* FoodTruckFound — design tokens & shared styles
   Palette: road-sign marigold, asphalt ink, lane-line white, live green */
:root {
  /* FoodTruckFound brand — charcoal, live-green, pin-red (see the logo).
     Every pair below is WCAG AA verified against its intended surface. */
  --lime: #8CC63F;          /* brand green — 8.9:1 on --bg */
  --lime-bright: #A2DC52;   /* hover */
  --lime-ink: #557F1F;      /* green text on a white surface — 4.7:1 */
  --red: #E4322B;           /* the live pin — graphics only */
  --red-ink: #FF7A6E;       /* red text on dark — 7.2:1 */
  --bg: #12151A;            /* page */
  --surface: #1B2027;       /* cards */
  --surface-2: #232A32;     /* raised */
  --ink: #F2F5F1;           /* body text on dark */
  --ink-dim: #A7B0A8;       /* secondary text — 8.2:1 on --bg */
  --hairline: #2C343D;
  --paper: #F2F5F1;         /* light panels still used in a few places */
  --asphalt: #12151A;       /* legacy names kept so old rules still resolve */
  --asphalt-soft: #232A32;
  --marigold: #8CC63F;
  --marigold-deep: #6FA22C;
  --muted: #A7B0A8;
  --live: #8CC63F;
  --live-tint: rgba(140, 198, 63, 0.16);
  --live-ink: #8CC63F;
  --lane: #F2F5F1;
  --radius: 10px;
  --font-display: "Bricolage Grotesque", "Archivo", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }

a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Signature: the painted lane line */
.lane-divider {
  border: 0;
  height: 4px;
  background-image: linear-gradient(90deg, var(--lime) 0 40px, transparent 40px 64px);
  background-size: 64px 4px;
  background-repeat: repeat-x;
  margin: 0;
}
.lane-divider.on-dark {
  background-image: linear-gradient(90deg, var(--marigold) 0 40px, transparent 40px 64px);
}
@media (prefers-reduced-motion: no-preference) {
  .lane-divider.moving { animation: lane-move 1.6s linear infinite; }
  @keyframes lane-move { to { background-position-x: 64px; } }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--marigold-deep); outline-offset: 2px; }
.btn-primary { background: var(--lime); color: #10140F; }
.btn-primary:hover { background: var(--lime-bright); }
.btn-ghost { background: var(--bg); color: #FFFFFF; border-color: #FFFFFF; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-dark { background: var(--bg); color: #FFFFFF; border-color: #FFFFFF; }
.btn-dark:hover { background: var(--surface-2); }

/* Status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.pill-live { background: var(--live-tint); color: var(--live-ink); }
.pill-live::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
}
@media (prefers-reduced-motion: no-preference) {
  .pill-live::before { animation: pulse 1.8s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.4; } }
}
.pill-off { background: var(--surface-2); color: var(--ink-dim); }
/* A sales-demo truck. Deliberately the loudest pill on the card: nobody
   should be able to mistake it for a truck that is really cooking. */
.pill-demo {
  background: rgba(228, 50, 43, 0.14);
  color: var(--red-ink, #FF7A6E);
  border: 1px solid var(--red-ink, #FF7A6E);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 6px;
}
