/* ==========================================================================
   Buzz Mack Media — shared stylesheet
   Used by index.html and games.html
   ========================================================================== */

:root {
  /* Color tokens — red / black / gray only, values chosen and checked for WCAG 2.1 AA contrast */
  --ink: #0b0b0c;          /* page background, near-black */
  --panel: #161618;        /* raised panel / footer background */
  --line: #2a2a2e;         /* hairline borders */
  --text: #ededee;         /* primary text on dark (contrast ~18:1) */
  --text-muted: #9a9aa0;   /* secondary text on dark (contrast ~5.6:1) */
  --red: #c41e3a;          /* signal red — large text / UI only (contrast ~3.4:1 on --ink) */
  --red-hover: #a91830;    /* pressed/hover state, stays within same hue */
  --on-red: #f5f5f5;       /* text on red button (contrast ~5.8:1) */
  --focus: #ff5a72;        /* focus ring, high-contrast red-pink for visibility on black */

  --font-display: 'Montserrat', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;
  --font-mono: 'Montserrat', 'Arial Narrow', sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

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

a { color: inherit; }
/* ---------- © 2026 Buzz Mack Media / Matthew D. McLemore ---------- */

/* ---------- Accessibility utilities ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--red);
  color: var(--on-red);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout shell ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Header / nav ---------- */
header.site-header {
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.wordmark span { color: var(--red); }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.50rem;
}
nav.primary-nav a.nav-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
nav.primary-nav a.nav-link:hover {
  color: var(--text);
  border-bottom-color: var(--text-muted);
}
nav.primary-nav a.nav-link[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: var(--on-red);
}
.btn-primary:hover { background: var(--red-hover); }

.btn-nav {
  background: var(--red);
  color: var(--on-red);
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}
.btn-nav:hover { background: var(--red-hover); }

.link-ghost {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.98rem;
}
.link-ghost:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 73px); /* fill remaining viewport below header on desktop */
  padding-block: 2.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .rec-dot { animation: none; }
}

h1.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  max-width: 15ch;
}
h1.headline em {
  font-style: normal;
  color: var(--red);
}

.subhead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.cta-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 1.25rem;
}

/* ---------- Signature visual: broadcast reticle ---------- */
.signature {
  display: none;
}
.reticle {
  width: 100%;
  height: auto;
}
.reticle .sweep {
  transform-origin: 200px 200px;
  animation: sweep 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .reticle .sweep { animation: none; }
}
@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Client strip ---------- */
.clients {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}
.clients-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.75rem;
}
.clients-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.5rem;
}
.client-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Page header (non-hero pages, e.g. Games) ---------- */
.page-header {
  padding-block: 3rem 2.5rem;
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { margin-bottom: 1rem; }
h1.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  max-width: 20ch;
}
h1.page-title em {
  font-style: normal;
  color: var(--red);
}
.page-subhead {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0;
}

/* ---------- Games grid ---------- */
.games-section {
  padding-block: 3rem;
}
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.game-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.game-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
h3.game-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}
.game-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  flex: 1;
}
.game-card .btn-primary {
  align-self: flex-start;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding-block: 2rem;
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
footer.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer.site-footer a:hover { color: var(--text); }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .cta-row { gap: 2rem; }
  .footer-row { flex-direction: row; justify-content: space-between; align-items: center; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .signature {
    display: flex;
    justify-content: center;
  }
  .reticle { width: 340px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}
