@font-face {
	font-family: "Source Serif 4";
	src: url("./SourceSerif4Variable-Roman.ttf.woff2") format("woff2");
}

@font-face {
	font-family: "Cantarell";
	src: url("./Cantarell-VF.woff2");
}

:root {
	--font-family-primary: "Source Serif 4", serif;
	--font-family-secondary: "Cantarell", sans-serif;
	--color-bg: #efefef;
	--color-blue: #88ccff;
	/*background-color: #ddd;*/
	background-image: linear-gradient(#aaa, #ddd);
	background-attachment: fixed;
}

h1, h2 {
	font-family: var(--font-family-secondary);
	font-weight: 425;
}

h1 {
	font-variant-caps: all-small-caps;
	text-transform: uppercase;
	/*font-feature-settings: "ss05";*/
	font-size: 175%;
}

h2 {
	font-size: 140%;
}

h3 {
	font-size: 110%;
	line-height: 1.3;
}

body {
	font-family: var(--font-family-primary);
	font-size: 125%;
	background: var(--color-bg);
	color: #222;
	font-variant-numeric: oldstyle-nums;
	font-feature-settings: "liga", "pnum", "onum";
	max-width: 900px;
	margin: 20px auto;
	line-height: 1.6;
}

a {
	font-family: var(--font-family-secondary);
	font-weight: 700;
	color: #222;
	text-decoration: none;
	background-color: var(--color-blue);
	padding: 8px 10px;
}

strong, em, h3 {
	font-family: var(--font-family-secondary);
}

hr {
	border: 1px solid lightgray;
}

header {
	font-family: var(--font-family-secondary);
	background-color: var(--color-blue);
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	padding: 25px 50px !important;
}

header a {
	text-align: right;
	color: black;
}

header, main, footer {
	padding: 0 50px;
}

footer {
	font-size: 80%;
	font-family: var(--font-family-secondary);
	font-weight: 475;
	letter-spacing: 1%;
	padding-bottom: 15px;
}

ul {
	list-style-type: none;
	margin-left: 0;
	width: 100%;
	padding: 0;
	gap: 10px;
}

.twocol {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.threecol {
	display: grid;
	grid-template-areas:
		"item1 item2 item3"
		"item4 item4 item4";
	grid-template-columns: repeat(3, 1fr);
}

#staff-scheduling {
	grid-area: item1;
}

#capacity-planning {
	grid-area: item2;
}

#route-planning {
	grid-area: item3;
}

#predictive-modeling {
	grid-area: item4;
}

ul li {
	padding-left: 13px;
	padding-right: 13px;
	padding-bottom: 16px;
	padding-top: 4px;
	background-color: #eaeaea;
	border: 2px solid lightgray;
	transform: translateY(20%);
	opacity: 0;
	animation: fadeIn 0.45s forwards, moveUp 0.45s forwards;
}

@media (prefers-reduced-motion: no-preference) { /* text animation */
h2, p, a {
	transform: translateY(100%);
	opacity: 0;
	animation: fadeIn 0.45s forwards, moveUp 0.45s forwards;
}


@keyframes fadeIn {
	to {
		opacity: 1;
	}
}

@keyframes moveUp {
	to {
		transform: translateY(0%);
	}
}
}


@media (max-width: 900px) {
	:root {
		background-image: linear-gradient(var(--color-blue) 50%, var(--color-bg) 50%);
	}


	body {
		margin: 0 auto;
	}
}

@media (max-width: 750px) {
		header, main, footer {
		padding: 25px;
	}

	.twocol, .threecol {
		grid-template-columns: auto;
	}

	.threecol {
		grid-template-areas:
			"item1"
			"item2"
			"item3"
			"item4";
	}
}
