@font-face {
 font-family: "Grand";
 src: url("../fonts/Grand-Thin-2022-01-30.woff2") format("woff2");
 font-weight: 200;
}

@font-face {
	font-family: "Grand";
	src: url("../fonts/Grand-Light-2022-01-30.woff2") format("woff2");
	font-weight: 300;
}

@font-face {
	font-family: "Grand";
	src: url("../fonts/Grand-Regular-2022-01-30.woff2") format("woff2");
	font-weight: 400;
}

@font-face {
	font-family: "Grand";
	src: url("../fonts/Grand-Medium-2022-01-30.woff2") format("woff2");
	font-weight: 500;
}

body {
	font-family: "Grand", sans-serif;
	-webkit-font-smoothing: antialiased;
	color: #000;
	line-height: 1.4;
	background: #efeff5;
	display: flex;
	flex-direction: column;
}

.copyright {
	opacity: 1;
}

.copy {
	font-family: sans-serif;
}

body, div, footer, nav, section, article, main, ul, h1, h2, h3, h4, h5, h6, p, details, ul, ol, dt, dl, dd {
	margin: 0; padding: 0;
}

strong {
	font-weight: 500;
}

hr {
	border: none;
	border-top: 1px solid rgba(0,0,0,0.25);
}

/* Default title styling */

main {
	background: #efeff5;
}

h1, h2, h3, main > nav {
	line-height: 1.1;
}

h1, main > nav {
	font-weight: 500;
}

main > h1, main > nav {
	font-size: 3rem;
	margin-bottom: 3.5rem;
	padding: 0.5rem 1rem;
	letter-spacing: -0.05em;
}

main > h1 span, main > nav span {
	font-weight: 200;
	letter-spacing: -0.03em;
}

#dl {
	position: fixed;
	padding: 0.7rem;
	top: 0;
	right: 0;
}

/* Sections =============================== */

h1, h2, h3, h4, h5 {
	font-family: "Grand", sans-serif;
	font-weight: 500;
	letter-spacing: -0.03em;
}

h1 {
	font-size: 3rem;
}

h2 {
	font-size: 1.8rem;
}

h3, h5 {
	font-size: 1.2rem;
	letter-spacing: 0;
}


p {
	max-width: 29em;
}

main {
	display: flex;
	flex-direction: column;
}

article, main h2 {
	align-self: center;
	max-width: 29em;
}

article {
	margin: 0.5rem;
	background: #FCFCF2;
	border-radius: 15px;
	border: 1px solid #000;
	padding: 0.7rem 1rem;
	font-size: 1.2rem;
	padding: 3rem 4rem 1rem 4rem;
	margin-bottom: 4rem;
	width: 35rem;
}

article hr {
	margin-top: 2rem;
}

article p {
	margin-bottom: 1em;
	line-height: 1.5em;
}

article p:last-child {
	margin-bottom: 0;
}

article section {
	margin-bottom: 2rem;
}

main article > h2 {
	margin-top: 0;
}

main h2, main h3 {
	margin: 2rem 0 0.5rem 0;
}

article h1 {
	margin-bottom: 2rem;
	color: #f88;
	font-weight: 300;
}

main h3 {
	color: #3a8;
}

main h2, main h2 a:link, main h2 a:visited {
	color: #679;
}

main h2 a:hover {
	color: #000;
}

main h2, main h2 a {
	font-size: 1.8rem;
}


main ul, main ol {
	margin-bottom: 1em;
}

main ul li, main ol li {
	margin: 1rem 1.5rem;
}

/* Images ============================ */

