:root {
    --green-950: #003f2c;
    --green-900: #00543b;
    --green-700: #087044;
    --green-100: #e8f4df;
    --yellow: #f3c400;
    --ink: #12231c;
    --muted: #5d6d65;
    --line: #dde6df;
    --paper: #fffef9;
    --soft: #f5f4ea;
    --radius: 8px;
    --shadow: 0 20px 50px rgba(0, 63, 44, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

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

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 254, 249, .95);
    border-bottom: 1px solid rgba(0, 63, 44, .08);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1400px, calc(100% - 56px));
    min-height: 96px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: max-content;
}

.custom-logo {
    max-width: 300px;
    max-height: 74px;
    width: auto;
}

.brand-mark {
    position: relative;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 50% 50% 50% 8px;
    background: linear-gradient(135deg, var(--green-950), #1d8c44 70%);
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 12px 15px 12px 34px;
    border-radius: 50% 0 50% 50%;
    background: #78bf38;
    transform: rotate(20deg);
}

.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
    content: "";
    position: absolute;
    left: 16px;
    height: 4px;
    border-radius: 4px;
    background: var(--yellow);
}

.brand-mark::after {
    top: 18px;
    width: 32px;
}

.brand-mark span::before {
    top: 29px;
    width: 25px;
}

.brand-mark span::after {
    top: 40px;
    width: 17px;
}

.brand-name {
    color: var(--green-950);
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: 0;
}

.primary-nav .menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .92rem;
    font-weight: 750;
}

.primary-nav .menu ul {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-toggle,
.menu-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--green-950);
    cursor: pointer;
}

.search-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 3px;
    right: -8px;
    bottom: 0;
    border-radius: 4px;
    background: currentColor;
    transform: rotate(45deg);
}

.menu-toggle {
    display: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--green-950);
}

.header-search {
    border-top: 1px solid var(--line);
    background: #fff;
}

.search-form {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-field {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 16px;
    font: inherit;
}

.search-form button,
.button-primary,
.load-more {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--green-950);
    color: #fff;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
}

.hero-section {
    background: linear-gradient(90deg, #fffef9 0%, rgba(255, 254, 249, .9) 28%, transparent 56%), var(--green-100);
}

.hero-article {
    width: min(1500px, 100%);
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 560px) 1fr;
    align-items: stretch;
}

.hero-copy {
    padding: 80px 0 80px max(28px, calc((100vw - 1400px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-kicker,
.card-category {
    margin: 0 0 10px;
    color: var(--yellow);
    text-transform: uppercase;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.card-category a {
    color: var(--green-700);
}

.hero-copy h1,
.single-hero h1 {
    margin: 0;
    color: var(--green-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: .98;
    letter-spacing: 0;
}

.hero-copy p:not(.section-kicker) {
    max-width: 520px;
    margin: 24px 0;
    color: #263a32;
    font-size: 1.08rem;
}

.hero-media {
    min-height: 560px;
}

.hero-media img,
.hero-media .placeholder-image,
.single-hero-image img,
.single-hero-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    min-height: 220px;
    background:
        radial-gradient(circle at 20% 30%, rgba(243, 196, 0, .6), transparent 22%),
        linear-gradient(135deg, #d9edcf, #73b77f 52%, #2b7a52);
}

.content-band,
.topic-strip,
.spotlight-section,
.archive-header,
.single-article {
    width: min(1340px, calc(100% - 56px));
    margin: 0 auto;
}

.featured-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    padding: 42px 0;
}

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

.post-card {
    min-width: 0;
}

.post-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    background: var(--soft);
}

.post-card-image img,
.post-card-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.035);
}

.post-card-body {
    padding-top: 14px;
}

.post-card h3 {
    margin: 0 0 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.34rem;
    line-height: 1.08;
    letter-spacing: 0;
}

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

.post-meta,
.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: .9rem;
}

.topic-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    margin-top: 8px;
    margin-bottom: 46px;
    background: #f3f0e6;
    border: 1px solid #ebe5d7;
    border-radius: var(--radius);
}

.topic-item {
    min-height: 136px;
    padding: 20px 12px;
    border-right: 1px solid #e0d9c9;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    text-align: center;
    color: var(--green-950);
    font-weight: 800;
}

.topic-item:last-child {
    border-right: 0;
}

.topic-icon {
    width: 42px;
    height: 42px;
    border: 3px solid var(--green-900);
    border-radius: 50%;
    position: relative;
}

.topic-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 34px;
    height: 4px;
    border-radius: 3px;
    background: var(--yellow);
    transform: translateX(-50%);
}

.spotlight-section {
    display: grid;
    grid-template-columns: minmax(280px, 440px) 1fr minmax(260px, 330px);
    gap: 34px;
    align-items: center;
    margin-bottom: 32px;
}

.spotlight-image {
    aspect-ratio: 1.35;
    overflow: hidden;
    border-radius: var(--radius);
}

