.blog-page {
    --blog-panel: rgba(20, 22, 26, 0.92);
    --blog-soft: rgba(253, 244, 178, 0.08);
    padding: 72px 0 24px;
}

.blog-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.blog-kicker,
.article-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-kicker::before,
.article-eyebrow::before {
    content: "";
    width: 36px;
    height: 2px;
    background: var(--outline);
}

.blog-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 42px;
    align-items: center;
    min-height: 62vh;
    padding-bottom: 56px;
}

.blog-hero h1,
.article-header h1 {
    font-family: "Brush", "MonaspaceKrypton", monospace;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.blog-hero-copy,
.article-deck {
    margin-top: 22px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 680px;
}

.blog-hero-actions,
.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.blog-image-frame,
.article-figure,
.video-embed-blog {
    border: 2px solid var(--outline);
    background: #0c0c0c;
    box-shadow: 10px 10px 0 var(--slice-line);
}

.blog-image-frame {
    transform: rotate(1deg);
}

.blog-image-frame img,
.article-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.series-manifesto {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 30px;
    margin: 18px 0 70px;
    padding: 28px;
    border: 2px solid var(--outline);
    background: linear-gradient(135deg, var(--blog-soft), rgba(20, 22, 26, 0.96));
    box-shadow: 8px 8px 0 var(--slice-line);
}

.series-manifesto h2,
.blog-section-title,
.article-prose h2,
.next-in-series h2 {
    font-family: "Brush", "MonaspaceKrypton", monospace;
    letter-spacing: 0.06em;
    line-height: 1.08;
    text-transform: uppercase;
}

.series-manifesto h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.series-manifesto p {
    color: var(--muted);
}

.blog-section-title {
    margin-bottom: 24px;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.post-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    overflow: hidden;
    border: 2px solid var(--outline);
    background: var(--blog-panel);
    box-shadow: 8px 8px 0 var(--slice-line);
}

.post-card-image {
    min-height: 320px;
    border-right: 2px solid var(--outline);
}

.post-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.post-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 34px;
}

