:root {
    --green: #6ab43e;
    --green-dark: #559032;
    --ink: #1f2024;
    --muted: #687076;
    --line: #e7e8e8;
    --paper: #ffffff;
    --wash: #f6f7f4;
    --max: 1170px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--green);
}

.top-line {
    height: 10px;
    background: #eee;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 12px rgba(20, 20, 20, .08);
}

.nav-wrap {
    max-width: var(--max);
    margin: 0 auto;
    min-height: 82px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: grid;
    gap: 2px;
}

.brand strong {
    font-size: 23px;
    line-height: 1.1;
}

.brand span {
    max-width: 430px;
    color: #4e5559;
    font-size: 13px;
    line-height: 1.35;
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    padding: 14px 15px;
    color: #676d71;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

nav a:hover {
    background: var(--green);
    color: #fff;
}

.hero {
    min-height: 420px;
    position: relative;
    display: grid;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .30)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-inner {
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
    padding: 86px 24px 104px;
    color: #fff;
}

.hero h1 {
    margin: 0 0 12px;
    max-width: 760px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 900;
}

.hero p {
    margin: 0;
    max-width: 620px;
    font-size: 20px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 64px 24px;
}

.container.narrow {
    max-width: 760px;
}

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

.post-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: 0 10px 24px rgba(31, 32, 36, .05);
}

.post-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--wash);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.post-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

time {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.post-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.post-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.read-more {
    margin-top: auto;
    width: fit-content;
    color: var(--green-dark);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.pagination {
    justify-content: center;
    gap: 18px;
    margin-top: 46px;
}

.pagination a,
.button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 4px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
}

.page-title {
    background: linear-gradient(90deg, rgba(0, 0, 0, .64), rgba(0, 0, 0, .58)), var(--page-title-image) center/cover;
    color: #fff;
}

.page-title div {
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 24px;
}

.page-title h1 {
    max-width: 920px;
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: 0;
}

.article {
    max-width: 860px;
    margin: 0 auto;
    padding: 54px 24px 72px;
}

.featured-image {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 34px;
}

.content {
    font-size: 18px;
}

.content p,
.content ul,
.content ol,
.content blockquote {
    margin: 0 0 1.25em;
}

.content h2,
.content h3,
.content h4 {
    margin: 1.75em 0 .7em;
    line-height: 1.2;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.content figure {
    margin: 2em 0;
}

.content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.content .wp-block-gallery figure {
    margin: 0;
}

.content figcaption {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.content video {
    width: 100%;
    max-height: 70vh;
    background: #000;
    border-radius: 4px;
}

.content a {
    color: var(--green-dark);
    text-decoration: underline;
}

.site-footer {
    background: #1f2024;
    color: #fff;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-footer div {
    display: grid;
    gap: 2px;
}

.site-footer span,
.site-footer a {
    color: rgba(255, 255, 255, .74);
}

@media (max-width: 900px) {
    .nav-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

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

@media (max-width: 620px) {
    .nav-wrap {
        min-height: 0;
        padding: 14px 18px;
    }

    nav a {
        padding: 9px 10px;
        font-size: 12px;
    }

    .brand span {
        font-size: 12px;
    }

    .hero {
        min-height: 360px;
    }

    .hero-inner {
        padding: 58px 20px 72px;
    }

    .hero p {
        font-size: 17px;
    }

    .container {
        padding: 42px 18px;
    }

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

    .page-title div {
        padding: 54px 20px;
    }

    .article {
        padding: 38px 20px 54px;
    }

    .content {
        font-size: 17px;
    }

    .content .wp-block-gallery {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
