.blog-hero {
    padding: 96px 0 56px;
}

.blog-title {
    position: relative;
    display: inline-block;

    font-size: clamp(3.8rem, 10vw, 7.5rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.07em;
    text-transform: uppercase;

    color: var(--text);

    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 80px rgba(143, 191, 135, 0.16);

    margin-bottom: 28px;
}

.blog-title::after {
    content: "";
    position: absolute;
    left: 0.035em;
    bottom: -0.18em;

    width: 42%;
    height: 4px;

    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--primary),
        rgba(143, 191, 135, 0)
    );
}

.blog-intro {
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.blog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    padding-bottom: 96px;
}

.blog-sidebar {
    position: relative;
}

.blog-sidebar-card {
    position: sticky;
    top: 104px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.blog-toc {
    display: grid;
    gap: 6px;
}

.blog-toc a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.94rem;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.blog-toc a:hover,
.blog-toc a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.blog-content {
    display: grid;
    gap: 28px;
}

.blog-section {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.section-heading.compact {
    margin-bottom: 24px;
}

.blog-section h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.blog-post {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
}

.blog-post + .blog-post {
    margin-top: 16px;
}

.blog-post h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

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

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.post-meta span {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.muted-post {
    opacity: 0.82;
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .blog-sidebar-card {
        position: static;
    }

    .blog-toc {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .blog-hero {
        padding: 72px 0 40px;
    }

    .blog-section {
        padding: 24px;
    }

    .blog-post {
        padding: 18px;
    }
}
