html, body
{
	height: 100%;
	margin: 0;
	padding: 0;
}

html
{
	background-color: #191d20;

	/* background: linear-gradient(to bottom, #000 calc(100vw / 1920), #191d20 calc(100vw / 1920)) no-repeat; */
	color: #dedede;

	font-family: sans-serif;
	font-size: 16px;

	/* padding-top: 14.322916667%; */
	/* height: 100%; */
}

body
{
	display: flex;
	flex-direction: column;
}

a:link, a:visited
{
	color: #ff4200;
	text-decoration: underline;
}

a:active, a:focus, a:hover
{
	color: #ffff00;
}

h1, h2, h3, h4, h5, h6, p
{
	margin: 0 0 1em;
	padding: 0;
}

h1, h2, h3, h4, h5, h6
{
	font-family: serif;
	text-shadow: -3px 3px 3px #000;
}

h1 { font-size: 1.75em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.15em; }
h5 { font-size: 1em; }
h6 { font-size: 1em; }

p
{
	line-height: 1.7;
}

#site-header
{
	background-image: url("/images/skyline.jpg");
	background-position: center top;
	background-repeat: no-repeat;
	background-size: 100% auto;
	color: #fff;
	box-shadow: 0 5px 10px #000;

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1 0 auto;

	min-height: 14.322916667vw;
	padding: 0.75em 0.75em 0;

	word-break: break-all;
}

#site-title, #site-slogo, #site-nav ul
{
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

#site-title, #site-slogo
{
	text-shadow: -2px 2px 0 #000;
}

/* Nyuk nyuk nyuk */
@keyframes spreadout
{
	0% { letter-spacing: 0; }
	100% { letter-spacing: 6px; }
}

#site-title
{
	font-size: 2em;
	font-style: italic;
	font-weight: bold;
	/* letter-spacing: 5px; */
	text-transform: uppercase;
	animation: spreadout 1s both 0.1s;
}

#site-slogo
{
	font-style: italic;
}

#site-nav
{
	background: #fec;
	background: linear-gradient(25deg, #ccafa1 0%, #fec 100%);

	font-variant: small-caps;
	font-weight: bold;

	margin: 0.75em -0.75em 0;
}

#site-nav ul
{
	display: flex;

	list-style: none;
	padding: 0;

	text-align: center;
}

#site-nav ul > li
{
	flex: 1 1 auto;
}

#site-nav a
{
	background-color: rgba(255, 255, 255, 0);
	color: #000;

	text-decoration: none;

	box-sizing: border-box;
	display: block;
	height: 100%;
	padding: 0.5em 1em;

	transform-origin: center bottom;

	transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.25s ease-in-out, transform 0.1s ease-in-out, border-radius 0.5s ease-in-out;
}

#site-nav a:active, #site-nav a:focus, #site-nav a:hover, #site-nav li.active a
{
	background-color: rgba(255, 255, 255, 1);
	color: #ff4200;

	border-radius: 1.25em 1.25em 0 0;
	box-shadow: 0 0 5px #000;
	/* transform: translateY(-5px); */
	transform: scaleY(115%);
}

@media screen and (max-width: 640px)
{
	#site-header
	{
		font-size: 0.75em;
	}

	#site-nav a
	{
		padding-right: 0.5em;
		padding-left: 0.5em;
	}
}

@media screen and (min-width: 1920px)
{
	#site-header
	{
		min-height: 0;
		height: 14.322916667vw;
		max-height: 300px;
	}
}

#site-footer
{
	background: #000;

	font-size: 0.8em;
	text-align: right;

	padding: 1em;
}

#site-content
{
	/* background: linear-gradient(to bottom, #000 0, #191d20 100px) no-repeat; */

	box-sizing: border-box;
	flex: 1 1 100%;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 2em;
}

#site-content img
{
	border-radius: 1em;
	max-width: 100%;
}

#site-content img.aside
{
	float: right;
	max-width: 50%;
	margin: 0 0 1em 1em;
}

#site-content object
{
	display: block;
	margin: 0 auto 1em;
}

/* Common image list styles */
ul.big-selection, ul.inline-gallery
{
	clear: both;

	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;

	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

/* Inline image gallery */
ul.inline-gallery > li
{
	flex: 1 0 calc(25% - 1em);
	margin: 0.5em;
	max-width: calc(50% - 1em);
}

#site-content ul.inline-gallery img
{
	width: 100%;
}

/* Big, image-based selector grid */
ul.big-selection > li
{
	border-radius: 1em;
	flex: 1 0 calc(33.333% - 1em);
	margin: 0.5em;
	position: relative;
	overflow: hidden;
}

#site-content ul.big-selection img
{
	border-radius: 0;
	width: 100%;
	transition: transform 45s ease 1s;
}

ul.big-selection .title
{
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	transition: background-color 0.2s ease-in-out;

	font-size: 1.25em;

	padding: 0.35em 0.75em;

	position: absolute;
	top: 0;
	right: 0;
	left: 0;
}

ul.big-selection a:active .title, ul.big-selection a:focus .title, ul.big-selection a:hover .title
{
	background-color: rgba(96, 96, 96, 1);
}

ul.big-selection a:hover img
{
	transform: scale(2);
}

@media screen and (max-width: 800px)
{
	ul.inline-gallery > li, ul.big-selection > li
	{
		flex-basis: calc(50% - 1em);
	}

	ul.big-selection .title
	{
		font-size: 1em;
	}
}