@import url('variables.css');

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	color: #212529;
	background: var(--brandwhite);
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

body.admin-bar {
	min-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
	body.admin-bar {
		min-height: calc(100dvh - 46px);
	}
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 900;
	line-height: 1.2;
}

h5, h6, .h5, .h6 {
	font-weight: 700;
}

h1, .h1 { font-size: var(--h1); }
h2, .h2 { font-size: var(--h2); }
h3, .h3 { font-size: var(--h3); }
h4, .h4 { font-size: var(--h4); }
h5, .h5 { font-size: var(--h5); }
h6, .h6 { font-size: var(--h6); }

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--secondary);
}

.container {
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--padding-base);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--secondary);
	color: var(--brandwhite);
	padding: var(--padding-sm) var(--padding-base);
	z-index: 1000;
	text-decoration: none;
}

.skip-link:focus {
	left: var(--padding-base);
	top: var(--padding-base);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

.btn,
.button {
	display: inline-block;
	background: var(--brand-dark);
	color: var(--brandwhite);
	padding: var(--padding-sm) var(--padding-base);
	border-radius: calc(var(--m) * 4);
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-size: var(--fs-base);
}

.btn:hover,
.button:hover {
	background: var(--brand-darker);
	color: var(--brandwhite);
}

.wp-block-image img {
	border-radius: var(--radius-lg);
}

.wp-block-quote {
	border-left: 4px solid var(--brand);
	padding-left: var(--padding-base);
	font-style: italic;
	margin-left: 0;
}

.wp-block-group {
	margin-block: 0;
}

iframe:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}
