/* ========================================
   HUMANITY AND AI — Main Stylesheet
   Dark. Alive. Future-forward.
   ======================================== */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --text-primary: #e8e8ed;
  --text-secondary: #9898a8;
  --text-muted: #68687a;
  --accent-primary: #ff6b35;    /* Phoenix orange */
  --accent-secondary: #4ecdc4;  /* Teal/emergence */
  --accent-tertiary: #c084fc;   /* Purple/creative */
  --accent-warm: #fbbf24;       /* Gold/insight */
  --border-subtle: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 860px;
  --max-width-wide: 1100px;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
  --bg-primary: #E8E8ED;
  --bg-secondary: #DDDDE4;
  --bg-card: #F2F2F5;
  --bg-card-hover: #F8F8FA;
  --text-primary: #1a1a2e;
  --text-secondary: #3a3a50;
  --text-muted: #5a5a6e;
  --accent-primary: #d04e1e;
  --accent-secondary: #238a82;
  --accent-tertiary: #8a4ad0;
  --accent-warm: #b88a10;
  --border-subtle: rgba(0, 0, 0, 0.10);
  --border-hover: rgba(0, 0, 0, 0.20);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-primary); }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.site-logo span { color: var(--accent-primary); }

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent-primary); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem 2rem 3rem;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.8;
  z-index: 0;
  transition: opacity 2s ease;
}

.hero-video.dimmed {
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.0) 0%,
    rgba(10, 10, 15, 0.1) 30%,
    rgba(10, 10, 15, 0.4) 60%,
    var(--bg-primary) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.8),
    0 4px 40px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(0, 0, 0, 0.4);
}

.hero h1 .accent { color: var(--accent-primary); }

.hero .tagline {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 1.5rem auto 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(78, 205, 196, 0.4);
  text-align: left;
  max-width: 480px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  animation: tagline-fade-in 1.5s ease-out 2s both;
}

@keyframes tagline-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- STREAM / FEED ---- */
.stream-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.stream-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
}

.stream-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stream-filters {
  display: flex;
  gap: 0.8rem;
}

.filter-tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}

.filter-tag:hover, .filter-tag.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ---- POST CARDS ---- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
  transition: all 0.25s ease;
}

