

@import url('https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i,900,900i');
body {
	font-family: "Lato", sans-serif;
}

.container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	top: 200px;
}

header {
  display: flex;
	align-items: center;
	grid-column: span 3;
	text-align: center;
	font-size: 1.4em;
	padding: 40px;
	background-color: #ffffff;
	color: white;
}

.header-container {
	position: absolute;
  right: 1em;
  max-width: 50%;
	text-align: right;
}

.logo {
	height: 50px;
	margin-right: 20px;
}

.logo-container {
	font-size: 2em;
	font-weight: 900;
}

.content-container {
	margin: 2em auto;
	max-width: 1200px;
}



.title-container {
	height: 140px;
	margin-bottom: 30px;
	padding: 30px;
	color: white;
	background: white center #333 repeat;
	background-size: fit;
	color: white;
	text-shadow: 0px 0px 5px #000;
	display: flex;
	align-items: center;
}

.title-container h1 {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
}


main {
	flex: 1;
}

nav {
	background-color: #ffffff;
	color: #fff;
	padding: 10px 30px;
}

.nav-container {
  margin: 1em auto;
  width: auto;
}

nav ol {
	padding-left: 20px;
	
}

nav ol li {
	margin: 20px 0;
	font-size: 0.8em;
}

nav a.active {
	font-weight: 900;
	color: #a9a9ff;
}

nav a,
header a {
	    color: #000;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-style: normal;
    font-variant: normal;
    font-weight: 700;
    line-height: 26.4px;
}

nav a:hover,
header a:hover {
	color: #aaa;
}

article a {
	color: #000;
}



article p {
	padding: 0 25px;
}

article ol {
	padding: 0 50px;
	list-style: decimal;
}

article ul {
	padding: 0 50px;
	list-style: initial;
}

figure {
	display: block;
	margin-left: 25px;
	margin: 0 auto;
}

figure figcaption {
	display: block;
}

figure.image-container {
	max-width: 500px;
}

figure.image-container {
	max-width: 500px;
}

figure.image-container figcaption,
label {
	display: block;
	text-align: center;
	font-weight: 300;
}

figure img {
	display: block;
	width: 100%;
	margin: inherit auto;
}

figure.video-container {
	position: relative;
	padding-bottom: 56.25%;
	/* 16:9 */
	padding-top: 25px;
	margin: inherit auto;
	height: 0;
}

figure.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

figure.video-container figcaption {
	display: block;
	width: 100%;
	position: absolute;
	top: 103%;
	text-align: center;
	font-weight: 300;
}

footer {
	grid-column: span 3;
	padding: 30px;
	text-align: center;
	font-size: 1.4em;
	background-color: #690;
	color: white;
}

/* --------------------------------
Typography
-------------------------------- */

:root {
	--font-primary: "Lato", sans-serif;
	--font-secondary: serif;
	/* set base values */
	--text-base-size: 1.4em;
	--text-scale-ratio: 1.2;
	/* type scale */
	--text-xs: calc(1em / (var(--text-scale-ratio) * var(--text-scale-ratio)));
	--text-sm: calc(1em / var(--text-scale-ratio));
	--text-md: calc(1em * var(--text-scale-ratio));
	--text-lg: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio));
	--text-xl: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio));
	--text-xxl: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio));
	/* line-height */
	--heading-line-height: 1.2;
	--body-line-height: 1.4;
	/* spacing values */
	--space-unit: 2em;
	--space-xxxs: calc(0.25 * var(--space-unit));
	--space-xxs: calc(0.375 * var(--space-unit));
	--space-xs: calc(0.5 * var(--space-unit));
	--space-sm: calc(0.75 * var(--space-unit));
	--space-md: calc(1.25 * var(--space-unit));
	--space-lg: calc(2 * var(--space-unit));
	--space-xl: calc(3.25 * var(--space-unit));
	--space-xxl: calc(5.25 * var(--space-unit));
	--space-xxxl: calc(8.5 * var(--space-unit));
	/* components padding */
	--component-padding: var(--space-sm);
	/* text colors */
	--color-text: #252525;
	--color-text-h1: #fff;
	--color-text-h2: #222;
	--color-text-h3: #555;
	--color-text-h4: #888;
	--color-text-h5: #aaa;
}

body {
	font-size: var(--text-base-size);
	font-family: var(--font-primary);
	color: var(--color-text);
}

h1,
h2,
h3,
h4 {
	color: var(--color-text-heading);
	margin-bottom: var(--space-xs);
	line-height: var(--heading-line-height);
	font-weight: 900;
	padding-left: 25px;
}


/* text size */

h1,
.text--xxl {
	font-size: var(--text-xxl);
	color: var(--color-text-h1);
}

h2,
.text--xl {
	font-size: var(--text-xl);
	color: #3f8488;
	border-left: 10px solid var(--color-text-h2);
	padding-left: 20px;
}

h3,
.text--lg {
	font-size: var(--text-lg);
	color: var(--color-text-h3);
}

h4,
.text--md {
	font-size: var(--text-md);
	color: var(--color-text-h4);
}

.text--sm,
small {
	font-size: var(--text-sm);
}

.text--xs {
	font-size: var(--text-xs);
}

p {
	line-height: var(--body-line-height);
	margin: var(--space-sm) 0;
}

ol,
ul {
	line-height: var(--body-line-height);
	margin: var(--space-sm) 0;
}

nav ol,
nav ul {
	margin: var(--space-xxs) 0;
	line-height: 0.5em;
}

iframe {
	margin-bottom: var(--space-sm);
}

figure {
	margin-bottom: var(--space-md);
}

img,
article .content-container pre,
label {
	margin-bottom: var(--component-padding);
}

strong {
	font-weight: bold;
}

em {
	font-style: italic;
}


@media (min-width: 1200px) {
	.container {
		display: grid;
		grid-template-columns: 250px 1fr;
		grid-template-rows: auto 1fr auto;
	}
	.nav-container {
		position: fixed;
		width: 210px;
	}
	.logo-container {
		position: fixed;
		top: 0.4px;
		font-size: 2em;
		font-weight: 900;
	}
}

@media (max-width: 760px) {

  .content-container {
		margin: 2em 1em;
	}

  .content-container h2 {
  	font-size: var(--text-md);
  	border-left: 5px solid var(--color-text-h2);
  	padding-left: 20px;
  }
  .content-container h3 {
    font-size: var(--text-md);
  }
}

@media (min-width: 761px) and (max-width: 1500px) {
	.content-container {
		margin: 2em 2em;
	}
}
