html {
	height: 100%;
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	font-family: 'Inter', sans-serif;
	scroll-behavior: smooth;
	container-type: scroll-state;
	container-name: root;
}

* {
	transition: all 0.4s ease;
}

body {
	background-color: var(--background);
	color: var(--text);
}

a {
	color: var(--accent);
	text-decoration: none;
}
a[href^="http"]:before {
	margin-right: 0.4em;
	content: url("/images/external.svg");
}
a:not([href]) {
	color: var(--midtone);
	text-decoration: line-through 0.1em wavy var(--accent);
}

h1 {
	margin: 0;
	font-size: 1.8em;
	font-weight: 800;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

h2 {
	margin: 0;
	font-size: 1.4em;
	font-weight: 700;
}

h3 {
	margin: 0;
	padding: 0.4em 0;
	font-size: 1em;
	font-weight: 700;
	color: var(--midtone);
}

p {
	color: var(--loud);
	line-height: 1.6;
	font-size: 0.8em;
	font-weight: 500;
}

em {
	color: var(--midtone);
}

address {
	color: var(--midtone);
}

time {
	color: var(--midtone);
	font-size: 0.8em;
}

strong {
	text-transform: uppercase;
	font-weight: 900;
}

code {
	padding: 0.2em 0.4em;
	border-radius: 0.4em;
	background-color: var(--background);
	color: var(--midtone);
}

ul {
	padding: 0;
	list-style: none;
}

dl {
	display: grid;
	grid-auto-columns: auto 1fr;
	grid-gap: 0.4em;
	align-items: center;
	/* default margin top and bottom 16px */
}

dt {
	grid-column: 1 / 2;
	font-size: 0.8em;
	font-weight: 600;
	color: var(--midtone);
}
dt:after {
	content: ":";
	grid-column: 1 / 2;
}

dd {
	grid-column: 2 / 3;
	width: fit-content;
	padding: 0.2em 0.8em;
	margin: 0;
	border-radius: 0.8em;
	background-color: var(--background);
	font-size: 0.8em;
	color: var(--midtone);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

hr {
	margin: 0.8em 0;
	border: 0.2em solid var(--quiet);
}

svg {
	fill: none;
}


img {
	width: 100%;
	height: auto;
	min-width: 0;
	min-height: 0;
}



/* text style: alternate high contrast accent */
.cute {
	padding: 0.2em 0.4em;
	background-color: var(--background);
	border-radius: 0.4em;
	color: var(--cute);
	font-style: italic;
	font-weight: 700;
}

/* text style: transform text to uppercase */
.upper {
	text-transform: uppercase;
}

/* text style: invert text and background */
.banner {
	margin-bottom: 1em;
	outline: 0.8rem solid var(--accent);
	background: var(--accent);
	color: var(--background);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}



/* container: default */
.card {
	box-sizing: border-box;
	break-inside: avoid;
	margin-bottom: 0.8em;
	border: 0.8em solid var(--quiet);
	background-color: var(--quiet);
	box-shadow: 0 0.4em 1.6em var(--silent);
}
img.card {
	border: 0.4em solid var(--text);
}
.card .card {
	border-color: var(--midtone);
	background-color: var(--midtone);
	box-shadow: 0 0.2em 0.8em var(--silent);
}

/* container: grid that resembles a 2xN comic page */
.card[data-comic] {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: auto;
	gap: 0.4em;
	border: 0.4em solid var(--text);
	background: var(--text);
}
.card[data-comic] > img {
	height: 100%;
}
.card[data-comic] > img[data-wide] {
	grid-column: auto / span 2;
}
.card[data-comic] > img[data-tall] {
	grid-row: auto / span 2;
}
.card[data-comic] > img[data-span] {
	grid-column: auto / span 2;
	grid-row: auto / span 3;
	min-width: 10em;
}



/* container:  */
.stack {
	position: relative;
	display: block;
	align-items: center;
}
.stack > .over {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin-inline: auto;
	width: fit-content;
	z-index: 1;
}



/* container: responsive two column */
.diptych {
	column-width: 14em;
	column-count: 2;
	column-gap: 0.8em;
}
.diptych > .span {
	column-span: all;
}



/* container: responsive three column */
.triptych {
	column-width: 10em;
	column-count: 3;
	column-gap: 0.8em;
}



/* container: grid*/
.grid {
	display: grid;
	grid-gap: 0.8em;
}



/* container: flex */
.flex {
	display: flex;
	flex: 1 1 auto;
	gap: 0.8em;

}
.flex img {
	object-fit: cover;
}
.flex[data-wrap] {
	flex-wrap: wrap;
}

/* flex property: column */
.flex.column {
	flex-flow: column;
}

/* flex property: align items to data attribute */
.flex[data-align="space-evenly"] {
	align-content: space-evenly;
}

/* flex property: justfy content to attribute */
.flex.justify {
	justify-content: attr(data-justify);
}

/* flex element: line break */
.flex > .break {
	/* border: 0.16em solid var(--exodus_fruit); */
	flex-basis: 100%;
	height: 0;
}

/* flex element: spacer */
.flex > .gap {
	width: 1.6em;
	height: 1.6em;
}



/* clamps element width to bounds */
.clamp {
	width: clamp(var(--min), 100%, var(--max));
}

.fit {
	width: max-content;
}

/* centers element */
.centered {
	margin: 0 auto;
}



/* text style: obfuscation */
.email {
	font-style: normal;
	font-weight: 700;
}
.email > span:nth-child(n) {
	display: none;
}



/* */
.ghost {
	box-sizing: border-box;
	width: fit-content;
	padding: 0.2em 0.4em;
	border-radius: 0.4em;
	color: var(--loud);
	font-size: 1em;
	font-weight: 700;
}
.ghost:hover {
	background-color: var(--text);
	color: var(--quiet);
	text-decoration: none;
}



/* element becomes visible on hover */
.spoiler {
	visibility: hidden;
	pointer-events: none;
	opacity: 0;
	transition: all 0.4s ease;
}
*:hover + .spoiler {
	visibility: visible;
	opacity: 1;
}



.icon {
	height: 100%;
	width: 2em;
	stroke-width: 2;
	stroke: var(--midtone);
}
.icon.small {
	width: 1em;
}
a .icon:hover {
	stroke: var(--accent);
	scale: 120%;
}



/* unique element: wrapper for the current page */
#wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	background: linear-gradient(to bottom, var(--background), var(--quiet));
	background-attachment: fixed;
	background-repeat: no-repeat;
}



/* unique element: page head, holds; logo, and nav */
#head {
	padding: 0.8rem;
	background-color: var(--quiet);
	/* layout grid */
	.grid {
		grid-template-columns: min-content min-content auto;
		align-items: center;
	}
}