.post-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-type {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Post type colors */
.post-type.research    { background: rgba(78, 205, 196, 0.15); color: var(--accent-secondary); }
.post-type.tool        { background: rgba(251, 191, 36, 0.15); color: var(--accent-warm); }
.post-type.creative    { background: rgba(192, 132, 252, 0.15); color: var(--accent-tertiary); }
.post-type.insight     { background: rgba(255, 107, 53, 0.15); color: var(--accent-primary); }
.post-type.futurism    { background: rgba(99, 179, 237, 0.15); color: #63b3ed; }
.post-type.policy      { background: rgba(104, 211, 145, 0.15); color: #68d391; }
.post-type.community   { background: rgba(246, 173, 85, 0.15); color: #f6ad55; }
.post-type.letter      { background: rgba(254, 178, 178, 0.15); color: #feb2b2; }
.post-type.visualization { background: rgba(99, 179, 237, 0.15); color: #63b3ed; }

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.post-card h3 a { color: var(--text-primary); }
.post-card h3 a:hover { color: var(--accent-primary); }

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.post-tags a {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  transition: all 0.2s;
}

.post-tags a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent-primary);
}

/* Card category tints — dark mode */
.post-card[data-type="research"]     { background: linear-gradient(135deg, rgba(78, 205, 196, 0.04) 0%, var(--bg-card) 60%); }
.post-card[data-type="tool"]         { background: linear-gradient(135deg, rgba(212, 160, 23, 0.04) 0%, var(--bg-card) 60%); }
.post-card[data-type="creative"]     { background: linear-gradient(135deg, rgba(155, 93, 229, 0.04) 0%, var(--bg-card) 60%); }
.post-card[data-type="insight"]      { background: linear-gradient(135deg, rgba(255, 107, 53, 0.04) 0%, var(--bg-card) 60%); }
.post-card[data-type="futurism"]     { background: linear-gradient(135deg, rgba(59, 130, 200, 0.04) 0%, var(--bg-card) 60%); }
.post-card[data-type="policy"]       { background: linear-gradient(135deg, rgba(56, 161, 105, 0.04) 0%, var(--bg-card) 60%); }
.post-card[data-type="community"]    { background: linear-gradient(135deg, rgba(221, 136, 42, 0.04) 0%, var(--bg-card) 60%); }
.post-card[data-type="letter"]       { background: linear-gradient(135deg, rgba(200, 100, 100, 0.04) 0%, var(--bg-card) 60%); }
.post-card[data-type="visualization"]{ background: linear-gradient(135deg, rgba(78, 205, 196, 0.04) 0%, var(--bg-card) 60%); }

/* ---- SINGLE POST ---- */
.post-single {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.post-single h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.post-single .content {
  margin-top: 2rem;
}

.post-single .content p { margin-bottom: 1.4rem; }
.post-single .content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.post-single .content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.post-single .content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-single .content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.post-single .content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-single .content pre code {
  background: none;
  padding: 0;
}

.post-single .content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text-primary); }

/* ---- ABOUT PAGE ---- */
.about-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.about-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-page .content p { margin-bottom: 1.4rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .header-inner { padding: 0; }
  .site-nav { gap: 1rem; }
  .hero { min-height: 50vh; padding: 3rem 1.5rem; }
  .stream-container { padding: 2rem 1.2rem; }
  .post-card { padding: 1.3rem; }
  .stream-header { flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 480px) {
  .site-nav a { font-size: 0.82rem; }
  .post-card h3 { font-size: 1.15rem; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .post-card { transition: none; }
  .post-card:hover { transform: none; }
  .hero-video { display: none; }
}

/* ---- PROJECT CARDS ---- */
.projects-section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  border-top: 1px solid var(--border-subtle);
}

.projects-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.project-card .project-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.project-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex-grow: 1;
}

.project-card .project-link {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---- SUBTLE GLOW EFFECTS ---- */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ---- TYPE PAGE ---- */
.type-header {
  text-transform: capitalize;
}

/* ---- RSS ICON ---- */
.rss-link {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.rss-link:hover { color: var(--accent-primary); }

/* ---- SELECTION ---- */
/* ---- VISUALIZATIONS ---- */
.viz-gallery {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.viz-gallery-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.viz-gallery-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.viz-gallery-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 640px;
}

.viz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
}

.viz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.viz-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.viz-card-preview {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.viz-card-icon {
  font-size: 3rem;
  opacity: 0.7;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.viz-card-body {
  padding: 1.3rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.viz-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.viz-card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex-grow: 1;
}

.viz-single {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.viz-header {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

.viz-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.6rem;
}

.viz-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.8rem;
  line-height: 1.5;
  font-style: italic;
}

.viz-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.viz-content p { margin-bottom: 1.3rem; color: var(--text-secondary); line-height: 1.75; font-size: 1.05rem; }
.viz-content h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-primary); }
.viz-content h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.8rem; color: var(--text-primary); }
.viz-content strong { color: var(--text-primary); font-weight: 600; }
.viz-content em { color: var(--text-secondary); }
.viz-content blockquote { border-left: 3px solid var(--accent-primary); padding: 0.8rem 1.2rem; margin: 1.5rem 0; background: rgba(255,107,53,0.04); border-radius: 0 8px 8px 0; }
.viz-content hr { border: none; border-top: 1px solid var(--border-subtle); margin: 2.5rem 0; }

.viz-embed, .viz-embed-wide {
  margin: 2rem 0;
}

.viz-embed { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.viz-embed-wide { max-width: var(--max-width-wide); margin-left: auto; margin-right: auto; }
.viz-embed-full { max-width: 100vw; width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); padding: 0 2rem; }

.viz-frame {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.viz-frame iframe {
  display: block;
}

.post-type.visualization {
  background: rgba(78, 205, 196, 0.15);
  color: var(--accent-secondary);
}

@media (max-width: 768px) {
  .viz-grid { grid-template-columns: 1fr; }
  .viz-card-preview { height: 140px; }
  .viz-single { padding: 2rem 1.2rem 3rem; }
}

::selection {
  background: rgba(255, 107, 53, 0.3);
  color: var(--text-primary);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ---- SINGLE POST ---- */
.post-single {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.8rem 0 0.6rem;
  color: var(--text-primary);
}

.post-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.reading-time {
  color: var(--text-muted);
}

.reading-time::before {
  content: '·';
  margin: 0 0.5rem;
  color: var(--text-muted);
}

/* ---- PROSE CONTENT ---- */
.prose {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text-secondary);
}

.prose p { margin-bottom: 1.4rem; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.8rem;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose em { color: var(--text-secondary); }

.prose a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--accent-teal); }

.prose blockquote {
  border-left: 3px solid var(--accent-primary);
  margin: 1.5rem 0;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 107, 53, 0.05);
  border-radius: 0 8px 8px 0;
}

.prose blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-secondary);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent-teal);
}

