/**
 * Reset, document defaults and base typography.
 */

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

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

body {
	margin: 0;
	background: var(--df-color-ivory);
	color: var(--df-color-ink);
	font-family: var(--df-font-sans);
	font-size: var(--df-font-size-base);
	font-weight: var(--df-font-weight-regular);
	line-height: var(--df-line-height-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

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

img,
video {
	height: auto;
}

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

button,
[type="button"],
[type="submit"] {
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration-thickness: 0.0625rem;
	text-underline-offset: 0.2em;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote {
	margin-block-start: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--df-color-ink);
	font-family: var(--df-font-serif);
	font-weight: var(--df-font-weight-semibold);
	line-height: var(--df-line-height-heading);
	letter-spacing: var(--df-letter-spacing-tight);
	text-wrap: balance;
}

h1 {
	font-size: var(--df-font-size-display);
	line-height: var(--df-line-height-tight);
}

h2 {
	font-size: var(--df-font-size-3xl);
}

h3 {
	font-size: var(--df-font-size-2xl);
}

h4 {
	font-size: var(--df-font-size-xl);
}

h5 {
	font-size: var(--df-font-size-lg);
}

h6 {
	font-family: var(--df-font-sans);
	font-size: var(--df-font-size-base);
	letter-spacing: 0;
}

h1 em,
h2 em,
h3 em {
	color: var(--df-color-taupe);
	font-weight: var(--df-font-weight-medium);
}

p {
	margin-block-end: var(--df-space-6);
}

small {
	font-size: var(--df-font-size-xs);
}

::selection {
	background: var(--df-color-taupe);
	color: var(--df-color-white);
}

:focus-visible {
	outline: 0.125rem solid var(--df-color-taupe);
	outline-offset: 0.25rem;
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

