/* Matches index.html's default ("original") skin: light content, dark premium header,
   violet/indigo CTA gradient, Plus Jakarta Sans. Kept as flat values (no CSS custom
   properties needed) since the blog has no skin switcher. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #f8fafc;
  color: #0f172a;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
}
a { color: #0f6cbd; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header (mirrors index.html's premium black header) ─────────────────────── */
.blog-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: linear-gradient(180deg, #18181b 0%, #101012 48%, #09090b 100%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 48px rgba(0,0,0,.45);
  position: sticky; top: 0; z-index: 10;
}
.blog-header .logo { display: flex; align-items: center; gap: 10px; }
.blog-header .logo-mark { flex-shrink: 0; }
.blog-header .logo-text { font-size: 16px; font-weight: 700; letter-spacing: .06em; color: #fafafa; }
.blog-header .logo-sub { font-size: 10px; font-weight: 500; color: rgba(248,250,252,.55); letter-spacing: .06em; text-transform: uppercase; }
.blog-header-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.header-legal-link {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; color: rgba(248,250,252,.72);
  padding: 8px 10px; border-radius: 6px; transition: color .15s, background .15s;
}
.header-legal-link:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.header-legal-link.active { color: #fff; }
.header-signup-btn {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 9px 16px; margin-left: 6px;
  border-radius: 6px; border: 1px solid rgba(196,181,253,.55); color: #f5f3ff;
  background: rgba(255,255,255,.06); transition: border-color .15s, background .15s;
}
.header-signup-btn:hover { border-color: rgba(196,181,253,.9); background: rgba(255,255,255,.12); text-decoration: none; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.blog-wrap { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }
.blog-wrap.wide { max-width: 1080px; }
.blog-hero-cover {
  position: relative; width: 100%; aspect-ratio: 16/7; border-radius: 12px; overflow: hidden;
  margin-bottom: 28px; background: linear-gradient(135deg,#ede9fe,#e0e7ff 60%,#f8fafc);
  border: 1px solid #e2e8f0;
}
.blog-hero-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-hero-cover .credit {
  position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: rgba(255,255,255,.85);
  background: rgba(15,23,42,.55); padding: 2px 8px; border-radius: 4px;
}
.eyebrow { color: #6d4fc9; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1.post-title { font-size: 34px; line-height: 1.25; margin: 10px 0 14px; color: #0f172a; }
.post-meta { color: #64748b; font-size: 13px; margin-bottom: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.post-meta .views::before { content: '👁 '; }
.post-body p { color: #334155; font-size: 16.5px; margin: 0 0 18px; }
.post-body h2 { font-size: 23px; margin: 36px 0 14px; color: #0f172a; }
.post-body h3 { font-size: 18px; margin: 26px 0 10px; color: #0f172a; }
.post-body ul, .post-body ol { color: #334155; font-size: 16px; padding-left: 22px; margin: 0 0 18px; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-left: 3px solid #7c3aed; margin: 24px 0; padding: 6px 20px; color: #64748b; font-style: italic;
}
.callout {
  border: 1px solid #e2e8f0; background: #ffffff; border-radius: 10px;
  padding: 20px 22px; margin: 32px 0; box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 8px 32px rgba(15,23,42,.04);
}
.callout h3 { margin-top: 0; color: #0f172a; }
.callout p { color: #475569; }
.callout .cta-btn {
  display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; color: #fff;
  padding: 11px 20px; border-radius: 6px;
  background: linear-gradient(135deg, #7c3aed, #9333ea 50%, #6366f1);
  box-shadow: 0 2px 14px rgba(124,58,237,.38);
}
.callout .cta-btn:hover { box-shadow: 0 4px 22px rgba(124,58,237,.5); text-decoration: none; }
.post-footer-nav { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid #e2e8f0; font-size: 14px; gap: 12px; flex-wrap: wrap; }

.blog-index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 32px; }
.post-card {
  border: 1px solid #e2e8f0; background: #ffffff; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 8px 32px rgba(15,23,42,.04);
}
.post-card:hover { border-color: #a78bfa; }
.post-card .cover { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg,#ede9fe,#e0e7ff 60%,#f8fafc); }
.post-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 19px; margin: 0 0 8px; }
.post-card h2 a { color: #0f172a; }
.post-card p { color: #64748b; font-size: 14px; flex: 1; margin: 0 0 14px; }
.post-card .meta { font-size: 12px; color: #64748b; display: flex; gap: 12px; }
.blog-footer { text-align: center; color: #64748b; font-size: 13px; padding: 30px 20px; border-top: 1px solid #e2e8f0; }
.blog-footer a { color: #0f6cbd; }
