.blog-page {
    min-height: 100vh;
}

.blog-hero,
.blog-archive,
.article-shell {
    width: min(100%, var(--container-max));
    margin: 0 auto;
    padding-right: clamp(24px, 5vw, 72px);
    padding-left: clamp(24px, 5vw, 72px);
}

.blog-hero {
    min-height: 58svh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 72px;
}

.blog-hero .section-label {
    width: 100%;
}

.blog-eyebrow {
    margin: 0 0 1rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
}

.blog-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--text);
    font-size: 68px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.04;
}

.blog-intro {
    max-width: 650px;
    margin: 1.5rem 0 0;
    color: var(--text2);
    font-size: 1rem;
    line-height: 1.8;
}

.blog-archive {
    padding-top: 56px;
    padding-bottom: 112px;
    background: var(--section-band);
    box-shadow: 0 0 0 100vmax var(--section-band);
    clip-path: inset(0 -100vmax);
}

.blog-archive-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border2);
}

.blog-archive-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.blog-archive-heading span {
    color: var(--text3);
    font-family: var(--font-mono);
    font-size: 10px;
}

.blog-list-item {
    border-bottom: 1px solid var(--border);
}

.blog-list-item a {
    min-height: 190px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 32px;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem 0;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, padding 0.2s ease;
}

.blog-list-item a:hover,
.blog-list-item a:focus-visible {
    background: var(--accent-dim);
    padding-right: 1rem;
    padding-left: 1rem;
}

.blog-list-index,
.blog-list-arrow {
    color: var(--text3);
    font-family: var(--font-mono);
    font-size: 11px;
}

.blog-list-copy h3 {
    margin: 0.6rem 0 0.45rem;
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0;
}

.blog-list-copy > p {
    max-width: 740px;
    margin: 0;
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.7;
}

.blog-card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.8rem;
}

.blog-card-topics span {
    color: var(--text3);
    font-family: var(--font-mono);
    font-size: 10px;
}

.blog-list-arrow {
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.blog-list-item a:hover .blog-list-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.article-shell {
    padding-top: 88px;
    padding-bottom: 112px;
}

.article-header {
    max-width: 900px;
    padding-bottom: 4rem;
}

.article-back {
    display: inline-block;
    margin-bottom: 3.5rem;
    color: var(--text3);
    font-family: var(--font-mono);
    font-size: 11px;
    text-decoration: none;
}

.article-back:hover {
    color: var(--accent);
}

.article-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
    color: var(--text3);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
}

.article-kicker span:first-child {
    color: var(--accent);
}

.article-header h1 {
    margin: 0;
    color: var(--text);
    font-size: 64px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.05;
}

.article-deck {
    max-width: 720px;
    margin: 1.5rem 0 0;
    color: var(--text2);
    font-size: 1.1rem;
    line-height: 1.75;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1.5rem;
}

.article-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 720px);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: start;
    padding-top: 4rem;
    border-top: 1px solid var(--border2);
}

.article-aside {
    position: sticky;
    top: 96px;
}

.article-aside p {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
}

.article-aside span {
    display: block;
    color: var(--text3);
    font-size: 0.75rem;
    line-height: 1.65;
}

.article-body {
    min-width: 0;
    color: var(--text2);
    font-size: 1rem;
    line-height: 1.85;
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body h2 {
    margin: 3.2rem 0 1rem;
    color: var(--text);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
}

.article-body h3 {
    margin: 2rem 0 0.75rem;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
}

.article-body p,
.article-body ul,
.article-body ol {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.article-body li + li {
    margin-top: 0.45rem;
}

.article-body a {
    color: var(--accent);
    text-decoration-color: var(--accent-brd);
    text-underline-offset: 3px;
}

.article-body blockquote {
    margin: 2rem 0;
    border-left: 2px solid var(--accent);
    background: var(--accent-dim);
    padding: 1rem 1.25rem;
    color: var(--text);
}

.article-body blockquote p {
    margin: 0;
}

.article-body pre {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border2);
    border-radius: var(--r);
    background: var(--bg2);
    padding: 1.1rem 1.25rem;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
}

.article-body code {
    font-family: var(--font-mono);
}

.article-body :not(pre) > code {
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--bg3);
    padding: 1px 5px;
    color: var(--text);
    font-size: 0.88em;
}

.article-body table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.article-body th,
.article-body td {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.article-body th {
    color: var(--text);
    font-weight: 500;
}

.article-footer {
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border2);
    padding-top: 2rem;
}

.article-footer p {
    margin: 0;
    color: var(--text2);
    font-size: 0.9rem;
}

@media screen and (max-width: 900px) {
    .blog-hero h1 {
        font-size: 52px;
    }

    .article-header h1 {
        font-size: 50px;
    }
}

@media screen and (max-width: 768px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-aside {
        position: static;
        max-width: 420px;
    }
}

@media screen and (max-width: 480px) {
    .blog-hero {
        min-height: auto;
        padding-top: 72px;
    }

    .blog-hero h1,
    .article-header h1 {
        font-size: 38px;
    }

    .blog-list-item a {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .blog-list-arrow {
        display: none;
    }

    .article-shell {
        padding-top: 64px;
    }

    .article-header {
        padding-bottom: 3rem;
    }

    .article-back {
        margin-bottom: 2.5rem;
    }

    .article-layout {
        padding-top: 3rem;
    }

    .article-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
