:root {
    --bg: #fdf8f2;
    --text: #2b2420;
    --text-muted: #7a6f63;
    --accent: #b5502f;
    --card-bg: #ffffff;
    --border: #ece2d6;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--text);
}
.logo span { color: var(--accent); }

.search-form {
    display: flex;
    gap: 8px;
}
.search-form input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    min-width: 220px;
    font-family: inherit;
    background: #fff;
}
.search-form button {
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 0;
    padding: 12px 0;
}
.site-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); }

/* Main */
main { padding: 40px 24px 60px; }

.page-title {
    font-size: 2rem;
    margin-bottom: 24px;
}
.section-title {
    font-size: 1.4rem;
    margin: 40px 0 20px;
}

/* Hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
}
.hero-main {
    display: block;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.hero-main-image { position: relative; }
.hero-main-image img { width: 100%; height: 320px; object-fit: cover; display: block; }
.hero-main h2 { font-size: 1.6rem; margin: 18px 20px 8px; }
.hero-main p { color: var(--text-muted); margin: 0 20px 20px; }

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Article card */
.article-card {
    display: block;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.article-card-image { position: relative; height: 170px; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(181,80,47,0.92);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: Arial, sans-serif;
}
.article-card-body { padding: 16px 18px 18px; }
.article-card-body h3 { font-size: 1.05rem; margin: 0 0 10px; line-height: 1.35; }
.article-card-meta {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.empty-state { color: var(--text-muted); }

/* Article page */
.article-page { max-width: 760px; margin: 0 auto; }
.article-category-tag {
    display: inline-block;
    color: var(--accent);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.article-page h1 { font-size: 2.1rem; line-height: 1.25; margin: 0 0 14px; }
.article-excerpt { font-size: 1.15rem; color: var(--text-muted); margin: 0 0 14px; }
.article-meta {
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex; gap: 8px;
    margin-bottom: 24px;
}
.article-image img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
    margin-bottom: 32px;
}
.article-body h2 { font-size: 1.4rem; margin: 32px 0 14px; }
.article-body p { margin: 0 0 16px; }
.article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    background: #fbf1e8;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}
.article-body img { width: 100%; border-radius: var(--radius); margin: 20px 0; }
.article-body ul { padding-left: 22px; margin: 0 0 16px; }

.related-articles { max-width: 900px; margin: 60px auto 0; }

/* Footer */
.site-footer {
    background: #f7efe4;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 24px 20px;
    flex-wrap: wrap;
}
.footer-about { max-width: 420px; }
.footer-about p { color: var(--text-muted); font-family: Arial, sans-serif; font-size: 0.9rem; }
.footer-links h4 { margin: 0 0 12px; font-family: Arial, sans-serif; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-family: Arial, sans-serif; font-size: 0.9rem; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 24px 24px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 8px;
}

/* Responsive */
@media (max-width: 800px) {
    .hero-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .articles-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .search-form input { min-width: 0; flex: 1; }
}
