/* Variables */
/* -------------------------------------------------------------------------------------------- */

:root {
	/* Colors */
	--dark-gray:            #333333;
	--mid-gray:             #414141;
	--light-gray:           #666666;
	--darker-white:         #cacaca;
	--off-white:            #f8f8f8;
	--dark-bg:              #a1b289; /*adbf93*/
	--link-color:           #993300;
	--light-green:          #d5edb3;
	--dark-green:           #197519;
	--header-highlight:     #ffffcc;
	--main-color:           #ffffdf; /*ffffdc*/
	--button-color:         #146666;
	--google-cal-color:     #e3e9ff;

	/* Common values */
	--rounded-edge: 7px;
	--main-layout-width: 76rem;

	/* Animation helpers */
	--menu-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
/* -------------------------------------------------------------------------------------------- */

* {
	box-sizing: border-box;
	margin-top: 0;
}

html {
	height: 100%;
	font-size: 14px;
	font-family: Lato, sans-serif;
	line-height: 1.7;
	color: var(--dark-gray);
	scroll-behavior: smooth;
}

body {
	height: 100%;
	margin: 0;
	background: var(--dark-bg);
}

p {
	letter-spacing: normal;
	margin: 0.85em 0;
}

ul, ol {
	padding-left: 1em;
	margin: 0;
	margin-bottom: 0.5em;
}

ul {
	list-style-type: disc;
}

ul.minimal {
	padding: 0;
	margin: 0;
	list-style-type: none;
}

ul.minimal a {
	text-decoration: none;
}

ul.spread > li {
	margin: 0.5em 0;
}

a {
	color: var(--link-color);
	text-decoration: none;
}

a:hover {
	color: var(--dark-green);
	text-decoration: underline;
}

h1 {
	margin: 0;
}

h2, h3, h4 {
	color: var(--mid-gray);
	/*font-family: 'Spectral', serif;*/
	font-weight: normal;
	/*letter-spacing: 0.05em;*/
	text-align: left;
	margin-bottom: 0.25em;
}

h2 {
	font-size: 1.6em;
}

h3 {
	font-size: 1.4em;
}

h4 {
	font-size: 1.2em;
}

hr {
	background: linear-gradient(to right, transparent, var(--dark-gray), transparent);
	width: 80%;
	height: 1px;
	margin: 1.5rem auto;
	border: none;
}

table {
	width: 100%;
	border: none;
	table-layout: fixed;
	border-collapse: collapse;
}

table, caption {
	text-align: left;
}

caption {
	font-size: 1.1em;
}

th {
	background: var(--mid-gray);
	color: var(--off-white);
	font-weight: normal;
	font-size: 1.1em;
}

tr {
	border-bottom: 1px solid var(--light-gray);
}

td:first-child {
	font-weight: bold;
	background: var(--darker-white);
}

th, td, caption {
	padding: 0.5em;
}

address {
	font-style: normal;
}

/* Global classes */
/* -------------------------------------------------------------------------------------------- */

.centerbox {
	width: auto;
	max-width: var(--main-layout-width);
	margin-left: auto;
	margin-right: auto;
	padding: 1.5em;
}

.extra_left_indent {
	padding-left: 3em;
}

.centered_flex {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.centered_text {
	text-align: center;
}

.background_image {
	position: absolute;
	top: 25px;
	right: 10%;
	z-index: -1;
	font-size: 13em;
	color: var(--dark-green);
	opacity: 0.15;
}

.toc {
	padding: 1em;
	background: var(--off-white);
	border-radius: var(--rounded-edge);
}

.toc ol {
	list-style-type: none;
	counter-reset: toc-section;
}

.toc > ol {
	padding-left: 0;
}

.toc li::before {
	counter-increment: toc-section;
	content: counters(toc-section, ".");
	padding-right: 0.5em;
}

.centered_large {
	text-align: center;
	font-size: 1.2em;
	margin: 1em 0;
}

.huge_header {
	font-size: 2.8em;
	font-weight: 300;
	letter-spacing: 0.05em;
	text-align: center;
	margin: 1.5rem 0;
	line-height: 1.2;
}

.huge_header small {
	font-size: 0.7em;
}

.header_link {
	transition: all 150ms ease-in-out;
	color: var(--main-color);
}

.header_link:hover {
	color: var(--off-white);
	transition: all 150ms ease-in-out;
	text-shadow: white 1px 0 10px;
}

/* Animation helpers */
/* -------------------------------------------------------------------------------------------- */

.transparent {
	opacity: 0;
}

.shifted_down {
	transform: translateY(10%);
}
