:root {
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --radius: 10px;
    --shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--accent); text-decoration: none; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* Main content */
.site-main { padding: 36px 16px 56px; min-height: 50vh; }
.hero { padding: 40px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.hero h1 { font-size: 2.2rem; margin: 0 0 8px; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section { margin-bottom: 40px; }
.section h2 { font-size: 1.35rem; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.card__title { margin: 0; font-size: 1.1rem; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; }
.card__excerpt { color: var(--muted); margin: 0; }

/* Badges */
.badge { display: inline-block; background: #eff6ff; color: var(--accent-dark); border: 1px solid #bfdbfe; border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; }
.badge-accent { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Single content */
.single { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.single__header { border-bottom: 1px solid var(--border); margin-bottom: 16px; padding-bottom: 12px; }
.single__header h1 { margin: 0 0 6px; }
.single__date, .single__meta, .card__meta time { color: var(--muted); font-size: 0.9rem; }
.single__body { overflow-wrap: anywhere; }
.single__fields { display: grid; gap: 10px; margin: 16px 0 0; }
.field-row { display: flex; gap: 12px; }
.field-row dt { min-width: 130px; color: var(--muted); font-weight: 600; }
.field-row dd { margin: 0; }
.single__terms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.single__terms .badge { text-decoration: none; }
.job__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product__price, .job__salary { font-size: 1.4rem; font-weight: 700; color: var(--accent-dark); margin: 8px 0; }
.product__meta { padding-inline-start: 18px; }

/* Pagination */
.pagination { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 32px; }
.page-link { background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.page-link:hover { background: var(--accent-dark); }
.page-status { color: var(--muted); }

/* Buttons & forms */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.search__form { display: flex; gap: 10px; max-width: 520px; margin-bottom: 24px; }
.search__input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; }
.search__results { margin: 0; padding-inline-start: 18px; display: grid; gap: 10px; }
.search__results .badge { margin-inline-start: 8px; }

/* Empty / 404 */
.empty { color: var(--muted); padding: 24px 0; }
.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font-size: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 640px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; flex-direction: column; gap: 12px; background: var(--surface); position: absolute; top: 64px; inset-inline: 0; padding: 16px; border-bottom: 1px solid var(--border); }
    .site-nav.open { display: flex; }
    .hero h1 { font-size: 1.7rem; }
}