:root {
	--ink: #0f172a;
	--muted: #64748b;
	--line: #e2e8f0;
	--bg: #ffffff;
	--soft: #f6f8fb;
	--dark: #0b1220;
	--dark-2: #131c2e;
	--accent: #0ea5a4;
	--accent-2: #f59e0b;
	--radius: 10px;
	--max: 1200px;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--serif: 'Merriweather', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand-text { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff; font-size: 18px; }
.brand .custom-logo { max-height: 40px; width: auto; }

.primary-nav { flex: 1; }
.primary-nav .menu { display: flex; gap: 4px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a { display: flex; align-items: center; gap: 6px; padding: 22px 12px; font-size: 14px; font-weight: 600; color: #cbd5e1; }
.primary-nav .menu > li:hover > a,
.primary-nav .menu > li.current-menu-item > a { color: #fff; }
.caret { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--dark-2); border-top: 2px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; box-shadow: 0 16px 32px rgba(0,0,0,.3); }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 9px 18px; font-size: 14px; color: #cbd5e1; }
.primary-nav .sub-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }

.search-toggle, .nav-toggle { background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }
.search-panel { background: var(--dark-2); padding: 16px 0; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-field { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.search-submit, .btn, .newsletter button { background: var(--accent); color: #fff; border: 0; padding: 11px 18px; border-radius: var(--radius); font: inherit; font-weight: 700; cursor: pointer; display: inline-block; }
.search-submit:hover, .btn:hover, .newsletter button:hover { background: #0c8f8e; color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--dark); padding: 24px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 480px; }
.hero-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); }
.hero-item--lead { grid-row: 1 / span 2; }
.hero-link { position: absolute; inset: 0; display: block; color: #fff; }
.hero-link img, .hero-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-placeholder { display: block; background: linear-gradient(135deg, #1e3a5f, #0e7490); }
.hero-link:hover img { transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,10,20,.88), rgba(5,10,20,.05) 65%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hero-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.hero-item--lead .hero-title { font-size: 26px; }
.hero-date { font-size: 12px; color: #cbd5e1; }

/* ---------- Labels / meta ---------- */
.cat-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.cat-label--solid { background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 4px; }
.meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.read-time { font-size: 12px; color: var(--muted); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 36px; padding-bottom: 36px; }
.section-title { font-size: 20px; font-weight: 800; padding-left: 12px; border-left: 4px solid var(--accent); margin-bottom: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.see-all { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-media { display: block; overflow: hidden; border-radius: var(--radius); margin-bottom: 12px; }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-title { font-size: 16px; font-weight: 700; margin: 6px 0; }
.card-excerpt { font-size: 14px; color: var(--muted); margin: 0 0 6px; }

.list .card--list { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list .card--list:first-child { padding-top: 0; }
.list .card--list .card-media { margin: 0; }
.list .card--list .card-media img { aspect-ratio: 1; }
.list .card--list:not(:has(.card-media)) { grid-template-columns: 1fr; }
.list .card-title { font-size: 17px; margin-top: 4px; }

/* ---------- Sidebar ---------- */
.sidebar .widget { background: var(--soft); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.widget-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.sidebar li { padding: 7px 0; }
.ranked { counter-reset: r; }
.ranked li { counter-increment: r; position: relative; padding: 12px 0 12px 38px; border-bottom: 1px solid var(--line); }
.ranked li:last-child { border-bottom: 0; }
.ranked li::before { content: counter(r); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ranked a { display: block; font-weight: 600; font-size: 14px; margin-top: 3px; }
.newsletter { background: var(--dark) !important; color: #fff; }
.newsletter p { font-size: 14px; color: #cbd5e1; margin: 0 0 12px; }
.newsletter input[type="email"] { width: 100%; padding: 11px 12px; border-radius: 8px; border: 0; margin-bottom: 8px; font: inherit; }
.newsletter button { width: 100%; }

/* ---------- Bands / sections ---------- */
.band { background: var(--soft); padding: 40px 0; }
.cat-section { padding-top: 40px; padding-bottom: 12px; }

/* ---------- Single ---------- */
.single-head { margin-bottom: 22px; }
.single-title { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.byline img { border-radius: 50%; }
.single-media { margin: 0 0 24px; }
.single-media img { width: 100%; border-radius: var(--radius); }
.entry { font-family: var(--serif); font-size: 18px; line-height: 1.8; }
.entry > * { max-width: 100%; }
.entry h2, .entry h3 { font-family: var(--sans); margin: 1.6em 0 .6em; }
.entry a { color: var(--accent); text-decoration: underline; }
.entry blockquote { border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .2em 0 .2em 20px; color: var(--muted); font-style: italic; }
.entry img { border-radius: 8px; }
.tags { font-size: 13px; margin-top: 28px; }
.tags a { background: var(--soft); padding: 4px 10px; border-radius: 999px; margin-right: 6px; }
.related { margin-top: 48px; }
.comments { margin-top: 48px; }
.comment-list { margin-bottom: 24px; }
.comment-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.comment-form .submit { background: var(--accent); color: #fff; border: 0; padding: 11px 20px; border-radius: var(--radius); font-weight: 700; cursor: pointer; }

/* ---------- Archive / 404 / pagination ---------- */
.archive-head { padding: 36px 0 0; }
.archive-head h1 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.archive-desc { color: var(--muted); }
.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 96px; color: var(--accent); }
.notfound .search-form { margin: 20px auto; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 14px; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cbd5e1; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.footer-about .brand-text { color: #fff; }
.footer-about p { max-width: 380px; font-size: 14px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col li { padding: 5px 0; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: var(--dark-2); display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.header-inner { gap: 12px; }
	.brand { flex: 1; }
	.primary-nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--dark-2); display: none; max-height: calc(100vh - 64px); overflow-y: auto; }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
	.primary-nav .menu > li > a { padding: 12px 0; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 0 14px; background: transparent; }
	.primary-nav li.is-expanded > .sub-menu { display: block; }
	.hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
	.hero-item { min-height: 200px; }
	.hero-item--lead { grid-column: 1 / -1; grid-row: auto; min-height: 320px; }
}
@media (max-width: 640px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.hero-grid { grid-template-columns: 1fr; }
	.single-title { font-size: 27px; }
	.footer-grid { grid-template-columns: 1fr; }
	.list .card--list { grid-template-columns: 96px 1fr; }
}
