/* ─────────────────────────────────────────────────────────
   Struggle for Truth — site-wide chrome
   Imports tokens.css and adds: reset, nav, footer, page-hero,
   strip, prose, list rows, cards, and mid-density helpers.
   ───────────────────────────────────────────────────────── */

@import url("tokens.css");

/* ── Reset / base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ── Layout primitives ───────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container-tight { max-width: 880px; }
.container-medium { max-width: 1040px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section {
  padding-top: 56px;
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}
.section.first { padding-top: 40px; margin-top: 0; border-top: 0; }

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stack-2 > * + * { margin-top: 8px; }
.stack-3 > * + * { margin-top: 12px; }
.stack-4 > * + * { margin-top: 16px; }

/* ── Mono kicker (the brand microdetail) ─────────────────── */
.kicker {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  flex-wrap: nowrap;
}
.kicker > * { white-space: nowrap; }
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-4);
}
.kicker.dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.kicker.dot.live::before { animation: pulse-dot 1.6s ease-in-out infinite; }
.kicker .lead {
  color: var(--ink);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
  max-width: none;
  margin: 0;
}
.kicker .tail { color: var(--ink-4); }

/* ── Wordmark (orange square + lockup) ───────────────────── */
.wm { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; }
.wm .sq { width: 16px; height: 16px; background: var(--accent); border-radius: 3px; flex-shrink: 0; }
.wm .name { display: inline-flex; flex-direction: column; line-height: 1; }
.wm .name strong { font-size: 16px; font-weight: 600; letter-spacing: -.018em; }
.wm .name small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; font-weight: 400; }
.wm.lg .sq { width: 22px; height: 22px; border-radius: 4px; }
.wm.lg .name strong { font-size: 22px; }

/* ── Top bar (nav) ──────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.topbar .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: 999px;
  transition: color var(--t-hover) ease, background var(--t-hover) ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-elev); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, 4px);
}
.nav-links a.hot {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 600;
}
.nav-links a.hot::before {
  content: ""; width: 12px; height: 12px; background: var(--accent); border-radius: 2px;
}
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd > a .caret { font-size: 9px; margin-left: 4px; color: var(--ink-3); transition: transform var(--t-hover) ease; }
.nav-dd:hover > a .caret { transform: rotate(180deg); color: var(--ink); }
.nav-dd .dd-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px);
  display: flex; flex-direction: column; min-width: 160px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 10px 6px 6px; box-shadow: 0 12px 32px rgba(0,0,0,.08);
  opacity: 0; pointer-events: none; transition: opacity var(--t-hover) ease, transform var(--t-hover) ease;
  z-index: 50;
}
.nav-dd:hover .dd-panel, .nav-dd:focus-within .dd-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dd .dd-panel a { padding: 9px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; text-align: left; }
.nav-dd .dd-panel a.active::after { display: none; }

/* ISKCON Files CTA — blinking dot */
.cta-files { display: inline-flex; align-items: center; gap: 9px; }
.cta-files .blink-dot, .m-files-cta .blink-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff3b30; box-shadow: 0 0 0 0 rgba(255,59,48,.6);
  animation: blinkPulse 1.4s ease-in-out infinite;
}
@keyframes blinkPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,59,48,.55); }
  50%     { opacity: .55; box-shadow: 0 0 0 6px rgba(255,59,48,0); }
}
.nav-cta { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-family: var(--sans); font-weight: 500; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: background var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease; text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { color: var(--bg); background: #1d1d1d; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-elev); color: var(--ink); }
.btn-lg { padding: 14px 22px; font-size: 15px; font-weight: 600; }

/* ── Hamburger button ───────────────────────────────────── */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
  transition: border-color var(--t-hover) ease;
}
.nav-burger:hover { border-color: var(--ink-3); }
.nav-burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile nav menu panel ──────────────────────────────── */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.12);
  padding: 4px 16px 20px;
  flex-direction: column;
  z-index: 100;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  display: block;
  padding: 13px 12px;
  font-size: 15px; font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  transition: color var(--t-hover) ease, background var(--t-hover) ease;
}
.nav-mobile-menu a:last-child { border-bottom: 0; }
.nav-mobile-menu a.active { color: var(--ink); }
.nav-mobile-menu a:hover { color: var(--ink); background: var(--bg-elev); }
.nav-mobile-menu .m-files-cta {
  margin-top: 10px;
  border: 1px solid var(--ink) !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  text-align: center;
  font-weight: 600;
  color: var(--ink) !important;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.nav-mobile-menu .m-files-cta:hover { background: var(--ink) !important; color: var(--bg) !important; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  /* Hide wordmark subtitle to save space */
  .wm-sub { display: none; }
}
@media (max-width: 480px) {
  /* Tighten button padding on small phones so logo + CTA + hamburger fit */
  .nav-cta { gap: 6px; }
  .btn.cta-files { padding: 9px 12px; font-size: 13px; }
}

/* ── Announcement strip ─────────────────────────────────── */
.strip {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 36px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.strip .pill {
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
  font-weight: 500;
}
.strip a {
  color: var(--bg);
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 30%, transparent);
  white-space: nowrap;
}
.strip a:hover { border-color: var(--accent); }
@media (max-width: 600px) {
  .strip .container { gap: 8px; font-size: 10.5px; }
  .strip span:nth-child(2) { display: none; }
}

/* ── Page hero (non-episode pages) ──────────────────────── */
.page-hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 720px) {
  .page-hero { padding: 48px 0 40px; }
  .page-hero .lead { font-size: 18px; }
}
.page-hero .crumb {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 28px 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero .lead {
  margin: 28px 0 0;
  max-width: 680px;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-2);
  letter-spacing: -.01em;
  text-wrap: pretty;
}

