:root {
	/* Palette from: https://colorhunt.co/palette/ebe8dbd76c82b030523d0301 */
	--color-background: #EBE8DB;
	--color-dim: #D76C82;
	--color-main: #B03052;
	/* */
	--color-shadow: rgba(0, 0, 0, 0.1);
	--color-text: #222;
	--color-text-dim: rgba(0, 0, 0, 0.6);
	--color-text-header: #3D0301;
}

a {
	color: var(--color-dim);

	&:hover {
		color: var(--color-main);
	}
}

body {
	background: var(--color-background);
	color: var(--color-text);
	max-width: 1200px;
}

dl {
	line-height: 1.4em;

	& dd {
		margin: 0.25em 0 1em;
	}

	& dt {
		font-weight: bold;
	}
}

figure {
	align-items: center;
	display: flex;
	margin: 0;

	& figcaption {
		margin-left: 1em;
	}

	& img {
		display: block;
		flex: 0 0 30%;
		transform: rotateZ(-2deg);
		width: 30%;
	}
}

footer, header, main {
	padding: 1em;
}

footer {
	color: var(--color-text-dim);
	font-size: 0.5em;
	text-align: center;

	& a {
		color: inherit;
		text-decoration: none;
	}
}

h1, h2, h3, h4, h5, h6 {
	color: var(--color-text-header);
	line-height: 0.9;
	text-transform: uppercase;

	& span {
		color: var(--color-main);
		font-size: 1.2em;
	}
}

h1 {
	position: relative;
	z-index: 2;
	text-shadow:
		-1px -1px 0 var(--color-background),
		1px -1px 0 var(--color-background),
		-1px 1px 0 var(--color-background),
		1px 1px 0 var(--color-background);

	& span {
		display: block;
		font-size: 3em;
	}
}

header {
	position: relative;
	overflow: hidden;

	& aside {
		display: block;
		position: absolute;
		right: 1.5em;
		top: 1.5em;
		width: 420px;
		transform: rotateZ(5deg);
		z-index: 1;
	}
}

html {
	/* Courtesy of https://modernfontstacks.com/ */
	font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
	font-size: 22pt;
}

img {
	max-width: 100%;

	&.bordered {
		border: 6px solid white;
		border-radius: 6px;
		box-shadow: 0 0 6px var(--color-shadow);
		box-sizing: border-box;
	}
}

p {
	line-height: 1.4em;
}

section {
	margin: 4em 0;
}

small {
	display: block;
	text-align: center;
}

strong {
	display: block;
	font-size: 2em;
	line-height: 1.1em;
	margin: 1.5em 0 0.25em;
	text-align: center;
}

ul {
	align-items: center;
	color: var(--color-text-dim);
	display: flex;
	justify-content: space-evenly;
	list-style: none;
	padding: 0;
	text-align: center;

	& li {
		flex: 0 0 40%;
		font-size: 0.4em;
		margin: 3em 0;
		font-style: italic;
	}
}

#map {
	height: 500px;
}

.leaflet-control-attribution {
	font-size: 8pt; /* does this make me a bad person? */
}

.rainbow {
	background: linear-gradient(to right, #ef5350, #f48fb1, #7e57c2, #2196f3, #26c6da, #43a047, #f9a825, #ff5722);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

@media only screen and (max-width: 800px) {
	figure {
		display: block;

		& figcaption {
			margin-left: 0;
		}

		& img {
			margin: 1em 0;
			transform: none;
			width: auto;
		}
	}

	header aside {
		display: none;
	}

	ul {
		display: block;

		& li {
			margin: 5em 0;
		}
	}
}
