/**
 * CSS Reset / global element defaults
 */

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

* {
	margin: 0;
	padding: 0;
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-size-adjust: 100%;
}

body {
	background: var(--color-background);
	color: var(--color-text);
}

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

a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--transition-fast);
}

a:hover {
	color: var(--color-primary);
}

ul,
ol {
	list-style: none;
}

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

button {
	background: none;
	border: 0;
	cursor: pointer;
}

textarea {
	resize: vertical;
}

hr {
	border: 0;
	border-top: var(--border-width) solid var(--color-border);
}

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

:focus-visible {
	outline: var(--border-width-strong) solid var(--color-border-strong);
	outline-offset: 2px;
}

::selection {
	background: var(--color-surface-strong);
	color: var(--color-heading);
}