/* ── Section head (numeral kicker + title) ──────────────── */
.s-head {
  display: block;
  gap: 0 24px;
  margin-bottom: 32px;
}
.s-head .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 8px;
}
.s-head h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.s-head h2 .accent { color: var(--accent); }
.s-head h2 .mute { color: var(--ink-4); }
.s-head > .kicker { margin-bottom: 18px; }
.s-head > h2 { margin-top: 0; }
.s-head .blurb {
  margin: 14px 0 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-3);
}
@media (max-width: 720px) {
  .s-head h2 { font-size: clamp(28px, 7vw, 40px); }
}

/* ── Prose (long-form articles) ─────────────────────────── */
.prose { max-width: 680px; }
.prose p, .prose ul, .prose ol { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 18px 0; }
.prose h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.018em; font-weight: 600; margin: 48px 0 4px; color: var(--ink); }
.prose h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.012em; font-weight: 600; margin: 32px 0 2px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 6px 0; line-height: 1.6; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.prose a:hover { color: var(--accent); }
.prose blockquote {
  margin: 40px 0;
  padding: 24px 28px;
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -.012em;
  color: var(--ink);
  font-weight: 500;
}
.prose blockquote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Pull quote (block centered) ────────────────────────── */
.pullquote {
  margin: 64px 0;
  text-align: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -.028em;
  color: var(--ink);
  text-wrap: balance;
}
.pullquote::before, .pullquote::after {
  content: ""; display: block; margin: 0 auto;
  width: 28px; height: 1px; background: var(--ink-4);
}
.pullquote::before { margin-bottom: 28px; }
.pullquote::after { margin-top: 28px; }
.pullquote cite { display: block; margin-top: 24px; font-size: 12px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-style: normal; font-weight: 500; }
.pullquote cite::before { content: "— "; color: var(--accent); }

/* ── Generic card ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 24px;
  transition: transform var(--t-hover) ease, box-shadow var(--t-hover) ease, border-color var(--t-hover) ease;
}
.card.linked { cursor: pointer; display: block; color: inherit; }
.card.linked:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: color-mix(in oklab, var(--ink) 14%, transparent); }
.card .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.card h4 {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.card p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
}
.card .meta {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ── List row (article rows, etc.) ──────────────────────── */
.list-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 16px;
  border-bottom: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--t-hover) ease;
  color: inherit;
}
.list-row:hover { background: var(--bg-elev); }
.list-row .num { font-family: var(--mono); font-size: 13px; color: var(--ink-4); font-weight: 500; }
.list-row h4 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.012em; line-height: 1.3; color: var(--ink); }
.list-row .sub { margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.list-row .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.list-row .arrow { color: var(--ink-4); transition: color var(--t-hover) ease, transform var(--t-hover) ease; }
.list-row:hover .arrow { color: var(--accent); transform: translateX(4px); }
@media (max-width: 720px) { .list-row { grid-template-columns: 40px 1fr; } .list-row .meta, .list-row .arrow { display: none; } }

/* ── Pill / chip ────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: transform var(--t-hover) ease, border-color var(--t-hover) ease, background var(--t-hover) ease, color var(--t-hover) ease;
}
.pill:hover { transform: translateY(-1px); border-color: var(--ink-3); background: var(--bg-elev); color: var(--ink); }
.pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill .num { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.pill.active .num { color: var(--accent-hi, var(--accent)); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  margin-top: 96px;
  padding: 72px 0 40px;
  border-top: 1px solid var(--hairline);
  background: var(--bg-elev);
}
.foot-mantra {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(64px, 10vw, 144px);
  line-height: .92;
  letter-spacing: -.05em;
  color: var(--ink);
  margin: 0 0 64px;
}
.foot-mantra .accent { color: var(--accent); }
.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
}
.foot-top h5 { margin: 0 0 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.foot-top ul { list-style: none; margin: 0; padding: 0; }
.foot-top li { margin: 10px 0; }
.foot-top a { font-size: 15px; color: var(--ink-2); }
.foot-top a:hover { color: var(--accent); }
.foot-top p { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.foot-bottom {
  margin-top: 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4);
}
@media (max-width: 880px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-mantra { font-size: 18vw; }
}
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }

/* ── Animation utilities ───────────────────────────────── */
.anim-fade-up { animation: fade-up var(--t-reveal) var(--ease-out) both; }
.delay-1 { animation-delay: 60ms; }
.delay-2 { animation-delay: 120ms; }
.delay-3 { animation-delay: 180ms; }
.delay-4 { animation-delay: 240ms; }
