:root {
    --accent: #e11d2e;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --border: #e5e5e5;
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

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

header.site-header {
    border-bottom: 3px solid var(--accent);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

header.site-header .logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
header.site-header .logo span { color: var(--accent); }

nav.categories {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.card-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.card-body { padding: 14px 16px 18px; }

.card-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.card h2 { font-size: 18px; margin: 0 0 8px; line-height: 1.3; }
.card p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.card time { color: var(--muted); font-size: 12px; }

.page-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 24px;
}

article.single {
    max-width: 760px;
    margin: 0 auto;
}
article.single .category-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
article.single h1 { font-size: 32px; line-height: 1.25; margin: 0 0 12px; }
article.single time { color: var(--muted); font-size: 13px; display: block; margin-bottom: 20px; }
article.single img.featured {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto 24px;
    border-radius: 10px;
    aspect-ratio: 1/1;
    object-fit: cover;
}
article.single .body { font-size: 17px; }
article.single .body p { margin: 0 0 18px; }
article.single .source {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}

footer.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 600px) {
    article.single h1 { font-size: 24px; }
}