/* unique element: navigate to index */
#logo {
	grid-column: 1 / 2;
}
@media (max-width: 24rem) {
	#logo .icon {
		width: 3.2rem;
		height: 3.2rem;
	}
}



/* unique element: primary navigation menu */
#nav {
	padding: 0;
	grid-column: 2 / 3;
}
#nav ul {
	list-style: none;
	gap: 0.4em;
	padding: 0;
	margin: 0;
}
@media (max-width: 24rem) {
	#nav ul {
		flex-flow: column;
		align-items: flex-start;
	}
}



/* unique element: unordered list of hyperlink crumbs within #head */
#crumb {
	display: grid;
	grid-template-columns: auto clamp(var(--min), 100%, var(--max)) auto;
	background: var(--accent);
}
#crumb ul {
	grid-column: 2 / 3;
	display: flex;
	column-gap: 0.4em;
	margin: 0;
	padding: 0.2em var(--gutter);
	list-style: "/";
	font-size: 0.8em;
	font-weight: 400;
	color: var(--quiet);
}
#crumb li {
	padding: 0 0.4em;
}
#crumb a {
	text-decoration: none;
	color: var(--quiet);
}



/* unique element: page body */
#body {
	flex: auto;
	box-sizing: border-box;
	padding: var(--gutter);
	transition-delay: 200ms;
	transition-duration: 1s;
	opacity: 1;
}
@starting-style {
	#body {
		opacity: 0;
	}
}



/* unique element: page foot */
#foot {
	display: grid;
	grid-template-columns: auto clamp(var(--min), 100%, var(--max)) auto;
}
#foot > div {
	grid-column: 2 / 3;
	display: flex;
	column-gap: 0.4em;
	align-items: center;
	padding: 0.8em var(--gutter);
}



/* unique element: scrolls page to top */
#scroll {
	margin-left: auto;
	pointer-events: none;
	opacity: 0;
}
@container scroll-state(scrollable: top) {
	#scroll {
		pointer-events: auto;
		opacity: 1;
	}
}