@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&family=Roboto:wght@100;400;700&display=swap');

:root {
	--row-x-padding: 8vw;
	--row-y-padding: 8vh;
}

h1, h2, h3, h4, h5, h6, p, a {
	font-family: 'Roboto', sans-serif;
	box-sizing: border-box;
}

i {
	font-style: italic;
}

h1.glowing {
	text-shadow: 0 0 var(--heading-glow-radius) var(--primary);
}

html {
	background-color: var(--bg);
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
}

header {
	position: sticky;
	top: 0;
}

main {
	flex-grow: 1;
}

img.logo {
	height: 3rem;
}

footer {
	border-top: 1px solid var(--primary);
}

footer img.logo {
	margin-bottom: 0.5rem;
}

footer h4 {
	font-family: 'Roboto', sans-serif;
}

footer p {
	font-family: 'Roboto', sans-serif;
	margin-bottom: 0.25em;
}

footer .columns a {
	text-decoration: none;
	color: inherit;
	text-shadow: none;
}

.emphasis {
	font-weight: 700;
}

.button {
	color: var(--fg);
	text-decoration: none;
	background-color: var(--bg);
	padding: 0.5em 0.75em;
	border-radius: 0.25em;
	-webkit-box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.5);
	-moz-box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.5);
	box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.5);
	font-size: min(1.5rem, 3vh);
	font-weight: bold;
	transition-duration: 0.2s;
}

.button.bordered {
	border: 1px solid var(--primary);
}

.button:hover {
	color: var(--light);
	background-color: var(--primary);
}






nav {
	display: flex;
	background-color: var(--navbar);
	align-items: center;
	justify-content: space-between;
	-webkit-box-shadow: 0 -20px 20px 20px rgba(0,0,0,0.2);
	-moz-box-shadow: 0 -20px 20px 20px rgba(0,0,0,0.2);
	box-shadow: 0 -20px 20px 20px rgba(0,0,0,0.2);
	position: relative;
}

div.nav-left {
	display: flex;
	align-items: center;
}

button.navmenu-button,
.navimage {
	margin: 0.75em;
}

.navlink {
	color: var(--navlink-fg);
	border-bottom: 1px solid var(--navbar);
	transition-duration: 0.2s;
	text-decoration: none;
	padding: 0.5em 0;
	margin: 0.5em 0.75em;
	font-size: 1.25rem;
}

.navlink:hover, .navlink.selected {
	color: var(--navlink-selected-fg);
	border-bottom: 1px solid var(--navlink-selected-fg);
}

button.navmenu-button {
	display: none;
	padding: 0;
	background-color: transparent;
	border: none;
	user-select: none;
}

button.navmenu-button img {
	cursor: pointer;
}

div.navmenu {
	display: flex;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: var(--bg);
	flex-direction: column;
	align-items: stretch;
	transition-duration: 0.4s;
	height: 0;
	overflow-y: hidden;
}

.row {
	padding: var(--row-y-padding) var(--row-x-padding);
}



.hero {
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: calc(var(--row-y-padding) / 2);
}

.hero h1 {
	color: var(--primary);
	font-size: min(6rem, 10vh);
	max-width: 50%;
	text-shadow: 0 0 0.2em var(--dark), 0 0 var(--heading-glow-radius) var(--primary);
	font-weight: 100;
}

.hero-buttons {
	display: flex;
	gap: calc(var(--row-y-padding) / 2);
}



.subhero {
	background-size: cover;
	background-position: center;
}

.subhero h1 {
	color: var(--primary);
	font-size: min(4rem, 8vh);
	max-width: 50%;
	text-shadow: 0 0 0.2em var(--dark), 0 0 var(--heading-glow-radius) var(--primary);
	font-weight: 400;
}



.two-column {
	grid-template-columns: 1fr 1fr;
}

.three-column {
	grid-template-columns: 1fr 1fr 1fr;
}

.columns {
	display: grid;
	gap: calc(var(--row-x-padding) / 2);
	align-items: center;
}

.columns h1 {
	color: var(--primary);
	font-size: min(3rem, 6vh);
	margin-bottom: 0.5em;
	font-weight: 100;
	text-shadow: 0 0 var(--heading-glow-radius) var(--primary);
}

.columns h4 {
	color: var(--primary);
	font-size: min(1.5rem, 3vh);
	margin-bottom: 0.5em;
}

.columns p {
	color: var(--fg);
	font-size: min(1.5rem, 3vh);
	font-weight: 100;
	margin-bottom: 0.5em;
}

.columns a {
	color: var(--primary);
	text-shadow: 0 0 var(--heading-glow-radius) var(--primary);
}

footer .columns p {
	font-size: min(1rem, 2vh);
}

.columns img {
	max-width: 100%;
	max-height: 80vh;
	border-radius: 4px;
}

img.shadow {
	-webkit-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.5);
	-moz-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.5);
	box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.5);
}

.columns img.left-image {
	justify-self: end;
}

.columns img.right-image {
	justify-self: start;
}



@media only screen and (max-width: 600px) {
	:root {
		--row-x-padding: 2rem;
		--row-y-padding: 2rem;
	}

	.logo {
		height: 2.5rem;
	}

	.navimage {
		margin: 0.5em;
	}

	.nav-left .navlink {
		display: none;
	}

	button.navmenu-button {
		display: block;
	}

	div.navmenu.shown {
		display: flex;
		height: 40vh;
	}

	.button {
		font-size: 1rem;
	}

	.hero h1 {
		font-size: 3rem;
		max-width: 100%;
	}

	.subhero h1 {
		font-size: 2.5rem;
		max-width: 100%;
	}

	.columns {
		display: flex;
		flex-direction: column;
		gap: calc(var(--row-y-padding) / 2);
		align-items: flex-start;
	}

	.columns h1 {
		font-size: 2rem;
		margin-bottom: 0.5em;
	}

	.columns p {
		font-size: 1.25rem;
	}

	.columns img {
		max-width: none;
		max-height: none;
		align-self: stretch;
	}

	.columns img.right-image,
	.columns img.left-image {
		justify-self: none;
	}
}
