:root {
    --bg: #0b0e14;
    --bg-alt: #11151f;
    --bg-card: #151a26;
    --bg-hover: #1b2130;
    --border: #232a3b;
    --text: #e2e8f0;
    --text-muted: #8b95a9;
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --gradient: linear-gradient(135deg, #7c5cff, #22d3ee);
    --danger: #f87171;
    --success: #34d399;
    --radius: 14px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--gradient);
    margin-right: 8px;
}

.nav-links { display: flex; gap: 24px; }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
    padding: 88px 0 64px;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% -10%, rgba(124, 92, 255, 0.18), transparent),
        radial-gradient(ellipse 40% 40% at 80% 0%, rgba(34, 211, 238, 0.1), transparent);
}

.hero-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub { color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Post grid ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 16px 0 80px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--bg-hover);
}

.post-card time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

.post-card-title a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.post-card-title a:hover { color: var(--accent-2); }

.post-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.read-more {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover { color: var(--accent); }

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin-bottom: 80px;
}

.empty-icon { font-size: 2.5rem; margin-bottom: 12px; }

.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); }

/* ---------- Article page ---------- */
.article {
    padding: 48px 0 80px;
}

.article-header { margin-bottom: 40px; }

.article-header time {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 10px 0 8px;
    line-height: 1.2;
}

.article-author { color: var(--text-muted); }

.article-body {
    font-size: 1.05rem;
}

.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body h5, .article-body h6 {
    margin: 40px 0 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.article-body h1 { font-size: 1.8rem; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body h4 { font-size: 1.1rem; }

.article-body p { margin-bottom: 20px; }

.article-body a {
    color: var(--accent-2);
    text-decoration: none;
    border-bottom: 1px solid rgba(34, 211, 238, 0.3);
}

.article-body a:hover { border-color: var(--accent-2); }

.article-body strong { color: #fff; font-weight: 700; }

.article-body blockquote {
    border-left: 3px solid var(--accent);
    background: var(--bg-alt);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-body pre {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-body pre code {
    font-family: var(--mono);
    font-size: 0.88rem;
    line-height: 1.6;
    color: #c9d4e8;
    background: none;
    padding: 0;
}

.article-body code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 6px;
    color: #fbbf24;
}

.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
}

.article-body li { margin-bottom: 8px; }

.article-body img {
    max-width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 24px 0;
}

.article-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

.article-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.article-footer a:hover { color: var(--accent-2); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

.site-footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-muted { margin-top: 4px; font-size: 0.8rem !important; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .hero { padding: 64px 0 48px; }
    .nav-links { gap: 16px; }
}

