.libre-baskerville-regular {
	font-family: "Libre Baskerville", serif;
	font-weight: 400;
	font-style: normal;
}

.libre-baskerville-bold {
	font-family: "Libre Baskerville", serif;
	font-weight: 700;
	font-style: normal;
}

.libre-baskerville-regular-italic {
	font-family: "Libre Baskerville", serif;
	font-weight: 400;
	font-style: italic;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Libre Baskerville", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 .5em 0;
	color: var(--color-text);

	@media (prefers-color-scheme: dark) {
		color: #2aa3a5;
		font-family: monospace;
		font-optical-sizing: auto;
		font-weight: 400;
		font-style: normal;

		&::selection {
			color: rgb(88, 141, 48);
			background-color: #043a26;
		}
	}

	small {
		font-size: smaller;
		font-weight: 400;
		letter-spacing: normal;
		padding: 0;
		border-radius: 0;
		display: inline;
	}

}

h1 {
	font-size: clamp(1.25rem, 0.4167rem + 1.1111vw, 1.75rem); // 20-28
	font-weight: bold;
	letter-spacing: -.02em;

	@media (prefers-color-scheme: dark) {
		font-size: clamp(1.125rem, 0.7083rem + 0.5556vw, 1.375rem); // 18-22
		line-height: 1.5;
	}
}

h2 {
	font-size: clamp(1.25rem, 0.8333rem + 0.5556vw, 1.5rem); // 20-24
	font-weight: bold;
	margin-bottom: 1rem;
	align-items: center;
}

h3 {
	font-size: 1rem;
	font-weight: bold;
	margin: 1rem 0;
	align-items: center;
}

small {
	font-size: small;
	font-weight: 600;
	letter-spacing: normal;
	padding: 0 0 0 1em;
	border-radius: 0 5px 5px 5px;
	display: inline-flex;
	align-items: center;


	small {
		margin-left: 1.5em;
		font-size: smaller;
		letter-spacing: 1px;
		padding: 1em .6em;
		border-radius: 0 5px 5px 5px;
	}
}

strong {
	font-weight: 600;
}

p {
	line-height: 1.4;
	font-size: clamp(1rem, 0.7917rem + 0.2778vw, 1.125rem); // 14-16px

	&:last-of-type {
		margin-bottom: 1em;
	}

	@media (prefers-color-scheme: dark) {
		&::selection {
			color: rgb(88, 141, 48);
			background-color: #043a26;
		}
	}

	small {
		display: inline;
		font-size: smaller;
		font-weight: inherit;
		padding: 0;
		letter-spacing: normal;
	}
}

a {
	color: var(--color-black, #1b1b1b);
	text-decoration: none;
	font-weight: 400;

	&:hover {
		text-decoration: underline;
	}

	@media (prefers-color-scheme: dark) {
		&::selection {
			color: rgb(88, 141, 48);
			background-color: #043a26;
		}
	}
}

.note {
	margin-top: 2em;
	border-top: 1px solid #ddd;
	padding: 1em 0;

	@media (prefers-color-scheme: dark) {
		border-top: 1px solid #0d483b;
	}
}

ol {
	border-top: 1px solid #ddd;
	list-style: decimal;
	padding: 1em 0;
	margin-left: 0;

	li {
		margin: 0;
		padding: 0;
	}

	@media (prefers-color-scheme: dark) {
		border-top: 1px solid #0d483b;
	}
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;

	li {
		padding: .2em 0;
		line-height: 1.4;


		@media (prefers-color-scheme: dark) {
			font-family: monospace;

			&::selection {
				color: rgb(88, 141, 48);
				background-color: #043a26;
			}
		}
	}
}

ul.default {
	list-style: disc;
	margin-left: 1.5em;
	margin-bottom: 1em;
}

code {
	background-color: rgb(228, 230, 230);
	color: rgb(88, 88, 88);
	padding: .2rem;
	line-height: 1.5;
	font-size: .8rem;
	overflow-wrap: break-word;

	@media (prefers-color-scheme: dark) {
		color: #3ed3d5;
		background-color: #03271f;
	}
}

pre {
	background-color: #232526;
	border-radius: 5px;
	margin: 0;
	padding: 1em;
	color: #ddd;
	background: #2f3032;
	border-radius: 0 20px 20px 20px;
	overflow-x: auto;
	white-space: pre-wrap;
	white-space: -moz-pre-wrap;
	white-space: -pre-wrap;
	white-space: -o-pre-wrap;
	word-wrap: break-word;
	font-size: .8rem;

	@media screen and (min-width: 992px) {
		// font-size: 1rem;
		padding: 2em;
	}

	@media (prefers-color-scheme: dark) {
		font-family: monospace;
		background-color: #03271f;
		color: #98c379;
		font-size: .9rem;

		&::selection {
			color: rgb(88, 141, 48);
			background-color: #043a26;
		}
	}
}

:where(pre) {
	font-size: 1rem;
}

.text {
	&-regular {
		font-weight: 400;
	}

	&-semi {
		font-weight: 600;
	}

	&-bold {
		font-weight: 700;
	}

	&-xbold {
		font-weight: 800;
	}

	&-xxbold {
		font-weight: 900;
	}
}