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

:root {
	/* Palette: New York State's colors, blue and gold. Navy-black
	   #0B1D3A ink, Empire blue #002D72 (masthead band), gold #FFC72C
	   (headline highlights, bands, rules), a brighter blue #1D4FB8
	   (hover, focus, accents), white. --cnym-cyan is a pale blue tint
	   for panels; --cnym-slate a blue-grey for secondary text. Legacy
	   token names kept so the shared CSS drops in unchanged. */
	--cnym-ink: #0b1d3a;
	--cnym-slate: #3e4c66;
	--cnym-powder: #ffc72c;
	--cnym-cyan: #eaf0fa;
	--cnym-peach: #1d4fb8;
	--cnym-green: #002d72;
	--cnym-white: #ffffff;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


/* ---- New York blue-and-gold masthead ---- */
.cnym-mast {
	background: var(--cnym-green);
}

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

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

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

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

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

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