/** Declare variables **/
:root {
	--text-color: #000;
	--primary-color: #306;
	--page-background: #eee;
	--content-background: #fafafa;
}

/** Styles which apply everywhere **/
body {
	background: var(--page-background);
	color: var(--text-color);
	padding-bottom: 3em;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-family: Geneva, Arial, Helvetica, sans-serif;
	overflow-x: hidden;
	margin: auto;
	max-width: 1500px;
}
a {
	font-weight: bold;
	text-decoration: none;
	color: var(--primary-color);
}
a:hover {
	text-decoration: underline;
}
/** End Everywhere Styles **/

/** Header **/
header {
	float: left;
	width: 90%;
	margin: 0 5%;
	padding-top: 1em;
	background: var(--primary-color);
	color: var(--content-background);
	color:#fff;
}
#mainnav ul {
	border-top: solid;
	clear: both;
	margin: 0;
	text-transform: uppercase;
	display: flex;
	flex-flow: row wrap;
	padding-inline-start: 0;
}
#mainnav li {
	display: contents;
	list-style-type: none;
	padding: 0 2em;
}
#mainnav li a {
	font-weight: normal;
	color: inherit;
	flex: 1;
	text-align: center;
	padding: 0 15px;
}
#mainnav li.currentpage a {
	background: var(--content-background);
	color: var(--primary-color);
}
#me {
	font-size: 3em;
	font-family: helvetica, serif;
	display: block;
	float: left;
	vertical-align: middle;
	padding: 0.25em 0.75em;
}
#me a {
	text-decoration: none;
	font-weight: normal;
}
#me img {
	height: 1em;
}
/** End Header **/

/** Footer **/

body > footer {
	padding: 0;
	margin: 0 5%;
	display: block;
	background: var(--content-background);
	color: var(--text-color);
	float: left;
	width: 90%;
	font-size: 0.8em;
}
footer li {
	float: left;
	list-style-type: none;
	display: inline;
	padding: 0 2em;
}
footer ul {
	border-top: solid var(--primary-color);
	margin: 0;
}

/** End Footer **/


/** Main Content **/

main {
	clear: both;
	padding: 1em 2em;
	margin: 0 5%;
	background: var(--content-background);
	color: var(--text-color);
}
h1 {
	margin-top: 0;
}
h1,h2,h3,h4,h5 {
	color: var(--primary-color);
}
article {
	max-width: 600px;
	margin: 0 auto;
}
.content {
	display: flex;
	align-items: center;
	flex-direction: row;
}
[data-path="/cv"] .content {
	align-items: start;
}
@media (max-width: 850px) {
	.content {
		flex-direction: column;
	}
	[data-path="/cv"] .content {
		align-items: center;
	}
}

/** End Main Content **/

/** Project Pages **/

#summaries {
	display: flex;
	flex-flow: row wrap;
}
.projsummary {
	border: thin solid var(--primary-color);
	padding: 10px;
	flex-grow: 1;
	min-width: 50%;
}

@media (min-width: 700px) {
	.projsummary {
		min-width: 500px;
		flex-basis: 40%;
	}
}

