@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Barlow:wght@400;500;600;700&display=swap');

:root { --ink: #ffffff; --muted: #9aa0ab; --line: #2a2d35; --paper: #101216; --panel: #191c22; --accent: #ffd400; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'Barlow', -apple-system, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Oswald', sans-serif; margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.placeholder-img { background: linear-gradient(135deg, #23262e, #14161b); display: flex; align-items: center; justify-content: center; color: #4a4f5a; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; object-fit: cover; }

.site-header { background: #000; padding: 16px 0; border-bottom: 3px solid var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: center; }
.logo-group { display: flex; align-items: center; gap: 12px; }
.logo-box { width: 46px; height: 46px; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 20px; clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%); }
.logo-img { height: 116px; width: auto; max-width: 440px; object-fit: contain; }
.site-name { font-family: 'Oswald', sans-serif; font-size: 24px; letter-spacing: .02em; }
.site-tagline { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.main-nav { background: var(--panel); }
.main-nav .wrap { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; }
.main-nav a { color: #cfd2d8; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 13px 20px; display: block; }
.main-nav a.home { color: #000; background: var(--accent); }
.main-nav a:hover:not(.home) { color: var(--accent); }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; padding: 34px 24px; max-width: 1180px; margin: 0 auto; align-items: start; }

.hero-block { position: relative; margin-bottom: 40px; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.hero-block .placeholder-img, .hero-block img { width: 100%; height: 380px; }
.hero-block-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.1) 55%); display: flex; align-items: flex-end; }
.hero-block-copy { padding: 34px 40px; }
.cat-tag { display: inline-block; background: var(--accent); color: #000; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 12px; }
.hero-block-copy h1 { font-size: 40px; line-height: 1.1; margin: 10px 0; color: #fff; }
.meta { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }

.section-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--accent); padding-bottom: 8px; margin-bottom: 20px; }
.section-heading h2 { font-size: 20px; }
.section-heading .see-all { font-size: 11.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; }
section.cat-section { margin-bottom: 44px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { display: block; background: var(--panel); position: relative; overflow: hidden; }
.stat-card .placeholder-img, .stat-card img { width: 100%; height: 140px; }
.stat-card .inner { padding: 14px; }
.stat-card h3 { font-size: 15.5px; line-height: 1.25; margin: 6px 0; }
.stat-num { position: absolute; top: 10px; right: 10px; background: var(--accent); color: #000; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 12px; padding: 3px 9px; }
.featured-ribbon { display: inline-block; background: var(--accent); color: #000; font-size: 10.5px; font-weight: 700; text-transform: uppercase; padding: 3px 9px; margin-bottom: 6px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.post-card { display: block; background: var(--panel); }
.post-card .placeholder-img, .post-card img { width: 100%; height: 140px; }
.post-card .inner { padding: 14px; }
.post-card h3 { font-size: 15px; margin: 6px 0; line-height: 1.3; }
.post-card p { font-family: 'Barlow', sans-serif; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); margin: 0 0 6px; }

.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget { background: var(--panel); padding: 18px; border-left: 3px solid var(--accent); }
.widget h3 { font-size: 15px; margin: 0 0 14px; }
.trending-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.trending-list li { counter-increment: rank; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trending-list li:last-child { border-bottom: none; }
.trending-list li::before { content: counter(rank); font-family: 'Oswald', sans-serif; font-size: 22px; color: var(--accent); opacity: .6; }
.t-title a { font-family: 'Barlow', sans-serif; text-transform: none; font-weight: 600; font-size: 13.5px; }
.t-meta { color: var(--muted); font-size: 10.5px; text-transform: uppercase; margin-top: 2px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: #23262e; font-family: 'Barlow', sans-serif; text-transform: none; font-size: 12px; padding: 6px 12px; }
.newsletter-widget input { width: 100%; padding: 9px 10px; background: var(--paper); border: 1px solid var(--line); color: #fff; margin-bottom: 8px; font-family: 'Barlow', sans-serif; }
.newsletter-widget button { width: 100%; background: var(--accent); color: #000; border: none; padding: 9px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.social-row { display: flex; gap: 12px; font-family: 'Barlow', sans-serif; text-transform: none; font-size: 12.5px; font-weight: 600; }
.ad-widget { text-align: center; color: var(--muted); font-size: 11px; padding: 30px 10px; border: 1px dashed var(--line); text-transform: uppercase; }

.category-title { font-size: 32px; margin: 0 0 24px; }
.single-post-header h1 { font-size: 36px; line-height: 1.15; margin: 10px 0 12px; }
.single-post-headline { width: 100%; margin-bottom: 28px; }
.single-post-content { font-family: 'Barlow', sans-serif; font-size: 16px; line-height: 1.75; color: #d8dae0; }
.single-post-content p { margin: 0 0 18px; }
.single-post-content a { color: var(--accent); text-decoration: underline; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-pill-link { background: var(--panel); font-family: 'Barlow', sans-serif; text-transform: none; font-size: 12px; padding: 5px 12px; }
.related-posts { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 26px; }
.related-posts h2 { font-size: 19px; margin-bottom: 18px; }

.search-form { display: flex; gap: 10px; margin: 0 0 22px; }
.search-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); background: var(--panel); color: #fff; font-family: 'Barlow', sans-serif; }
.search-form button { background: var(--accent); color: #000; border: none; padding: 0 20px; font-weight: 700; cursor: pointer; text-transform: uppercase; }

.empty-state { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty-state h1 { color: #fff; font-size: 28px; }
.btn { display: inline-block; margin-top: 16px; background: var(--accent); color: #000; padding: 10px 20px; font-weight: 700; text-transform: uppercase; }

.site-footer { background: #000; padding: 40px 24px 20px; margin-top: 20px; border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 30px; padding-bottom: 24px; border-bottom: 1px solid #2a2d35; }
.footer-grid h4 { font-size: 12px; letter-spacing: .05em; margin: 0 0 12px; color: var(--accent); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-family: 'Barlow', sans-serif; text-transform: none; font-size: 13px; }
.footer-bottom { padding-top: 16px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-block-copy h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
