@font-face {
	font-family: 'augusta';
	src: url('../fonts/Augusta.ttf');
}

@font-face {
	font-family: 'blackwood';
	src: url('../fonts/Blackwood.ttf');
}

@font-face {
	font-family: 'neat-handwriting';
	src: url('../fonts/YouHaveSuchNeatHandwriting.otf');
}

:root {
	--grey-0: #020202;
	--grey-100: #101012;
	--grey-500: #2B2B2B;
	--grey-700: #6E6F6E;
	--grey-900: #E4E4E6;
	--grey-1000: #FFFFFF;

	--pink-500: #D01143;

	--font-heading: 'blackwood', fantasy;
	--font-main: 'augusta', fantasy;
	--font-secondary: 'neat-handwriting', cursive;
}

* {
	box-sizing: border-box;
}

body {
	background-color: var(--grey-0);
	background-image: url('/wp-content/themes/shooshieslore/assets/stained-glass.png'), url('/wp-content/themes/shooshieslore/assets/stained-glass.png');
	background-position: left, right;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-size: auto 100%;
	min-height: 100vh;
	padding: 0;
	margin: 0;
	color: var(--grey-1000);
	font-family: var(--font-main);
	font-size: 22px;
}

footer {
	width: 100%;
	background: var(--grey-0);
	color: var(--grey-1000);
	padding: 30px;
	text-align: center;
	border-top: 1px solid var(--pink-500);
	
	h2 {
		margin: 0;
	}

	nav {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 20px;
		flex-wrap: wrap;
	}

	ul {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		padding: 0;
		margin: 0;
		list-style: none;
		gap: 10px;
	}

	li {
		a {
			font-family: var(--font-main);
		}
	}
}

a {
	color: var(--grey-1000);
	text-decoration: none;

	&:hover {
		color: var(--pink-500);
	}
}

ul, ol {
	padding: 0;
	list-style-position: inside;
}

main {
	max-width: 720px;
	width: 100%;
	padding: 0 30px 70px;
	background-color: var(--grey-0);
	margin: 0 auto;
	min-height: 100vh;
	text-align: center;
}

img {
	max-width: 100%;
}

button {
	cursor: pointer;
}

h1, h2, h3 {
	font-family: var(--font-heading);
	font-weight: 400;
}

h1 {
	font-size: 3rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

figcaption,
.card__date {
	color: var(--grey-700);
	font-family: var(--font-secondary);
}

.burger {
	position: fixed;
	top: 30px;
	right: 30px;
	width: 6vw;
	height: 6vw;
	min-width: 50px;
	min-height: 50px;
	max-width: 80px;
	max-height: 80px;
	border: none;
	background: var(--grey-500);
	border-radius: 15px;
	padding: 15px;

	svg {
		display: block;
		width: 100%;
		height: auto;
	}

	rect {
		fill: var(--grey-700);
	}
	
	&:hover {
		background: var(--grey-100);
	}
}

.main-logo {
	width: 100%;
	text-align: center;
	display: block;
	margin: 20px auto;
}

#main-menu {
	animation: slideIn 0.25s ease-in;
	left: auto;
	min-height: 100vh;
	width: 100%;
	max-width: 275px;
	border: none;
	border-radius: 15px 0 0 15px;
	background-color: var(--grey-100);
	padding: 15px;
	margin: 0;
	box-shadow: -3px -1px 17px var(--grey-0);

	&::backdrop {
		animation: fadeIn 0.25s ease-in;
		background-color: #0000009e;
		backdrop-filter: blur(5px);
		pointer-events: none;
	}

	ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	a {
		display: block;
		padding: 15px 20px 15px 50px;
		text-align: right;
		border-radius: 8px;

		&:hover {
			color: initial;
			background-color: var(--pink-500);
		}
	}
}

@keyframes slideIn {
	from {
		padding-inline: 0;
		right: -275px;
	}
	to {
		padding-inline: 15px;
		right: 0;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0%;
	}
	to {
		opacity: 100%;
	}
}

.archive {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 20px;
	margin-top: 50px;
}

.card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--grey-500);
	border-radius: 5px;
	min-height: 200px;
	width: 100%;
	max-width: 200px;
	transition: ease-in-out .2s;

	span {
		display: block;
	}

	img {
		height: 70px;
		object-fit: cover;
		width: 100%;
		border-radius: 5px;
		border: 1px solid var(--grey-0);
	}

	figure {
		width: 100%;
		margin: 0;
	}

	figcaption {
		display: none;
	}

	&:hover {
		transform: translateY(-10px);
		color: var(--grey-1000);
		background: var(--grey-700);
		box-shadow: 0 3px 17px -3px var(--pink-500);

		.card__date {
			color: var(--grey-900)
		}

		img {
			border-color: var(--pink-500);
		}
	}
}

.card__date {
	transition: ease-in-out .2s;
}

.card__title {
	line-height: 80%;
	margin: 15px 0;
}

.wp-block-gallery {
	display: flex;
	margin: 1em auto;
	flex: none;
	overflow: auto;
	scroll-snap-type: x mandatory;
	background-color: var(--grey-100);
	border: 10px solid var(--grey-100);
	border-radius: 15px;
	align-items: center;

	figure {
		scroll-snap-align: center;
		flex: none;
		max-width: 100%;
		width: 100%;
		margin: 0;

		img {
			border-radius: 7px;
		}
	}
}

.wp-element-button {
	display: inline-block;
}

.is-layout-flex {
	display: flex;
	gap: 20px;

	& > div {
		flex: 1;
	}
}

blockquote {
	font-family: var(--font-heading);
	font-size: 2rem;

	p:last-of-type {
		margin-bottom: 10px;
	}

	cite {
		margin-top: -20px;
		font-family: var(--font-secondary);
	}
}

@media screen and ( max-width: 620px ) {
	.is-layout-flex {
		flex-direction: column;
		gap: 0;
	}

	.burger {
		right: 15px;
		top: 15px;
	}
}