/*
 * Element defaults and typography. Scoped to real elements only: no universal
 * reset, because the site embeds third party form markup that a `*` rule breaks.
 */

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

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

body {
	margin: 0;
	background: var(--am-surface);
	color: var(--am-ink);
	font-family: var(--am-font);
	font-size: var(--am-text-base);
	line-height: var(--am-leading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--am-space-4);
	color: var(--am-ink);
	font-weight: 700;
	line-height: 1.2;
}

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

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

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

h4 {
	font-size: var(--am-h4);
}

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

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--am-green-dark);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	color: var(--am-green-darker);
	text-decoration: underline;
}

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

ul,
ol {
	margin: 0 0 var(--am-space-4);
	padding-left: 1.25em;
}

li {
	margin-bottom: var(--am-space-1);
}

blockquote {
	margin: 0 0 var(--am-space-4);
	padding-left: var(--am-space-4);
	border-left: 3px solid var(--am-yellow);
	color: var(--am-ink-soft);
}

hr {
	height: 1px;
	margin: var(--am-space-6) 0;
	border: 0;
	background: var(--am-line);
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--am-space-5);
}

th,
td {
	padding: var(--am-space-3);
	border-bottom: 1px solid var(--am-line);
	text-align: left;
}

:focus-visible {
	outline: 2px solid var(--am-green);
	outline-offset: 2px;
}

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

.am-skip-link {
	position: absolute;
	top: -100px;
	left: var(--am-space-4);
	z-index: 2000;
	padding: var(--am-space-3) var(--am-space-4);
	background: var(--am-surface);
	color: var(--am-green-dark);
	border-radius: var(--am-radius-sm);
	font-weight: 600;
}

.am-skip-link:focus {
	top: var(--am-space-4);
}

.am-icon {
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	flex: 0 0 auto;
	vertical-align: -0.15em;
	overflow: visible;
}

.am-icon,
.am-icon * {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
