:root{
  --bg:#ffffff;
  --surface:#f8fafc;
  --muted:#64748b;
  --text:#0f172a;
  --accent:#1e40af;
  --accent-light:#3b82f6;
  --accent-dark:#1e3a8a;
  --border:#e2e8f0;
  --max-width:1100px;
  --radius:8px;
}
*{box-sizing:border-box}
body{font-family:'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;line-height:1.6;color:var(--text);margin:0;background:var(--bg)}
.container{max-width:var(--max-width);margin:0 auto;padding:20px}
.site-header{border-bottom:1px solid var(--border);background:linear-gradient(135deg,#fff 0%, var(--surface) 100%);box-shadow:0 1px 3px rgba(0,0,0,0.05)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding:16px 20px}
.brand{font-weight:700;color:var(--accent);text-decoration:none;font-size:1.25rem;display:flex;align-items:center;gap:12px}
.brand img{height:64px;width:auto}
.site-nav a{margin-left:20px;color:var(--text);text-decoration:none;font-weight:500;transition:color 0.2s}
.site-nav a:hover{color:var(--accent)}
.main{padding:40px 20px}
.hero{padding:40px 0}
.hero h1{font-size:2rem;margin:0 0 8px}
.hero p{color:var(--muted);margin:0 0 16px}
.cta{display:flex;gap:12px;margin-top:20px}
.btn{display:inline-block;padding:12px 20px;background:var(--accent);color:#fff;border-radius:var(--radius);text-decoration:none;font-weight:600;transition:all 0.2s;border:none;cursor:pointer}
.btn:hover{background:var(--accent-dark);transform:translateY(-2px);box-shadow:0 4px 12px rgba(30, 64, 175, 0.3)}
.btn-outline{background:transparent;border:2px solid var(--accent);color:var(--accent);margin-left:0}
.btn-outline:hover{background:var(--surface)}
.latest{margin-top:48px;padding-top:40px;border-top:1px solid var(--border)}
.latest h2{font-size:1.5rem;margin-bottom:24px}
.posts{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
.posts li{background:var(--surface);padding:20px;border-radius:var(--radius);transition:all 0.2s;border:1px solid var(--border)}
.posts li:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,0.1)}
.posts a{font-weight:600;color:var(--accent);text-decoration:none}
.posts a:hover{color:var(--accent-dark)}
.excerpt{color:var(--muted);margin:8px 0 0;font-size:0.95rem}
.site-footer{border-top:1px solid var(--border);padding:24px 0;text-align:center;color:var(--muted);margin-top:48px;background:var(--surface)}
.footer-content{display:flex;flex-direction:column;gap:16px;align-items:center}
.social-links{display:flex;gap:16px;justify-content:center}
.social-links a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:var(--accent);color:#fff;border-radius:50%;text-decoration:none;transition:all 0.2s;font-size:1.2rem}
.social-links a:hover{background:var(--accent-dark);transform:translateY(-3px);box-shadow:0 4px 12px rgba(30, 64, 175, 0.3)}

/* Article layout */
.article{max-width:780px;margin:0 auto;padding:32px}
.article h1{font-size:2rem;margin:0 0 8px;color:var(--text)}
.article h2{font-size:1.5rem;margin:32px 0 16px;color:var(--text);border-left:4px solid var(--accent-light);padding-left:12px}
.article h3{font-size:1.2rem;margin:24px 0 12px}
.article .meta{color:var(--muted);font-size:0.9rem;margin-bottom:24px;display:flex;gap:16px;flex-wrap:wrap}
.article .meta-item{display:flex;align-items:center;gap:4px}
.article .meta-item span{color:var(--text);font-weight:600}
.article p{margin:16px 0;line-height:1.8}
.article ul, .article ol{margin:16px 0;padding-left:24px}
.article li{margin:8px 0}
.article code{background:var(--surface);padding:2px 6px;border-radius:4px;font-family:'Courier New', monospace;font-size:0.9em}
.article blockquote{border-left:4px solid var(--accent-light);padding-left:16px;margin:16px 0;color:var(--muted);font-style:italic}
.article img{max-width:100%;height:auto;border-radius:var(--radius);margin:24px 0;box-shadow:0 2px 8px rgba(0,0,0,0.1)}
.article .tag{display:inline-block;background:var(--accent-light);color:#fff;padding:4px 12px;border-radius:20px;font-size:0.85rem;margin-right:8px;margin-bottom:8px}
.article .reading-time{color:var(--muted);font-size:0.9rem}
.article-footer{margin-top:40px;padding-top:24px;border-top:2px solid var(--border)}
.article-nav{display:flex;gap:16px;margin-top:24px}
.article-nav a{flex:1;padding:12px;background:var(--surface);border-radius:var(--radius);text-align:center;color:var(--accent);text-decoration:none;font-weight:600;transition:all 0.2s}
.article-nav a:hover{background:var(--accent-light);color:#fff}

@media(max-width:768px){
  .site-header .container{flex-direction:column;gap:12px;padding:12px 20px}
  .site-nav{display:flex;gap:12px;flex-wrap:wrap}
  .site-nav a{margin-left:0}
  .article{padding:16px}
  .hero h1{font-size:1.5rem}
  .posts{grid-template-columns:1fr}
  .article h2{font-size:1.3rem}
}

@media(max-width:600px){
  .cta{flex-direction:column}
  .btn{width:100%}
  .btn-outline{margin-left:0}
}
