/*
 * main.css — Beantown Magazine design tokens + shared base.
 * Loaded first; header.css and footer.css depend on the custom
 * properties defined here.
 */

:root {
	/* Palette: Boston green. Green #008348 is the primary (masthead,
	   bands, buttons); black #000000 for text and rules; gold #BB9753
	   for headline highlights; red #A73832 for kickers and accents;
	   white. --btm-cyan is a pale cream panel tint; --btm-slate a
	   neutral grey for secondary text. Legacy token names kept so the
	   shared CSS drops in unchanged. */
	--btm-ink: #000000;
	--btm-slate: #474747;
	--btm-powder: #bb9753;
	--btm-cyan: #f5f0e6;
	--btm-peach: #a73832;
	--btm-green: #008348;
	--btm-white: #ffffff;

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

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--btm-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. */
.btm-highlight {
	background: var(--btm-powder);
	color: inherit;
	padding: 0 0.08em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

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

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

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

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

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

.btm-skip-link:focus {
	left: 0;
	color: var(--btm-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 {
		--btm-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.
 * ============================================================ */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.btm-sect__link--light {
	color: var(--btm-white);
	border-bottom-color: var(--btm-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,
.btm-header, .btm-header span,
.btm-footer, .btm-footer span,
.btm-home span, .btm-dir span, .btm-listing span,
.btm-single span, .btm-archive span, .btm-stat span,
.btm-hero span, .btm-factstack span, .btm-morein span {
	font-family: var(--btm-font) !important;
}

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


/* ---- Boston navy-and-gold masthead ---- */
.btm-mast {
	background: var(--btm-green);
}

.btm-masthead__title {
	color: var(--btm-white);
}

.btm-masthead__title span {
	color: var(--btm-powder);
}

.btm-masthead__tag {
	color: var(--btm-white);
}

.btm-topbar__cta {
	color: var(--btm-white);
	border-bottom-color: var(--btm-powder);
}

.btm-topbar__cta:hover {
	color: var(--btm-powder);
	border-color: var(--btm-powder);
}

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