.prose pre {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.4rem 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
}

/* ---- POST NAV ---- */
.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  gap: 1rem;
}

.post-nav-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.post-nav-link:hover { color: var(--accent-primary); }
.post-nav-link.prev { text-align: left; }
.post-nav-link.next { text-align: right; }
.post-nav-link.home {
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ---- LIST/ARCHIVE PAGE ---- */
.list-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

.list-page h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

/* ---- ABOUT PAGE ---- */
.prose h2:first-of-type {
  margin-top: 0;
}

/* ---- SINGLE POST ---- */
.post-single {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.6rem;
  color: var(--text-primary);
}

.post-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.8rem;
  line-height: 1.5;
  font-style: italic;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.post-content p { margin-bottom: 1.3rem; }

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-content em {
  color: var(--text-secondary);
}

.post-content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: rgba(255, 107, 53, 0.04);
  border-radius: 0 8px 8px 0;
}

.post-content blockquote p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--accent-teal);
}

.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--accent-teal);
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1.3rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
}

/* ---- POST NAV ---- */
.post-nav {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.post-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-nav-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.post-nav-link.next { text-align: right; }

.post-nav-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-nav-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .post-nav { flex-direction: column; }
  .post-nav-link.next { text-align: left; }
  .post-header h1 { font-size: 1.6rem; }
}

/* ---- ABOUT PAGE ---- */
.post-content .about-section {
  margin-top: 2rem;
}

/* ---- TYPE FILTERS ---- */
.type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}


/* ---- VISUALIZATIONS GALLERY ---- */
.viz-gallery {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.viz-gallery-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.viz-gallery-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.viz-gallery-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 640px;
}

.viz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.viz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.viz-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.viz-card-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.viz-card-icon {
  font-size: 4rem;
  opacity: 0.7;
}

.viz-card-body {
  padding: 1.3rem 1.5rem 1.5rem;
}

.viz-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.5rem 0 0.4rem;
  line-height: 1.3;
}

.viz-card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---- VISUALIZATION SINGLE ---- */
.viz-single {
  padding: 3rem 0 5rem;
}

.viz-header {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.viz-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0.6rem 0 0.8rem;
}

.viz-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.viz-content {
  margin: 0 auto;
}

/* Prose sections within visualizations */
.viz-content > p,
.viz-content > h2,
.viz-content > h3,
.viz-content > blockquote,
.viz-content > ul,
.viz-content > ol {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.viz-content > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.3rem;
}

.viz-content > h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.viz-content > h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

/* Full-width viz containers */
.viz-embed {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.viz-embed-wide {
  width: 100%;
  margin: 2rem 0;
}

/* Interactive embed frame */
.viz-frame {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.viz-frame iframe {
  width: 100%;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .viz-grid { grid-template-columns: 1fr; }
  .viz-card-preview { height: 160px; }
  .viz-header { padding: 0 1.2rem; }
}

/* ═══ FEATURED VIZ BAND ═══ */
.featured-viz {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(255,107,53,.06) 0%, transparent 60%);
  padding: 48px 0;
}
.featured-viz-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 48px;
}
.featured-viz-text { flex: 1; }
.featured-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 10px;
}
.featured-viz-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}
.featured-viz-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 460px;
}
.featured-viz-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.featured-viz-cta:hover {
  background: #ff8255;
  color: #fff;
  transform: translateY(-2px);
}

