html,
body {
	overflow-x: clip;
}

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

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

:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.container {
	width: min(100% - (var(--container-padding) * 2), var(--container-width));
	margin-inline: auto;
}

.section {
	padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: var(--leading-tight);
	letter-spacing: -0.01em;
	color: var(--color-text);
	text-wrap: balance;
}

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

h2 {
	font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
	font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
}

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

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

h6 {
	font-size: var(--text-base);
}

p {
	max-width: 65ch;
	color: var(--color-text-muted);
}

p + p {
	margin-top: var(--space-4);
}

ul:not([class]) {
	list-style: disc;
	padding-left: var(--space-6);
}

ol:not([class]) {
	list-style: decimal;
	padding-left: var(--space-6);
}

ul:not([class]) li + li,
ol:not([class]) li + li {
	margin-top: var(--space-2);
}

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

figure {
	margin: 0;
}

figcaption {
	margin-top: var(--space-2);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

label {
	display: block;
	margin-bottom: var(--space-2);
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
	display: block;
	width: 100%;
	padding: var(--space-3) var(--space-4);
	color: var(--color-text);
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	transition: border-color var(--transition-fast);
}

input:hover,
textarea:hover,
select:hover {
	border-color: var(--color-text-muted);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	border-color: var(--color-primary);
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

.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: var(--space-4);
	left: var(--space-4);
	z-index: 100000;
	width: auto;
	height: auto;
	padding: var(--space-3) var(--space-4);
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	color: var(--color-primary-text);
	background-color: var(--color-primary);
	border-radius: var(--radius-sm);
}
