/* Type size scale
 * http://typecast.com/blog/a-more-modern-scale-for-web-typography
 */
body {
	font-size: 100%;
}

body, caption, th, td, input, textarea, select, option, legend, fieldset, h1, h2, h3, h4, h5, h6 {
	font-size-adjust: 0.5;
}

article {
	font-size: 1em;
	line-height: 1.25;
}

h1 {
	font-size: 2em;
	line-height: 1.25;
	margin-top: 1.25em;
}

h2 {
	font-size: 1.625em;
	line-height: 1.15384615;
	margin-top: 1.15384615em;
}

h3 {
	font-size: 1.375em;
	line-height: 1.13636364;
	margin-top: 1.13636364em;
}

h4 {
	font-size: 1.125em;
	line-height: 1.11111111;
	margin-top: 1.11111111em;
}

blockquote {
	font-size: 1.25em;
	line-height: 1.25;
	margin: .625em 0;
	font-style: italic;
}

@media (min-width: 641px) {
	article {
		font-size: 1em;
		line-height: 1.375;
	}

	h1 {
		font-size: 2.5em;
		line-height: 1.125;
		margin-top: 1.125em;
	}

	h2 {
		font-size: 2em;
		line-height: 1.25;
		margin-top: 1.25em;
	}

	h3 {
		font-size: 1.5em;
		line-height: 1.25;
		margin-top: 1.25em;
	}

	h4 {
		line-height: 1.22222222;
		margin-top: 1.22222222em;
	}

	blockquote {
		font-size: 1.5em;
		line-height: 1.45833333;
		margin: 0.72916162em 0;
	}
}

@media (min-width: 901px) {
	h1 {
		font-size: 3em;
		line-height: 1.05;
		margin-top: 1.05em;
	}

	h2 {
		font-size: 2.25em;
		line-height: 1.25;
		margin-top: 1.25em;
	}

	h3 {
		font-size: 1.75em;
		line-height: 1.25;
		margin-top: 1.25em;
	}
}


* {
	margin: 0;
	padding: 0;
}

html {
	height: auto;
}
body {
	background-color: #ddd;
	background-image: linear-gradient(to bottom right, #eee 0%, #fff 50%, #eee 100%);
	margin: 0 auto;
	overflow-y: scroll;
	padding: 0;
	font-family: Roboto, Arial, Helvetica, sans-serif;
	font-weight: 300;
	min-height: 100vh;
	max-width: 62.5rem; /* 1000px - seems a reasonable maximum. */
	min-width: 23rem;   /* 480px */
}

article {
	margin: 0 1em;
}
article p + p {
	text-indent: 2em;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
}
b, strong {
	font-weight: 500;
}

li {
	margin-left: 1rem;
}

a:link, a:visited {
	color: #66f;
	text-decoration: none;
	outline: none;
}
a:focus, a:hover, a:active {
	color: #99f;
}
a:focus {
	text-decoration: underline;
}

header, footer, h1, h2, h3 {
	font-family: 'Roboto Slab', 'Courier New', Courier, monospace;
}
header, footer {
	display: grid;
	justify-content: space-between;
	margin: 0;
	padding: 2em 1em 1em;
	position: relative;
}
header:before {
	content: '';
	width: 120px;
	height: 120px;
	background-image: url('../cblogo.svg');
	background-repeat: no-repeat;
	background-size: 120px;
	position: absolute;
	top: 1.5rem;
	left: .5rem;
	z-index: 50;
}
header:after {
    content: '';
    width: 360px;
    height: 130px;
    background-image: url(../cblogo.svg);
    background-repeat: no-repeat;
    background-size: 360px;
    background-position-y: -115px;
    position: absolute;
    top: 2em;
    right: 0;
    z-index: 50;
    filter: opacity(5%) blur(3px) grayscale(100%);
}

header > h1 {
	padding: 0;
	margin: 0 0 0 117px;
	font-weight: 300;
}
header > p {
	margin: 0 0 0 120px;
	font-weight: 300;
	font-size: 1.75em;
}
header > nav {
	font-size: 1.2rem;
	margin-left: 120px;
	margin-top: .5rem;
	border-top: 2px solid #bbb;
	padding-top: .5rem;
}
header > nav > ul {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0;
}
header > nav > ul > li {
	padding: 0;
	margin: 0;
	list-style: none;
	font-weight: 400;
	white-space: nowrap;
	cursor: text;
}

@media (max-width: 900px) {
	header > p {
		font-size: 1.57em;
	}

	header > nav {
		font-size: 1.125rem;
	}
	
	header + article > h2 {
		margin-top: 0.25em;
	}
}

@media (max-width: 519px) {
	header > p {
		min-height: 2em;
	}
	header > nav {
		margin-left: 0;
	}
	header > nav > ul {
		flex-flow: row wrap;
		justify-content: space-between;
	}
	header > nav > ul > li {
		flex: 1 0 50%;
		font-size: 1.375rem;
		margin-bottom: .5em;
	}
}

header nav a:link, header nav a:visited {
	color: #888;
	border-radius: 3px;
	border-bottom: 0 solid transparent;
	text-decoration: none;
	transition: all .25s ease;
}
#index header nav a[href="/index.html"],
#services header nav a[href="/services.html"],
#calendar header nav a[href="/calendar.html"],
#contact header nav a[href="/contact.html"]
{
	border-bottom: 3px solid #c66;
	color: #666;
}
header nav a:focus, header nav a:hover, header nav a:active {
	border-bottom: 3px solid #f99 !important;
	color: #999 !important;
}

#contact > #main {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

#contact > #main > h3, #contact > #main > p {
	flex: 1 0 100%;
}

#contact > #main > section {
	flex: 1 1 auto;
}

#contact > #main > section:not(:last-of-type) {
	flex: 1 1 11em;
	margin-right: 1em;
}

#services > article:first-of-type {
	display: flex;
}
#services > article:first-of-type > aside {
	margin-left: 2rem;
}
@media (max-width: 640px) {
	#services > article:first-of-type {
		display: block;
	}
	#services > article:first-of-type > aside {
		margin-left: 0;
	}
}