/* Shadow Companion — shared public site header.
   Used by the blog (/blog) and the landing page (/). Markup comes from
   lib/site-header.mjs; keep both pages loading this one file so the header
   stays identical everywhere. Self-contained: it carries its own tokens and
   type so it renders the same on top of any page stylesheet. */
:root {
  --b-gold: #c9a227;
  --b-gold-hi: #f0dd9a;
  --b-ivory: #f3efe4;
  --b-ivory-dim: rgba(243, 239, 228, 0.78);
  --b-line: rgba(201, 162, 39, 0.22);
  --b-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --b-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.b-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* Navigation */
.b-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(4, 6, 15, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--b-line);
  padding-top: env(safe-area-inset-top);
  color: var(--b-ivory);
  font-family: var(--b-sans);
  font-size: 17px;
  line-height: 1.7;
}
.b-nav, .b-nav *, .b-nav *::before, .b-nav *::after { box-sizing: border-box; }
.b-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.b-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--b-ivory); }
.b-brand:hover { color: var(--b-ivory); }
/* The installed Android launcher icon, shown square at its native proportions. */
.b-brand-icon { flex: 0 0 auto; display: block; width: 44px; height: 44px; max-width: none; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; }
.b-brand span { font-family: var(--b-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.b-nav-links { display: flex; align-items: center; gap: 18px; font-size: 0.92rem; }
.b-nav-links a:not(.b-btn) { color: var(--b-ivory-dim); text-decoration: none; }
.b-nav-links a:not(.b-btn):hover { color: var(--b-gold-hi); }
.b-nav :focus-visible { outline: 2px solid var(--b-gold-hi); outline-offset: 3px; border-radius: 6px; }

/* Buttons (shared with the blog's in-article calls to action) */
.b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--b-gold-hi), var(--b-gold) 55%, #a7841c);
  color: #120d02; font-family: var(--b-sans); font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.b-btn:hover { color: #120d02; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(201, 162, 39, 0.32); }
.b-btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.86rem; }

/* Responsive: Quizzes drops first, then Articles, then the wordmark. */
@media (max-width: 560px) { .b-hide-sm { display: none; } .b-brand span { font-size: 1.12rem; } .b-nav-links { gap: 12px; } .b-nav-links .b-btn-sm { padding: 0 13px; } }
@media (max-width: 440px) { .b-nav-links a:not(.b-btn) { display: none; } }
@media (max-width: 330px) { .b-brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { .b-btn { transition: none; } }