article p img, article > img {
	width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

img.exact {
	width: auto;
	height: auto;
	border-radius: 0;
}

img.full {
	max-width: 100vw;
	max-height: 100vh;
	width: auto;
	height: auto;

}

/* Item footer ======================= */

.about {
	margin-bottom: 1rem;
}

.about dl {
	font-size: 0.9rem;
	display: grid;
	grid-template-columns: min-content 1fr;
	grid-gap: 0.5rem 1rem;
}

.tags li {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: 0.7rem;
}

.tags a:link, .bigtags a:link {
	padding: 0.1em 0.7em 0.2em 0.7em;
	background: #afa;
	border-radius: 1em;
	text-decoration: none;
}

.bigtags li {
	list-style: none;
	margin: 0 0 1em 0;
}

.about dd {
	display: flex;
}

.about dd, .about dl, .about dd {
	margin: 0;
}

.about dt {
	min-width: 4rem;
}

img.avatar {
	width: 5rem;
	height: 5rem;
	border-radius: 2.5rem;
}

.about p, h5 {
	margin: 0 0 0rem 1.5rem;
}

.about div p:last-child {
	margin-top: 0.7em;
}

.about div img {
	width: 2rem;
	height: 2rem;
}

.about a:hover {
	text-decoration: none;
	box-shadow: inset 0 -0.4em 0 #fa0;
}

/* Footer =============================== */

footer {
	font-size: 1rem;
	background: #f86;
	padding-bottom: 1rem;
}

footer, footer a:link, footer a:visited {
	color: rgba(0,0,0,0.8);
}

footer dl:first-child {
	background: #D8D8E5;
}

footer h4 {
	font-size: 12rem;
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 0.9;
	margin: 0 0 1rem -0.06em;
}

footer nav {
	font-size: 2rem;
	font-weight: 300;
	margin-top: -0.3rem;
}

footer li {
	list-style: none;
}

footer dl {
	display: grid;
	grid-template-columns: min-content 1fr;
	grid-gap: 1rem 1rem;
	padding: 3rem 3rem 0rem 3rem;
}

footer dl:first-child {
	padding: 2rem 3rem 2rem 3rem;
}

footer .legal p {
	font-size: 0.7rem;
	opacity: 0.5;
}

footer .legal p, footer dd {
	max-width: 27rem;
}

footer dd.prod {
	max-width: none;
	pointer-events: none;
}

footer dt {
	min-width: 8rem;
	font-weight: 300;
}

footer dd p {
	margin-bottom: 1em;
}

footer dl:last-child a:link {
	text-decoration: underline;
	text-decoration-color: #fcb;
	text-decoration-thickness: 0.05em;
}
footer dl:last-child a:hover {
	text-decoration: none;
	box-shadow: inset 0 -0.6em 0 #fcb;
}
footer dl:last-child a:visited {
	text-decoration-color: #fcb;
}

footer dl:last-child a:active {
	text-decoration-color: #8ff;
	box-shadow: inset 0 -0.6em 0 #8ff;
}

/* Page-specific ======================= */

#faq p {
	margin: 0em 0 1em 0;
}

#faq p:last-child, footer p:last-child { margin: 0; }

#faq small {
	opacity: 0.5;
}

details {
	margin: 0 0 1em 0;
}

.items ul {
	margin: 0.5em 0 0 0;
}

.items > li {
	list-style: none;
	margin: 2rem 0 0 0;
	border-radius: 5px;
	border: 1px solid #000;
	box-shadow: #000 3px 3px;
	padding: 1.5rem 2rem;
}

.items h2 {
	margin: 0 0 0.5rem 0;
}

.items li p {
	margin: 0;
}


/* Links =============================== */


a:link {
	color: #000;
	text-decoration: underline;
	text-decoration-color: #fa9;
	text-decoration-thickness: 0.1em;
}
a:hover {
	text-decoration: none;
	box-shadow: inset 0 -0.6em 0 #fa9;
}
a:visited {
	color: #000; text-decoration-color: #7f8;
}
a:active { box-shadow: inset 0 -0.6em 0 #fea; }

a:hover .filter {
	border: 1px solid #56f;
	box-shadow: #56f 2px 3px;
}

main > nav a:link, main h1 a:link, a.selected:link {
	text-decoration: none;
}

nav ul a:hover {
/* 	box-shadow: none; */
}

/* Responsive ========================= */

@media (max-width: 85rem) {
	footer h4 {
		font-size: 8rem;
	}
}

@media (max-width: 48rem) {
	#dl {
		position: relative;
		display: block;
		padding: 0;
		margin-bottom: 2rem;
		text-align: center;
		order: 3;
	}

	article {
		margin-bottom: 2rem;
	}

	main > h1, main > nav {
		margin-bottom: 1.8rem;
	}

	footer {
		font-size: 0.9rem;
	}

	footer dl:first-child, footer dl:last-child {
		padding: 0 1rem;
	}

	footer dl:first-child {
		padding: 2rem 1rem 2rem 1rem;
	}

	footer dl:last-child {
			margin-top: 2rem;
	}

	footer dt, .about dt {
		font-size: 0.7rem;
	}

	.about dt {
		min-width: 3rem;
	}

	footer dt {
		min-width: 5rem;
	}

	footer dd {
		max-width: auto;
	}

	footer h4 {
		font-size: 5rem;
		margin-bottom: 0.5rem;
	}

	article {
		padding: 1rem;
		width: auto;
	}

	article h1 {
		margin: 0.5rem 0 1.5rem 0;
	}
}

@media (max-width: 36rem) {
	main > h1, main > nav, article h1 {
		font-size: 2.5rem;
	}

	footer h4 {
		font-size: 3.5rem;
	}

	.about dd {
		flex-direction: column;
	}

	.about p, h5 {
		margin: 0;
	}

	.about .avatar {
		margin-bottom: 1rem;
	}
}

@media (max-width: 23rem) {
	footer dl {
		display: block;
	}

	footer dl:first-child, footer dl:last-child {
		margin: 0;
		padding: 1rem;
	}


	footer dl dd {
		margin-bottom: 1em;
	}


	footer dl :last-child {
		margin-bottom: 0;
	}

	.about dl {
		display: block;
	}

	.about dt {
		margin-top: 1rem;
	}

	.about dt:first-child {
		display: inline;
	}

	.about dd, .about dd ul {
		display: inline;
	}
}
