@font-face {
	font-family: "Jacquard";
	font-style: normal;
	font-weight: 400;
	src: url("/fonts/Jacquard_12/Jacquard12-Regular.ttf");
}

@font-face {
	font-family: "Doto";
	src: url("/fonts/Doto/Doto-VariableFont_ROND\,wght.ttf");
}

@font-face {
	font-family: "Quicksand";
	src: url("/fonts/Quicksand/Quicksand-VariableFont_wght.ttf");
}

:root {
	/* colors */
	--root-bg-color: #191919;
	--base-bg-color: #232323;
	--accent-color: #333333;
	--main-text-color: antiquewhite;
	--link-color: mediumpurple;
	--link-hover-color: cornflowerblue;
	--link-visited-color: blueviolet;
	--box-shade-color: rgba(0, 0, 0, 0.7);
	/* fonts */
	--main-font: Arial, Helvetica, sans-serif;
	--main-styled-header-font: "Jacquard";
	/* styles */
	--box-shadow: 0 0 8px 1px var(--box-shade-color);
}

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

body {
	color: var(--main-text-color);
	font-family: var(--main-font);
	margin: 10px auto 20px auto;
	max-width: 800px;
	padding: 0 10px;
}

article {
	background: var(--base-bg-color);
	border-radius: 8px;
	border: 1px solid var(--accent-color);
	box-shadow: var(--box-shadow);
	box-sizing: border-box;
	padding: 10px;
	width: 100%;
}

article>h1:first-of-type {
	margin-top: 10px;
}

article>footer {
	background: var(--root-bg-color);
	border-radius: 5px;
	margin-top: 30px;
	padding: 10px;
}

article>footer>p {
	margin: 0 0 5px 0;
}

img {
	border-radius: 10px;
	box-shadow: var(--box-shadow);
	width: 100%;
}

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

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

	&:visited {
		color: var(--link-visited-color);
	}
}

header {
	margin-bottom: 20px;
}

nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
}

nav h1 {
	flex-grow: 1;
	line-height: 1;
}

nav>a {
	font-size: 1.2em;
	font-weight: bold;
}

nav>h1>a {
	color: var(--link-color);
	font-family: var(--main-styled-header-font);
	font-size: 2em;
	font-weight: 400;

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

	&:visited {
		color: var(--link-color);
	}
}

a:not(article a) {
	text-decoration: none;
}

ol li {
	margin-top: 10px;
}

nav>h1,
.post-card>h2 {
	margin: unset;
}

.post-card {
	background: var(--base-bg-color);
	border-radius: 8px;
	border: 1px solid var(--accent-color);
	box-shadow: var(--box-shadow);
	box-sizing: border-box;
	margin: 20px 0;
	padding: 10px;
	width: 100%;
}

.post-card>h2 {
	font-weight: normal;
}

.post-meta {
	display: flex;
	gap: 10px;
}

.post-date,
.post-tags {
	margin-bottom: unset;
}

.post-date {
	flex-grow: 1;
}

.scroll-container-wrapper {
	position: relative;

	&::before {
		background: var(--link-color);
		border-radius: 4px;
		box-shadow: 0 0 3px 1px var(--box-shade-color);
		color: black;
		content: "Scrollable gallery";
		line-height: 1;
		padding: 4px 8px;
		position: absolute;
		right: 0;
		top: 0;
		z-index: 1;
	}
}

.scroll-container {
	box-sizing: content-box;
	display: flex;
	gap: 15px;
	line-height: 0;
	overflow-x: auto;
	padding: 15px 5px;
	scroll-snap-type: x mandatory;
}

.scroll-container>.wrapper {
	border-radius: 8px;
	flex-shrink: 0;
	margin: auto;
	object-fit: contain;
	position: relative;
	scroll-snap-align: center;
	width: 100%;
}

.scroll-container>.wrapper>p {
	background: var(--box-shade-color);
	border-radius: 0 0 8px 8px;
	bottom: 0;
	box-sizing: border-box;
	line-height: 1;
	margin: unset;
	padding: 10px;
	position: absolute;
	width: 100%;
	z-index: 1;
}
