html {
	scroll-behavior: smooth;
}

body {
	background: var(--bh-color-bg);
	color: var(--bh-color-text);
	font-family: var(--bh-font-sans);
	font-size: var(--bh-font-size-body);
	font-weight: var(--bh-font-weight-regular);
	line-height: var(--bh-line-height-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--bh-color-navy);
	font-weight: var(--bh-font-weight-bold);
	line-height: var(--bh-line-height-heading);
	text-wrap: balance;
}

h1 {
	font-size: var(--bh-font-size-h1);
	letter-spacing: var(--bh-letter-spacing-display);
}

h2 {
	font-size: var(--bh-font-size-h2);
}

h3 {
	font-size: var(--bh-font-size-h3);
}

h4 {
	font-size: var(--bh-font-size-h4);
}

p,
li {
	text-wrap: pretty;
}

a {
	color: var(--bh-color-action);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--bh-color-action-hover);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	border-radius: var(--bh-radius-small);
	box-shadow: var(--bh-focus-ring);
	outline: 2px solid transparent;
}

::selection {
	background: var(--bh-color-accent);
	color: var(--bh-color-navy-deep);
}

hr {
	border: 0;
	border-top: var(--bh-border-width) solid var(--bh-color-border);
	margin-block: var(--bh-space-8);
}

blockquote {
	border-inline-start: var(--bh-border-width-bold) solid var(--bh-color-accent);
	font-size: var(--bh-font-size-lead);
	padding-inline-start: var(--bh-space-5);
}

input,
select,
textarea {
	background: var(--bh-color-bg);
	border: var(--bh-border-width) solid var(--bh-color-border);
	border-radius: var(--bh-radius-small);
	color: var(--bh-color-text);
	max-width: 100%;
	min-height: 2.75rem;
	padding: var(--bh-space-3) var(--bh-space-4);
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

label {
	display: inline-block;
	font-weight: var(--bh-font-weight-semibold);
	margin-block-end: var(--bh-space-2);
}

table {
	border-collapse: collapse;
	width: 100%;
}

th,
td {
	border-bottom: var(--bh-border-width) solid var(--bh-color-border);
	padding: var(--bh-space-3);
	text-align: start;
}

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

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