/**
 * BlockHaven — "Dusk Frosted" design system.
 *
 * Every colour, radius, spacing and font value comes from the custom
 * properties printed by inc/dynamic-css.php. Nothing here is hardcoded, so the
 * Customizer can retheme the whole site.
 */

/* ---------------------------------------------------------------- resets */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bh-bg);
	color: var(--bh-text);
	font-family: var(--bh-font-body);
	font-size: var(--bh-font-size);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

::selection { background: color-mix(in srgb, var(--bh-accent) 30%, transparent); }

:focus-visible {
	outline: 2px solid var(--bh-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

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

.bh-skip-link:focus {
	position: fixed; top: 12px; left: 12px;
	z-index: 100;
	width: auto; height: auto;
	clip-path: none;
	padding: 10px 16px;
	background: var(--bh-accent);
	color: var(--bh-bg);
	border-radius: var(--bh-btn-radius);
}

/* ------------------------------------------------------------ typography */

h1, h2, h3, h4 {
	font-family: var(--bh-font-heading);
	font-weight: var(--bh-heading-weight);
	letter-spacing: var(--bh-heading-tracking);
	line-height: 1.15;
	margin: 0;
	text-wrap: balance;
}

.bh-h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
.bh-h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.bh-h3 { font-size: clamp(1.35rem, 3vw, 1.6rem); }
.bh-h4 { font-size: 1.15rem; }

.bh-muted { color: var(--bh-muted); text-wrap: pretty; }
.bh-small { font-size: 0.8rem; }
.bh-lead  { font-size: 1.05rem; max-width: 46ch; }

.bh-eyebrow {
	margin: 0;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--bh-accent);
}

/* --------------------------------------------------------------- layout */

.bh-shell {
	width: 100%;
	max-width: var(--bh-container);
	margin-inline: auto;
	padding-inline: 20px;
}

@media (min-width: 1024px) {
	.bh-shell { padding-inline: 32px; }
}

.bh-section { position: relative; padding-block: var(--bh-section-y); }
.bh-section--alt { background: color-mix(in srgb, var(--bh-surface) 55%, transparent); }
.bh-section--bordered { border-top: 1px solid color-mix(in srgb, var(--bh-text) 10%, transparent); }
.bh-section--grid { overflow: hidden; }

.bh--no-borders .bh-section--bordered { border-top: 0; }

.bh-section__head { margin-bottom: 40px; max-width: 48ch; }
.bh-section__head--row {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 16px; max-width: none;
}
.bh-section__head .bh-h2 { margin-top: 12px; }

.bh-grid { display: grid; gap: 20px; }
.bh-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bh-grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
	.bh-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------ components */

.bh-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px;
	border-radius: var(--bh-btn-radius);
	font-size: 0.9rem; font-weight: 500;
	transition: background-color var(--bh-duration) ease, color var(--bh-duration) ease, transform var(--bh-duration) ease;
}

.bh-btn--primary { background: var(--bh-accent); color: var(--bh-bg); }
.bh-btn--primary:hover { background: var(--bh-accent-2); }

.bh-btn--ghost {
	background: color-mix(in srgb, var(--bh-text) 6%, transparent);
	color: var(--bh-text);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 14%, transparent);
}
.bh-btn--ghost:hover { background: color-mix(in srgb, var(--bh-text) 11%, transparent); }

.bh-btn--link { color: var(--bh-muted); padding-inline: 12px; }
.bh-btn--link:hover { color: var(--bh-text); background: color-mix(in srgb, var(--bh-text) 6%, transparent); }

.bh-link { color: var(--bh-accent); font-size: 0.9rem; }
.bh-link--muted { color: var(--bh-muted); }
.bh-link--muted:hover { color: var(--bh-text); }

.bh-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 0.7rem;
	background: color-mix(in srgb, var(--bh-text) 6%, transparent);
	color: var(--bh-muted);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-badge--accent {
	background: color-mix(in srgb, var(--bh-accent) 12%, transparent);
	color: var(--bh-accent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-accent) 22%, transparent);
}

.bh-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	color: var(--bh-muted);
	background: color-mix(in srgb, var(--bh-text) 5%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-pill--accent {
	color: var(--bh-accent);
	background: color-mix(in srgb, var(--bh-accent) 10%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-accent) 20%, transparent);
}