.spotlight-image img,
.spotlight-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-copy h2,
.section-heading h2,
.archive-header h1 {
    margin: 0;
    color: var(--green-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.spotlight-copy p:not(.section-kicker) {
    margin: 18px 0 22px;
    max-width: 650px;
}

.spotlight-side {
    display: grid;
    gap: 16px;
}

.mini-story {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
    line-height: 1.2;
}

.mini-story img,
.mini-story .placeholder-image {
    width: 92px;
    height: 66px;
    border-radius: 6px;
    object-fit: cover;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.section-heading a {
    color: var(--green-900);
    font-weight: 800;
}

.opinions-band {
    padding-bottom: 34px;
}

.ad-slot {
    width: min(970px, calc(100% - 56px));
    min-height: 90px;
    margin: 26px auto;
    border: 1px dashed #bfd4c5;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f9fbf3;
}

.ad-slot:empty::before {
    content: "ADV";
    color: var(--muted);
}

.archive-header {
    padding: 58px 0 22px;
}

.archive-header .search-form {
    width: 100%;
    margin-top: 22px;
    padding: 0;
}

.single-article {
    padding-bottom: 56px;
}

.single-hero {
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(320px, 1fr);
    gap: 40px;
    align-items: center;
    padding: 54px 0 36px;
}

.single-hero-copy {
    min-width: 0;
}

.single-hero-image {
    height: 420px;
    overflow: hidden;
    border-radius: var(--radius);
}

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(260px, 330px);
    gap: 56px;
    align-items: start;
    justify-content: center;
}

.single-content {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    line-height: 1.78;
}

.single-content a {
    color: var(--green-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.single-content p,
.single-content ul,
.single-content ol,
.single-content blockquote {
    margin: 0 0 1.35em;
}

.single-content h2,
.single-content h3 {
    color: var(--green-950);
    line-height: 1.15;
}

.single-sidebar .widget {
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.author-box {
    max-width: 900px;
    margin: 44px auto 24px;
    padding: 26px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fbf1;
}

.author-avatar img {
    border-radius: 50%;
}

.author-box h2 {
    margin: 0 0 8px;
    color: var(--green-950);
}

.author-box p {
    margin: 0;
}

.post-navigation {
    max-width: 900px;
    margin: 26px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.post-navigation a {
    color: var(--green-900);
    font-weight: 900;
}

.load-more {
    margin: 0 auto 50px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 40px 0;
}

.newsletter-band {
    min-height: 150px;
    padding: 28px max(28px, calc((100vw - 1340px) / 2));
    display: grid;
    grid-template-columns: 110px 1fr minmax(300px, 420px);
    gap: 28px;
    align-items: center;
    color: #fff;
    background: linear-gradient(100deg, #003f2c, #006141);
    border-top: 3px solid var(--yellow);
}

.newsletter-icon {
    width: 88px;
    height: 88px;
    border: 3px solid var(--yellow);
    border-radius: 50%;
    position: relative;
}

.newsletter-icon::before {
    content: "";
    position: absolute;
    inset: 25px 18px;
    border: 3px solid var(--yellow);
    border-radius: 4px;
}

.newsletter-band h2 {
    margin: 0 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.newsletter-band p {
    margin: 0;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
}

.newsletter-form input {
    min-height: 52px;
    border: 0;
    border-radius: 8px 0 0 8px;
    padding: 0 16px;
    font: inherit;
}

.newsletter-form button {
    border: 0;
    border-radius: 0 8px 8px 0;
    background: var(--yellow);
    color: #06291d;
    padding: 0 22px;
    font-weight: 900;
}

.site-footer {
    color: #fff;
    background: radial-gradient(circle at 70% 20%, rgba(24, 132, 83, .28), transparent 36%), var(--green-950);
}

.footer-inner {
    width: min(1340px, calc(100% - 56px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 70px;
}

.footer-brand .brand-name {
    color: #fff;
}

.footer-brand p {
    max-width: 360px;
    color: rgba(255, 255, 255, .82);
}

.footer-nav .menu {
    columns: 3;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .9);
}

.footer-copy {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    text-align: center;
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
}

@media (max-width: 1100px) {
    .header-inner {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .primary-nav {
        grid-column: 1 / -1;
        display: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .menu {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding-bottom: 18px;
    }

    .primary-nav a {
        display: block;
        padding: 11px 0;
        border-top: 1px solid var(--line);
    }

    .hero-article,
    .single-hero,
    .single-layout,
    .spotlight-section,
    .newsletter-band,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 54px 28px;
    }

    .hero-media {
        min-height: 360px;
    }

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

    .topic-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .header-inner,
    .content-band,
    .topic-strip,
    .spotlight-section,
    .archive-header,
    .single-article,
    .footer-inner {
        width: min(100% - 32px, 1340px);
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .brand-mark {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .hero-article {
        min-height: 0;
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-copy h1,
    .single-hero h1 {
        font-size: 2.45rem;
    }

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

    .topic-item {
        min-height: 92px;
        border-right: 0;
        border-bottom: 1px solid #e0d9c9;
    }

    .section-heading,
    .post-navigation {
        align-items: flex-start;
        flex-direction: column;
    }

    .single-hero-image {
        height: 260px;
    }

    .author-box {
        grid-template-columns: 1fr;
    }

    .newsletter-form,
    .search-form {
        grid-template-columns: 1fr;
    }

    .newsletter-form input,
    .newsletter-form button {
        border-radius: var(--radius);
    }
}
