/* Blog Article Typography Improvements */

/* Article Content Area */
.blog-article-content {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
    color: #000000 !important;
    max-width: 65ch; /* Optimal reading width */
}

.blog-article-content * {
    color: #000000 !important;
}

.blog-article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #000000 !important;
}

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4,
.blog-article-content h5,
.blog-article-content h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-weight: 700 !important;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000000 !important;
}

.blog-article-content h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.blog-article-content h2 {
    font-size: 1.875rem;
}

.blog-article-content h3 {
    font-size: 1.5rem;
}

.blog-article-content h4 {
    font-size: 1.25rem;
}

.blog-article-content strong,
.blog-article-content b {
    font-weight: 700 !important;
    color: #000000 !important;
}

.blog-article-content em,
.blog-article-content i {
    font-style: italic;
    color: #000000 !important;
}

.blog-article-content a {
    color: #2563eb !important;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    text-underline-offset: 2px;
    transition: all 0.2s;
}

.blog-article-content a:hover {
    color: #1d4ed8 !important;
    text-decoration-color: #2563eb;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: #000000 !important;
}

.blog-article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #000000 !important;
}

.blog-article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #000000 !important;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.blog-article-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

.blog-article-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.blog-article-content th,
.blog-article-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.blog-article-content th {
    background: #f9fafb;
    font-weight: 600;
}

.blog-article-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 3rem 0;
}

/* Blog List Typography */
.blog-list-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #000000;
}

.blog-list-excerpt {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .blog-article-content p {
        font-size: 1rem;
    }
    
    .blog-article-content h1 {
        font-size: 1.875rem;
    }
    
    .blog-article-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-article-content h3 {
        font-size: 1.25rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .blog-article-content {
        color: #e5e7eb;
    }
    
    .blog-article-content p {
        color: #d1d5db;
    }
    
    .blog-article-content h1,
    .blog-article-content h2,
    .blog-article-content h3,
    .blog-article-content h4,
    .blog-article-content h5,
    .blog-article-content h6 {
        color: #f9fafb;
    }
}
