@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost&display=swap');

:root {
	--header-height: 5em;
	transition: all ease-in-out 500ms;
	scroll-behavior: smooth;
	--image-height: 400px;
	--bg-col: rgb(226, 226, 226);
	--fg-col: rgb(58, 58, 58);
}

body {
	font-family: Jost, Poppins, sans-serif;
	font-size: 1.25em;
	padding: 0;
	margin: 0;
	position: absolute;
	/* height: 100%; */
	width: 100%;
	display: grid;
	grid-template-rows: auto auto;
	color:var(--fg-col);
}

article {
	max-width: 75ch;
}

hr {
	background-color:rgba(111, 124, 141, 0.452);
	height: 1px;
	border: none;
	border-radius: 1px;
}

.h1 {
	font-size: 18pt;
	font-weight: 300;
}

.h2 {
	font-size: 16pt;
	font-weight: 700;
	text-transform: uppercase;
}

.h3 {
	font-size: 14pt;
	font-weight: 700;
	text-transform: uppercase;
}

.h4 {
	font-size: 8pt;
	font-weight: 700;
	text-transform: uppercase;
}

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

a:hover {
	color: rgb(104, 114, 119);
}

header {
	padding: 0;
	display: flex;
	flex-direction: column;
}

/* any link inside a nav element hide the underline */
nav a {
	text-decoration: inherit;
}

footer > nav {
	padding: 1em;
	display: flex;
	/* flex-direction: column; */
	justify-content: space-around;
	align-items: center;
	letter-spacing: 0.2em;
}

nav.sibling-nav {
	display: flex;
	justify-content: space-between;
}

header > span {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header .h1, header .h2 {
	margin-left: 0.5em;
	margin-right: 0.5em;
	text-align: center;
}

section {
	margin: 1em;
}

/* you can override object-position per item
if you need to focus on a specific point */
img, video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.video-wrapper {
	width: 100%;
	height: 100%;
}

figure.img {
	width: 100%;
	object-fit: cover;
	object-position: center;
	height: var(--image-height);
}

figure {
	padding: 1em;
	margin: 0;
}

figcaption {
	margin-left: auto;
	margin-right: auto;
	width: fit-content;
	min-width: 80%;
	font-style: italic;
	text-align: center;
	font-size: small;
}

.announcement-bar {
	position: sticky;
	left: 0;
	right: 0;
	top: 0;
	background: rgb(51, 90, 111);
	display: grid;
	grid-template-columns: 1fr 32px;
	letter-spacing: 0.2em;
}

.announcement-bar a {
	display: inline;
	font-size: small;
	text-decoration: none;
	color: white;
	text-align: center;
	margin: 0.5em;
	padding: 0.5em;
}

.announcement-bar button {
	background: rgba(255,255,255,0.2);
	border: none;
	width: auto;
	color: white;
}

.gallery, .blog-list, .blog-gallery, .blog-gallery > p {
	display: grid;
	gap: 1em;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	grid-auto-flow: row dense;
	align-items: center;
}

img.gallery-item, .gallery-item > figure img {
	aspect-ratio: 2/3;
	object-fit: cover;
	border-radius: 4px;
}

.gallery.blocky {
	align-items: stretch;
	padding: 0;
}

.gallery.blocky figure {
	padding: 0;
}

.gallery.blocky img {
	object-fit: cover;
	object-position: center;
	transition: all ease-in-out 500ms;
}

.gallery.blocky figcaption {
	color: white;
	background-color: rgba(0, 0, 0, 0.5);
	transform: translateY(-150%);
	width: 100%;
	opacity: 0%;
}

.gallery.blocky figure:hover figcaption {
	opacity: 100%;
}

article > h1,
section > h1 {
	text-align: center;
}

footer > nav {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	height: 10rem;
}

article {
	padding: 1rem;
	margin-left: auto;
	margin-right: auto;
	overflow: visible;
}

article.snippet {
	background-size: cover;
	background-position: center;
}

.sl-item {
	padding: 2px;
	border-radius: 4px;
	background: rgb(111, 124, 141);
	color: white;
}

#feature img {
	object-fit: contain;
	height: 100%;
}

.main-header {
	z-index: 1;
}

#main-nav {
	padding: 2em;
	display: flex;
	justify-content: space-around;
	align-items: center;
	letter-spacing: 0.2em;
	transition: transform 500ms ease-in-out;
}

@media screen and (max-width: 640px) {
	section {
		margin: 1em;
	}

	#main-nav {
		flex-direction: column;
	}
}

button {
	background: transparent;
	border: 2px solid var(--fg-col);
	color: var(--fg-col);
	padding: 1em;
	font-family: Jost, sans-serif;
	text-transform: uppercase;
	border-radius: 4px;
}

button.solid:hover {
	background-color: var(--fg-col);
	color: var(--bg-col);
	border: 2px solid var(--bg-col);
}

button.fw {
	width: 100%;
}

/* projects */
.snippet.dark {
	color: white;
}

.snippet.light {
	color: black;
}

.project-list {
	gap: 1em;
	margin-left: auto;
	margin-right: auto;
	padding: 1em;
}

.project-list article {
	min-height: 400px;
	border-radius: 4px;
	display: flex;
	align-items: flex-end;
}