:root {
    color-scheme: light;
    --ink: #263036;
    --muted: #68757b;
    --paper: #f7f3e9;
    --surface: #ffffff;
    --line: #dfd5bf;
    --gold: #c99b2d;
    --forest: #305c45;
    --wine: #713946;
    --night: #111820;
    --sky: #dce9ef;
    --shadow: 0 16px 40px rgba(17, 24, 32, 0.13);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.65;
    min-height: 100vh;
}

a {
    color: inherit;
}

.container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 20px;
}

header {
    background: rgba(17, 24, 32, 0.94);
    border-bottom: 2px solid var(--gold);
    backdrop-filter: blur(10px);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.6rem;
    list-style: none;
}

.nav-links a,
.mobile-nav-links a {
    color: #ecf0f1;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--gold);
}

.mobile-menu-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.hamburger-line {
    background: var(--gold);
    border-radius: 2px;
    height: 3px;
    width: 25px;
}

.mobile-nav-overlay {
    align-items: center;
    background: rgba(17, 24, 32, 0.96);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 999;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-close {
    background: transparent;
    border: 0;
    color: var(--gold);
    cursor: pointer;
    font-size: 2.5rem;
    line-height: 1;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 1.6rem 0;
}

.mobile-nav-links a {
    font-size: 1.5rem;
}

.blog-shell {
    padding: 112px 0 0;
}

.blog-hero {
    background:
        linear-gradient(120deg, rgba(17, 24, 32, 0.88), rgba(48, 92, 69, 0.78)),
        linear-gradient(45deg, #18212b, #2d5140);
    color: #fff;
    padding: 5rem 0 3.5rem;
}

.blog-hero .container {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-hero h1 {
    color: #f5d477;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    line-height: 1;
    margin: 0.6rem 0 1rem;
}

.blog-hero p {
    color: #edf2f0;
    font-size: 1.2rem;
    max-width: 720px;
}

.hero-actions {
    align-items: end;
    display: flex;
    gap: 0.8rem;
}

.button,
.read-more {
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: #142022;
    display: inline-flex;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.button.secondary {
    background: transparent;
    color: #fff;
}

.blog-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) 310px;
    padding: 3rem 0 4rem;
}

.blog-tools {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.blog-search {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
    max-width: 420px;
    padding: 0.8rem 1rem;
    width: 100%;
}

.filter-status {
    color: var(--muted);
    font-size: 0.95rem;
}

.post-list {
    display: grid;
    gap: 1.2rem;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(17, 24, 32, 0.07);
    padding: 1.6rem;
}

.post-card.featured {
    border-left-color: var(--forest);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.post-card h2,
.post-card h3 {
    line-height: 1.2;
}

.post-card h2 a,
.post-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
    color: var(--forest);
}

.post-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.92rem;
    gap: 0.5rem 0.9rem;
    margin: 0.7rem 0 1rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.tag {
    background: var(--sky);
    border: 1px solid transparent;
    border-radius: 999px;
    color: #24383f;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.42rem 0.65rem;
    text-decoration: none;
}

.tag:hover,
.tag.active {
    background: var(--forest);
    color: #fff;
}

.sidebar {
    align-self: start;
    background: #fbf9f2;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(17, 24, 32, 0.07);
    padding: 1.4rem;
    position: sticky;
    top: 96px;
}

.sidebar-section + .sidebar-section {
    border-top: 1px solid var(--line);
    margin-top: 1.3rem;
    padding-top: 1.3rem;
}

.sidebar h2,
.sidebar h3 {
    color: var(--ink);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li + li {
    margin-top: 0.55rem;
}

.sidebar a {
    color: var(--ink);
    text-decoration: none;
}

.sidebar a:hover {
    color: var(--wine);
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    display: none;
    padding: 1.5rem;
}

.post-page {
    background: var(--paper);
    padding: 112px 0 0;
}

.post-article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 3rem auto;
    max-width: 820px;
    padding: clamp(1.4rem, 5vw, 3rem);
}

.post-article h1 {
    color: var(--ink);
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.08;
    margin: 0.5rem 0 1rem;
}

.post-body {
    color: #344148;
    font-size: 1.12rem;
    margin-top: 2rem;
}

.post-body p,
.post-body ul,
.post-body blockquote {
    margin-bottom: 1.4rem;
}

.post-body h3 {
    color: var(--forest);
    font-size: 1.45rem;
    margin: 2rem 0 0.75rem;
}

.post-body ul {
    margin-left: 1.4rem;
}

.post-body li + li {
    margin-top: 0.45rem;
}

.post-body blockquote {
    border-left: 4px solid var(--gold);
    color: #58676e;
    font-style: italic;
    padding-left: 1.2rem;
}

.post-nav {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.post-nav a {
    color: var(--forest);
    font-weight: 700;
    text-decoration: none;
}

.post-nav .next {
    text-align: right;
}

footer {
    background: var(--night);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    opacity: 0.76;
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .blog-hero .container,
    .blog-grid,
    .post-nav {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        align-items: start;
        flex-wrap: wrap;
    }

    .sidebar {
        order: -1;
        position: static;
    }

    .blog-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .post-nav .next {
        text-align: left;
    }
}