.bh-dot {
	width: 6px; height: 6px; border-radius: 999px;
	background: var(--bh-accent);
	display: inline-block;
}

.bh-panel {
	padding: 16px;
	border-radius: var(--bh-card-radius);
	background: color-mix(in srgb, var(--bh-text) 5%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}

.bh-lift { transition: transform var(--bh-duration) cubic-bezier(0.2, 0.7, 0.2, 1); }
.bh-lift:hover { transform: translateY(calc(-4px * var(--bh-motion))); }

/* IP copy */

.bh-ip {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 8px 8px 8px 16px;
	border-radius: var(--bh-btn-radius);
	background: color-mix(in srgb, var(--bh-text) 5%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-ip__text { display: flex; flex-direction: column; line-height: 1.25; }
.bh-ip__label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--bh-muted); }
.bh-ip__value { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 0.88rem; }
.bh-ip__btn {
	border: 0;
	padding: 5px 12px;
	border-radius: calc(var(--bh-btn-radius) - 2px);
	font-size: 0.75rem; font-weight: 500;
	color: var(--bh-accent);
	background: color-mix(in srgb, var(--bh-accent) 15%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-accent) 25%, transparent);
	transition: background-color var(--bh-duration) ease;
}
.bh-ip__btn:hover { background: color-mix(in srgb, var(--bh-accent) 25%, transparent); }

/* Status */

.bh-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--bh-muted); }
.bh-status__dot {
	width: 6px; height: 6px; border-radius: 999px;
	background: var(--bh-muted);
}
.bh-status__dot.is-online {
	background: var(--bh-accent);
	animation: bh-pulse 2s ease-in-out infinite;
}

@keyframes bh-pulse {
	0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bh-accent) 50%, transparent); }
	50%      { box-shadow: 0 0 0 6px transparent; }
}

/* Reveal */

.bh-reveal {
	opacity: 0;
	transform: translateY(calc(18px * var(--bh-motion)));
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bh-reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------- announcement */

.bh-announce {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 8px 16px;
	font-size: 0.78rem;
	text-align: center;
	color: var(--bh-accent);
	background: color-mix(in srgb, var(--bh-accent) 10%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-accent) 15%, transparent);
}
.bh-announce__arrow { color: var(--bh-muted); }

/* --------------------------------------------------------------- header */

