/**
 * Minimal reset and global element defaults.
 */

html {
	box-sizing: border-box;
	color-scheme: light;
	scroll-behavior: smooth;
}

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

body {
	min-height: 100vh;
	margin: 0;
	background: var(--am-color-background);
	color: var(--am-color-text);
	font-family: var(--am-font-body);
	font-size: var(--am-font-size-body);
	line-height: var(--am-line-height-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

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

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

a {
	color: var(--am-color-primary-dark);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

p,
h1,
h2,
h3,
ul,
ol {
	margin-block-start: 0;
}

:where(p, ul, ol) {
	max-width: 68ch;
}

::selection {
	background: var(--am-color-primary);
	color: var(--am-color-text);
}

