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

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: clip;
	margin: 0;
	background: var(--kst-color-white);
	color: var(--kst-color-text);
	font-family: var(--kst-font-body);
	font-size: var(--kst-font-size-base);
	line-height: var(--kst-line-height-base);
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--kst-color-primary);
	font-family: var(--kst-font-heading);
	font-weight: 700;
	line-height: var(--kst-line-height-heading);
	letter-spacing: 0;
}

h1 {
	font-size: clamp(2.75rem, 5vw, 4rem);
}

h2 {
	font-size: clamp(2.25rem, 4vw, 3rem);
}

h3 {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

p {
	margin-bottom: 1rem;
}

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

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	transition: color var(--kst-transition), border-color var(--kst-transition), background var(--kst-transition);
}

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

button {
	cursor: pointer;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 0;
	box-shadow: var(--kst-shadow-focus);
}

::selection {
	background: var(--kst-color-primary);
	color: var(--kst-color-white);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--kst-color-white);
	color: var(--kst-color-primary);
	box-shadow: var(--kst-shadow-card);
}
