:root {
	--bhvn-color-primary: #0b3b60;
	--bhvn-color-primary-light: #115a8c;
	--bhvn-color-primary-soft: #eef6fb;
	--bhvn-color-secondary: #f36c21;
	--bhvn-color-secondary-dark: #d95512;
	--bhvn-color-accent: #f2b705;
	--bhvn-color-background: #f5f7fa;
	--bhvn-color-surface: #fff;
	--bhvn-color-text: #17212b;
	--bhvn-color-muted: #5c6b78;
	--bhvn-color-border: #d7e0e7;
	--bhvn-color-success: #1f7a4d;
	--bhvn-color-warning: #a85b00;
	--bhvn-color-error: #b42318;
	--bhvn-color-focus: #2563eb;
	--bhvn-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--bhvn-container: 1280px;
	--bhvn-content: 840px;
	--bhvn-gutter: clamp(1rem, 3vw, 2rem);
	--bhvn-radius-sm: 4px;
	--bhvn-radius-md: 8px;
	--bhvn-shadow-sm: 0 1px 3px rgb(11 59 96 / 10%);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bhvn-color-background);
	color: var(--bhvn-color-text);
	font-family: var(--bhvn-font-sans);
	font-size: 1rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
	font: inherit;
}

a {
	color: var(--bhvn-color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--bhvn-color-secondary-dark);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--bhvn-color-focus);
	outline-offset: 3px;
}

.bhvn-container {
	width: min(100% - (2 * var(--bhvn-gutter)), var(--bhvn-container));
	margin-inline: auto;
}

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

.screen-reader-text:focus {
	z-index: 100000;
	top: 0.75rem;
	left: 0.75rem;
	display: block;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--bhvn-color-surface);
	color: var(--bhvn-color-primary);
	font-weight: 700;
	white-space: normal;
	box-shadow: var(--bhvn-shadow-sm);
}

.site-main {
	min-height: 50vh;
	padding-block: clamp(2rem, 5vw, 4rem);
}

.content-area {
	width: min(100% - (2 * var(--bhvn-gutter)), var(--bhvn-content));
	margin-inline: auto;
}

.page-header {
	margin-bottom: 2rem;
}

.page-title,
.entry-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.2;
}

.archive-description,
.entry-meta {
	color: var(--bhvn-color-muted);
}

.posts-list {
	display: grid;
	gap: 1.5rem;
}

.entry-card,
.single-entry,
.page-entry,
.no-results {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--bhvn-color-surface);
	border: 1px solid var(--bhvn-color-border);
	border-radius: var(--bhvn-radius-md);
	box-shadow: var(--bhvn-shadow-sm);
}

.entry-card .entry-title {
	font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.entry-thumbnail {
	margin: -0.5rem -0.5rem 1.25rem;
}

.entry-thumbnail img {
	width: 100%;
	border-radius: var(--bhvn-radius-sm);
}

.entry-content > :first-child,
.entry-summary > :first-child {
	margin-top: 0;
}

.entry-content > :last-child,
.entry-summary > :last-child {
	margin-bottom: 0;
}

.entry-content :where(h2, h3, h4) {
	margin-top: 1.75em;
	line-height: 1.3;
}

.entry-content :where(table) {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.entry-content :where(th, td) {
	padding: 0.75rem;
	border: 1px solid var(--bhvn-color-border);
	text-align: left;
}

.page-links,
.navigation.pagination,
.post-navigation {
	margin-top: 2rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.page-numbers,
.post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.4rem 0.75rem;
	background: var(--bhvn-color-surface);
	border: 1px solid var(--bhvn-color-border);
	border-radius: var(--bhvn-radius-sm);
	text-decoration: none;
}

.page-numbers.current,
.post-page-numbers.current {
	background: var(--bhvn-color-primary);
	border-color: var(--bhvn-color-primary);
	color: #fff;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 38rem;
}

.search-form label {
	flex: 1;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.65rem 0.8rem;
	background: var(--bhvn-color-surface);
	border: 1px solid var(--bhvn-color-border);
	border-radius: var(--bhvn-radius-sm);
	color: var(--bhvn-color-text);
}

button,
input[type="button"],
input[type="submit"],
.button,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	background: var(--bhvn-color-primary);
	border: 1px solid var(--bhvn-color-primary);
	border-radius: var(--bhvn-radius-sm);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.wp-element-button:hover {
	background: var(--bhvn-color-primary-light);
	border-color: var(--bhvn-color-primary-light);
	color: #fff;
}

.comments-area {
	margin-top: 2rem;
}

.widget-area {
	display: grid;
	gap: 1rem;
	padding-bottom: clamp(2rem, 5vw, 4rem);
}

.widget {
	padding: 1rem;
	background: var(--bhvn-color-surface);
	border: 1px solid var(--bhvn-color-border);
	border-radius: var(--bhvn-radius-md);
}

.widget-title {
	margin: 0 0 1rem;
	font-size: 1.125rem;
}

.comment-list {
	padding-left: 1.5rem;
}

@media (max-width: 767px) {
	.search-form {
		align-items: stretch;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
