// * {  background-color: rgba(88, 86, 214, .1) }
// * { outline: solid 2px rgba(88, 86, 214, .1) }

body {
	font-size: var(--bodyFontSize);
	line-height: var(--bodyLineHeight);
	font-weight: 400;
	color: var(--fontColor);
	background: var(--siteBackground);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

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


// Headings
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.5;
	margin: 0;
}

h1 { font-size: 40px }
h2 { font-size: 35px }
h3 { font-size: 30px }
h4 { font-size: 25px }
h5 { font-size: 20px }
h6 { font-size: 16px }

p {
	margin: 0;
}

a {
	color: var(--linkInitialColor);
	text-decoration: none;
	transition: color 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955),
				opacity 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955);

	&:hover {
		color: var(--linkHoverColor);
	}
}


figure {
	margin: 0;
	max-width: 100%;

	> a {
		display: flex;
	}
}


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


embed, iframe, object {
	max-width: 100%;
}


ul, ol {
	padding-left: 35px;
}

li {
	// line-height: 1.7;

	> ul, > ol {
		padding-left: 40px;
	}
}

blockquote {
	margin: 0;
}

dl {
	margin: 0;
}

mark {
	color: inherit;
}


// input, textarea, button
input[type="tel"],
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"] {
	height: 45px;
	@include action-fields;
}

textarea {
	display: block;
	resize: vertical;
	padding-top: 15px;
	padding-bottom: 15px;
	@include action-fields;
}


input[type="button"],
input[type="submit"],
button[type="submit"] {
	// @include button();

	&:focus {
		cursor: pointer;
		outline: none;
	}
}

input[type="radio"],
input[type="checkbox"] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	cursor: pointer;
	appearance: none;
	border: 2px solid #e8ebf0;
	border-radius: 2px;

	&:before {
		display: block;
		content: '';
		width: 7px;
		height: 7px;
		opacity: 0;
		background: var(--paletteColor1);
		border-radius: 1px;
	}

	&:checked {
		&:before {
			opacity: 1;
		}
	}

	&:focus {
		outline: none;
	}
}

// fieldset
fieldset {
	padding: 15px 20px 30px 20px;
	margin: 0;
	border: 1px dashed #dce0e6;

	legend {
		font-weight: 500;
	}
}