/* Abstract timeline preview decoration */
.featured-viz-preview {
  flex-shrink: 0;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  padding: 12px 0;
}
.fvp-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255,107,53,.3), transparent);
  transform: translateX(-50%);
}
.fvp-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.fvp-dot--past {
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.2);
}
.fvp-dot--now {
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary), 0 0 24px rgba(255,107,53,.3);
  animation: fvp-pulse 2s ease-in-out infinite;
}
.fvp-dot--future {
  background: transparent;
  border: 2px dashed rgba(255,255,255,.15);
}
@keyframes fvp-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-primary), 0 0 16px rgba(255,107,53,.3); }
  50% { box-shadow: 0 0 16px var(--accent-primary), 0 0 32px rgba(255,107,53,.5); }
}

@media (max-width: 600px) {
  .featured-viz-preview { display: none; }
  .featured-viz-text h2 { font-size: 1.4rem; }
  .featured-viz { padding: 36px 0; }
}


/* ═══════════════════════════════════════
   LEGISLAITIVE REPORT
   ═══════════════════════════════════════ */

.report-single { max-width: 740px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* Header */
.report-header { border-bottom: 1px solid var(--border-subtle); padding-bottom: 2rem; margin-bottom: 2.5rem; }
.report-meta-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.report-label { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--orange); }
.report-issue { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.report-date { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.report-title { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; line-height: 1.2; color: var(--text-primary); margin-bottom: 0.75rem; }
.report-lede { font-size: 1.05rem; line-height: 1.6; color: var(--text-secondary); font-style: italic; margin-bottom: 1rem; }
.report-byline { font-size: 0.8rem; color: var(--text-muted); }
.report-byline a { color: var(--text-muted); }

/* Content sections */
.report-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(78,205,196,.2);
}
.report-content h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary); margin: 1.5rem 0 0.3rem;
}
.report-content p { font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 0.9rem; }
.report-content strong { color: var(--text-primary); font-weight: 600; }
.report-content a { color: var(--teal); }

