.blog-page,
.blog-single {
    min-height: 100vh;
    background: var(--bg);
}

.blog-hero,
.blog-single__hero {
    padding: 180px 0 105px;
    color: #fff;
    background:
        radial-gradient(
            circle at 84% 18%,
            rgba(118, 179, 52, 0.2),
            transparent 31%
        ),
        linear-gradient(135deg, #4b6754, #17271f 74%);
}

.blog-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.58fr);
    gap: 90px;
    align-items: end;
}

.blog-hero h1,
.blog-single h1 {
    max-width: 940px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(58px, 7.5vw, 100px);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.blog-hero p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
}

.blog-index {
    padding: 110px 0 120px;
}

.blog-index__head {
    margin-bottom: 54px;
}

.blog-index h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
}

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

.article-card {
    display: flex;
    flex-direction: column;
}

.article-card__image {
    height: 300px;
    margin-bottom: 22px;
    overflow: hidden;
    display: block;
    border-radius: 22px;
    background: var(--dark);
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.025);
}

.article-card__meta {
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--green);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-card h3 {
    margin: 0 0 14px;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.04;
}

.article-card > p {
    margin: 0 0 22px;
    color: var(--muted);
}

.article-card__link {
    margin-top: auto;
    align-self: flex-start;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.blog-empty {
    padding: 70px 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    text-align: center;
    background: #fff;
}

.blog-empty h3 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
}

.blog-empty p {
    margin: 0;
    color: var(--muted);
}

.blog-pagination ul {
    margin: 55px 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
}

.blog-pagination a,
.blog-pagination span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.blog-pagination .current {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
}

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

.blog-single__back {
    justify-self: start;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.blog-single__meta {
    display: flex;
    gap: 22px;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-single__head > p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 20px;
}

.blog-single__body {
    padding-bottom: 120px;
}

.blog-single__cover {
    height: min(62vw, 690px);
    margin: -1px 0 75px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    background: var(--dark);
}

.blog-single__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-content {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text);
    font-size: 18px;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    margin: 58px 0 18px;
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.08;
}

.entry-content h2 {
    font-size: 44px;
}

.entry-content h3 {
    font-size: 30px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 23px;
}

.entry-content a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-single__footer {
    max-width: 780px;
    margin: 65px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .blog-hero__grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .blog-hero,
    .blog-single__hero {
        padding: 135px 0 75px;
    }

    .blog-hero__grid {
        gap: 40px;
    }

    .blog-hero h1,
    .blog-single h1 {
        font-size: clamp(46px, 14vw, 66px);
    }

    .blog-index {
        padding: 75px 0;
    }

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

    .article-card__image {
        height: 270px;
    }

    .blog-single__cover {
        height: 62vw;
        margin-bottom: 50px;
        border-radius: 0 0 20px 20px;
    }

    .blog-single__body {
        padding-bottom: 80px;
    }

    .entry-content {
        font-size: 17px;
    }

    .entry-content h2 {
        font-size: 36px;
    }
}
