/* =========================================
   FONTS
========================================= */

@font-face {
	font-family: 'Newsreader';
	src: url('../assets/fonts/Newsreader_9pt-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Newsreader';
	src: url('../assets/fonts/Newsreader_9pt-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Newsreader';
	src: url('../assets/fonts/Newsreader_9pt-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../assets/fonts/Manrope-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../assets/fonts/Manrope-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../assets/fonts/Manrope-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../assets/fonts/Manrope-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* =========================================
   RESET
========================================= */

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

html {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

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

button {
	border: 0;
	background: none;
	padding: 0;
}

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

svg {
	display: block;
	max-width: 100%;
}

/* =========================================
   BASE
========================================= */

body {
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

main {
	display: block;
}

section {
	position: relative;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 0.98;
	letter-spacing: -0.025em;
}

p {
	color: var(--color-text-light);
}

a {
	transition:
		color var(--transition),
		background-color var(--transition),
		border-color var(--transition),
		opacity var(--transition),
		transform var(--transition);
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

/* =========================================
   ACCESSIBILITY
========================================= */

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

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {
	body {
		font-size: 15px;
	}
}
