body:has(.blog-page) .site-shell,
body:has(.article-page) .site-shell {
    --bg: #f4f5f2;
    --bg-soft: #eef0ec;
    --panel: rgba(17, 20, 20, 0.04);
    --panel-strong: rgba(17, 20, 20, 0.08);
    --text: #111414;
    --muted: #68706b;
    --line: rgba(17, 20, 20, 0.14);
    --line-soft: rgba(17, 20, 20, 0.1);
    --green: #657d35;
    background: #f4f5f2;
    color: #111414;
}

body:has(.blog-page) .site-header,
body:has(.blog-page) .site-header.is-scrolled,
body:has(.article-page) .site-header,
body:has(.article-page) .site-header.is-scrolled {
    border-color: rgba(17, 20, 20, 0.1);
    background: rgba(255, 255, 255, 0.97);
    color: #111414;
    backdrop-filter: blur(18px);
}

body:has(.blog-page) .site-nav,
body:has(.article-page) .site-nav {
    color: rgba(17, 20, 20, 0.78);
}

body:has(.blog-page) .site-nav a:hover,
body:has(.article-page) .site-nav a:hover {
    color: #111414;
}

body:has(.blog-page) .nav-toggle span,
body:has(.article-page) .nav-toggle span {
    background: #111414;
}

body:has(.blog-page) .site-nav.is-open,
body:has(.article-page) .site-nav.is-open {
    background: rgba(255, 255, 255, 0.98);
    color: #111414;
}

body:has(.blog-page) .mega-column h2,
body:has(.blog-page) .mega-column a,
body:has(.article-page) .mega-column h2,
body:has(.article-page) .mega-column a {
    color: #111414;
}

body:has(.blog-page) .footer,
body:has(.article-page) .footer {
    width: 100%;
    margin: 0;
    padding: 0 max(24px, calc((100vw - 1280px) / 2)) 34px;
    background: #030409;
}

body:has(.article-page) .article-page > .closing-band {
    padding: clamp(44px, 7vw, 86px) clamp(24px, 5vw, 72px);
    border-top: 0;
    background: #111414;
    color: #f6f7fb;
}

body:has(.article-page) .article-page > .closing-band .eyebrow {
    color: #20d6b5;
}

body:has(.article-page) .article-page > .closing-band .button-primary {
    color: #ffffff;
}

body:has(.blog-page) .site-shell {
    background: #eef0ff;
}

.blog-page,
.article-page {
    width: var(--container);
    margin: 0 auto;
    padding: 150px 0 110px;
}

.blog-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 60px;
    max-width: none;
    padding: 34px 0 46px;
    border-bottom: 1px dashed rgba(17, 20, 20, 0.7);
}

.article-header {
    max-width: 920px;
    padding-bottom: 72px;
}

.blog-intro {
    max-width: 620px;
}

.blog-intro h1 {
    position: relative;
}

.blog-intro h1 sup {
    position: absolute;
    top: -0.12em;
    margin-left: 10px;
    font-family: var(--font-body);
    font-size: 0.24em;
    font-weight: 500;
    line-height: 1;
}

.blog-hero h1,
.article-header h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.4vw, 5.8rem);
    line-height: 0.96;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    gap: 10px;
}

.blog-filters button {
    min-height: 54px;
    padding: 0 22px;
    border: 1px solid #111414;
    border-radius: 999px;
    background: transparent;
    color: #111414;
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.blog-filters button:hover {
    transform: translateY(-2px);
}

.blog-filters button.is-active {
    border-color: #6264ed;
    background: #6264ed;
    color: #fff;
}

.blog-hero > p:last-child,
.article-header > p:last-child {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.65;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-top: 56px;
}

.blog-card {
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(55, 58, 110, 0.1);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(55, 58, 110, 0.16);
}

.blog-card[hidden] {
    display: none;
}

.blog-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 1.7 / 1;
    object-fit: cover;
}

.blog-card-copy {
    padding: 28px 22px 24px;
}

.blog-card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #6264ed;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-card-meta time,
.article-meta time {
    color: var(--muted);
}

.blog-card h2 {
    margin: 30px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 1.8vw, 1.8rem);
    line-height: 1.18;
}

.blog-card p {
    color: var(--muted);
    line-height: 1.65;
}

.blog-card .work-link {
    margin-top: 22px;
}

.blog-empty {
    max-width: 680px;
    padding: 60px 0;
}

.blog-empty h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5vw, 5rem);
}

.blog-empty > p:last-child {
    color: var(--muted);
    line-height: 1.7;
}

.article-header h1 {
    max-width: 860px;
    margin-top: 22px;
}

.article-cover {
    margin: 0 0 78px;
}

.article-cover img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
    gap: clamp(40px, 9vw, 130px);
}

.article-layout aside {
    display: grid;
    align-content: start;
    gap: 10px;
    color: var(--muted);
}

.article-layout aside .eyebrow {
    margin-bottom: 10px;
}

.article-body {
    max-width: 760px;
}

.article-body p {
    margin: 0 0 26px;
    color: #4f5752;
    font-size: 1.12rem;
    line-height: 1.85;
}

.article-page > .closing-band {
    width: auto;
    margin-top: 100px;
}

@media (max-width: 760px) {
    .blog-page,
    .article-page {
        padding-top: 120px;
    }

    .blog-hero,
    .blog-grid,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .blog-filters {
        justify-content: flex-start;
    }

    .blog-filters button {
        min-height: 46px;
        padding: 0 16px;
        font-size: 0.92rem;
    }
}
