/* flatradar — blog. Reuses landing.css design tokens (--bg, --ink, --accent,
   --line, --surface, --radius, --sans, --mono, shadows). Only blog-specific
   layout lives here. Theme-aware through the shared variables. */

/* Blog header is ALWAYS solid: landing.css only paints .site-header once JS adds
   .scrolled (that script lives on the landing), so on blog pages the sticky header
   stayed transparent and article text showed through it. Theme-aware via --bg. */
.site-header {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}

/* headings use the display face (Space Grotesk) via the shared --display token */
.blog-hero h1, .article-head h1, .article-body h2, .article-body h3,
.blog-card-title, .related h2 { font-family: var(--display); letter-spacing: -.025em; }

/* breadcrumbs */
.crumbs {
  font-size: 13px; color: var(--ink-faint); margin-bottom: 18px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent-2); }

/* hero / list section spacing */
.blog-hero { padding-bottom: 8px; }
.blog-hero h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 12px; }
.blog-list-section { padding-top: 20px; }

/* post list */
.blog-list, .related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.blog-card-link { display: block; padding: 22px 24px; }
.blog-card-meta {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); margin-bottom: 10px;
}
.blog-card-title { font-size: clamp(19px, 2.6vw, 23px); margin-bottom: 8px; letter-spacing: -.015em; }
.blog-card:hover .blog-card-title { color: var(--accent-2); }
.blog-card-dek { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.blog-card-cta { font-weight: 650; font-size: 14px; color: var(--accent-2); display: inline-flex; gap: 6px; align-items: center; }
.blog-card-cta .arr { transition: transform .18s ease; }
.blog-card:hover .blog-card-cta .arr { transform: translateX(3px); }

/* article */
.blog-article { padding-top: 28px; }
.article-head { margin-bottom: 24px; }
.article-head h1 { font-size: clamp(28px, 5vw, 44px); margin: 10px 0 14px; }
.article-dek { font-size: 18px; color: var(--ink-soft); margin-bottom: 14px; }
.article-byline { font-size: 14px; color: var(--ink-faint); }
.article-byline strong { color: var(--ink); }

/* answer-first callout (AEO) */
.article-answer {
  font-size: 18px; line-height: 1.55; color: var(--ink);
  background: var(--accent-wash); border-left: 3px solid var(--accent);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 8px 0 28px;
}
.article-stub-note {
  font-size: 14px; color: var(--amber); font-style: italic; margin: 0 0 24px;
}

/* article body prose */
.article-body { font-size: 16.5px; line-height: 1.72; color: var(--ink); }
.article-body h2 { font-size: clamp(21px, 3vw, 27px); margin: 34px 0 12px; letter-spacing: -.015em; }
.article-body h3 { font-size: 18px; margin: 22px 0 8px; }
.article-body p { margin: 0 0 16px; }
.article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin: 0 0 8px; }
.article-body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--accent); }
.article-body blockquote {
  margin: 22px 0; padding: 14px 20px; border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft); font-size: 16px;
}

.article-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 8px; }

/* author card */
.author-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 30px 0; box-shadow: var(--shadow-sm);
}
.author-avatar {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700;
  background: var(--accent-wash); color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
}
.author-eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.author-name { font-weight: 700; font-size: 17px; margin-top: 2px; }
.author-role { font-size: 14px; color: var(--accent-2); font-weight: 600; margin-bottom: 8px; }
.author-bio { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.author-links { font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--ink-faint); }
.author-links a { color: var(--accent-2); }
.author-links a:hover { text-decoration: underline; }

/* related */
.related { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.related-h { font-size: 20px; margin-bottom: 16px; }
.related .blog-card-title { font-size: 18px; }

@media (max-width: 560px) {
  .author-card { flex-direction: column; gap: 12px; }
}