.bh-header { position: relative; z-index: 40; }
.bh--sticky-header .bh-header { position: sticky; top: 0; }
.bh-header__inner {
	background: color-mix(in srgb, var(--bh-bg) 72%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-header--blur .bh-header__inner { backdrop-filter: blur(14px); }
.bh--transparent-header .bh-header__inner { background: transparent; border-bottom-color: transparent; }

.bh-nav { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.bh-nav__left { display: flex; align-items: center; gap: 32px; }
.bh-nav__right { display: flex; align-items: center; gap: 10px; }
.bh-nav__status { display: none; }

.bh-logo { display: inline-flex; align-items: center; gap: 10px; }
.bh-logo__mark {
	display: grid; place-items: center;
	width: 32px; height: 32px;
	border-radius: 6px;
	font-family: var(--bh-font-heading);
	font-weight: 600; font-size: 0.85rem;
	color: var(--bh-accent);
	background: color-mix(in srgb, var(--bh-accent) 15%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-accent) 30%, transparent);
}
.bh-logo__name { font-family: var(--bh-font-heading); font-weight: 600; }

.bh-nav__links { display: none; }
.bh-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.bh-menu li { position: relative; }
.bh-menu a {
	display: block;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.9rem;
	color: var(--bh-muted);
	transition: background-color var(--bh-duration) ease, color var(--bh-duration) ease;
}
.bh-menu a:hover { color: var(--bh-text); background: color-mix(in srgb, var(--bh-text) 6%, transparent); }

/* Dropdowns */
.bh-menu .sub-menu {
	position: absolute; top: 100%; left: 0;
	min-width: 200px;
	margin: 8px 0 0; padding: 6px;
	list-style: none;
	border-radius: var(--bh-card-radius);
	background: var(--bh-surface);
	box-shadow: var(--bh-shadow), inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
	opacity: 0; visibility: hidden;
	transition: opacity var(--bh-duration) ease;
}
.bh-menu li:hover > .sub-menu,
.bh-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }

.bh-nav__toggle {
	display: grid; place-items: center;
	width: 36px; height: 36px;
	border: 0; border-radius: 8px;
	background: transparent;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-nav__bars { display: grid; gap: 4px; }
.bh-nav__bars i { display: block; width: 16px; height: 1px; background: var(--bh-text); }

.bh-mobile { border-top: 1px solid color-mix(in srgb, var(--bh-text) 10%, transparent); }
.bh-mobile__menu { list-style: none; margin: 0; padding: 12px 0; display: grid; gap: 2px; }
.bh-mobile__menu a { display: block; padding: 12px 8px; border-radius: 8px; font-size: 0.95rem; }
.bh-mobile__menu a:hover { background: color-mix(in srgb, var(--bh-text) 6%, transparent); }
.bh-mobile .bh-ip { margin-bottom: 16px; }

@media (min-width: 640px) {
	.bh-nav__status { display: inline-flex; }
}

@media (min-width: 768px) {
	.bh-nav__links { display: block; }
	.bh-nav__toggle { display: none; }
	.bh-mobile { display: none !important; }
}

/* ----------------------------------------------------------------- hero */

.bh-hero { position: relative; overflow: hidden; }
.bh-hero__inner {
	position: relative;
	display: grid; gap: 40px;
	padding-block: clamp(48px, 8vw, 96px);
	min-height: var(--bh-hero-min-height, auto);
	align-content: center;
}

@media (min-width: 1024px) {
	.bh-hero--split .bh-hero__inner { grid-template-columns: 7fr 5fr; align-items: center; }
}

.bh-hero--centered .bh-hero__inner { text-align: center; justify-items: center; }
.bh-hero--centered .bh-hero__actions,
.bh-hero--centered .bh-hero__server { justify-content: center; }
.bh-hero--right .bh-hero__inner { justify-items: end; text-align: right; }

.bh-hero__grid {
	position: absolute; inset: 0;
	background-image: radial-gradient(color-mix(in srgb, var(--bh-muted) 22%, transparent) 1px, transparent 1px);
	background-size: 26px 26px;
}
.bh-hero__glow {
	position: absolute; inset-inline: 0; top: 0; height: 520px;
	background: linear-gradient(to bottom,
		color-mix(in srgb, var(--bh-accent-2) 10%, transparent),
		transparent);
}

.bh-hero__bg { position: absolute; inset: 0; }
.bh-hero__bg img,
.bh-hero__bg video { width: 100%; height: 100%; object-fit: cover; }
.bh-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom,
		color-mix(in srgb, var(--bh-bg) calc(var(--bh-hero-overlay) * 100%), transparent),
		var(--bh-bg));
}

.bh-hero__content { max-width: 46ch; }
.bh-hero__title { margin-top: 24px; font-size: clamp(2.5rem, 6vw, 3.75rem); }
.bh-hero__text { margin-top: 20px; color: var(--bh-muted); font-size: 1.05rem; text-wrap: pretty; }
.bh-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.bh-hero__server { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.bh-hero__media { position: relative; }
.bh-hero__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: calc(var(--bh-card-radius) + 4px);
	box-shadow: var(--bh-shadow), inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-hero__live {
	position: absolute; top: -12px; right: -12px; z-index: 2;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 12px;
	font-size: 0.75rem;
	border-radius: 8px;
	background: color-mix(in srgb, var(--bh-surface) 90%, transparent);
	backdrop-filter: blur(10px);
	box-shadow: var(--bh-shadow), inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}

/* ---------------------------------------------------------------- stats */

.bh-stats {
	background: var(--bh-surface);
	border-block: 1px solid color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 0;
	padding-block: 32px;
}
.bh-stat + .bh-stat { border-left: 1px solid color-mix(in srgb, var(--bh-text) 10%, transparent); padding-left: 24px; }
.bh-stat__value { font-family: var(--bh-font-heading); font-size: 1.85rem; font-weight: var(--bh-heading-weight); }
.bh-stat__value.is-accent { color: var(--bh-accent); }
.bh-stat__label { margin-top: 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bh-muted); }

