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

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

html, body {
	overflow-x: hidden;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: 1.65;
	font-variant-numeric: oldstyle-nums;
	-webkit-font-smoothing: antialiased;
}

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

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

.icon {
	width: 1.4em;
	height: 1.4em;
	flex: 0 0 auto;
	vertical-align: middle;
	max-width: 32px;
	max-height: 32px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--primary);
	margin: 0 0 var(--space-2xs);
	text-wrap: balance;
}

p {
	margin: 0 0 var(--space-xs);
	text-wrap: pretty;
	max-width: 68ch;
}

a {
	color: inherit;
	text-decoration: none;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

address {
	font-style: normal;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

::selection {
	background: var(--accent-tint);
	color: var(--primary-dark);
}

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

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

.grid-12 {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
}

.entry-content > * + * {
	margin-top: var(--space-xs);
}

.entry-content h2 {
	font-size: var(--text-xl);
	margin-top: var(--space-md);
}

.entry-content h3 {
	font-size: var(--text-md);
	margin-top: var(--space-sm);
}

.entry-content ul, .entry-content ol {
	list-style: disc;
	padding-left: 1.4em;
	max-width: 68ch;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content a {
	color: var(--accent-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}
