:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background: #f8fafc;
  color: #334155;
  line-height: 1.7;
}
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
header.site a.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #0f172a; font-weight: 800; }
header.site nav { display: flex; align-items: center; gap: 18px; }
header.site nav a { color: #64748b; text-decoration: none; font-size: 13px; font-weight: 600; }
header.site nav a:hover { color: #1d4ed8; }
header.site nav a.cta {
  background: #1d4ed8; color: #fff; padding: 8px 16px; border-radius: 8px;
}
header.site nav a.cta:hover { background: #1e40af; color: #fff; }

main.wrap { max-width: 840px; margin: 0 auto; padding: 0 20px; }

/* Index page */
.hero { padding: 56px 0 32px; text-align: left; }
.hero h1 { color: #0f172a; font-size: 32px; font-weight: 800; margin: 0 0 12px; }
.hero p { color: #64748b; font-size: 15px; max-width: 620px; margin: 0; }
.post-grid { display: grid; gap: 18px; padding: 8px 0 64px; }
.post-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 24px; text-decoration: none; display: block; transition: border-color .15s, transform .15s;
}
.post-card:hover { border-color: #93c5fd; transform: translateY(-1px); }
.post-card .tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #1d4ed8; background: #eff6ff; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
}
.post-card h2 { color: #0f172a; font-size: 19px; font-weight: 800; margin: 0 0 8px; line-height: 1.35; }
.post-card p { color: #64748b; font-size: 13.5px; margin: 0 0 10px; }
.post-card .meta { color: #94a3b8; font-size: 11px; font-family: ui-monospace, monospace; }

/* Article page */
article.post { padding: 44px 0 24px; }
.breadcrumb { font-size: 12px; color: #94a3b8; margin-bottom: 18px; }
.breadcrumb a { color: #94a3b8; text-decoration: none; }
.breadcrumb a:hover { color: #1d4ed8; }
.post-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #1d4ed8; background: #eff6ff; padding: 3px 9px; border-radius: 999px; margin-bottom: 14px;
}
article.post h1 { color: #0f172a; font-size: 30px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.post-meta { color: #94a3b8; font-size: 12px; font-family: ui-monospace, monospace; margin-bottom: 32px; }
article.post h2 { color: #0f172a; font-size: 21px; font-weight: 800; margin: 36px 0 12px; }
article.post h3 { color: #1d4ed8; font-size: 15px; font-weight: 700; margin: 26px 0 10px; }
article.post p { font-size: 15.5px; color: #334155; margin: 0 0 16px; }
article.post ul, article.post ol { padding-left: 22px; margin: 0 0 16px; }
article.post li { font-size: 15px; margin-bottom: 8px; }
article.post strong { color: #0f172a; }
article.post table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 13.5px; }
article.post th, article.post td { border: 1px solid #e2e8f0; padding: 9px 12px; text-align: left; }
article.post th { background: #f1f5f9; color: #0f172a; font-weight: 700; }
article.post code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.cta-box {
  background: linear-gradient(135deg, #0055e0, #0086ff); border-radius: 16px;
  padding: 28px 26px; margin: 32px 0; color: #fff;
}
.cta-box p.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .85; margin: 0 0 6px; }
.cta-box h3 { color: #fff; font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.cta-box p { color: rgba(255,255,255,0.9); font-size: 14px; margin: 0 0 16px; }
.cta-box a.btn {
  display: inline-block; background: #fff; color: #0055e0; font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: 9px; text-decoration: none;
}
.cta-box a.btn:hover { background: #f1f5f9; }

.author-box {
  display: flex; gap: 12px; align-items: center; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
  padding: 18px 0; margin: 32px 0;
}
.author-box .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,#0086ff,#0055e0);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.author-box .name { font-weight: 700; color: #0f172a; font-size: 13.5px; }
.author-box .role { color: #94a3b8; font-size: 12px; }

.related { padding: 8px 0 60px; }
.related h2 { color: #0f172a; font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid a {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-decoration: none;
  color: #0f172a; font-weight: 700; font-size: 13.5px; display: block;
}
.related-grid a:hover { border-color: #93c5fd; }

footer.site {
  border-top: 1px solid #e2e8f0; padding: 28px 20px; text-align: center; color: #94a3b8; font-size: 12px;
}
footer.site a { color: #94a3b8; text-decoration: none; margin: 0 8px; }
footer.site a:hover { color: #1d4ed8; }