@media (min-width: 768px) {
	.bh-stats__grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* ------------------------------------------------------------ game modes */

.bh-modes { display: grid; gap: 20px; }

@media (min-width: 768px) {
	.bh-modes { grid-template-columns: repeat(12, 1fr); }
	.bh-modes .is-7 { grid-column: span 7; }
	.bh-modes .is-5 { grid-column: span 5; }
	.bh-modes .is-4 { grid-column: span 4; }
	.bh-modes .is-8 { grid-column: span 8; }
}

.bh-mode__media {
	overflow: hidden;
	border-radius: calc(var(--bh-card-radius) + 2px);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-mode__media img {
	width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bh-mode:hover .bh-mode__media img { transform: scale(calc(1 + 0.03 * var(--bh-motion))); }
.bh-mode__body { margin-top: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bh-mode__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bh-mode__body p { margin: 6px 0 0; font-size: 0.9rem; max-width: 42ch; }

/* ---------------------------------------------------------------- cards */

.bh-card__media {
	display: block;
	overflow: hidden;
	border-radius: calc(var(--bh-card-radius) + 2px);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-card__media img {
	width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bh-card:hover .bh-card__media img { transform: scale(calc(1 + 0.03 * var(--bh-motion))); }
.bh-card h3 { margin-top: 12px; }
.bh-card p { margin: 8px 0 0; font-size: 0.9rem; }
.bh-card .bh-link { display: inline-block; margin-top: 14px; }

.bh-card--panel {
	padding: 20px;
	border-radius: var(--bh-card-radius);
	background: color-mix(in srgb, var(--bh-text) 5%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}

.bh-meta { margin-top: 16px; display: flex; align-items: center; gap: 12px; font-size: 0.75rem; color: var(--bh-muted); }
.bh-meta__author { opacity: 0.85; }

.bh-news { display: grid; gap: 20px; }
.bh-featured { display: grid; gap: 20px; }

@media (min-width: 768px) {
	.bh-news { grid-template-columns: repeat(3, 1fr); }
	.bh-news .is-featured { grid-column: span 2; }
	.bh-news .is-featured .bh-card__media img { aspect-ratio: 16 / 8; }
	.bh-featured { grid-template-columns: repeat(3, 1fr); }
	.bh-featured .is-large { grid-column: span 2; }
}

/* ------------------------------------------------------ community + store */

.bh-community { position: relative; display: grid; gap: 32px; }

@media (min-width: 1024px) {
	.bh-community { grid-template-columns: 7fr 5fr; align-items: start; }
}

.bh-community__main .bh-h2 { margin-top: 12px; max-width: 34ch; }
.bh-community__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.bh-community__stats { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.bh-store {
	position: relative; overflow: hidden;
	padding: 32px;
	border-radius: calc(var(--bh-card-radius) + 8px);
	background: linear-gradient(135deg, var(--bh-surface-2), var(--bh-surface));
	box-shadow: var(--bh-shadow), inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-store__glow {
	position: absolute; top: -40px; right: -40px;
	width: 160px; height: 160px; border-radius: 999px;
	background: color-mix(in srgb, var(--bh-accent) 12%, transparent);
	filter: blur(40px);
}
.bh-store__body { position: relative; display: grid; gap: 14px; justify-items: start; }

/* ---------------------------------------------------------------- staff */

.bh-staff { text-align: center; }
.bh-staff__avatar {
	width: 80px; height: 80px;
	margin-inline: auto;
	border-radius: var(--bh-card-radius);
	object-fit: cover;
	image-rendering: pixelated;
	background: var(--bh-surface-2);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-staff__name { margin-top: 16px; font-family: var(--bh-font-heading); font-size: 1rem; }
.bh-staff__role { margin-top: 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bh-accent); }
.bh-staff__socials { margin-top: 8px; display: flex; justify-content: center; gap: 10px; font-size: 0.78rem; color: var(--bh-muted); }

/* ------------------------------------------------------------------ FAQ */

.bh-faq { display: grid; gap: 40px; }

@media (min-width: 1024px) {
	.bh-faq { grid-template-columns: 4fr 8fr; }
}

.bh-faq__head .bh-h2 { margin-top: 12px; }
.bh-faq__list {
	border-radius: calc(var(--bh-card-radius) + 2px);
	background: color-mix(in srgb, var(--bh-text) 5%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
	overflow: hidden;
}
.bh-faq__item + .bh-faq__item { border-top: 1px solid color-mix(in srgb, var(--bh-text) 10%, transparent); }
.bh-faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 24px;
	list-style: none;
	cursor: pointer;
	font-family: var(--bh-font-heading);
	font-weight: 500;
}
.bh-faq__item summary::-webkit-details-marker { display: none; }
.bh-faq__icon { color: var(--bh-muted); transition: transform var(--bh-duration) ease; }
.bh-faq__item[open] .bh-faq__icon { transform: rotate(45deg); }
.bh-faq__answer { padding: 0 24px 20px; font-size: 0.9rem; }

/* ---------------------------------------------------------------- video */

.bh-video { position: relative; border-radius: calc(var(--bh-card-radius) + 4px); overflow: hidden; }
.bh-video img, .bh-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bh-video__embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.bh-video__play {
	position: absolute; inset: 0; margin: auto;
	width: 78px; height: 78px; border-radius: 999px;
	background: color-mix(in srgb, var(--bh-accent) 90%, transparent);
}
.bh-video__play::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 0; height: 0;
	border-left: 20px solid var(--bh-bg);
	border-block: 12px solid transparent;
	transform: translateX(3px);
}

/* ------------------------------------------------------------ vote / cta */

.bh-vote__head { display: flex; align-items: center; gap: 12px; }
.bh-vote__icon { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.bh-vote__meta { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.bh-card--panel .bh-btn { margin-top: 16px; }

.bh-cta { display: grid; gap: 24px; align-items: center; }
.bh-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media (min-width: 900px) {
	.bh-cta { grid-template-columns: 1fr auto; }
}

/* ------------------------------------------------------- single / prose */

.bh-single { max-width: 80ch; }
.bh-single__head .bh-h1 { margin-top: 12px; }
.bh-single__media { margin-block: 32px; border-radius: calc(var(--bh-card-radius) + 4px); overflow: hidden; }
.bh-prose { font-size: 1.02rem; color: color-mix(in srgb, var(--bh-text) 88%, var(--bh-muted)); }
.bh-prose h2, .bh-prose h3 { margin-top: 36px; }
.bh-prose p, .bh-prose ul, .bh-prose ol { margin-block: 18px; }
.bh-prose a { color: var(--bh-accent); text-decoration: underline; text-underline-offset: 3px; }
.bh-prose blockquote {
	margin: 24px 0; padding: 16px 20px;
	border-left: 2px solid var(--bh-accent);
	background: color-mix(in srgb, var(--bh-text) 4%, transparent);
}

.bh-pagination { margin-top: 40px; }
.bh-pagination .page-numbers {
	display: inline-block; padding: 8px 12px; margin-right: 6px;
	border-radius: var(--bh-btn-radius);
	font-size: 0.85rem; color: var(--bh-muted);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}
.bh-pagination .page-numbers.current { color: var(--bh-bg); background: var(--bh-accent); }

.bh-404 { text-align: center; }
.bh-404 .bh-hero__actions { justify-content: center; }

.bh-search { display: flex; gap: 10px; margin-top: 20px; }
.bh-search input {
	flex: 1;
	padding: 10px 14px;
	border: 0; border-radius: var(--bh-btn-radius);
	background: color-mix(in srgb, var(--bh-text) 5%, transparent);
	color: var(--bh-text);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bh-text) 10%, transparent);
}

/* --------------------------------------------------------------- footer */

.bh-footer {
	background: var(--bh-surface);
	border-top: 1px solid color-mix(in srgb, var(--bh-text) 10%, transparent);
	padding-block: 64px;
}
.bh-footer__top { display: flex; flex-direction: column; gap: 40px; }
.bh-footer__brand { max-width: 38ch; display: grid; gap: 16px; justify-items: start; }
.bh-footer__text { margin: 0; font-size: 0.9rem; color: var(--bh-muted); }
.bh-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.bh-footer__title, .bh-widget__title {
	font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bh-muted);
	margin-bottom: 16px;
}
.bh-footer__list, .bh-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9rem; }
.bh-footer__list a:hover, .bh-widget a:hover { color: var(--bh-accent); }
.bh-footer__bottom {
	margin-top: 56px; padding-top: 24px;
	border-top: 1px solid color-mix(in srgb, var(--bh-text) 10%, transparent);
	display: flex; flex-direction: column; gap: 12px;
	font-size: 0.75rem; color: var(--bh-muted);
}
.bh-footer__legal { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }

@media (min-width: 640px) {
	.bh-footer__cols { grid-template-columns: repeat(4, 1fr); }
	.bh-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
	.bh-footer__top { flex-direction: row; justify-content: space-between; }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.bh-reveal { opacity: 1; transform: none; }
}
