/* Very Smol Reset */
* {
	box-sizing: border-box;
	margin: 0;
}

@font-face {
	font-family: "League Spartan";
	src: url(/design/fonts/raleway/LeagueSpartan-VF.woff);
}

/* Layout */

body {
	background: #fcfcfc;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 5vh clamp(1rem, 5vw, 3rem) 1rem;
	font-family: "League Spartan", sans-serif;
	font-size: 1.4em;
	line-height: 1.2em;
	color: #222;
}

body > * {
	--layout-spacing: 4em;
	--max-width: 50ch;
	width: min(100%, var(--max-width));
	margin-left: auto;
	margin-right: auto;
}

header h1 {
	font-size: 2em;
}

header h1 a {
	color: #000;
	text-decoration: none;
}

header p {
	font-size: 0.8em;
}

nav {
	margin-top: 2vh;
	margin-bottom: 4vh;
}

nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	margin-left: -1rem;
	margin-right: -1rem;
	vertical-align: bottom;
}

nav ul li {
	padding: 0.5rem 1rem;
}

nav [aria-current="page"] {
	font-weight: bold;
}

main > * + * {
	margin-top: var(--layout-spacing);
}

body > footer {
	margin-top: auto;
	padding-top: var(--layout-spacing);
}

body > footer div {
	border-top: 1px solid #ccc;
	padding-top: 0.5em;
	font-size: 0.9rem;
	color: #767676;
}

article {
	font-weight: lighter;
}

article * + * {
	margin-top: 1em;
}

article > h1 {
	margin-top: 0;
}

article > h1 a {
	text-decoration: none;
	color: #000;
}

article > h1 + .updated {
	margin-top: 0;
}

hr {
	margin: 4em auto;
	border: 0;
	height: 1px;
	background: #ccc;
}

/* Typography */
:is(h1, h2, h3) {
	line-height: 1.2;
}

:is(h1, h2) {
	max-width: 40ch;
}



.updated {
	font-size: 0.8em;
	color: #aaa;
	margin: 0 !important;
}

:is(h2, h3):not(:first-child) {
	margin-top: 2em;
}

a {
	color: navy;
	text-underline-offset: 0.08em;
}

a:hover {
	background-color: navy;
	color: #fcfcfc;
}

a:focus {
	outline: 1px solid currentColor;
	outline-offset: 0.2em;
}

/* Media */
article + article {
	border-top: 1px solid #ccc;
	padding-top: var(--layout-spacing);
}

article img:not(a *) {
	display: block;
	width: 100%;
	aspect-ratio: 640 / 360;
	/*min-height: 20rem;
	max-height: 40vh;*/
	object-fit: cover;
	margin: 0 auto 1rem !important;
}

article iframe {
	display: block;
	width: 100%;
	aspect-ratio: 640 / 360;
}

/*@supports (aspect-ratio: 1) {
	article img {
		max-height: unset;
		aspect-ratio: 3/2;
	}
}*/

/* Supporting Content */

code:not([class*="language"]) {
	font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
	font-size: 1.75ex;
	color: #444;
	background-color: rgba(0, 0, 0, 0.1);
	padding-right: 0.15em;
	padding-left: 0.15em;
}

pre code {
	margin: 2rem 0;
	padding: 0.5em 1rem;
	display: block;
	border-left: 3px solid rgba(0, 0, 0, 0.35);
	background-color: rgba(0, 0, 0, 0.05);
	border-radius: 0 0.25rem 0.25rem 0;
	overflow-x: auto;
	font-size: 0.8em !important;
}

blockquote {
	margin: 2rem 0;
	padding: 0.5em 1rem;
	border-left: 3px solid rgba(0, 0, 0, 0.35);
	background-color: rgba(0, 0, 0, 0.05);
	border-radius: 0 0.25rem 0.25rem 0;
}
