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

body { font-family: Georgia, 'Times New Roman', serif; color: #333; background: #fafafa; line-height: 1.7; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { background: #1a1a2e; color: #fff; padding: 2rem 0; margin-bottom: 3rem; }
.site-title { color: #fff; text-decoration: none; font-size: 1.8rem; font-weight: bold; }
.site-desc { color: #aaa; margin-top: .3rem; font-size: .95rem; }

/* Grid articles */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }

.post-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .2s; }
.post-card:hover { transform: translateY(-3px); }
.post-cover { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card-body { padding: 1.2rem; }
.post-category { background: #e8f4fd; color: #0077cc; font-size: .75rem; padding: .2rem .6rem; border-radius: 20px; font-family: sans-serif; }
.post-card-body h2 { margin: .6rem 0 .4rem; font-size: 1.15rem; }
.post-card-body h2 a { color: #1a1a2e; text-decoration: none; }
.post-card-body h2 a:hover { color: #0077cc; }
.post-excerpt { color: #666; font-size: .9rem; margin-bottom: .8rem; }
.post-meta { font-size: .8rem; color: #999; font-family: sans-serif; display: flex; gap: 1rem; margin-bottom: .8rem; }
.read-more { color: #0077cc; text-decoration: none; font-family: sans-serif; font-size: .9rem; }
.read-more:hover { text-decoration: underline; }

/* Article single */
.post-single { padding: 2rem 0 4rem; max-width: 780px; }
.post-cover-full { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; }
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2rem; line-height: 1.3; margin: .5rem 0; }
.post-content { font-size: 1.05rem; line-height: 1.8; }
.post-content h2, .post-content h3 { margin: 1.5rem 0 .5rem; }
.post-content p { margin-bottom: 1rem; }
.post-content img { max-width: 100%; border-radius: 4px; }
.post-content pre { background: #f4f4f4; padding: 1rem; border-radius: 4px; overflow-x: auto; }
.post-content code { background: #f4f4f4; padding: .1rem .3rem; border-radius: 3px; font-size: .9em; }
.post-tags { margin-top: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.tag { background: #f0f0f0; padding: .2rem .7rem; border-radius: 20px; font-size: .8rem; font-family: sans-serif; }
.back-link { display: inline-block; margin-top: 2rem; color: #0077cc; text-decoration: none; font-family: sans-serif; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin: 3rem 0; font-family: sans-serif; }
.pagination a { color: #0077cc; text-decoration: none; }

/* Footer */
.site-footer { background: #1a1a2e; color: #aaa; padding: 2rem 0; margin-top: 4rem; text-align: center; font-family: sans-serif; font-size: .9rem; }
.social-links { margin-top: .5rem; display: flex; justify-content: center; gap: 1rem; }
.social-links a { color: #aaa; text-decoration: none; }
.social-links a:hover { color: #fff; }

.no-posts { text-align: center; padding: 4rem; color: #999; font-family: sans-serif; }

@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-header h1 { font-size: 1.5rem; }
}