.post-card-meta,
.article-meta {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-header .article-actions {
    justify-content: center;
}

.post-card h2 {
    margin: 14px 0;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.post-card p {
    color: var(--muted);
}

.post-card .btn {
    margin-top: 24px;
}

.blog-archive-section {
    margin-top: 64px;
}

.blog-post-list {
    display: grid;
    gap: 32px;
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.coming-soon-card {
    min-height: 190px;
    padding: 22px;
    border: 2px dashed rgba(253, 244, 178, 0.45);
    background: rgba(20, 22, 26, 0.65);
}

.coming-soon-card span {
    display: block;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.coming-soon-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    text-transform: uppercase;
}

.article-header {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 36px;
    text-align: center;
}

.article-header h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
}

.article-deck {
    margin-right: auto;
    margin-left: auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 22px;
}

.article-hero {
    max-width: 1120px;
    margin: 0 auto 54px;
}

.article-hero .article-figure {
    margin: 0;
}

.article-figure figcaption {
    padding: 10px 14px;
    border-top: 2px solid var(--outline);
    color: var(--muted);
    font-size: 0.82rem;
}

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 760px) 250px;
    gap: 52px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.article-prose {
    min-width: 0;
    font-family: "MonaspaceKrypton", "Courier New", monospace;
    font-size: 1.03rem;
    line-height: 1.82;
}

.article-prose > p,
.article-prose > ul,
.article-prose > ol {
    margin: 0 0 24px;
}

.article-prose code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-prose h2 {
    margin: 62px 0 20px;
    font-size: clamp(2rem, 5vw, 3rem);
    scroll-margin-top: 24px;
}

.article-prose h3 {
    margin: 34px 0 14px;
    font-size: 1.2rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.article-prose a,
.article-toc a,
.series-link {
    color: var(--text);
    text-decoration-color: rgba(253, 244, 178, 0.55);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.article-prose a:hover,
.article-toc a:hover,
.series-link:hover {
    background: var(--text);
    color: var(--bg);
    text-decoration-color: transparent;
}

.article-lede {
    padding-left: 20px;
    border-left: 5px solid var(--outline);
    font-size: 1.2rem;
    font-weight: 700;
}

.article-toc {
    position: sticky;
    top: 24px;
    padding: 20px;
    border: 2px solid var(--outline);
    background: rgba(20, 22, 26, 0.95);
    box-shadow: 6px 6px 0 var(--slice-line);
}

.article-toc strong {
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.article-toc ol {
    display: grid;
    gap: 10px;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.86rem;
}

.article-toc a {
    color: var(--muted);
}

.article-prose .article-figure {
    margin: 34px 0 40px;
}

.article-callout,
.field-note {
    margin: 34px 0;
    padding: 22px;
    border: 2px solid var(--outline);
    background: var(--blog-soft);
    box-shadow: 6px 6px 0 var(--slice-line);
}

.article-callout strong,
.field-note strong {
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-start {
    counter-reset: quick-start;
    display: grid;
    gap: 16px;
    margin: 28px 0 34px;
    padding: 0;
    list-style: none;
}

.quick-start li {
    counter-increment: quick-start;
    position: relative;
    min-height: 58px;
    padding: 14px 14px 14px 72px;
    border: 2px solid rgba(253, 244, 178, 0.35);
    background: rgba(20, 22, 26, 0.72);
}

.quick-start li::before {
    content: counter(quick-start, decimal-leading-zero);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: grid;
    width: 54px;
    place-items: center;
    border-right: 2px solid rgba(253, 244, 178, 0.35);
    font-weight: 700;
}

.effect-grid,
.related-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0 34px;
}

.effect-card,
.related-docs-grid a {
    padding: 18px;
    border: 2px solid rgba(253, 244, 178, 0.35);
    background: rgba(20, 22, 26, 0.72);
}

.effect-card strong {
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.effect-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.related-docs-grid a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.video-embed-blog {
    position: relative;
    width: 100%;
    margin: 34px 0 42px;
    padding-top: 56.25%;
}

.video-embed-blog iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-cta {
    margin: 54px 0 36px;
    padding: 30px;
    border: 2px solid var(--outline);
    background: linear-gradient(135deg, rgba(253, 244, 178, 0.16), rgba(20, 22, 26, 0.96));
    box-shadow: 9px 9px 0 var(--slice-line);
    text-align: center;
}

.article-cta h2 {
    margin-top: 0;
}

.article-cta p {
    color: var(--muted);
}

.article-cta .article-actions {
    justify-content: center;
}

.article-cta .btn {
    color: var(--bg);
    text-decoration: none;
}

.article-cta .btn-secondary {
    color: var(--text);
}

.next-in-series {
    max-width: 1080px;
    margin: 72px auto 0;
    padding-top: 42px;
    border-top: 2px dashed rgba(253, 244, 178, 0.45);
}

.next-in-series h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.next-in-series p {
    max-width: 740px;
    margin-top: 14px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .blog-page {
        padding-top: 36px;
    }

    .blog-hero,
    .series-manifesto,
    .post-card,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero {
        min-height: auto;
    }

    .blog-image-frame {
        transform: none;
    }

    .post-card-image {
        min-height: 260px;
        border-right: 0;
        border-bottom: 2px solid var(--outline);
    }

    .article-grid {
        gap: 30px;
    }

    .article-toc {
        position: static;
        grid-row: 1;
        overflow: hidden;
        padding: 16px;
        box-shadow: 4px 4px 0 var(--slice-line);
    }

    .article-toc strong {
        margin-bottom: 10px;
    }

    .article-toc ol {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 0 8px;
        list-style: none;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .article-toc li {
        flex: 0 0 auto;
    }

    .article-toc a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        padding: 8px 11px;
        border: 1px solid rgba(253, 244, 178, 0.35);
        text-decoration: none;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .coming-soon-grid,
    .effect-grid,
    .related-docs-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero h1,
    .article-header h1 {
        overflow-wrap: break-word;
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1.02;
    }

    .article-header {
        padding-bottom: 26px;
    }

    .article-deck {
        margin-top: 16px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .article-meta {
        gap: 6px 12px;
        margin-top: 16px;
        font-size: 0.76rem;
    }

    .article-header .article-actions {
        margin-top: 20px;
    }

    .article-hero {
        margin-bottom: 32px;
    }

    .article-figure,
    .video-embed-blog {
        box-shadow: 5px 5px 0 var(--slice-line);
    }

    .post-card-body,
    .series-manifesto,
    .article-cta {
        padding: 22px;
    }

    .article-prose {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .article-prose h2 {
        margin: 44px 0 16px;
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .article-prose h3 {
        margin-top: 28px;
    }

    .article-lede {
        padding-left: 14px;
        border-left-width: 4px;
        font-size: 1.05rem;
    }

    .article-callout,
    .field-note {
        margin: 26px 0;
        padding: 16px;
        box-shadow: 4px 4px 0 var(--slice-line);
    }

    .quick-start li {
        padding: 12px 12px 12px 62px;
    }

    .quick-start li::before {
        width: 46px;
    }

    .article-cta {
        margin-top: 42px;
        box-shadow: 5px 5px 0 var(--slice-line);
    }

    .next-in-series {
        margin-top: 52px;
        padding-top: 32px;
    }

    .next-in-series h2 {
        overflow-wrap: break-word;
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
