:root {
    --ink: #3b2716;
    --muted: #726256;
    --accent: #e36722;
    --accent-dark: #b84913;
    --cream: #fcfaf5;
    --paper: #fff;
    --line: #eadfd4;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Quicksand", sans-serif; line-height: 1.65; }
a { color: inherit; }
.site-header { min-height: 80px; padding: 10px max(20px, calc((100% - 1280px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.brand img { display: block; width: auto; height: 54px; }
.site-header nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-header nav a { min-height: 40px; padding: 8px 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a.active { background: #fff7ed; color: #f97316; }
.site-header nav .facebook-link { min-height: 48px; margin-left: 18px; gap: 9px; padding: 10px 16px; background: #1877f2; color: white; font-weight: 700; box-shadow: 0 4px 8px rgba(24,119,242,.2); }
.site-header nav .facebook-link:hover { background: #2563eb; color: white; }

.blog-shell { width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0 80px; }
.blog-intro { max-width: 720px; margin-bottom: 38px; }
.blog-intro span { color: var(--accent-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.blog-intro h1 { margin: 7px 0 8px; font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: 0; }
.blog-intro p { margin: 0; color: var(--muted); font-size: 17px; }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.post-card { min-height: 250px; padding: 27px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.post-card-image { width: 100%; aspect-ratio: 16 / 9; margin: 0 0 20px; border-radius: 6px; object-fit: cover; }
.post-card time { color: var(--accent-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.post-card h2 { margin: 11px 0 9px; font-size: 24px; line-height: 1.25; letter-spacing: 0; }
.post-card p { margin: 0 0 22px; color: var(--muted); }
.post-card a { margin-top: auto; color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.post-card a:hover { text-decoration: underline; }
.empty-state { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.pagination { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; }
.pagination a { padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; color: var(--accent-dark); font-weight: 800; text-decoration: none; }

.article-shell { width: min(820px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0 86px; }
.article-header { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-header a { color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.article-header h1 { margin: 18px 0 10px; font-size: clamp(34px, 6vw, 54px); line-height: 1.12; letter-spacing: 0; }
.article-header p { margin: 0; color: var(--muted); font-size: 18px; }
.article-header time { display: block; margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.article-content { padding-top: 28px; font-size: 17px; }
.article-feature-image { display: block; width: 100%; max-height: 520px; margin-top: 30px; border-radius: 8px; object-fit: cover; }
.article-content h2 { margin: 34px 0 10px; font-size: 28px; line-height: 1.25; letter-spacing: 0; }
.article-content h3 { margin: 28px 0 8px; font-size: 22px; letter-spacing: 0; }
.article-content p { margin: 0 0 20px; }
.article-content ul, .article-content ol { margin: 0 0 22px; padding-left: 26px; }
.article-content blockquote { margin: 26px 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: #fff5eb; }
.article-content a { color: var(--accent-dark); font-weight: 700; }
.article-content img { display: block; width: auto; max-width: 100%; height: auto; margin: 26px auto; border-radius: 6px; }
.article-content pre { max-width: 100%; margin: 24px 0; padding: 18px; overflow-x: auto; border-radius: 6px; background: #2f241c; color: #fff; font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.article-content code { padding: 2px 5px; border-radius: 4px; background: #eee7e0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.article-content pre code { padding: 0; background: transparent; }
.article-content hr { margin: 34px 0; border: 0; border-top: 1px solid var(--line); }

.site-footer { padding: 38px max(20px, calc((100% - 1080px) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 12px 28px; background: #2f241c; color: #f8eee5; }
.site-footer div { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.site-footer span, .site-footer small { color: #bcaea3; }
.site-footer a { color: #f8eee5; text-decoration: none; }
.site-footer small { grid-column: 1 / -1; }

@media (max-width: 720px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .site-header nav { width: 100%; }
    .site-header nav a { padding: 9px 11px; }
    .site-header nav .facebook-link { min-height: 40px; margin-left: 0; }
    .post-grid { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer small { grid-column: auto; }
}
