/* ══════════════════════════════════════════════════════════════
   TRUTH OBSERVATORY — Blog
   DarkWave Studios LLC — Copyright 2026
   Builds on landing.css (tokens) and now.css (nav, buttons, carousel).
   ══════════════════════════════════════════════════════════════ */

.blog-page { overflow-x: hidden; }
.today-nav__back { text-decoration: none; }

.blog-nav__link {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none; padding: 6px 4px;
  transition: color 0.2s ease;
}
.blog-nav__link:hover { color: var(--gold); }
@media (max-width: 560px) { .blog-nav__link { display: none; } }

.blog-main { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; position: relative; z-index: 1; }

/* ── Breadcrumbs ─────────────────────────────────────────────── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 0 0; margin: 0; }
.crumbs li { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--text-muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: rgba(255,255,255,0.18); }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs li[aria-current] { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Index hero ──────────────────────────────────────────────── */
.blog-hero { text-align: center; padding: 48px 0 32px; animation: blog-rise 0.6s ease both; }
.blog-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.62) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  max-width: 18ch; margin: 0 auto;
}
.blog-hero__sub { color: var(--text-secondary); font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65; max-width: 58ch; margin: 18px auto 0; }

/* ── Featured post ───────────────────────────────────────────── */
.blog-feature {
  display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  text-decoration: none; color: inherit; margin: 8px 0 48px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: blog-rise 0.7s 0.08s ease both;
}
.blog-feature:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.blog-feature__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; filter: saturate(0.9) contrast(1.05); transition: transform 0.8s ease; }
.blog-feature:hover .blog-feature__img { transform: scale(1.035); }
.blog-feature__body { padding: clamp(22px, 3.4vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.blog-feature__title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--text-primary); }
.blog-feature__go { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
@media (max-width: 820px) {
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature__img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
}

/* ── Cards (carousel) ────────────────────────────────────────── */
.blog-section { margin: 8px 0 48px; }
.blog-section h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.blog-track { gap: 18px; }
.blog-card {
  flex: 0 0 320px; min-width: 260px; max-width: 360px; scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.blog-card__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; filter: saturate(0.9); }
.blog-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card__kicker { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.blog-card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
.blog-card__desc { font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); }
.blog-card__meta { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--text-muted); margin-top: auto; padding-top: 6px; }
.blog-empty { text-align: center; color: var(--text-secondary); padding: 40px 0; }
.blog-empty a { color: var(--gold); }

/* ── Article ─────────────────────────────────────────────────── */
.post { max-width: 760px; margin: 0 auto; }
.post__head { padding: 36px 0 26px; animation: blog-rise 0.6s ease both; }
.post__head h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--text-primary); }
.post__dek { font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.6; color: var(--text-secondary); margin-top: 16px; }
.post__meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 18px; }
.post__hero { margin: 0 -20px 34px; overflow: hidden; border-radius: 0; animation: blog-rise 0.7s 0.08s ease both; }
.post__hero img { width: 100%; height: auto; display: block; filter: saturate(0.92) contrast(1.04); }
@media (min-width: 820px) { .post__hero { margin: 0 -60px 40px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); } }

.post__toc {
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 16px 20px; margin: 0 0 32px;
  background: rgba(255,255,255,0.02);
}
.post__toc-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.post__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.post__toc a { color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; }
.post__toc a:hover { color: var(--gold); }

/* Long-form text */
.prose { font-size: clamp(1rem, 1.25vw, 1.08rem); line-height: 1.8; color: rgba(255,255,255,0.78); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--text-primary); margin-top: 2.1em; scroll-margin-top: 80px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-top: 1.8em; scroll-margin-top: 80px; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose strong { color: var(--text-primary); font-weight: 650; }
.prose a { color: #ffffff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: #ffffff; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: rgba(255,255,255,0.4); }
.prose blockquote { border-left: 2px solid rgba(255,255,255,0.4); padding: 4px 0 4px 18px; color: var(--text-secondary); font-style: italic; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); border-radius: 5px; padding: 1px 6px; }
.prose pre { background: #0a0b10; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; border: none; padding: 0; font-size: 0.85rem; line-height: 1.6; }
.prose hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 2.4em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.5; min-width: 520px; }
.prose th { text-align: left; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); background: rgba(255,255,255,0.03); padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.prose td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }
.prose td:first-child { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-primary); white-space: nowrap; }

.post__foot { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.post__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.post__tags li { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 5px 12px; }
.post__source { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }
.post__source a { color: var(--text-secondary); }

/* ── Call to action ──────────────────────────────────────────── */
.blog-cta {
  position: relative; text-align: center; margin: 56px auto 48px; max-width: 860px;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px); border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.015) 55%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.1);
}
.blog-cta h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.blog-cta__sub { color: var(--text-secondary); line-height: 1.6; max-width: 52ch; margin: 12px auto 0; }
.blog-cta__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.blog-cta__buttons .btn { padding: 12px 22px; text-decoration: none; }
.blog-cta__price { margin-top: 16px; font-size: 0.86rem; color: var(--text-secondary); }
.blog-cta__price strong { color: var(--text-primary); }
.blog-cta .pricing-founders { margin-top: 6px; }

@keyframes blog-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .blog-hero, .blog-feature, .post__head, .post__hero { animation: none; }
  .blog-feature, .blog-card, .blog-feature__img { transition: none; }
}