/* Story cards — inline HTML blocks in the markdown */
.story { background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.story-meta { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.5rem; }
.story-tag { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; }
.story-tag.capability { background: rgba(78,205,196,.15); color: var(--teal); }
.story-tag.labor { background: rgba(251,191,36,.15); color: var(--gold); }
.story-tag.governance { background: rgba(41,128,185,.2); color: #5dade2; }
.story-tag.regulation { background: rgba(231,76,60,.15); color: #e74c3c; }
.story-tag.oklahoma { background: rgba(255,107,53,.15); color: var(--orange); }
.story-source { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.story h3 { font-size: 0.98rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.5rem; }
.story p { font-size: 0.88rem; line-height: 1.65; margin-bottom: 0.5rem; color: var(--text-secondary); }
.story .policy-relevance { font-size: 0.83rem; color: var(--text-muted); border-top: 1px solid var(--border-subtle); padding-top: 0.5rem; margin-top: 0.6rem; }
.story .policy-relevance strong { color: var(--orange); font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 0.2rem; }

/* Signal/Noise */
.signal-noise { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.signal, .noise { padding: 1rem 1.2rem; border-radius: 6px; }
.signal { background: rgba(78,205,196,.06); border: 1px solid rgba(78,205,196,.2); }
.noise { background: rgba(255,255,255,.02); border: 1px solid var(--border-subtle); }
.signal-label, .noise-label { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 0.4rem; }
.signal-label { color: var(--teal); }
.noise-label { color: var(--text-muted); }
.signal p, .noise p { font-size: 0.85rem; line-height: 1.6; margin: 0; }

/* Window status */
.window-status { background: rgba(255,107,53,.06); border: 1px solid rgba(255,107,53,.2); border-radius: 6px; padding: 1rem 1.4rem; margin: 1rem 0; }
.window-status-badge { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 0.4rem; }
.window-status p { font-size: 0.88rem; line-height: 1.65; margin: 0; }

/* Footer */
.report-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }
.report-footer-links { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.report-footer-links a { font-size: 0.82rem; color: var(--text-muted); }
.report-attribution { font-size: 0.75rem; color: var(--dim); line-height: 1.6; }
.report-attribution a { color: var(--dim); }

/* Archive */
.report-archive { max-width: 740px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.report-archive-header { margin-bottom: 3rem; }
.report-archive-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; margin: 0.3rem 0 0.75rem; }
.report-archive-sub { font-size: 0.92rem; color: var(--text-secondary); max-width: 560px; line-height: 1.65; margin-bottom: 1.2rem; }
.report-archive-actions { display: flex; gap: 1rem; align-items: center; }
.btn-subscribe { background: var(--orange); color: white; padding: 0.45rem 1.1rem; border-radius: 4px; font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.btn-rss { font-size: 0.82rem; color: var(--text-muted); }
.report-issue-list { display: flex; flex-direction: column; gap: 1rem; }
.report-issue-card { display: block; background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 1.4rem 1.6rem; text-decoration: none; transition: border-color .2s, background .2s; }
.report-issue-card:hover { border-color: rgba(78,205,196,.3); background: rgba(255,255,255,.05); }
.report-issue-card-meta { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.5rem; font-size: 0.78rem; color: var(--text-muted); }
.report-issue-num { color: var(--orange); font-weight: 600; }
.window-badge { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; margin-left: auto; }
.window-badge.window-open { background: rgba(78,205,196,.15); color: var(--teal); }
.window-badge.window-narrowing { background: rgba(251,191,36,.15); color: var(--gold); }
.window-badge.window-critical { background: rgba(255,107,53,.2); color: var(--orange); }
.report-issue-card h2 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.4rem; }
.report-issue-card p { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 0.8rem; line-height: 1.5; }
.report-issue-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.report-issue-card-tags .tag { font-size: 0.7rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .signal-noise { grid-template-columns: 1fr; }
  .report-title { font-size: 1.6rem; }
}


/* ═══════════════════════════════════════
   HYPE INDEX
   ═══════════════════════════════════════ */

.hype-page { max-width: 740px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.hype-header { border-bottom: 1px solid var(--border-subtle); padding-bottom: 2rem; margin-bottom: 2rem; }
.hype-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; margin: 0.3rem 0 0.75rem; }
.hype-header-sub { font-size: 0.92rem; color: var(--text-secondary); max-width: 560px; line-height: 1.65; margin-bottom: 1.2rem; }

/* Scale legend */
.hype-scale-legend { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.hype-pip { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; }
.hype-pip.verified { background: rgba(78,205,196,.15); color: #4ecdc4; }
.hype-pip.supported { background: rgba(100,200,150,.12); color: #64c896; }
.hype-pip.plausible { background: rgba(251,191,36,.12); color: #fbbf24; }
.hype-pip.overstated { background: rgba(255,107,53,.15); color: #ff6b35; }
.hype-pip.false { background: rgba(239,68,68,.15); color: #ef4444; }
.hype-scale-arrow { color: var(--text-muted); font-size: 0.75rem; }

/* Source filter */
.hype-source-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }

/* Individual claim */
.hype-claim { background: rgba(255,255,255,.025); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 1.4rem 1.6rem; margin-bottom: 1.2rem; transition: border-color .2s; }
.hype-claim:hover { border-color: rgba(255,255,255,.1); }
.hype-claim-meta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.75rem; font-size: 0.78rem; }
.hype-source { font-weight: 700; color: var(--text-primary); }
.hype-claim-date { color: var(--text-muted); }
.hype-claim-ref { color: var(--text-muted); }
.hype-issue-ref { margin-left: auto; font-size: 0.72rem; color: var(--text-muted); }
.hype-issue-ref a { color: var(--text-muted); }

.hype-claim-quote { font-size: 0.92rem; color: var(--text-secondary); font-style: italic; border-left: 3px solid var(--border-subtle); padding-left: 1rem; margin: 0.75rem 0; line-height: 1.65; }
.hype-demonstrated { font-size: 0.86rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; }
.hype-demonstrated strong { color: var(--text-primary); }

/* Hype meter */
.hype-meter-row { margin-bottom: 0.75rem; }
.hype-meter { display: flex; border-radius: 4px; overflow: hidden; height: 28px; gap: 2px; }
.hype-meter-seg { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 0.25; transition: opacity .2s; border-radius: 3px; }
.hype-meter-seg.active { opacity: 1; }
.hype-meter-seg.verified { background: rgba(78,205,196,.3); color: #4ecdc4; }
.hype-meter-seg.supported { background: rgba(100,200,150,.3); color: #64c896; }
.hype-meter-seg.plausible { background: rgba(251,191,36,.3); color: #fbbf24; }
.hype-meter-seg.overstated { background: rgba(255,107,53,.3); color: #ff6b35; }
.hype-meter-seg.false { background: rgba(239,68,68,.3); color: #ef4444; }

/* Source reliability */
.hype-source-reliability { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.reliability-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.reliability-badge { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; }
.reliability-badge.unusually-precise { background: rgba(78,205,196,.15); color: #4ecdc4; }
.reliability-badge.on-track { background: rgba(255,255,255,.08); color: var(--text-muted); }
.reliability-badge.uncharacteristic { background: rgba(255,107,53,.12); color: #ff6b35; }
.reliability-badge.consistent-pattern { background: rgba(239,68,68,.12); color: #ef4444; }
.reliability-note { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

.hype-intro-note { background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 1rem 1.4rem; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Methodology */
.hype-methodology { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }
.hype-methodology h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.hype-methodology p { font-size: 0.83rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 0.5rem; }
.hype-methodology a { color: var(--text-muted); }

/* ── In-newsletter Stated/Demonstrated section ── */
.stated-demonstrated { margin: 1rem 0; }
.sd-claim { background: rgba(255,255,255,.025); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 1rem 1.2rem; margin-bottom: 0.8rem; }
.sd-claim-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.sd-claim blockquote { font-size: 0.88rem; font-style: italic; color: var(--text-secondary); border-left: 3px solid var(--border-subtle); padding-left: 0.8rem; margin: 0.4rem 0 0.6rem; }
.sd-demonstrated { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.sd-meter { display: flex; gap: 2px; height: 22px; border-radius: 3px; overflow: hidden; margin-bottom: 0.5rem; }
.sd-meter .hype-meter-seg { font-size: 8px; }
.sd-reliability { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

@media (max-width: 600px) {
  .hype-meter-seg { font-size: 7px; letter-spacing: 0; }
  .hype-scale-legend { gap: 0.3rem; }
}

/* ═══════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════ */

.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card);
}

/* Show moon in dark, sun in light */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ═══════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════ */

/* Header */
[data-theme="light"] .site-header {
  background: rgba(232, 232, 237, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.10);
}

/* Hero — same dark cinematic treatment in both themes.
   Base gradient already uses var(--bg-primary) at bottom,
   so it fades to the right bg color automatically. */
[data-theme="light"] .hero-video.dimmed {
  opacity: 0.25;
}

/* Post cards */
[data-theme="light"] .post-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .post-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Card category tints — light mode */
[data-theme="light"] .post-card[data-type="research"]     { background: linear-gradient(135deg, rgba(43, 168, 158, 0.07) 0%, var(--bg-card) 60%); }
[data-theme="light"] .post-card[data-type="tool"]         { background: linear-gradient(135deg, rgba(180, 140, 20, 0.07) 0%, var(--bg-card) 60%); }
[data-theme="light"] .post-card[data-type="creative"]     { background: linear-gradient(135deg, rgba(138, 74, 208, 0.07) 0%, var(--bg-card) 60%); }
[data-theme="light"] .post-card[data-type="insight"]      { background: linear-gradient(135deg, rgba(208, 78, 30, 0.07) 0%, var(--bg-card) 60%); }
[data-theme="light"] .post-card[data-type="futurism"]     { background: linear-gradient(135deg, rgba(42, 111, 176, 0.07) 0%, var(--bg-card) 60%); }
[data-theme="light"] .post-card[data-type="policy"]       { background: linear-gradient(135deg, rgba(39, 103, 73, 0.07) 0%, var(--bg-card) 60%); }
[data-theme="light"] .post-card[data-type="community"]    { background: linear-gradient(135deg, rgba(154, 96, 32, 0.07) 0%, var(--bg-card) 60%); }
[data-theme="light"] .post-card[data-type="letter"]       { background: linear-gradient(135deg, rgba(160, 64, 64, 0.07) 0%, var(--bg-card) 60%); }
[data-theme="light"] .post-card[data-type="visualization"]{ background: linear-gradient(135deg, rgba(43, 168, 158, 0.07) 0%, var(--bg-card) 60%); }

/* Post type badges — stronger on light bg */
[data-theme="light"] .post-type.research    { background: rgba(43, 168, 158, 0.12); color: #1a8a80; }
[data-theme="light"] .post-type.tool        { background: rgba(212, 160, 23, 0.12); color: #9a7a10; }
[data-theme="light"] .post-type.creative    { background: rgba(155, 93, 229, 0.12); color: #7b3dbf; }
[data-theme="light"] .post-type.insight     { background: rgba(224, 90, 40, 0.12); color: #c04820; }
[data-theme="light"] .post-type.futurism    { background: rgba(59, 130, 200, 0.12); color: #2a6fb0; }
[data-theme="light"] .post-type.policy      { background: rgba(56, 161, 105, 0.12); color: #276749; }
[data-theme="light"] .post-type.community   { background: rgba(221, 136, 42, 0.12); color: #9a6020; }
[data-theme="light"] .post-type.letter      { background: rgba(200, 100, 100, 0.12); color: #a04040; }
[data-theme="light"] .post-type.visualization { background: rgba(43, 168, 158, 0.12); color: #1a8a80; }

/* Tags */
[data-theme="light"] .post-tags a {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
}

[data-theme="light"] .post-tags a:hover {
  background: rgba(0, 0, 0, 0.10);
  color: var(--accent-primary);
}

/* Prose / post content */
[data-theme="light"] .prose a,
[data-theme="light"] .post-content a {
  color: var(--accent-primary);
}

[data-theme="light"] .prose a:hover,
[data-theme="light"] .post-content a:hover {
  color: var(--accent-secondary);
}

[data-theme="light"] .prose blockquote,
[data-theme="light"] .post-content blockquote {
  background: rgba(224, 90, 40, 0.04);
  border-left-color: var(--accent-primary);
}

[data-theme="light"] .prose code,
[data-theme="light"] .post-content code {
  background: rgba(0, 0, 0, 0.05);
  color: var(--accent-secondary);
}

[data-theme="light"] .prose pre,
[data-theme="light"] .post-content pre {
  background: #1a1a2e;
  color: #e8e8ed;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .prose pre code,
[data-theme="light"] .post-content pre code {
  color: #e8e8ed;
  background: none;
}

/* Project cards */
[data-theme="light"] .project-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .project-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Filter buttons */
[data-theme="light"] .filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

/* Visualizations */
[data-theme="light"] .viz-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .viz-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .viz-frame {
  background: var(--bg-secondary);
}

/* Featured viz band */
[data-theme="light"] .featured-viz {
  background: linear-gradient(135deg, rgba(224, 90, 40, 0.05) 0%, transparent 60%);
}

[data-theme="light"] .fvp-line {
  background: linear-gradient(to bottom, transparent, rgba(224, 90, 40, 0.25), transparent);
}

[data-theme="light"] .fvp-dot--past {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .fvp-dot--future {
  border-color: rgba(0, 0, 0, 0.12);
}

/* Report pages */
[data-theme="light"] .story {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .signal {
  background: rgba(43, 168, 158, 0.06);
  border-color: rgba(43, 168, 158, 0.2);
}

[data-theme="light"] .noise {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .window-status {
  background: rgba(224, 90, 40, 0.06);
  border-color: rgba(224, 90, 40, 0.2);
}

/* Hype Index */
[data-theme="light"] .hype-claim {
  background: rgba(0, 0, 0, 0.015);
}

[data-theme="light"] .hype-claim:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .hype-intro-note {
  background: rgba(0, 0, 0, 0.02);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-primary); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); }

/* Selection */
[data-theme="light"] ::selection {
  background: rgba(224, 90, 40, 0.2);
  color: var(--text-primary);
}
