body {
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	line-height: var(--line-height-body);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: var(--line-height-tight);
	color: var(--color-text);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }

a {
	text-decoration: none;
	transition: color var(--transition-fast);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--theme-primary);
	outline-offset: 2px;
}

.pe-container {
	width: 100%;
	max-width: var(--content-max-width);
	margin-inline: auto;
	padding-inline: var(--content-gutter);
}

.pe-container--narrow {
	max-width: var(--content-narrow);
}

.pe-section {
	padding-block: var(--space-section);
}

.pe-section--tinted {
	background: var(--color-surface-tinted);
}

.pe-section--white {
	background: var(--color-surface);
}

/* CMS rich text */
.cms-content {
	line-height: var(--line-height-body);
}

.cms-content p {
	margin-bottom: 0.75em;
}

.cms-content p:last-child {
	margin-bottom: 0;
}

.cms-content ul,
.cms-content ol {
	margin: 0.5em 0 1em 1.5em;
}

.cms-content ul { list-style: disc; }
.cms-content ol { list-style: decimal; }

.cms-content img {
	border-radius: var(--radius-md);
	margin-block: var(--space-md);
}

.cms-content a {
	color: var(--theme-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cms-content h2,
.cms-content h3 {
	margin-top: 1.25em;
	margin-bottom: 0.5em;
}

.pe-hidden,
.hp-field {
	display: none !important;
}

.pe-embed {
	max-width: 100%;
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.pe-embed iframe {
	width: 100%;
	min-height: 320px;
}