#summaries > :nth-child(odd) > .thumblink {
	float: left;
}
#summaries > :nth-child(even) > .thumblink {
	float: right;
}
.navlink {
	display: block;
	text-align: right;
	clear: both;
}
.label {
	font-weight: bold;
}
#project {
	display: inline-block;
	margin: 1em;
}
.homepage a, .source a, .download a {
	font-weight: normal;
}
.projsummary:not(#minor):hover {
	background: color-mix(in srgb, var(--page-background), black 6%);
	color: var(--text-color);
}
.project_thumb {
	height: 100px;
	width: 100px;
	margin: 10px;
	transition: 0.5s ease-out;
}
.default_thumb:hover {
	border-radius: 50px;
}
#footlights .project_thumb {
	position: relative;
	width: 150px;
	left:-15px;
	margin-left: 0;
	margin-right:-28px;
	border: none;
	transition: 0.2s ease-in;
}
#footlights:hover .project_thumb {
	transform: rotate(60deg);
	transition: 1s ease-in;
}
#vixens:hover .project_thumb {
	transform: rotateX(180deg);
}
#bedlam:hover .project_thumb {
	transform: rotateY(180deg);
}
#sdp:hover .project_thumb {
	transition: 0.2s ease-in;
	transform: skew(-30deg);
}
#jalk:hover .project_thumb {
	transform: skew(65deg);
	scale: 0.4;
	transition: 0.3s ease-in;
}
#sag:hover .project_thumb {
	rotate: 540deg;
}
#allfeeds .project_thumb {
	transition: 1s ease-in;
}
#allfeeds:hover .project_thumb {
	transform: rotateY(180deg) rotateZ(90deg);
}
#waffler .project_thumb {
	transition: 0.2s ease-in;
}
#waffler:hover .project_thumb {
	transform: scale(0.2);
	transition: 1s ease-in;
}
#progs:hover .project_thumb {
	transform: scale(2, 0.05);
	transition: 0.2s ease-in;
	border-radius: 37px;
}
#blog:hover .project_thumb {
	transform: scale(0.7, 1.5);
	rotate: 32deg;
	transition: 0.2s ease-in;
}
#lucOS:hover .project_thumb {
	padding-top: 80px;
	margin-bottom: -70px;
	transition: 0.2s ease-in;
}
#lucOS2:hover .project_thumb {
	transition: 0.3s ease-in;
	rotate: 45deg;
	transform-origin: top;
}
#lucOS4 .project_thumb {
	clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0%);
	padding-left: 0;
}
#lucOS4:hover .project_thumb {
	clip-path: polygon(0 0, 0 100%, 67% 100%, 68% 0%);
	padding-left: 15%;
}
#mad-world:hover .project_thumb {
	margin: -10px 10px;
	height: 140px;
	border-radius: 50px;
}
#lockdown-compositions:hover .project_thumb {
	transform: matrix(1.2, 0.2, -1, 0.8, 2, 2);
	border-radius: 0 60px;
}
#travel-map:hover .project_thumb {
	margin: 10px -10px;
	width: 140px;
	border-radius: 50px;
}
#lukeblaney\.co\.uk .project_thumb {
	clip-path: polygon(0% 0%, 100% 0%, 100% 30%, 100% 30%, 100% 30%, 100% 30%, 100% 30%, 100% 70%, 100% 100%, 0% 100%, 0% 73%, 0% 73%, 0% 26%, 0% 25%);
}
#lukeblaney\.co\.uk:hover .project_thumb {
	clip-path: polygon(33% 14%, 65% 14%, 61% 27%, 55% 27%, 47% 72%, 67% 73%, 69% 62%, 81% 62%, 77% 85%, 20% 85%, 21% 73%, 29% 73%, 38% 26%, 30% 25%);
	transition: 0.3s ease-in;
}
#tfluke .project_thumb {
	clip-path: polygon(100% 100%, 0% 100%, 0% 0%, 100% 0%);
}
#tfluke:hover .project_thumb {
	clip-path: polygon(96% 99%, 0% 36%, 0% 34%, 100% 18%);
	transition: 0.2s ease-out;
}
#nhmu-wiki .project_thumb {
	clip-path: polygon(100% 0%, 0% 0%, 0% 100%, 100% 100%);
	transition: 0.2s ease-in;
}
#nhmu-wiki:hover .project_thumb {
	clip-path: polygon(50% 0%, 50% 0%, 6% 100%, 90% 100%);
	transition: 0.5s ease-out;
}
#training-montage .project_thumb {
	clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%, 65% 0%, 25% 0%);
	transition: 0.8s ease-in;
}
#training-montage:hover .project_thumb {
	clip-path: polygon(12% 12%, 12% 74%, 75% 74%, 78% 13%, 65% 6%, 27% 5%);
	transform: scale(1.5) translate(8px, 14px);
}
#bed .project_thumb {
	transition: 0.8s ease-in;
}
#bed:hover .project_thumb {
	filter: hue-rotate(180deg) drop-shadow(2px 4px 6px black);
}

.copyright {
	display: block;
}
/** End Project Pages **/

/** Talk Pages **/
.talk-list {
	max-width: 600px;
	margin: 0 auto;
}
.talk-list .conference {
	font-weight: bold;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.talk-list .talk:after {
	content: "~";
	color: var(--primary-color);
	display: block;
	text-align: center;
	font-size: large;
	font-family: serif;
}
.talk-list .talk h2 {
	font-size: 1.3em;
	margin-block-end: 0.2em;
}
.talk-list > .talk > .talk-links {
	margin-top: 10px;
}
.talk-list > .talk > .talk-links > a {
	background: var(--primary-color);
	color: var(--content-background);
	border-radius: 15px;
	padding: 0 15px;
}
/** End Talk Pages **/

/** Figures and Images **/
a img {
	border: none;
}
figure {
	clear: both;
	margin-top: 1em;
	max-width: 40em;
}
figure.smaller {
	max-width: 20em;
}
figure.left {
	float: left;
	margin-right: 2em;
}
figure.right {
	float: right;
	margin-left: 2em;
}
figure img {
	max-width: 100%;
}
figure figcaption {
	display: block;
	text-align: center;
	font-size: smaller;
	font-weight: bold;
	font-family: monospace;
}
figure.primary img {
	width: 300px;
}
@media (max-width: 850px) {
	figure.primary {
		margin: 0;
		max-width: 100%;
	}
	figure.primary img {
		max-width: 100%;
	}
}
/** End Figures and Images **/

/** Also Available As links **/
#also {
	font-family: cursive;
	font-style: italic;
	font-size: smaller;
	font-weight: normal;
	display: block;
	padding: 0.4em 0 3em 0;
	width: 15%;
	text-align: center;
	transform: rotate(-30deg);
	float: right;
	position: relative;
	top:-2em;
	left: 0;
	background: var(--page-background);
	color: color-mix(in srgb, var(--primary-color), var(--page-background));
}
#also:hover {
	color: var(--primary-color);
	text-decoration: none;
}
/** End Also Available As links **/