.ba-article-page {
    background: #fbf8f1;
    color: #17141b;
}

.ba-article-main {
    padding: 148px 24px 96px;
}

.ba-article-shell {
    width: min(840px, 100%);
    margin: 0 auto;
}

.ba-article-back,
.ba-article-eyebrow {
    font-family: "Outfit", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ba-article-back {
    color: #7b42ca;
}

.ba-article-eyebrow {
    margin: 48px 0 16px;
    color: #7b42ca;
}

.ba-article-shell h1 {
    max-width: 760px;
    margin: 0;
    font-family: "Noto Sans SC", Arial, sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.08;
}

.ba-article-subtitle {
    margin: 22px 0 0;
    color: #69636b;
    font-size: 20px;
    line-height: 1.7;
}

.ba-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 28px;
    color: #69636b;
    font-family: "Outfit", Arial, sans-serif;
    font-size: 14px;
}

.ba-article-meta span + span::before {
    content: "•";
    margin-right: 18px;
    color: #9e98a0;
}

.ba-article-rule {
    height: 1px;
    margin: 40px 0;
    background: #cbc5bd;
}

.ba-article-content .editormd-html-preview {
    padding: 0;
    color: #312d34;
    background: transparent;
    font-family: "Noto Sans SC", Georgia, serif;
    font-size: 17px;
    line-height: 1.9;
}

.ba-article-content .editormd-html-preview h1,
.ba-article-content .editormd-html-preview h2,
.ba-article-content .editormd-html-preview h3,
.ba-article-content .editormd-html-preview h4 {
    margin-top: 2em;
    color: #17141b;
    font-family: "Noto Sans SC", Arial, sans-serif;
}

.ba-article-content .editormd-html-preview p,
.ba-article-content .editormd-html-preview ul,
.ba-article-content .editormd-html-preview ol,
.ba-article-content .editormd-html-preview blockquote {
    margin-bottom: 1.35em;
}

.ba-article-content .editormd-html-preview blockquote {
    padding: 4px 0 4px 24px;
    border-left: 3px solid #7b42ca;
    color: #665e68;
}

.ba-article-content .editormd-html-preview pre {
    padding: 20px;
    border-radius: 4px;
    background: #17141b;
}

.ba-article-content .editormd-html-preview img {
    max-width: 100%;
    height: auto;
}

.ba-article-empty {
    margin: 0;
    color: #69636b;
}

/* Blog List Styles */
.ba-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin: 60px 0 40px;
}

.ba-blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ba-blog-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.ba-blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ba-blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0ebe5;
}

.ba-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ba-blog-card:hover .ba-blog-card-image img {
    transform: scale(1.05);
}

.ba-blog-card-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.ba-blog-card-content h3 {
    margin: 0 0 12px;
    font-family: "Noto Sans SC", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #17141b;
}

.ba-blog-card-summary {
    flex: 1;
    margin: 0 0 16px;
    color: #69636b;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ba-blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #9e98a0;
    font-family: "Outfit", Arial, sans-serif;
    font-size: 12px;
    margin-top: auto;
}

.ba-blog-card-meta span {
    display: inline-block;
}

.ba-blog-card-meta span + span::before {
    content: "•";
    margin-right: 12px;
    color: #cbc5bd;
}

/* Empty State */
.ba-blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #69636b;
    font-size: 16px;
}

/* Pagination */
.ba-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 60px 0 40px;
    flex-wrap: wrap;
}

.ba-blog-pagination-link {
    color: #7b42ca;
    text-decoration: none;
    font-size: 14px;
    font-family: "Outfit", Arial, sans-serif;
    transition: color 0.2s ease;
}

.ba-blog-pagination-link:hover {
    color: #5a2e96;
}

.ba-blog-pagination-info {
    color: #69636b;
    font-size: 14px;
}

/* Blog Footer */
.ba-blog-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #cbc5bd;
}

.ba-blog-substack-link {
    color: #7b42ca;
    text-decoration: none;
    font-size: 12px;
    font-family: "Outfit", Arial, sans-serif;
    letter-spacing: .05em;
    transition: color 0.2s ease;
}

.ba-blog-substack-link:hover {
    color: #5a2e96;
}

@media (max-width: 640px) {
    .ba-article-main { padding: 116px 20px 64px; }
    .ba-article-eyebrow { margin-top: 36px; }
    .ba-article-content .editormd-html-preview { font-size: 16px; }

    .ba-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ba-blog-card-image {
        height: 160px;
    }

    .ba-blog-pagination {
        gap: 12px;
    }
}

