.blog-hero {
    align-items: end;
}

.blog-hero h1,
.article-hero h1 {
    max-width: 820px;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding: 0 40px 48px;
}

.blog-index {
    display: grid;
    min-width: 0;
    gap: 28px;
}

.blog-tree {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--soft-shadow);
}

.blog-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    color: var(--ink-deep);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-tree-header small {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

.blog-tree-home {
    display: block;
    padding: 10px 12px;
    border-radius: 13px;
    color: var(--ink-deep);
    font-weight: 900;
    text-decoration: none;
}

.blog-tree-home:hover,
.blog-tree-home.is-active {
    color: var(--pink-deep);
    background: rgba(255, 224, 239, 0.62);
}

.blog-tree-desktop {
    margin-top: 15px;
}

.blog-tree-year {
    position: relative;
    margin: 0 0 7px 8px;
    padding-left: 20px;
    color: var(--ink-deep);
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.blog-tree-year::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 9px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 1px rgba(91, 209, 188, 0.46);
    content: '';
    transform: translateY(-50%);
}

.blog-tree-list {
    display: grid;
    gap: 5px;
    margin: 0 0 0 12px;
    padding: 2px 0 0 16px;
    border-left: 1px solid rgba(96, 72, 121, 0.2);
    list-style: none;
}

.blog-tree-list li {
    position: relative;
}

.blog-tree-list li::before {
    position: absolute;
    top: 18px;
    left: -16px;
    width: 12px;
    border-top: 1px solid rgba(96, 72, 121, 0.2);
    content: '';
}

.blog-tree-link {
    display: grid;
    gap: 2px;
    padding: 8px 9px;
    border-radius: 12px;
    color: var(--muted);
    line-height: 1.35;
    text-decoration: none;
}

.blog-tree-link time {
    color: var(--pink-deep);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-tree-link span {
    font-size: 0.84rem;
    font-weight: 800;
}

.blog-tree-link:hover,
.blog-tree-link.is-active {
    color: var(--ink-deep);
    background: rgba(239, 229, 255, 0.58);
}

.blog-tree-link.is-active {
    box-shadow: inset 3px 0 0 var(--pink);
}

.blog-tree-mobile {
    display: none;
}

.featured-post {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
}

.featured-post-media,
.post-card-media,
.article-cover {
    margin: 0;
    background: linear-gradient(135deg, rgba(217, 188, 255, 0.32), rgba(189, 242, 231, 0.38));
}

.featured-post-media img,
.post-card-media img,
.article-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-post-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.post-kind {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid rgba(241, 62, 141, 0.2);
    border-radius: 999px;
    color: var(--pink-deep);
    background: rgba(255, 238, 247, 0.8);
}

.featured-post h2,
.post-card h2 {
    margin: 0;
    color: var(--ink-deep);
    font-family: 'Fredoka', sans-serif;
    line-height: 1.04;
}

.featured-post h2 {
    font-size: clamp(2.2rem, 4.6vw, 4rem);
}

.featured-post p,
.post-card p {
    color: var(--muted);
    line-height: 1.7;
}

.post-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    color: var(--ink-deep);
    font-weight: 900;
    text-decoration: none;
}

.post-link:hover {
    color: var(--pink-deep);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.post-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
}

.post-card-media {
    aspect-ratio: 16 / 9;
}

.post-card-copy {
    padding: 26px;
}

.post-card h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.blog-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 26px;
    border: 1px dashed rgba(96, 72, 121, 0.24);
    border-radius: 22px;
    color: var(--muted);
    background: rgba(255, 250, 244, 0.72);
}

.blog-note strong {
    color: var(--ink-deep);
}

.article-layout {
    min-width: 0;
}

.article-cover {
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--soft-shadow);
}

.article-cover img {
    height: auto;
    aspect-ratio: auto;
}

.article-copy {
    padding: clamp(28px, 6vw, 58px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
}

.article-copy > p:first-child {
    margin-top: 0;
    color: var(--ink-deep);
    font-size: clamp(1.15rem, 2.4vw, 1.42rem);
    font-weight: 800;
    line-height: 1.65;
}

.article-copy h2 {
    margin: 42px 0 12px;
    color: var(--ink-deep);
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.45rem);
    line-height: 1.08;
}

.article-copy p,
.article-copy li {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.78;
}

.article-copy ul {
    display: grid;
    gap: 10px;
    padding-left: 1.3rem;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.source-card {
    margin-top: 24px;
    padding: 22px 24px;
    border-left: 4px solid var(--mint);
    border-radius: 0 18px 18px 0;
    color: var(--muted);
    background: rgba(189, 242, 231, 0.22);
}

.source-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-deep);
}

.source-card p {
    margin: 0;
}

.article-more {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
}

.article-more a {
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
        padding: 0 24px 42px;
    }

    .blog-tree {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 17px 18px;
    }

    .blog-tree-desktop {
        display: none;
    }

    .blog-tree-mobile {
        display: block;
        margin-top: 10px;
    }

    .blog-tree-mobile summary {
        padding: 10px 12px;
        border-radius: 13px;
        color: var(--ink-deep);
        font-weight: 900;
        cursor: pointer;
        background: rgba(239, 229, 255, 0.45);
    }

    .blog-tree-mobile[open] summary {
        margin-bottom: 12px;
    }

    .blog-tree-mobile .blog-tree-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .blog-tree-mobile .blog-tree-list li::before {
        display: none;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post-media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 680px) {
    .blog-layout {
        gap: 18px;
        padding: 0 14px 30px;
    }

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

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

    .featured-post,
    .post-card,
    .article-cover,
    .article-copy {
        border-radius: 22px;
    }

    .featured-post-copy,
    .post-card-copy {
        padding: 22px;
    }

    .featured-post h2 {
        font-size: clamp(2.05rem, 11vw, 3rem);
    }

    .article-copy {
        padding: 24px 20px;
    }

    .article-copy p,
    .article-copy li {
        font-size: 0.97rem;
    }

    .article-more {
        flex-direction: column;
    }
}
