/*
Theme Name:        Bantu Alert
Description:       Theme for the Bantu Alert community alert network, a Heartwave Foundation initiative. Pair it with the Bantu Alert plugin.
Version:           1.0.0
Requires at least: 6.3
Requires PHP:      7.4
Author:            Heartwave Foundation
License:           GPL-2.0-or-later
Text Domain:       bantu-alert-theme
Tags:              one-column, custom-logo, custom-menu
*/

/* Layout: a broadcast bulletin. Dark band header with a sticky tab row, content on a cool grey ground. */
:root {
	--ua-bg: #eaefec; --ua-surface: #fafcfb; --ua-sunk: #dfe6e2; --ua-ink: #10201f; --ua-muted: #516265; --ua-line: #c6d1cc;
	--ua-band: #0f3a37; --ua-on-band: #f1f6f4; --ua-band-muted: #a9c4bf;
	--ua-signal: #f2c230; --ua-on-signal: #1c1600;
	--ua-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
	--ua-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ua-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ua-bg: #0c1514; --ua-surface: #14201f; --ua-sunk: #0f1a19; --ua-ink: #e7efec; --ua-muted: #98aaa7; --ua-line: #2a3b38;
		--ua-band: #081f1d; --ua-band-muted: #8fb0aa; color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ua-bg); color: var(--ua-ink); font: 400 16px/1.55 var(--ua-body); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--ua-signal); color: var(--ua-on-signal); padding: 10px 14px; }
:focus-visible { outline: 3px solid var(--ua-signal); outline-offset: 2px; }

/* header */
.site-header { background: var(--ua-band); color: var(--ua-on-band); }
.brand { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-block: 20px 16px; }
.brand-id { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.brand-logo { flex: none; width: 80px; height: 80px; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-title { font: 800 clamp(1.9rem, 5.5vw, 3rem)/1 var(--ua-display); letter-spacing: -.02em; margin: 0; }
.site-title span { color: var(--ua-signal); }
.site-tagline { color: var(--ua-band-muted); font-size: .9rem; margin: 4px 0 0; }
.motto { font: 500 1.05rem/1.3 var(--ua-display); max-width: 24ch; margin: 0; }
.hotline { display: flex; flex-direction: column; gap: 2px; }
.hotline span { font: 600 .7rem var(--ua-body); text-transform: uppercase; letter-spacing: .09em; color: var(--ua-band-muted); }
.hotline b { font: 700 1.2rem var(--ua-mono); color: var(--ua-signal); user-select: all; }
.site-header .ua-stats { padding-block: 0 16px; color: var(--ua-band-muted); }
.site-header .ua-stats b { color: var(--ua-on-band); }

.site-nav { position: sticky; top: 0; z-index: 20; background: var(--ua-band); border-top: 1px solid rgba(241, 246, 244, .16); }
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 0; } }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0 16px; max-width: 1140px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site-nav li { flex: none; }
.site-nav a { display: block; color: var(--ua-band-muted); text-decoration: none; font: 600 .92rem var(--ua-body); padding: 13px 14px; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--ua-on-band); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--ua-on-band); border-bottom-color: var(--ua-signal); }
.site-nav .menu-cta > a { color: var(--ua-signal); }

/* content */
.site-main { padding-block: 30px 64px; }
.page-head { margin-bottom: 22px; max-width: 70ch; }
.page-title { font: 700 clamp(1.6rem, 4vw, 2.2rem)/1.1 var(--ua-display); margin: 0 0 8px; text-wrap: balance; }
.page-lede { color: var(--ua-muted); margin: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p, .entry-content li { max-width: 70ch; }
.entry-content h2 { font: 700 1.5rem/1.2 var(--ua-display); }
.post-list { display: grid; gap: 20px; }
.post-list article { background: var(--ua-surface); border: 1px solid var(--ua-line); padding: 18px; }
.post-list h2 { font: 700 1.3rem var(--ua-display); margin: 0 0 6px; }
.meta { color: var(--ua-muted); font-size: .85rem; }

/* footer */
.site-footer { border-top: 1px solid var(--ua-line); padding-block: 26px 30px; color: var(--ua-muted); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer p { margin: 0 0 8px; max-width: 62ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-footer b { color: var(--ua-ink); }
