:root {
    --ink: #17211b;
    --muted: #647069;
    --paper: #f7f5ee;
    --surface: #ffffff;
    --line: #deded4;
    --green: #1d5139;
    --green-dark: #123b29;
    --gold: #c28a3a;
    --shadow: 0 18px 45px rgba(22, 46, 33, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }
img { display: block; max-width: 100%; }

.container {
    margin-inline: auto;
    max-width: 1180px;
    padding-inline: 24px;
    width: 100%;
}

.skip-link {
    background: var(--green-dark);
    color: #fff;
    left: 16px;
    padding: 10px 16px;
    position: fixed;
    top: -60px;
    z-index: 100;
}
.skip-link:focus { top: 16px; }

.sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    align-items: center;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    min-height: 88px;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 13px;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: var(--green);
    border-radius: 50% 50% 50% 12%;
    color: #fff;
    display: inline-flex;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    height: 48px;
    justify-content: center;
    letter-spacing: -1px;
    width: 48px;
}

.brand strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.1;
}

.brand small { color: var(--muted); font-size: 12px; }

.search {
    background: #f3f4ef;
    border: 1px solid transparent;
    border-radius: 999px;
    display: flex;
    max-width: 390px;
    padding: 5px;
    width: 100%;
}

.search:focus-within { border-color: var(--green); }
.search input {
    background: transparent;
    border: 0;
    color: var(--ink);
    flex: 1;
    font: inherit;
    min-width: 0;
    outline: 0;
    padding: 9px 14px;
}

.search button,
.button-link {
    background: var(--green);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 9px 18px;
    text-decoration: none;
}

.search button:hover, .button-link:hover { background: var(--green-dark); }

.hero {
    background:
        radial-gradient(circle at 83% 22%, rgba(194, 138, 58, 0.24), transparent 22%),
        linear-gradient(135deg, #173e2d, #245c41);
    color: #fff;
    overflow: hidden;
}

.hero-inner { max-width: 840px; padding-block: 76px 84px; }

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hero h1,
.post-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin: 0;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    margin: 24px 0 0;
    max-width: 680px;
}

.page-layout {
    align-items: start;
    display: grid;
    gap: 44px;
    grid-template-columns: 250px minmax(0, 1fr);
    padding-block: 64px 88px;
}

.category-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    position: sticky;
    top: 112px;
}

.panel-heading { border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.panel-heading h2, .section-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
}

.category-nav { display: grid; gap: 5px; padding-top: 16px; }
.category-nav a {
    border-radius: 9px;
    color: #3e4c44;
    font-size: 14px;
    padding: 9px 11px;
    text-decoration: none;
}
.category-nav a:hover, .category-nav a.is-active {
    background: #e7f0e9;
    color: var(--green-dark);
    font-weight: 700;
}
.category-nav .subcategory { margin-left: 14px; padding-left: 16px; position: relative; }
.category-nav .subcategory::before {
    background: var(--line);
    content: "";
    height: 1px;
    left: 3px;
    position: absolute;
    top: 50%;
    width: 8px;
}

.section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 26px;
}
.result-count { color: var(--muted); font-size: 13px; }

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

.post-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    min-width: 0;
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-image {
    background: #dfe8df;
    display: block;
    height: 230px;
    overflow: hidden;
    text-decoration: none;
}
.card-image img { height: 100%; object-fit: cover; transition: transform 300ms ease; width: 100%; }
.post-card:hover .card-image img { transform: scale(1.025); }
.image-placeholder {
    align-items: center;
    color: var(--green);
    display: flex;
    font-family: Georgia, serif;
    font-size: 27px;
    height: 100%;
    justify-content: center;
}
.card-body { padding: 24px; }

.card-categories { display: flex; flex-wrap: wrap; gap: 6px; }
.card-categories a, .card-categories span {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}
.card-categories a:hover { text-decoration: underline; }

.post-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
    margin: 12px 0 6px;
}
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--green); }
.post-date { color: var(--muted); font-size: 12px; margin: 0; }
.excerpt { color: #526058; font-size: 14px; margin: 15px 0 20px; }
.read-more, .back-link {
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.read-more:hover, .back-link:hover { text-decoration: underline; }

.pagination {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}
.pagination a {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--green);
    font-weight: 700;
    padding: 9px 16px;
    text-decoration: none;
}
.pagination span { color: var(--muted); font-size: 13px; }
.empty-state { background: #fff; border-radius: 18px; padding: 64px 32px; text-align: center; }
.empty-state h3 { font-family: Georgia, serif; font-size: 28px; margin: 0; }
.empty-state p { color: var(--muted); margin-bottom: 28px; }

.post-hero { background: var(--green-dark); color: #fff; }
.post-hero-inner { max-width: 880px; padding-block: 76px; }
.post-hero .card-categories a { color: #e2bd7c; }
.post-hero h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); margin-top: 18px; }
.post-hero .post-date { color: rgba(255, 255, 255, 0.68); margin-top: 22px; }

.article-shell { max-width: 900px; padding-block: 56px 96px; }
.article-cover {
    background: #e7e9e3;
    border-radius: 20px;
    margin: 0 0 44px;
    max-height: 580px;
    overflow: hidden;
}
.article-cover img { height: 100%; max-height: 580px; object-fit: cover; width: 100%; }
.article-content {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.85;
    padding: clamp(26px, 6vw, 64px);
}
.article-content h2, .article-content h3 { color: var(--green-dark); line-height: 1.25; }
.article-content a { color: var(--green); }
.article-content img { height: auto; margin: 28px auto; }
.article-content figure { margin-inline: 0; }
.article-content iframe { max-width: 100%; }
.article-content blockquote {
    border-left: 4px solid var(--gold);
    color: #46534b;
    font-style: italic;
    margin-inline: 0;
    padding-left: 24px;
}
.article-footer { padding-top: 28px; }

.site-footer { background: #102d20; color: rgba(255, 255, 255, 0.82); }
.footer-inner {
    align-items: center;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    min-height: 160px;
}
.footer-inner strong { color: #fff; font-family: Georgia, serif; font-size: 22px; }
.footer-inner p { font-size: 13px; margin: 4px 0 0; }

@media (max-width: 900px) {
    .page-layout { grid-template-columns: 1fr; }
    .category-panel { position: static; }
    .category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .container { padding-inline: 18px; }
    .header-inner { align-items: stretch; flex-direction: column; gap: 14px; padding-block: 16px; }
    .site-header { position: static; }
    .search { max-width: none; }
    .hero-inner { padding-block: 54px 60px; }
    .page-layout { padding-block: 40px 64px; }
    .post-grid { grid-template-columns: 1fr; }
    .category-nav { grid-template-columns: 1fr; }
    .section-heading { align-items: start; flex-direction: column; gap: 8px; }
    .pagination { flex-wrap: wrap; }
    .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}
