/* Reset and typography. */

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--ec-white);
	color: var(--ec-ink);
	font-family: var(--ec-font);
	font-size: var(--ec-fs-base);
	line-height: var(--ec-lh-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--ec-sp-3);
	font-weight: 500;
	letter-spacing: var(--ec-ls-tight);
	line-height: var(--ec-lh-snug);
	text-wrap: balance;
}

h1 {
	font-size: var(--ec-fs-h1);
	line-height: var(--ec-lh-tight);
}

h2 {
	font-size: var(--ec-fs-h2);
}

h3 {
	font-size: var(--ec-fs-h3);
}

h4 {
	font-size: var(--ec-fs-h4);
}

p {
	margin: 0 0 var(--ec-sp-3);
	text-wrap: pretty;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--ec-dur) var(--ec-ease);
}

a:hover {
	color: var(--ec-green);
}

ul,
ol {
	margin: 0 0 var(--ec-sp-3);
	padding-left: 1.2em;
}

li {
	margin-bottom: 0.4em;
}

blockquote {
	margin: var(--ec-sp-5) 0;
	padding-left: var(--ec-sp-4);
	border-left: 2px solid var(--ec-green);
	font-size: var(--ec-fs-lead);
	line-height: 1.45;
}

hr {
	margin: var(--ec-sp-6) 0;
	border: 0;
	border-top: 1px solid var(--ec-line);
}

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

::selection {
	background: var(--ec-green);
	color: var(--ec-white);
}

.ec-skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: var(--ec-sp-2) var(--ec-sp-3);
	background: var(--ec-ink);
	color: var(--ec-white);
}

.ec-skip-link:focus {
	left: var(--ec-sp-2);
	top: var(--ec-sp-2);
	color: var(--ec-white);
}

.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;
}

/* Shared type utilities */

/* Sentence case, no tracking: tracked all-caps eyebrows are template chrome. */
.ec-label {
	display: inline-block;
	margin-bottom: var(--ec-sp-2);
	color: var(--ec-green-dark);
	font-size: var(--ec-fs-sm);
	font-weight: 500;
}

.ec-lead {
	font-size: var(--ec-fs-lead);
	line-height: 1.5;
	letter-spacing: -0.01em;
}

.ec-muted {
	color: var(--ec-ink-soft);
}

.ec-measure {
	max-width: 62ch;
}
