/*
 * Base layer: resets, element defaults and the typography hierarchy.
 * Layout, components, utilities and responsive rules live in their own
 * files (see assets/css/layout.css, components/, utilities.css,
 * responsive.css).
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--mc-background);
	color: var(--mc-text);
	font-family: var(--mc-font-family);
	font-size: var(--mc-font-size-body);
	line-height: var(--mc-line-height-body);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--mc-space-4);
	font-weight: var(--mc-font-weight-bold);
	line-height: var(--mc-line-height-heading);
	color: var(--mc-heading);
}

h1 {
	font-size: var(--mc-font-size-h1);
}

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

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

h4,
h5,
h6 {
	font-size: var(--mc-font-size-h4);
}

p {
	margin: 0 0 var(--mc-space-4);
}

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

a:hover {
	color: var(--mc-accent);
}

ul,
ol {
	margin: 0 0 var(--mc-space-4);
	padding-left: var(--mc-space-5);
}

/* A single, consistent focus style for every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--mc-accent);
	outline-offset: 2px;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

/* Respect the user's OS-level motion preference (§87). */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

