:root { --primary: #6366f1; --primary-dark: #4f46e5; --primary-light: #a5b4fc; --bg: #0f0f13; --bg-card: #1a1a23; --bg-card-hover: #222230; --text: #f1f1f4; --text-muted: #9ca3af; --border: #2d2d3a; --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.8; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }
body > nav { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1rem 2rem; backdrop-filter: blur(20px); background: rgba(15,15,19,0.8); border-bottom: 1px solid var(--border); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
footer { padding: 3rem 2rem; border-top: 1px solid var(--border); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-content p { color: var(--text-muted); font-size: 0.85rem; }

/* Blog index */
.blog-container { max-width: 720px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.blog-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.blog-description { color: var(--text-muted); margin-bottom: 3rem; font-size: 1.1rem; }
.post-card { border-bottom: 1px solid var(--border); padding: 2rem 0; }
.post-card:last-child { border-bottom: none; }
.post-card-tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.7rem; font-weight: 500; background: rgba(99,102,241,0.1); color: var(--primary-light); border: 1px solid rgba(99,102,241,0.2); margin-bottom: 0.75rem; }
.post-card h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--primary-light); text-decoration: none; }
.post-card-excerpt { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.75rem; }
.post-card-meta { color: var(--text-muted); font-size: 0.8rem; }

/* Article/Page */
.gh-content { max-width: 720px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.gh-content h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem; }
.gh-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.gh-content h3 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.gh-content p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }
.gh-content strong { color: var(--text); }
.gh-content ul, .gh-content ol { color: var(--text-muted); margin-bottom: 1.5rem; padding-left: 1.5rem; font-size: 1.05rem; }
.gh-content li { margin-bottom: 0.5rem; }
.gh-content blockquote { border-left: 3px solid var(--primary); padding: 1rem 1.5rem; margin: 1.5rem 0; background: rgba(99,102,241,0.06); border-radius: 0 8px 8px 0; }
.gh-content blockquote p { margin-bottom: 0; }
.gh-content table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.gh-content th, .gh-content td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.gh-content th { color: var(--text); font-weight: 600; background: rgba(99,102,241,0.08); }
.gh-content td { color: var(--text-muted); }
.article-date { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; display: block; }
.article-tag { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 500; background: rgba(99,102,241,0.1); color: var(--primary-light); border: 1px solid rgba(99,102,241,0.2); margin-bottom: 1rem; margin-right: 0.5rem; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .gh-content h1, .blog-title { font-size: 1.8rem; }
}

/* Ghost Koenig editor required classes */
.kg-width-wide { max-width: 1040px; margin-left: auto; margin-right: auto; }
.kg-width-full { max-width: none; margin-left: -2rem; margin-right: -2rem; }
.kg-card { margin-bottom: 1.5rem; }
.kg-image-card img { max-width: 100%; height: auto; border-radius: 8px; }
.kg-bookmark-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.kg-bookmark-container { display: flex; text-decoration: none; color: var(--text); }
.kg-bookmark-content { padding: 1rem; flex-grow: 1; }
.kg-bookmark-title { font-weight: 600; margin-bottom: 0.5rem; }
.kg-bookmark-description { color: var(--text-muted); font-size: 0.9rem; }
.kg-bookmark-metadata { display: flex; align-items: center; margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.kg-bookmark-thumbnail { width: 200px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-gallery-card { margin-bottom: 1.5rem; }
.kg-gallery-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.kg-gallery-image img { max-width: 100%; height: auto; }
.kg-embed-card { margin-bottom: 1.5rem; }
.kg-callout-card { padding: 1.25rem 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; display: flex; gap: 0.75rem; }
.kg-callout-emoji { font-size: 1.2rem; }
.kg-callout-text { flex: 1; }
.kg-toggle-card { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 1.5rem; }
.kg-toggle-heading { padding: 1rem; cursor: pointer; font-weight: 600; }
.kg-toggle-content { padding: 0 1rem 1rem; }
.kg-button-card { text-align: center; margin-bottom: 1.5rem; }
.kg-button-card a { display: inline-block; padding: 0.7rem 1.5rem; border-radius: 8px; font-weight: 600; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; text-decoration: none; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 2rem 0; color: var(--text-muted); font-size: 0.9rem; }
.pagination a { color: var(--primary-light); text-decoration: none; padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 6px; }
.pagination a:hover { background: var(--bg-card); }

/* Fix nav z-index above pagination */


/* Override Ghost pagination nav to not inherit main nav styles */
nav.pagination { position: static; padding: 2rem 0; backdrop-filter: none; background: transparent; border-bottom: none; text-align: center; }
nav.pagination .page-number { color: var(--text-muted); font-size: 0.85rem; }
