:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #16181d;
  --muted: #5f6673;
  --border: #e3e6eb;
  --accent: #c8102e;
  --accent-dark: #a00d25;
  --radius: 10px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Top bar + header */
.topbar {
  background: var(--text);
  color: #cfd3da;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; gap: 12px; }
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a.active { color: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 20px; cursor: pointer; }

.cat-bar { border-bottom: 1px solid var(--border); background: var(--surface); overflow-x: auto; }
.cat-bar .container { display: flex; gap: 18px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cat-bar a { color: var(--muted); }
.cat-bar a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); gap: 14px; }
  .nav.open { display: flex; }
  .topbar .tagline { display: none; }
}

/* Category label */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.meta { color: var(--muted); font-size: 13px; }

/* Hero */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; padding: 32px 0; }
.hero-main img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); width: 100%; }
.hero-main h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 14px 0 10px; }
.hero-main p { color: var(--muted); font-size: 17px; margin: 0 0 8px; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.side-item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.side-item:last-child { border-bottom: none; }
.side-item img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.side-item h3 { font-size: 16px; line-height: 1.3; margin: 4px 0; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* Section */
.section { padding: 28px 0; }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 3px solid var(--text);
  padding-top: 10px; margin-bottom: 20px;
}
.section-title h2 { margin: 0; font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em; }
.section-title a { font-size: 14px; font-weight: 600; color: var(--accent); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card img { aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); width: 100%; margin-bottom: 12px; }
.card h3 { font-family: var(--serif); font-size: 20px; line-height: 1.25; margin: 6px 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 8px; }

/* Newsletter */
.newsletter {
  background: var(--text); color: #fff; border-radius: var(--radius);
  padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.newsletter h2 { margin: 0 0 6px; font-family: var(--serif); }
.newsletter p { margin: 0; color: #cfd3da; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  padding: 12px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 15px;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

/* Blog listing */
.page-head { padding: 36px 0 16px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; align-items: center; }
.filters button {
  border: 1px solid var(--border); background: var(--bg); padding: 7px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text);
}
.filters button.active { background: var(--text); color: #fff; border-color: var(--text); }
.filters input {
  margin-left: auto; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; min-width: 220px;
}
@media (max-width: 560px) { .filters input { margin-left: 0; width: 100%; } }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 36px 0; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article-header h1 { font-family: var(--serif); font-size: clamp(28px, 4.5vw, 44px); line-height: 1.15; margin: 10px 0 12px; }
.article-header .lead { font-size: 19px; color: var(--muted); margin: 0 0 14px; }
.article-header img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin: 20px 0 28px; width: 100%; }
.article-body { font-size: 18px; max-width: 720px; }
.article-body h2 { font-family: var(--serif); font-size: 26px; margin: 34px 0 10px; line-height: 1.25; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--accent); margin: 24px 0; padding: 4px 0 4px 18px;
  font-family: var(--serif); font-size: 21px; color: var(--text);
}
.share { display: flex; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; align-items: center; }
.share a { border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.sidebar h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; border-top: 3px solid var(--text); padding-top: 10px; }
.sidebar .side-item { grid-template-columns: 80px 1fr; }
.sidebar .side-item h3 { border: none; padding: 0; text-transform: none; letter-spacing: 0; font-size: 15px; }

/* Static pages */
.prose { max-width: 760px; padding-bottom: 40px; font-size: 17px; }
.prose h2 { font-family: var(--serif); margin-top: 30px; }
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { font-weight: 600; font-size: 14px; }
.form input, .form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font: inherit; margin-top: 6px;
}

/* Ad slots */
.ad-slot {
  max-width: var(--max);
  margin: 24px auto;
  padding: 0 16px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-body .ad-slot { padding: 0; margin: 28px 0; }
.ad-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Footer */
.site-footer { background: var(--text); color: #cfd3da; margin-top: 48px; padding: 40px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid #333842; margin-top: 28px; padding-top: 18px; color: #8d94a1; }
