:root {
    color-scheme: light;
    --bg: #f6f7f8;
    --panel: #ffffff;
    --ink: #1b1f24;
    --muted: #667085;
    --line: #d8dee6;
    --accent: #1f7a5b;
    --accent-strong: #15583f;
    --warm: #d48a1f;
}

* {
    box-sizing: border-box;
}

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

a {
    color: inherit;
}

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

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(18px, 4vw, 48px);
    background: #111820;
    color: #ffffff;
}

.brand {
    font-weight: 800;
    text-decoration: none;
}

.site-footer {
    margin-top: 56px;
    color: #d7dde5;
    font-size: 0.9rem;
}

.page-shell,
.article-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.page-heading {
    padding: 54px 0 28px;
}

.eyebrow,
.meta {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-heading h1,
.article h1 {
    margin: 8px 0 12px;
    line-height: 1.08;
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.page-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.post-list {
    display: grid;
    gap: 18px;
}

.post-card,
.empty-state {
    display: grid;
    grid-template-columns: 280px 1fr;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.empty-state {
    display: block;
    padding: 34px;
}

.thumb {
    min-height: 190px;
    background: linear-gradient(135deg, #10231c, #1f7a5b 55%, #d48a1f);
}

.thumb img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.post-card-body {
    padding: 24px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-card h2 {
    margin: 10px 0 8px;
    font-size: 1.35rem;
    line-height: 1.25;
}

.post-card h2 a,
.read-link,
.back-link {
    text-decoration: none;
}

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

.read-link,
.back-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--accent);
    font-weight: 800;
}

.read-link:hover,
.back-link:hover {
    color: var(--accent-strong);
}

.article-shell {
    max-width: 860px;
    padding-top: 34px;
}

.article {
    margin-top: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 5vw, 48px);
}

.article-cover {
    margin: 28px 0;
}

.article-cover img,
.article-content figure img {
    width: 100%;
    border-radius: 8px;
}

figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.04rem;
}

.article-content h2 {
    margin: 34px 0 10px;
    font-size: 1.55rem;
    line-height: 1.2;
}

.article-content h3 {
    margin: 24px 0 8px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin: 0 0 18px;
}

.article-content blockquote {
    padding: 14px 18px;
    border-left: 4px solid var(--warm);
    background: #f9fafb;
    color: #344054;
}

.article-content figure {
    margin: 26px 0;
}

.faq {
    margin-top: 36px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.tag-row span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 720px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .thumb,
    .thumb img {
        min-height: 210px;
    }
}
