/*
 * main.css: Greater Houston Magazine design tokens and shared base.
 * Loaded first; header.css and footer.css depend on the custom
 * properties defined here.
 */

:root {
	/* Palette: Houston bayou and Gulf Coast. Navy #14213a ink,
	   bayou teal #0b4a5a masthead band, gold #f4b63f for
	   headline highlights and light buttons, dark amber #8f5200
	   for hover, focus and accents, pale mint #eef6f4 panels, blue
	   grey #46546a secondary text. Pink lives in brand.css. Legacy
	   token names kept so the shared CSS drops in unchanged. */
	--ghm-ink: #14213a;
	--ghm-slate: #46546a;
	--ghm-powder: #f4b63f;
	--ghm-cyan: #eef6f4;
	--ghm-peach: #8f5200;
	--ghm-green: #0b4a5a;
	--ghm-white: #ffffff;

	--ghm-font: "Archivo", sans-serif;
	--ghm-max: 1280px;
	--ghm-pad: 40px;
	--ghm-rule: 2px solid var(--ghm-ink);
}

body {
	margin: 0;
	background: var(--ghm-white);
	color: var(--ghm-ink);
	font-family: var(--ghm-font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--ghm-ink);
	text-decoration: none;
}

a:hover {
	color: var(--ghm-peach);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--ghm-peach);
	outline-offset: 2px;
}

/* Headline treatment: 900 weight, tight tracking. */
h1, h2, h3 {
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 1.05;
	margin: 0 0 0.5em;
}

/* Powder-blue highlight for headline words, cloned across line wraps. */
.ghm-highlight {
	background: var(--ghm-powder);
	color: inherit;
	padding: 0 0.08em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Solid ink button, peach on hover. */
.ghm-button {
	display: inline-block;
	padding: 10px 16px;
	background: var(--ghm-ink);
	color: var(--ghm-white);
	font-weight: 700;
	font-size: 13px;
}

.ghm-button:hover {
	background: var(--ghm-peach);
	color: var(--ghm-white);
}

/* Small uppercase kicker used in the mega menu and footer. */
.ghm-mega__kicker {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ghm-slate);
}

.ghm-main {
	max-width: var(--ghm-max);
	margin: 0 auto;
	padding: 0 var(--ghm-pad);
}

.ghm-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	padding: 10px 16px;
	background: var(--ghm-ink);
	color: var(--ghm-white);
	font-weight: 700;
	z-index: 100;
}

.ghm-skip-link:focus {
	left: 0;
	color: var(--ghm-white);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

@media (max-width: 700px) {
	:root {
		--ghm-pad: 20px;
	}
}



/* ============================================================
 * Shared components (crumb, pills, CTA bands, section links,
 * kickers) — used across archives, singles, and the front page,
 * so they live in the always-loaded sheet.
 * ============================================================ */

.ghm-crumb {
	display: flex;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ghm-slate);
}

.ghm-crumb a {
	color: var(--ghm-slate);
}

.ghm-pill {
	padding: 7px 12px;
	border: 1.5px solid var(--ghm-ink);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

button.ghm-pill {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	color: var(--ghm-ink);
	font-family: inherit;
	line-height: inherit;
	cursor: pointer;
}

button.ghm-pill.is-on {
	background: var(--ghm-ink);
	color: var(--ghm-white);
}

/* Client-side filters set [hidden]; make sure it always wins over
 * the display:grid/flex the rows carry. */
[data-ghm-row][hidden],
[data-ghm-group][hidden],
[data-ghm-empty][hidden] {
	display: none !important;
}

.ghm-pill.is-on {
	background: var(--ghm-ink);
	color: var(--ghm-white);
}

.ghm-band {
	margin: 96px 0 0;
	padding: 44px 48px;
	background: var(--ghm-ink);
	color: var(--ghm-white);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.ghm-band__title {
	margin: 0;
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 1;
}

.ghm-band__sub {
	margin: 8px 0 0;
	font-size: 15px;
	color: var(--ghm-powder);
}

.ghm-band__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.ghm-band__btn {
	padding: 14px 22px;
	font-weight: 700;
	font-size: 14px;
}

.ghm-band__btn--powder {
	background: var(--ghm-powder);
	color: var(--ghm-ink);
}

.ghm-band__btn--ghost {
	border: 2px solid var(--ghm-white);
	color: var(--ghm-white);
}

.ghm-band__btn--ghost:hover {
	color: var(--ghm-white);
	background: rgba(255, 255, 255, 0.12);
}

.ghm-band__btn--ink {
	background: var(--ghm-ink);
	color: var(--ghm-white);
}

.ghm-band__btn--outline {
	border: var(--ghm-rule);
	color: var(--ghm-ink);
}

.ghm-kicker {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ghm-slate);
}

.ghm-sect__link {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-bottom: 2px solid var(--ghm-ink);
}

.ghm-sect__link--light {
	color: var(--ghm-white);
	border-bottom-color: var(--ghm-white);
}

/* ============================================================
 * Font enforcement.
 * Plugins (form builders, page builders) often ship their own
 * typeface rules, so the Archivo tokens are asserted with
 * !important. Icon elements (<i>, icon classes) are deliberately
 * NOT targeted, so icon fonts keep rendering.
 * ============================================================ */

body,
h1, h2, h3, h4, h5, h6,
p, a, li, dt, dd, small, strong, em,
blockquote, figcaption, label, legend, mark,
th, td, caption,
button, input, select, textarea,
.ghm-header, .ghm-header span,
.ghm-footer, .ghm-footer span,
.ghm-home span, .ghm-dir span, .ghm-listing span,
.ghm-single span, .ghm-archive span, .ghm-stat span,
.ghm-hero span, .ghm-factstack span, .ghm-morein span {
	font-family: var(--ghm-font) !important;
}

body {
	color: var(--ghm-ink) !important;
	background: var(--ghm-white) !important;
}


/* ---- Greater Houston brand overrides (masthead colors live in header.css) ---- */
.ghm-mast {
	background: var(--ghm-green);
}

.ghm-highlight--peach {
	background: var(--ghm-powder);
}
