/* =========================================================
   sysploy Blog – minimal overrides on top of /style.css
   ========================================================= */

/* Let the blog breathe a bit more for reading */
:root {
    --blog-max-width: 620px;
    --blog-body-size: 18px;
    --blog-line-height: 1.72;
}

/* Header on blog: slightly different logo link treatment if needed */
.blog-header .header-logo {
    /* keep same as main site */
}

/* Blog list page */
main > .blog-list,
.blog-list {
    max-width: var(--blog-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.5rem 4rem;
    width: 100%;
}

.blog-list h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: 2rem;
}

.blog-intro {
    max-width: var(--blog-max-width);
    margin-bottom: 2rem;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-list li {
    margin-bottom: 2.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.post-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-list h2 {
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.post-list .post-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.post-list .post-summary {
    color: var(--color-text-muted);
    margin: 0.25rem 0 0.5rem;
}

/* Individual post */
main > .blog-post,
.blog-post {
    max-width: var(--blog-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.5rem 4rem;
    width: 100%;
}

.blog-post h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.blog-post .post-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-post .post-meta .lang {
    background: rgba(99, 111, 255, 0.1);
    color: var(--color-primary);
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Reading typography */
.blog-post .content {
    font-size: var(--blog-body-size);
    line-height: var(--blog-line-height);
    color: var(--color-text);
    max-width: 100%; /* already constrained by parent */
}

.blog-post .content h2 {
    margin-top: 2.2em;
    margin-bottom: 0.6em;
    font-size: 1.35rem;
}

.blog-post .content h3 {
    margin-top: 1.8em;
    margin-bottom: 0.4em;
    font-size: 1.15rem;
}

.blog-post .content p {
    margin-bottom: 1.1em;
}

.blog-post .content ul,
.blog-post .content ol {
    margin: 1.1em 0;
    padding-left: 1.4em;
}

.blog-post .content li + li {
    margin-top: 0.35em;
}

.blog-post .content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-post .content a:hover {
    color: var(--color-primary);
}

/* Footer tweak inside blog context */
.blog-footer {
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.blog-footer a {
    color: inherit;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .blog-list,
    .blog-post {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .post-list h2 {
        font-size: 1.2rem;
    }
}

/* Keep the existing site header styles working inside the blog */
.site-header {
    /* already defined in main style.css */
}