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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cm-color-surface);
	color: var(--cm-color-text);
	font-family: var(--cm-font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.cm-menu-open {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--cm-color-primary-900);
	font-family: var(--cm-font-heading);
	font-weight: 750;
	line-height: 1.16;
}

a {
	color: var(--cm-color-primary-700);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
	color: var(--cm-color-accent-hover);
}

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

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

button,
a {
	-webkit-tap-highlight-color: transparent;
}

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

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

.cm-skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	clip: auto;
	background: var(--cm-color-white);
	color: var(--cm-color-primary-900);
	border-radius: var(--cm-radius-sm);
	box-shadow: var(--cm-shadow-md);
}
