:root{
  --bg:#0b0b10;
  --fg:#eaeaf2;
  --muted:#b9b9c7;
  --card:#12121a;
  --border:rgba(255,255,255,.08);
  --brand:#5B4BFF;
  --max:860px;
  --radius:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:var(--bg);
  color:var(--fg);
  line-height:1.65;
}
a{color:var(--fg); text-decoration:none}
a:hover{opacity:.85}

.container{max-width:calc(var(--max) + 48px); margin:0 auto; padding:0 24px}
.skip-link{position:absolute; left:-9999px}
.skip-link:focus{left:24px; top:16px; background:var(--card); padding:10px 12px; border-radius:10px; border:1px solid var(--border)}

.site-header{
  position:sticky; top:0;
  background:rgba(11,11,16,.8);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
  z-index:10;
}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0}
.brand{display:flex; align-items:center; gap:10px}

.brand-icon{
  width:26px;
  height:26px;
  display:block;
}

.brand-wordmark{
  height:22px;
  width:auto;
  display:block;
}

@media (max-width: 520px){
  .brand-wordmark{ height:20px; }
}



.nav{display:flex; gap:16px; flex-wrap:wrap}
.nav a{color:var(--muted)}
.nav a[aria-current="page"]{color:var(--fg)}

.btn{display:inline-flex; align-items:center; justify-content:center; padding:10px 14px; border-radius:12px; border:1px solid var(--border)}
.btn-primary{background:var(--brand); border-color:transparent; color:white; font-weight:600}

.main{padding:34px 0 44px}
.article{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
}
.article-meta{display:flex; justify-content:flex-end; margin-bottom:18px; color:var(--muted); font-size:14px}
.meta-label{margin-right:8px; opacity:.8}

.content h1{font-size:34px; line-height:1.2; margin:0 0 14px}
.content h2{font-size:22px; margin:28px 0 10px}
.content h3{font-size:18px; margin:22px 0 8px}
.content p{margin:0 0 14px; color:var(--fg)}
.content ul{margin:0 0 14px 18px}
.content li{margin:6px 0}
.content img{
  max-width:100%;
  border-radius:12px;
  border:1px solid var(--border);
  margin:14px 0;
}
.content table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:12px;
  border:1px solid var(--border);
  margin:18px 0;
}
.content th, .content td{padding:12px 12px; border-bottom:1px solid var(--border); text-align:left}
.content th{color:var(--fg); background:rgba(255,255,255,.03)}
.content td{color:var(--muted)}
.content tr:last-child td{border-bottom:none}

.site-footer{border-top:1px solid var(--border); padding:28px 0; color:var(--muted)}
.footer-inner{display:flex; gap:18px; justify-content:space-between; flex-wrap:wrap}
.footer-brand{display:flex; gap:12px; align-items:center}
.footer-logo{width:28px; height:28px}
.footer-title{color:var(--fg); font-weight:700}
.footer-links{display:flex; gap:14px; flex-wrap:wrap}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--fg)}
.footer-wordmark { height: 20px; width: auto; display:block; }

.article-header { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.article-author { display:flex; align-items:center; gap:12px; }
.author-avatar { width:40px; height:40px; border-radius:999px; border:1px solid var(--border); object-fit:cover; }
.author-name { font-weight:700; color:var(--fg); line-height:1.2; }
.author-role { font-size:14px; color:var(--muted); line-height:1.2; margin-top:2px; }

/* Blog content links */
.content a,
.blog-index a {
  color: #5B4BFF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content a:hover,
.blog-index a:hover {
  opacity: 0.9;
}

/* Keep header/nav/footer links readable */
.site-header .nav a,
.site-footer .footer-links a {
  color: inherit;
  text-decoration: none;
}

.blog-breadcrumb {
  margin-bottom: 16px;
}

.blog-breadcrumb a {
  font-size: 14px;
  color: #5B4BFF;
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

/* Blog index layout */
.blog-index h1{
  font-size:34px;
  line-height:1.2;
  margin:0 0 10px;
}
.blog-index-subtitle{
  margin:0 0 22px;
  color:var(--muted);
  max-width:68ch;
}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

@media (max-width: 820px){
  .blog-grid{ grid-template-columns:1fr; }
}

.blog-card{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
}

.blog-card-meta{
  color:var(--muted);
  font-size:13px;
  margin-bottom:10px;
}

.blog-card-title{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.3;
}

.blog-card-desc{
  margin:0 0 12px;
  color:var(--muted);
}

.blog-card-link a{
  color:var(--brand);
  text-decoration:none;
  font-weight:600;
}

.blog-card-link a:hover{
  text-decoration:underline;
}

