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

:root {
    --serif: 'Merriweather', Georgia, serif;
    --sans: 'Source Sans 3', -apple-system, sans-serif;
    --text: #1e1e1e;
    --text-secondary: #555;
    --text-muted: #999;
    --bg: #faf9f7;
    --bg-white: #ffffff;
    --border: #e8e4df;
    --accent: #b8442e;
    --accent-dark: #8b3322;
    --radius: 6px;
}

body { font-family: var(--serif); line-height: 1.85; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }

/* Header */
header { background: var(--text); color: var(--bg); }
.header-inner { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 900; text-decoration: none; color: var(--bg); letter-spacing: -0.02em; }
header nav { display: flex; gap: 1.5rem; font-family: var(--sans); }
header nav a { text-decoration: none; color: #bbb; font-size: 0.9rem; font-weight: 500; transition: color 0.15s; }
header nav a:hover { color: #fff; }

/* Main */
main { max-width: 1060px; margin: 0 auto; min-height: 70vh; }
.main-inner { padding: 2.5rem 1.5rem 4rem; }

/* Typography */
h1 { font-family: var(--serif); font-size: 2.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
p { margin-bottom: 1.1rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
ul, ol { margin: 0 0 1.1rem 1.5rem; }
li { margin-bottom: 0.4rem; }

/* Pullquote */
blockquote {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--accent);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(184,68,46,0.04);
    border-radius: 0 var(--radius) var(--radius) 0;
    line-height: 1.5;
}

/* Breadcrumb */
.breadcrumb { font-family: var(--sans); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.4rem; }

/* Article meta */
.article-header { margin-bottom: 2rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; font-family: var(--sans); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.article-meta .category { background: var(--accent); color: white; padding: 0.15rem 0.65rem; border-radius: 3px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Hero image */
.hero-image { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 2rem; aspect-ratio: 16/9; object-fit: cover; }

/* TOC */
.toc { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.toc-title { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 0.75rem; }
.toc ol { margin: 0; padding-left: 1.25rem; font-family: var(--sans); }
.toc li { margin-bottom: 0.4rem; font-size: 0.88rem; }
.toc a { color: var(--text-secondary); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* Article body */
article img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.5rem 0; }

/* Featured card */
.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 2.5rem;
    transition: box-shadow 0.25s;
}
.featured-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.featured-card a { text-decoration: none; color: inherit; }
.featured-image { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.featured-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.featured-category { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.75rem; }
.featured-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; line-height: 1.25; margin-bottom: 0.75rem; color: var(--text); }
.featured-excerpt { font-family: var(--sans); font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.featured-footer { font-family: var(--sans); font-size: 0.78rem; color: var(--text-muted); }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card a { text-decoration: none; color: inherit; display: block; }
.card-image { width: 100%; height: 190px; object-fit: cover; display: block; }
.card-body { padding: 1.25rem; }
.card-category { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.4rem; }
.card-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; color: var(--text); }
.card-excerpt { font-family: var(--sans); font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.75rem; }
.card-footer { font-family: var(--sans); display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }

/* Homepage */
.section-label { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); display: inline-block; }

/* Footer */
footer { background: var(--text); color: #ccc; padding: 3rem 0; }
.footer-inner { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; font-family: var(--sans); }
.footer-brand { font-family: var(--serif); font-weight: 900; font-size: 1.15rem; color: #fff; margin-bottom: 0.5rem; }
.footer-about p { font-size: 0.85rem; color: #999; line-height: 1.6; }
.footer-heading { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #777; margin-bottom: 0.75rem; }
.footer-nav a { display: block; font-size: 0.85rem; color: #aaa; text-decoration: none; margin-bottom: 0.4rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal p { font-size: 0.8rem; color: #777; margin-bottom: 0.25rem; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.card { animation: fadeIn 0.35s ease both; }
.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.featured-card { animation: fadeIn 0.4s ease both; }

/* Responsive */
@media (max-width: 700px) {
    h1 { font-size: 1.7rem; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-image { min-height: 200px; }
    .card-grid { grid-template-columns: 1fr; }
    .header-top { flex-direction: column; gap: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
