/* ===========================================================================
   The Bi-Weekly Chronicles — shared site chrome.
   Single source of truth for the palette; served at /public/site.css and
   linked by public_feed.html, about.html and shows.html.

   Palette is derived from the show logo: #146bc8 news blue and #e24732
   vermilion are the two largest color regions in the mark itself. Structure
   (rules, panels) stays neutral grey — color carries meaning only.
   Every pairing is verified AA. Type follows the feed page's existing
   convention: Georgia for headlines, system sans for body. No webfonts.
   =========================================================================== */

:root {
  --bg: #0f0f0f;
  --panel: #181818;
  --panel-hi: #1e1e1e;
  --ink: #f6f1e4;
  --ink-dim: #d8d3c6;
  --rule: #2a2a2a;
  --rule-hi: #3a3a3a;

  /* Two blues, split by job. #1d8ef0 is what the OBS overlays already use and
     it reads beautifully as text (5.64:1) — but white label text on it is only
     3.40:1, so it can't carry a filled button. The logo's own #146bc8 is
     darker and takes white text at 5.29:1, so it owns the fills. */
  --accent: #1d8ef0;          /* blue as TEXT: links, scores, active states */
  --accent-hi: #4eaaff;       /* text hover */
  --accent-solid: #146bc8;    /* blue as FILL: buttons, active chips */
  --accent-solid-hi: #0f57a3; /* filled hover DARKENS — lightening drops
                                 white label text below 4.5:1 */
  --accent-ink: #ffffff;      /* text on a filled accent */

  --live: #e24732;            /* logo red as FILL: live badges, alerts */
  --live-text: #ef6a55;       /* red as TEXT — #e24732 is 4.38:1 on --panel */
  --live-hi: #ff8a78;         /* red text hover */

  --muted: #8a8a8a;
  --muted-2: #5f5f5f;
  --chip-bg: #1e1e1e;
  --chip-bg-hi: #2a2a2a;
  --chip-on: var(--accent-solid);
  --chip-on-ink: var(--accent-ink);

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Text pages read as a single newspaper column; 1080px left too much dead
     space to the right of a 62ch measure. */
  --site-wrap: 880px;
}

/* --- site nav ------------------------------------------------------------ */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem clamp(0.9rem, 3vw, 1.5rem);
  background: rgba(15, 15, 15, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--bg), 0 3px 0 var(--rule); /* newspaper double rule */
}

.site-nav-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-nav-brand img {
  height: 30px; width: auto; display: block;
}

.site-nav-links {
  display: flex; align-items: center; gap: clamp(0.7rem, 2.4vw, 1.6rem);
}
.site-nav-links a {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease;
}
.site-nav-links a:hover { color: var(--ink-dim); }
.site-nav-links a.on { color: var(--ink); border-bottom-color: var(--accent); }

.site-nav-links a.live-link {
  color: var(--live-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.site-nav-links a.live-link:hover { color: var(--live-hi); }
.site-nav-links a.live-link::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--live); flex: 0 0 auto;
  animation: bwc-pulse 2s ease-in-out infinite;
}
@keyframes bwc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (max-width: 560px) {
  .site-nav { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .site-nav-brand img { height: 26px; }
  .site-nav-links { gap: 0.9rem; }
  .site-nav-links a { font-size: 0.66rem; letter-spacing: 0.1em; }
}

/* --- shared page shell (about / shows) ----------------------------------- */

.page {
  max-width: var(--site-wrap);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.75rem) clamp(1rem, 4vw, 2rem) 3rem;
}

.page-kicker {
  font-size: 0.65rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.6rem;
}

.page-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.9rem, 5.5vw, 3.1rem); line-height: 1.08;
  letter-spacing: -0.015em; margin: 0;
}

.page-rule {
  width: 120px; height: 0; margin: 1.4rem 0 1.5rem;
  border: 0; border-top: 3px solid var(--accent-solid); position: relative;
}
.page-rule::after {
  content: ""; position: absolute; left: 0; top: 5px; width: 100%;
  border-top: 1px solid var(--live); opacity: 0.85;
}

.page-lede {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--ink-dim); max-width: 60ch; margin: 0;
}

.section { margin-top: clamp(2.5rem, 7vw, 4rem); }
.section-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.15;
  margin: 0 0 1.5rem;
}

.prose p { color: var(--ink-dim); max-width: 62ch; margin: 0 0 1.05rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }

/* --- cards --------------------------------------------------------------- */

.cards {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.card:hover {
  border-color: var(--rule-hi); background: var(--panel-hi);
  transform: translateY(-2px);
}

.card-media {
  display: grid; place-items: center;
  height: 150px; margin-bottom: 1.1rem; padding: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.card-media img, .card-media video {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
}
/* An author-level `display: block` beats the UA stylesheet's rule for the
   hidden attribute, so hidden fallbacks would render on top of the content. */
[hidden] { display: none !important; }

.card-meta {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.45rem;
}
.card-title {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.3rem; line-height: 1.2; margin: 0 0 0.7rem;
}
.card-body { color: var(--ink-dim); margin: 0 0 1.2rem; font-size: 0.95rem; }

.link-row {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  list-style: none; margin: auto 0 0; padding: 0;
}
.link-row a {
  display: inline-block; text-decoration: none;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--rule-hi); border-radius: 4px;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}
.link-row a:hover {
  color: var(--accent-ink); background: var(--accent-solid);
  border-color: var(--accent-solid);
}

/* --- founder ------------------------------------------------------------- */

.founder {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: start;
}
.portrait { margin: 0; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5;
  background: var(--panel); border: 1px solid var(--rule-hi);
  border-radius: 8px; overflow: hidden;
  display: grid; place-items: center;
}
.portrait-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: contrast(1.04);
}
.portrait-tk {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); text-align: center; line-height: 2;
}
.portrait figcaption {
  margin-top: 0.65rem; font-size: 0.65rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.founder-name {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.1; margin: 0;
}
.founder-role {
  margin: 0.3rem 0 1.4rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
/* Drop cap on the opening bio paragraph only — anchored to .founder-role so
   it cannot latch onto the role line above it. */
.founder-role + p::first-letter {
  float: left; font-family: var(--serif); font-weight: 800;
  font-size: 3.2em; line-height: 0.82; padding: 6px 10px 0 0;
  color: var(--accent);
}

@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
}

/* --- contact + follow ---------------------------------------------------- */

.contact-list { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.contact-list li {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.4rem 1.5rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
.contact-list li:first-child { border-top: 1px solid var(--rule); }
.contact-label {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.contact-list a {
  font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule-hi);
}
.contact-list a:hover { color: var(--accent-hi); border-bottom-color: var(--accent); }

@media (max-width: 520px) {
  .contact-list li { flex-direction: column; align-items: flex-start; }
}

/* --- site footer (shared by about/shows; the feed page keeps its own) ----- */

.site-footer {
  border-top: 3px solid var(--accent-solid);
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  background: #0b0b0b;
}
.site-footer-inner { max-width: var(--site-wrap); margin: 0 auto; }
.site-footer-brand {
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 0.7rem;
}
.site-footer-note {
  color: var(--muted); font-size: 0.85rem; max-width: 60ch; margin: 0 0 1rem;
}
.site-footer-legal {
  font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); margin: 0;
}
.site-footer-legal a { color: var(--ink-dim); text-decoration: none; }
.site-footer-legal a:hover { color: var(--accent-hi); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
