/* ============================================================
   ai-business.garnersites.cloud — site chrome + design tokens.
   Loaded by every page. Component-only — no body / html / *
   rules so designed pages (chapter brief, etc.) aren't shifted
   by typography defaults.
   ============================================================ */

:root {
	/* Surfaces */
	--ink-page: #0a0a0a;
	--ink-card: #141414;
	--ink-line: #232323;
	--ink-line-soft: #1a1a1a;
	--paper: #f5efe2;
	--paper-warm: #ebe1c9;

	/* Text on dark */
	--ink-text: #f5efe2;
	--ink-text-soft: #c2bdb3;
	--ink-text-mid: #7a766f;
	--ink-text-deep: #4a4844;

	/* Brand */
	--accent: #c41e1e;
	--accent-deep: #8a1414;
	--accent-soft: rgba(196, 30, 30, 0.14);

	/* Type stack */
	--font-display: 'Anton', 'Bebas Neue', 'Impact', sans-serif;
	--font-serif:   'DM Serif Display', Georgia, 'Times New Roman', serif;
	--font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	--font-mono:    'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

/* ============================================================
   SITE HEADER — sticky branded masthead, used on every page.
   Accepts a flex-column body (chapter brief uses one) via
   align-self: stretch, and a normal block body too.
   ============================================================ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	align-self: stretch;
	width: 100%;
	background: var(--ink-page);
	color: var(--ink-text);
	border-bottom: 1px solid var(--ink-line);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
	font-weight: 600;
}
.site-header::after {
	content: '';
	position: absolute;
	inset: auto 0 -2px 0;
	height: 2px;
	background: var(--accent);
	pointer-events: none;
}
.site-header .header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 28px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.site-header .mark {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink-text);
	flex-shrink: 0;
	line-height: 1;
}
.site-header .mark .bar {
	display: inline-block;
	width: 5px;
	height: 18px;
	background: var(--accent);
	flex-shrink: 0;
}
.site-header .mark .gl {
	font-family: var(--font-display);
	font-size: 17px;
	letter-spacing: 0.16em;
	line-height: 1;
}
.site-header .mark .slash {
	color: var(--accent);
	font-weight: 700;
	margin: 0 2px;
}
.site-header .mark .sub {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.22em;
	color: var(--ink-text-soft);
	font-weight: 600;
}
.site-header .mark:hover .gl { color: var(--accent); }

.site-header .nav {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
}
.site-header .nav a {
	color: var(--ink-text-soft);
	text-decoration: none;
	letter-spacing: 0.18em;
	font-weight: 600;
	transition: color 0.15s ease;
}
.site-header .nav a:hover { color: var(--accent); }
.site-header .nav a.current { color: var(--ink-text); }
.site-header .nav .print-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid var(--ink-line);
	background: transparent;
	color: var(--ink-text-soft);
	cursor: pointer;
	font: inherit;
	letter-spacing: 0.18em;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.site-header .nav .print-link .ico {
	display: inline-block;
	width: 10px;
	height: 10px;
	border: 1px solid currentColor;
	border-top: 0;
	position: relative;
}
.site-header .nav .print-link .ico::after {
	content: '';
	position: absolute;
	left: 50%;
	top: -6px;
	width: 1px;
	height: 6px;
	background: currentColor;
	transform: translateX(-50%);
	box-shadow: -2px -2px 0 -1.5px currentColor, 2px -2px 0 -1.5px currentColor;
}
.site-header .nav .print-link:hover {
	color: var(--ink-text);
	border-color: var(--accent);
	background: var(--accent);
}

@media (max-width: 760px) {
	.site-header .header-inner {
		flex-wrap: wrap;
		gap: 14px;
		padding: 14px 18px;
	}
	.site-header .nav {
		margin-left: 0;
		flex-wrap: wrap;
		gap: 16px;
	}
	.site-header .mark .sub { display: none; }
}

/* ============================================================
   SITE FOOTER — used on every page.
   ============================================================ */

.site-footer {
	align-self: stretch;
	width: 100%;
	background: var(--ink-page);
	color: var(--ink-text-mid);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	border-top: 2px solid var(--accent);
	padding: 28px 0;
	font-weight: 600;
}
.site-footer .footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 28px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.site-footer .mark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink-text-soft);
}
.site-footer .mark .bar {
	display: inline-block;
	width: 4px;
	height: 12px;
	background: var(--accent);
}
.site-footer .colophon {
	margin-left: auto;
	color: var(--ink-text-mid);
	letter-spacing: 0.18em;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}
.site-footer .colophon strong {
	color: var(--ink-text);
	font-weight: 700;
	margin-left: 6px;
}
.site-footer .dot { color: var(--accent); margin: 0 10px; }
.site-footer a {
	color: var(--ink-text-soft);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.site-footer a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 720px) {
	.site-footer { padding: 22px 0; }
	.site-footer .footer-inner { gap: 14px; }
	.site-footer .colophon { margin-left: 0; font-size: 10px; letter-spacing: 0.14em; }
	.site-footer .colophon .dot { margin: 0 6px; }
}

/* ============================================================
   PRINT — hide chrome
   ============================================================ */
@media print {
	.site-header,
	.site-footer {
		display: none !important;
	}
}
