:root {
	--cream-light: #f6f6f6;
	--cream: #ebe8e2;
	--cream-dark: #dcd7cd;
	--grey-light: #373f48;
	--greyed-out: #cac7c1;
	--grey: #333a42;
	--grey-dark: #252b32;
	--orange: #c35600;
	--orange-dark: #b85100;
	--red: #d73d28;
	--red-dark: #d43923;
	--white: #ffffff;
}

@font-face {
	font-family: 'Outfit';
	src: url('./outfit.woff2') format('woff2');
	font-weight: 300 700;
	font-display: swap;
}

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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[class],
ol[class] {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Set core root defaults */
html {
	font-size: 62.5%;
}

html:focus-within {
	scroll-behavior: smooth;
}

/* Set core body defaults */
body {
	min-height: 100vh;
	text-rendering: optimizeSpeed;
	line-height: 2.1rem;
	font-size: 1.4rem;
	font-family: 'Outfit', sans-serif;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
	max-width: 100%;
	display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font: inherit;
}

h1,
h2,
h3 {
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
}

h2,
h3 {
	margin-bottom: 2rem;
}

.heading-1 {
	color: var(--orange);
	margin-bottom: 0;
}

.heading-1,
h3 {
	font-size: 3rem;
	line-height: 3.2rem;
}

h2 {
	font-size: 2.4rem;
	line-height: 2.8rem;
}

@media screen and (min-width: 30em) {
	.heading-1,
	h3 {
		font-size: 4.6rem;
		line-height: 4.6rem;
	}

	h2 {
		font-size: 3.4rem;
		line-height: 3.8rem;
	}
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

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