.blog-masthead {
    padding: 4.5rem 0 4rem;
    background: #000000;
    color: #ffffff;
}

.blog-masthead .atlas-label {
    color: hsl(var(--brand-h) 60% 68%);
}

.blog-masthead h1 {
    max-width: 14ch;
    margin-top: 0.75rem;
    color: #ffffff;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.blog-masthead p:last-child {
    max-width: 60ch;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
}

.blog-index-section {
    padding: 3.5rem 0 2rem;
}

.blog-index-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.blog-index-heading h2 {
    margin-top: 0.35rem;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.blog-count {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.blog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.blog-card:hover {
    border-color: #acacac;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.blog-card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--surface-strong);
}

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

.blog-card:hover .blog-card-image {
    transform: scale(1.025);
}

.blog-card-body {
    padding: 1rem;
}

.blog-card h3 {
    margin-top: 0.45rem;
    font-size: 1.18rem;
    line-height: 1.25;
}

.blog-card h3 a:hover {
    color: var(--brand-c);
}

.blog-card-excerpt {
    margin: 0.75rem 0 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.55;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--brand-c);
    font-size: 0.88rem;
    font-weight: 700;
}

.blog-card-link:hover {
    text-decoration: underline;
}

.article-shell {
    width: min(820px, calc(100% - 2rem));
    margin: 0 auto;
}

.article-header {
    padding: 3.5rem 0 2rem;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

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

.article-header .atlas-label {
    margin-top: 2rem;
    color: var(--brand-c);
}

.article-header h1 {
    max-width: 18ch;
    margin-top: 0.6rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.article-lead {
    max-width: 68ch;
    margin: 1.2rem 0 0;
    color: var(--text-dark);
    font-size: 1.12rem;
    line-height: 1.7;
}

.article-hero {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
}

.article-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.article-content {
    padding: 3rem 0 1rem;
}

.article-content h2 {
    margin: 2.7rem 0 1rem;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    color: #000000;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p {
    margin: 1rem 0;
    color: var(--text-dark);
    font-size: 1.04rem;
    line-height: 1.8;
}

.article-content strong {
    color: var(--ink-deep);
}

.article-content a {
    color: var(--brand-c);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-inline-image {
    margin: 1.75rem 0;
}

.article-inline-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.article-footer-nav {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

@media (max-width: 1020px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .blog-masthead {
        padding: 3.25rem 0 3rem;
    }

    .blog-index-section {
        padding-top: 2.5rem;
    }

    .blog-index-heading {
        align-items: start;
        flex-direction: column;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-shell,
    .article-hero {
        width: min(100% - 1rem, 820px);
    }

    .article-header {
        padding: 2rem 0 1.5rem;
    }

    .article-header .atlas-label {
        margin-top: 1.5rem;
    }

    .article-content {
        padding-top: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-image {
        transition: none;
    }
}
