:root {
	--sans-type: 'Futura', sans-serif;
	--serif-type: 'Baskerville', serif;

	--colour-primary: #00938e;
	--colour-secondary: #666;
	--colour-text: #111;
	--colour-background: #fff;
	--colour-text-blocks: #ddd;
}

* {
	margin: 0;
	padding: 0;
	line-height: inherit;
}

body {
	color: var(--colour-text);
	background: var(--colour-background);
	font-family: var(--serif-type);
}

a {
	color: var(--colour-primary);
	text-decoration: none;
}

a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sans-type);
	font-weight: normal;
}

p {
	margin: 1rem 0;
}

ul, ol {
	list-style-position: inside;
}

#wrapper {
	padding: 0.5rem;
}

#site_header, main, #site_footer {
	margin-bottom: 1rem;
}

#site_header {
	font-family: var(--sans-type);
}


#site_header li {
	list-style-type: none;
	display: inline;
}

@media (max-width: 800px) {

	#site_header li+li:before {
		color: var(--colour-secondary);
		content: " / ";
	}

}

#site_header a {
	text-transform: uppercase;
}


main ul, main ol {
	margin: 1rem 0;
}

main li ul, main li ol {
	margin-left: 2rem;
}

article {
	font-size: 1.5rem;
	line-height: 1.5;
}

article time {
	font-family: var(--sans-type);
	color: var(--colour-secondary);
	font-size: 0.9rem;
}

article img, article video {
	max-width: 100%;
}

article footer {
	font-family: var(--sans-type);
}

article pre {
	margin: 1rem 0;
	background: var(--colour-text-blocks);
	padding: 0.5rem 0.25rem;
}

pre code {
	line-height: 1;
}

#site_footer {
	padding-top: 1rem;
}


#site_footer section {
	display: block;
	margin-bottom: 1rem;
}

#site_footer section h2 {
	margin-bottom: 1rem;
}

@media (min-width: 600px) {
	#wrapper {
		padding: 1rem;
		max-width: 2048px;
	}
}

@media (min-width: 800px) {
	/* since we don't have subgrid let's set these sections as being individual grids and hope for the best */
	#site_header, #site_header nav ul, main article, #site_footer {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: auto;
		grid-row-gap: 1rem;
		grid-column-gap: 1rem;
	}

	#site_title {
		grid-column-start: 1;
		grid-column-end: 3;
	}

	#site_header nav {
		grid-row-start: 2;
		grid-column-start: 1;
		grid-column-end: 5;
	}

	main {
		min-height: 50vh;
	}

	main article header {
		grid-column-start: 1;
		grid-column-end: 4;
	}

	main article header h2 {
		font-size: 4rem;
		line-height: 1;
		border-bottom: 0.5rem solid var(--colour-secondary);
		padding-bottom: 1rem;
	}

	main article .content {
		grid-column-start: 2;
		grid-column-end: 5;
		grid-row-start: 2;
		width: 100%;
	}

	main article table {
		margin: 1rem 0;
	}

	main article table tr:first-child th {
		border-bottom: 1px solid;
		font-family: var(--sans-type);
	}

	main article table th {
		text-align: left;
	}

	main article table th, main article table td {
		padding: 0.25rem;
	}


	main article table tbody tr:nth-child(odd) {
		background-color: #ddd;
	}


	main article footer {
		grid-column-start: 3;
		grid-column-end: 5;
		grid-row-start: 3;
	}

	.lists ol, .lists ul {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto;
		grid-column-gap: 2rem;
		grid-row-gap: 1rem;
	}

	.lists ol li, .lists ul li {
		border-bottom: 0.2rem solid var(--colour-text-blocks);
		padding-bottom: 0.5rem;
		font-family: var(--sans-type);
	}

	#site_footer section {
		padding-bottom: 1rem;
	}
	
}

