:root {
	--c-link: #0097ff;
	--c-link-rgb: 0,151,255;
	--c-bg-main: white;
	--c-bg-2: #e8e8e8;
	--c-rule: rgba(127,127,127,.25);

	--rule: 1px solid var(--c-rule);
}

html {
	font-size: 16px;
	height: 100%;
}

body {
	display: flex;
	margin: auto;
	min-height: 100%;
	background-color: var(--c-bg-main);
	color: #222;
	font-family: "Source Sans Pro", sans-serif;
	font-size: 100%;
	line-height: 1.5;
	flex-direction: column;
	justify-content: space-around;
}

h1,
h2,
h3 {
	margin: 0;
}

.page-content h1,
h2,
h3 {
	font-weight: normal;
	padding-bottom: 1.5rem;
}

a {
	text-decoration: none;
	border-bottom: 1px solid transparent;
	color: var(--c-link);
}

a:hover {
	border-bottom-color: initial;
}

.inline-list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.padded-link {
	display: inline-block;
	padding: .75em 1em;
}

.image-link {
	display: inline-block;
	line-height: 0;
	border: 0;
}

.site-nav {
	display: flex;
	font-size: 1.25em;
}

.page-content {
	border: var(--rule);
	border-width: 1px 0;
	padding: 3em 9em;
	flex: 1;
}

.site-footer {
	margin-top: auto;
	width: 100%;
	text-align: center;
	transition: color .2s ease-in-out;
	background-color: var(--c-bg-2);
}

.site-title {
	padding-left: calc(9rem - 1em); /* To match the margin on the content area, accounting for .padded-link * font-size. */
	border-right: var(--rule);
	font-size: inherit;
}

.site-subtitle {
	font-weight: normal;
}

.page-title {
	font-size: 1.75rem;
}

.section-heading {
	font-size: 1.5rem;
}

.text-heading {
	font-size: 1em;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	margin: -.5em;
}

.gallery .image-link {
	box-sizing: border-box;
	margin: .5em;
	max-width: 25%;
	border: var(--rule);
	padding: .25em;
	/* border-radius: 2px; */
	/* background-color: white; */
}

.image-link img {
	max-width: 100%;
}

.site-nav li {
	position: relative;
}

.site-nav a {
	position: relative;
	color: inherit;
	border: 0;
	background-image: linear-gradient(transparent, transparent 50%, rgba(var(--c-link-rgb),1) 50%, rgba(var(--c-link-rgb),1));
	background-position: 0 0;
	background-size: auto 200%;
	transition: .1s ease-in;
	transition-property: color, background-position;
}

.site-nav a::after {
	position: absolute;
	display: block;
	/* content: ""; */
	width: calc(100% - 2em);
	color: transparent;
	border-bottom: 4px solid;
	/* transition: .2s ease-in-out;
	transition-property: color, width, transform; */
	transition: color .2s ease-out;
}

.site-nav .selected::after {
	color: var(--c-rule);
}

.site-nav a:hover {
	background-position: 0 100%;
	color: white;
	transition-timing-function: ease-out;
}

.site-nav a:hover::after {
	/* transform: translateX(-.5em); */
	/* width: calc(100% - 1em); */
	/* color: rgba(127,127,127,.5); */
	color: var(--c-link);
}

.site-nav a:active {
	background-image: linear-gradient(black, black);
	color: white;
}

.site-nav a:active::after {
	/* color: var(--c-link); */
	color: inherit;
}
