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

/* ========== BASE ========== */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fb;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== HEADER ========== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-header .container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    gap: 16px;
    font-size: 0.95rem;
}

.site-nav a {
    color: #555;
}

.site-nav a:hover {
    color: #000;
}

/* ========== CONTENT ========== */
.site-content {
    padding: 24px 0;
}

.articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.article-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563eb;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: 32px;
}

.site-footer .container {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* ========== DESKTOP ENHANCEMENTS ========== */
@media (min-width: 768px) {
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* =========================
   BLOG POST LAYOUT
========================= */

.blog-post {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* =========================
   HEADER
========================= */

.post-header {
    margin-bottom: 24px;
}

.post-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 700;
}

.post-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

/* =========================
   CONTENT TYPOGRAPHY
========================= */

.post-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #1f2937;
}

/* paragraphs */
.post-content p {
    margin-bottom: 1.2em;
}

/* headings */
.post-content h2 {
    font-size: 1.3rem;
    margin: 2em 0 0.6em;
    font-weight: 700;
}

.post-content h3 {
    font-size: 1.1rem;
    margin: 1.6em 0 0.5em;
    font-weight: 600;
}

/* lists */
.post-content ul,
.post-content ol {
    padding-left: 1.4em;
    margin-bottom: 1.2em;
}

.post-content li {
    margin-bottom: 0.4em;
}

/* links */
.post-content a {
    color: #2563eb;
    text-decoration: underline;
}

.post-content a:hover {
    opacity: 0.8;
}

/* =========================
   BLOCKQUOTE
========================= */

.post-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
    color: #374151;
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 6px;
}

/* =========================
   CODE BLOCKS
========================= */

.post-content pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5em;
    font-size: 0.9rem;
}

.post-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* =========================
   IMAGES
========================= */

.post-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5em 0;
}

/* captions (optional) */
.post-content figure {
    margin: 1.5em 0;
}

.post-content figcaption {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    margin-top: 6px;
}

/* =========================
   DESKTOP IMPROVEMENTS
========================= */

@media (min-width: 768px) {
    .blog-post {
        padding: 32px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1.05rem;
    }
}

.related-articles {
    margin-bottom: 40px;
}

.related-articles h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.related-articles a {
    font-size: 0.95rem;
    color: #1f2937;
}

.related-articles a:hover {
    color: #2563eb;
}