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

html {
	font-family: var(--ckava-font-body);
	text-size-adjust: 100%;
}

body {
	min-inline-size: 0;
	margin: 0;
	background: var(--ckava-color-warm);
	color: var(--ckava-color-ink);
	font-family: var(--ckava-font-body);
	font-size: 1.0625rem;
	line-height: 1.47;
	text-rendering: optimizelegibility;
}

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

:where(h1, h2, h3, h4, h5, h6) {
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
}

h1 {
	font-size: var(--ckava-type-hero);
	line-height: 1.07;
}

h2 {
	font-size: var(--ckava-type-section);
	line-height: 1.1;
}

h3 {
	font-size: clamp(1.375rem, 2.25vw, 2rem);
}

:where(p, li, blockquote, figcaption) {
	overflow-wrap: anywhere;
}

a {
	color: var(--ckava-color-forest);
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--ckava-color-forest);
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: var(--ckava-focus-ring);
	outline-offset: 0;
	box-shadow: var(--ckava-focus-halo);
}

:where(img, svg, video, canvas) {
	max-inline-size: 100%;
}

:where(img, video) {
	block-size: auto;
}

img {
	display: block;
}

blockquote {
	margin-inline: 0;
	padding-inline-start: var(--ckava-space-lg);
	border-inline-start: 3px solid var(--ckava-color-accent);
}

hr {
	border: 0;
	border-block-start: 1px solid var(--ckava-color-border);
}

table {
	max-inline-size: 100%;
	border-collapse: collapse;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (width <= 734px) {
	body {
		font-size: 1rem;
	}
}
