/*==========================================================
BASE — Reset, Typography, Elements
==========================================================*/

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

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

body {
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	color: var(--text);
	background: var(--background);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--heading);
	line-height: var(--lh-heading);
	font-weight: 700;
	margin-bottom: 0.75em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.15rem; }

p {
	margin-bottom: 1.1em;
	color: var(--text-light);
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition);
}

a:hover { color: var(--primary); }

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

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4em; }

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

input, textarea, select {
	width: 100%;
	padding: 0.85rem 1.1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--white);
	transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

textarea {
	resize: vertical;
	min-height: 140px;
}

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

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

hr {
	border: none;
	height: 1px;
	background: var(--border);
	margin: 2rem 0;
}
