/* Mission Bike Lights, site v2 skin: shared tokens and page chrome.
   v2 pages are the live pages' own markup, copy and scripts (generated by
   v2/build-v2.py), with these stylesheets loaded after the page's own <style>.
   The interface stays dark, flat and square, with one purple highlight, so the
   only bright colour on a page comes from the LEDs in the photos and video. */

:root {
  --ink: #0f0e0c;
  --ink-2: #191815;
  --ink-3: #24221e;
  --rule: #34312b;
  --text: #f1ece2;
  --text-soft: #cfc8bb;
  --muted: #aaa396;
  /* Highlight: buttons and fills use --signal with white text; purple text on
     the dark background uses the lighter --signal-text for contrast. */
  --signal: #7445f0;
  --signal-hover: #6232e6;
  --signal-ink: #ffffff;
  --signal-text: #a98bff;
  /* LED colours that "Be Seen." and the logo pole cycle through. */
  --led-1: #ff4545;
  --led-2: #ff4fc3;
  --led-3: #a98bff;
  --led-4: #3fd3ff;
  --led-5: #45e07f;
  --ok: #8fd18a;
  --font: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

body.v2 {
  /* The live pages' own variable names, pointed at the v2 palette. */
  --bg-deep: var(--ink);
  --bg-card: var(--ink-2);
  --bg-elevated: var(--ink-3);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --accent-cyan: var(--signal-text);
  --accent-magenta: var(--signal-text);
  --accent-amber: #f0a43a;
  --accent-green: var(--ok);
  --glow-cyan: transparent;
  --glow-magenta: transparent;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
}
.v2 .bg-glow { display: none; }
.v2 :focus-visible { outline: 2px solid var(--signal-text); outline-offset: 3px; }

/* Headings: condensed Archivo, tight */
.v2 h1, .v2 h2, .v2 h3 { font-family: var(--font); font-stretch: 80%; letter-spacing: -0.01em; }
.v2 h1, .v2 h2 { font-weight: 750; line-height: 1; }

/* Nav: solid ink bar with a hairline, no gradient or blur */
.v2 nav {
  background: var(--ink);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--rule);
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.v2 .logo { font-family: var(--font); font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.v2 .logo-icon { background: none; animation: none; box-shadow: none; border-radius: 0; width: 34px; height: 34px; }
.v2 .logo-icon svg { width: 34px; height: 34px; }
.v2 .nav-links a { color: var(--muted); }
.v2 .nav-links a:hover { color: var(--text); }
.v2 .nav-cta, .v2 .cart-btn {
  background: var(--signal); color: var(--signal-ink); border: 0; border-radius: 2px;
  font: 600 0.92rem/1 var(--font); padding: 0.7rem 1.1rem; box-shadow: none;
}
.v2 .nav-cta:hover, .v2 .cart-btn:hover { background: var(--signal-hover); transform: none; box-shadow: none; }
.v2 .hamburger span { border-radius: 0; height: 2px; }

/* Buttons used across pages */
.v2 .btn-primary {
  background: var(--signal); color: var(--signal-ink); border-radius: 2px; box-shadow: none;
  font-family: var(--font); font-weight: 600;
}
.v2 .btn-primary:hover { background: var(--signal-hover); transform: none; box-shadow: none; }
.v2 .btn-secondary { border-radius: 2px; border: 1.5px solid var(--text); font-family: var(--font); }
.v2 .btn-secondary:hover { background: var(--text); color: var(--ink); border-color: var(--text); }

/* Footer */
.v2 footer { border-top: 1px solid var(--rule); }
.v2 .footer-links h4 { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); }
.v2 .footer-links a { color: var(--text); }
.v2 .footer-links a:hover { color: var(--signal-text); }
.v2 .footer-bottom { border-top-color: var(--rule); }

.v2 .led-cycle { animation: led-cycle 20s linear infinite; }
.v2 svg .led-cycle { animation-name: led-cycle-stroke; }
@keyframes led-cycle {
  0%, 100% { color: var(--led-3); }
  20% { color: var(--led-4); }
  40% { color: var(--led-5); }
  60% { color: var(--led-1); }
  80% { color: var(--led-2); }
}
@keyframes led-cycle-stroke {
  0%, 100% { stroke: var(--led-3); }
  20% { stroke: var(--led-4); }
  40% { stroke: var(--led-5); }
  60% { stroke: var(--led-1); }
  80% { stroke: var(--led-2); }
}

@media (prefers-reduced-motion: reduce) {
  .v2 *, .v2 *::before, .v2 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
