* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif; color: #1e293b; line-height: 1.7; background: #f8fafc; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

header { background: #0f172a; color: white; padding: 0 20px; position: sticky; top: 0; z-index: 100; }
nav { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { color: white; font-size: 18px; font-weight: 700; }
.logo:hover { text-decoration: none; }
.nav-links a { color: #94a3b8; margin-left: 20px; }
.nav-links a:hover { color: white; text-decoration: none; }
.cta-link { background: #2563eb !important; color: white !important; padding: 8px 16px; border-radius: 6px; }
.cta-link:hover { background: #1d4ed8 !important; }

main { max-width: 900px; margin: 0 auto; padding: 40px 20px; }

.hero { text-align: center; padding: 40px 0; }
.hero h1 { font-size: 36px; color: #0f172a; margin-bottom: 10px; }
.hero p { font-size: 18px; color: #64748b; max-width: 600px; margin: 0 auto; }

.posts { display: grid; gap: 30px; }
.post-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: box-shadow 0.2s; }
.post-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.post-image { width: 100%; height: 200px; object-fit: contain; background: #f1f5f9; padding: 20px; }
.post-content { padding: 24px; }
.post-content time { font-size: 14px; color: #94a3b8; }
.post-content h2 { margin: 8px 0 12px; font-size: 22px; }
.post-content h2 a { color: #0f172a; }
.post-content h2 a:hover { color: #2563eb; text-decoration: none; }
.post-content p { color: #64748b; margin-bottom: 12px; }
.read-more { font-weight: 600; font-size: 14px; }

article.post { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
article.post header { background: none; position: static; padding: 0; margin-bottom: 30px; }
article.post header h1 { font-size: 32px; color: #0f172a; line-height: 1.3; }
.meta { color: #94a3b8; margin-top: 8px; }
.tags { margin-top: 12px; }
.tag { display: inline-block; background: #dbeafe; color: #1d4ed8; padding: 2px 10px; border-radius: 12px; font-size: 13px; margin: 2px 4px 2px 0; }

.content { line-height: 1.8; }
.content h2 { color: #0f172a; margin: 40px 0 16px; font-size: 24px; border-bottom: 2px solid #e2e8f0; padding-bottom: 8px; }
.content h3 { color: #1e3a5f; margin: 30px 0 12px; font-size: 20px; }
.content p { margin-bottom: 16px; }
.content ul, .content ol { margin: 0 0 16px 24px; }
.content li { margin-bottom: 8px; }
.content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.content th, .content td { border: 1px solid #e2e8f0; padding: 10px 14px; text-align: left; }
.content th { background: #f1f5f9; font-weight: 600; }
.content blockquote { border-left: 4px solid #2563eb; padding: 12px 20px; background: #eff6ff; margin: 20px 0; border-radius: 0 8px 8px 0; }
.content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 0.9em; }
.content pre { background: #0f172a; color: #e2e8f0; padding: 20px; border-radius: 8px; overflow-x: auto; margin: 20px 0; }
.content pre code { background: none; padding: 0; color: inherit; }
.content figure { margin: 24px 0; text-align: center; }
.content figure img { max-width: 100%; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.content figcaption { font-size: 14px; color: #64748b; margin-top: 8px; font-style: italic; }
.content hr { border: none; border-top: 1px solid #e2e8f0; margin: 30px 0; }

.topics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.topic-tag { background: #dbeafe; color: #1d4ed8; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; }
.topic-tag:hover { background: #bfdbfe; text-decoration: none; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 40px 0; color: #64748b; }
.pagination a { font-weight: 600; }

.cta-section { background: #0f172a; color: white; padding: 40px; border-radius: 12px; margin-top: 40px; text-align: center; }
.cta-section h2 { margin-bottom: 8px; }
.cta-section p { color: #94a3b8; margin-bottom: 20px; }

.cta-box { background: #0f172a; color: white; padding: 30px; border-radius: 12px; margin-top: 40px; text-align: center; }
.cta-box h3 { margin-bottom: 8px; }
.cta-box p { color: #94a3b8; margin-bottom: 16px; }
.cta-button { display: inline-block; background: #2563eb; color: white; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 16px; }
.cta-button:hover { background: #1d4ed8; text-decoration: none; }

footer { text-align: center; padding: 30px 20px; color: #94a3b8; font-size: 14px; }
footer a { color: #64748b; }

@media (max-width: 600px) {
  article.post { padding: 20px; }
  article.post header h1 { font-size: 24px; }
  .hero h1 { font-size: 28px; }
}
