@keyframes slide-in-blurred-bottom {
	0% {
		filter: blur(20px);
		opacity: 0;
	}
	100% {
		filter: blur(0);
		opacity: 1;
	}
}


/* Defaults */
:root {
	--font-family: "Fraunces", serif;
	--font-family-headline: "Fraunces", serif;
	--font-family-ui: "Manrope", sans-serif;
	--font-variation-default: "opsz" 18, "wght" 310, "SOFT" 40, "WONK" 0;
	--font-variation-ui: "wght" 500;
	--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
	--meta-font-size: var(--step--1);
	--meta-font-style: italic;
	--meta-font-variation-settings: "opsz" 12, "wght" 310, "SOFT" 40, "WONK" 0;
	--ui-letter-spacing: var(--space-3xs);
}

/*
 Font Axes, Fraunces:
 --------------------
 opsz: 9-144 		(Optical Size)
 wght: 100-900 	(Weight)
 SOFT: 0-100		(Soften)
 WONK: 0-1			(Wonk)


 Font Axes, Manrope:
 --------------------
 wght: 200-900	(Weight)

*/

/* Design Tokens */
:root {
	/* Animations */
	--slide-in-blurred-bottom: slide-in-blurred-bottom 0.75s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;

	/* Colors */
	--color-gray-20: #e0e0e0;
	--color-gray-90: #333333;

	--card-color: white;
	--contrast-color: #027860;
	--background-color: #FAF5F5;
	--rss-orange: rgb(255, 152, 0);
	--text-color: var(--color-gray-90);
	--text-color-link: var(--text-color);
	--text-color-tag: var(--contrast-color);

	/* Font Size Scaling Tokens - https://utopia.fyi/ */
	--step--2: clamp(0.7813rem, 0.7747rem + 0.0326vi, 0.8rem);
	--step--1: clamp(0.9375rem, 0.9158rem + 0.1087vi, 1rem);
	--step-0: clamp(1.125rem, 1.0815rem + 0.2174vi, 1.25rem);
	--step-1: clamp(1.35rem, 1.2761rem + 0.3696vi, 1.5625rem);
	--step-2: clamp(1.62rem, 1.5041rem + 0.5793vi, 1.9531rem);
	--step-3: clamp(1.944rem, 1.771rem + 0.8651vi, 2.4414rem);
	--step-4: clamp(2.3328rem, 2.0827rem + 1.2504vi, 3.0518rem);
	--step-5: clamp(2.7994rem, 2.4462rem + 1.7658vi, 3.8147rem);
	--step-6: clamp(3.3592rem, 2.8691rem + 2.4507vi, 4.7684rem);
	--step-7: clamp(4.0311rem, 3.36rem + 3.3555vi, 5.9605rem);
	--step-8: clamp(4.8373rem, 3.9283rem + 4.5448vi, 7.4506rem);

	/* Space Scaling Tokens - https://utopia.fyi/ */
	--space-3xs: clamp(0.3125rem, 0.3125rem + 0vi, 0.3125rem);
	--space-2xs: clamp(0.5625rem, 0.5408rem + 0.1087vi, 0.625rem);
	--space-xs: clamp(0.875rem, 0.8533rem + 0.1087vi, 0.9375rem);
	--space-s: clamp(1.125rem, 1.0815rem + 0.2174vi, 1.25rem);
	--space-m: clamp(1.6875rem, 1.6223rem + 0.3261vi, 1.875rem);
	--space-l: clamp(2.25rem, 2.163rem + 0.4348vi, 2.5rem);
	--space-xl: clamp(3.375rem, 3.2446rem + 0.6522vi, 3.75rem);
	--space-2xl: clamp(4.5rem, 4.3261rem + 0.8696vi, 5rem);
	--space-3xl: clamp(6.75rem, 6.4891rem + 1.3043vi, 7.5rem);

	/* One-up pairs - https://utopia.fyi/ */
	--space-3xs-2xs: clamp(0.3125rem, 0.2038rem + 0.5435vi, 0.625rem);
	--space-2xs-xs: clamp(0.5625rem, 0.4321rem + 0.6522vi, 0.9375rem);
	--space-xs-s: clamp(0.875rem, 0.7446rem + 0.6522vi, 1.25rem);
	--space-s-m: clamp(1.125rem, 0.8641rem + 1.3043vi, 1.875rem);
	--space-m-l: clamp(1.6875rem, 1.4049rem + 1.413vi, 2.5rem);
	--space-l-xl: clamp(2.25rem, 1.7283rem + 2.6087vi, 3.75rem);
	--space-xl-2xl: clamp(3.375rem, 2.8098rem + 2.8261vi, 5rem);
	--space-2xl-3xl: clamp(4.5rem, 3.4565rem + 5.2174vi, 7.5rem);

	/* Custom pairs - https://utopia.fyi/ */
	--space-s-l: clamp(1.125rem, 0.6467rem + 2.3913vi, 2.5rem);

	/* Fluid Grid Tokens - https://utopia.fyi/ */
	--grid-max-width: 43.75rem;
	--grid-gutter: var(--space-s-l, clamp(1.125rem, -0.0329rem + 5.7895vw, 2.5rem));
	--grid-columns: 12;

	/* Change <img> SVG color with filter */
	--logo-filter: brightness(0) saturate(100%) invert(16%) sepia(0%) saturate(1024%) hue-rotate(177deg) brightness(99%) contrast(88%);
	--icon-filter: none;

	/* Corners */
	--border-radius: .3rem;

	/* Transitions */
	--transition-normal: all .3s;

	/* Links */
	--link-decoration-thickness: .1rem;

	/* Borders */
	--border-nav: 1px solid var(--text-color);
	--border-nav-currentpage: var(--space-xs-s) solid var(--contrast-color);
	--border-nav-hover: var(--space-xs-s) solid var(--text-color);

	/* Shadow */
	--box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);

	/* Web Component Tokens */
	--wc-card-background-color: var(--card-color);
	--wc-card-border-radius: var(--border-radius);
	--wc-card-box-shadow: var(--box-shadow);
	--wc-link-color: var(--text-color);
	--wc-link-decoration-color: var(--contrast-color);
	--wc-link-decoration-thickness: var(--link-decoration-thickness);
	--wc-comment-text-margin: auto auto auto 4rem;
	--wc-profile-pic-size: 3rem;
	--wc-profile-pic-border-radius: 10rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--color-gray-20: #e0e0e0;
		--color-gray-90: #dad8d8;
		--card-color: #333333;
		--contrast-color: #04c49e;

		/* --text-color is assigned to --color-gray-_ above */
		--text-color-link: var(--text-color);

		--background-color: #15202b;
		--logo-filter: none;
		--icon-filter: brightness(0) saturate(100%) invert(9%) sepia(76%) saturate(340%) hue-rotate(168deg) brightness(95%) contrast(94%);
	}
	.socialLinks a li img {
		filter: auto;
	}
}

/* Global stylesheet */
* {
	box-sizing: border-box;
}

html,
body {
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: var(--font-family);
	font-variation-settings: var(--font-variation-default);
	font-variant-Ligatures: normal;
	margin: 0 auto;
	padding: 0;
}
html {
	font-size: 13px;
	overflow-y: scroll;
}
body {
	animation: var(--slide-in-blurred-bottom);
	font-size: var(--step-0);
	margin-inline: auto;
	max-width: var(--grid-max-width);
	padding-inline: var(--grid-gutter);
	padding-top: var(--space-m);
	padding-bottom: var(--space-m);
}
button, .nav-item {
	font-family: var(--font-family-ui);
}
header, footer, main {
	display: grid;
	gap: var(--grid-gutter);
	grid-template-columns: repeat(var(--grid-columns), 1fr);
}
nav {
	grid-column: 2 / span 12;
}
section {
	display: grid;
	grid-column: 1 / span 12;
}
.page-block {
	grid-column: 1 / span 12;
	font-size: var(--step-1);
	margin: 0;
	padding-bottom:  var(--space-xl);
	padding-top: var(--space-l);
	line-height: calc(var(--step-1) * 0.5 + var(--step-1));
}

a {
	text-decoration-color: var(--contrast-color);
	text-decoration-thickness: var(--link-decoration-thickness);
	transition: var(--transition-normal);
}
/* https://www.a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}
footer {
	padding: var(--space-xl) 0 var(--space-m) 0;
}
footer .webring {
	display: inline;
	padding-right: var(--space-xs);
}
footer p {
	font-size: var(--step-0);
	grid-column: 1 / span 12;
}
h1, h2, h3 {
	color: var(--text-color);
	grid-column: 1 / span 12;
	margin: 0;
	width: 100%;
}
h1 {
	font-family: var(--font-family-headline);
	font-variation-settings: "opsz" 100, "wght" 500, "SOFT" 10, "WONK" 1;
	font-size: var(--step-6);
	font-style: normal;
	line-height: calc(var(--step-6) * 0.25 + var(--step-6));
}
h2 {
	font-size: var(--step-3);
	font-variation-settings: "opsz" 50, "wght" 300, "SOFT" 60, "WONK" 1;
	padding-bottom: var(--space-l);
	padding-top: var(--space-xl);
}
h3 {
	font-size: var(--step-2);
}

.logo {
	filter: var(--logo-filter);
}
main {
	display: grid;
	grid-column: 1 / 12;
	padding-top: var(--space-3xl);
}
main > p > img, main > p > a > img {
	width: 100%;
	padding-top: var(--space-l);
}
.post > p {
	margin: 0;
	padding-bottom: var(--space-s);
}
pre {
	grid-column: 1 / span 12;
}
p:last-child {
	margin-bottom: 0;
}
p, li {
	font-size: var(--step-0);
	line-height: calc(var(--step-0) * 0.5 + var(--step-0));
}
figure {
	margin: 0;
	padding: var(--space-m) 0 var(--space-m) 0;
	width: 100%;
}
figure > a > img {
	border-radius: 1em;
	border-top-left-radius: 0;
	padding: 0;
	width: 100%;
	box-shadow: var(--space-2xs) var(--space-2xs) 0 0 var(--contrast-color);
}

html.barebones, body.barebones {
	background-color: var(--background-color);
	text-align: center;
}

figcaption {
	font-size: var(--meta-font-size);
	font-style: var(--meta-font-style);
	font-variation-settings: var(--meta-font-variation-settings);
	padding-top: var(--space-s);
	text-align: center;
}
button {
	background-color: var(--contrast-color);
	border: none;
	border-radius: var(--border-radius);
	color: var(--background-color);
	font-size: var(--step--2);
	font-variation-settings: var(--font-variation-ui);
	letter-spacing: var(--ui-letter-spacing);
	margin: var(--space-xl) 0 0 0;
	padding: var(--space-2xs) var(--space-xs);
	text-transform: uppercase;
	transition: var(--transition-normal);
}
button > img {
	max-width: 1em;
	margin-right: .5em;
	filter: var(--icon-filter);
}
a.link-button {
	align-items: start;
	display: flex;
	grid-column: 1 / span 12;
	text-align: center;
	text-decoration: none;
}
button:hover {
	background-color: var(--color-gray-90);
	cursor: pointer;
}
a[href]:not(.icon-button) {
	color: var(--text-color-link);
}
a[href]:visited {
	color: var(--text-color-link);
}
a[href]:hover:not(.icon-button),
a[href]:active:not(.icon-button) {
	color: var(--contrast-color);
}
.links-nextprev {
	padding: 0 0 var(--space-m) 0;
	margin-top: var(--space-m);
}

table {
	margin: 1em 0;
}
table td,
table th {
	padding-right: 1em;
}

/* Comments */
#comments {
	grid-column: 1 / span 12;
}
.continue-discussion {
	grid-column: 1 / span 12;
}
.continue-discussion button {
	margin-top: var(--space-xs);
}
wc-comment::part(author-link) {
	font-size: var(--step-0);
	text-decoration: none;
}
wc-comment::part(main) {
	margin-bottom: var(--space-l);
}
wc-comment::part(publish-date) {
	font-size: var(--meta-font-size);
	font-style: var(--meta-font-style);
	font-variation-settings: var(--font-variation-settings);
	margin-top: -.25rem;
}

/* Code Fences */
pre,
code {
	font-family: var(--font-family-monospace);
}
pre:not([class*="language-"]) {
	margin: .5em 0;
	-moz-tab-size: var(--syntax-tab-size);
	-o-tab-size: var(--syntax-tab-size);
	tab-size: var(--syntax-tab-size);
	-webkit-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
	direction: ltr;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
}
code {
	word-break: break-all;
}

/* Dropcap */

main > section > article > p:not(.nodropcap):first-of-type:first-letter {
	float: left;
	font-size: var(--step-6);
	padding: .5rem .5rem .5rem .5rem;
	color: var(--contrast-color);
	border: solid 2px var(--contrast-color);
	font-family: var(--font-family-headline);
	font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 10, "WONK" 0;
	margin: .5rem .7rem 0 0;
	border-radius: .2em;
	border-top-left-radius: 0;
}

/* Header */
header .home-link {
	display: grid;
	grid-column: 1 / 1;
}
.logo {
	width: var(--space-l-xl);
}

/* Nav */
.nav {
	padding: 0;
	margin: 0;
	list-style: none;
}
nav ul {
	align-items: end;
	display: flex;
	justify-content: flex-end;
	gap: var(--space-xs-s);
	flex-flow: row wrap;
}
.nav-icon {
	fill: var(--color-gray-90);
	height: var(--space-2xs);
	margin-right: .25rem;
	transition: var(--transition-normal);
	width: var(--space-2xs);
}
.nav-item {
	display: inline-block;
	text-decoration: none;
	border-top: var(--border-nav);
}
.nav-item li {
	align-items: baseline;
	color: var(--text-color);
	display: flex;
	font-size: var(--step--2);
	font-variation-settings: var(--font-variation-ui);
	height: var(--space-l-xl);
	margin-bottom: 0;
	padding-top: var(--space-m);
	text-transform: uppercase;
	transition: var(--transition-normal);
	letter-spacing: var(--ui-letter-spacing);
}
.nav-item:hover {
	border-top: var(--border-nav-hover);
}
/* Compensate for increased border thickness on hover of a.nav-item */
.nav-item:hover li {
	margin-top: calc(var(--space-xs-s) * -1);
}
.nav-item a[href]:visited {
	color: var(--text-color);
}
.nav-item a[href]:hover {
	color: var(--text-color);
	text-decoration: none;

}
.nav-item a[href]:not(:hover) {
	color: var(--text-color);
	text-decoration: none;
}
.nav-item[data-currentpage="true"] {
	border-top: var(--border-nav-currentpage);
	color: var(--contrast-color);
}
.nav-item[data-currentpage="true"] li {
	margin-top: calc(var(--space-xs-s) * -1);
}
.nav a[href][aria-current="page"] li {
	color: var(--contrast-color);
}
.subscribe:hover {
	color: var(--text-color);
}

/* Posts list */
.postlist h3 {
	margin-top: 0;
}
.postlist-item-container {
	display: flex;
	flex-flow: column nowrap;
	gap: var(--space-xl);
}
.postlist-item {
	align-items: flex-start;
	background-color: var(--card-color);
	border-radius: var(--border-radius);
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	padding: var(--space-m) 1.1rem var(--space-m) 1.1rem;
	width: 100%;
}


.postlist, .links-nextprev {
	container: postlist / inline-size;
 }

.post-image-container {
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	margin-left: calc(var(--space-l) * -1);
	max-height: 15rem;
	overflow: hidden;
}

.postlist-date,
.postlist-item:before {
	color: var(--color-gray-90);
	font-size: var(--step--1); /* 13px /16 */
}
.postlist-date {
	word-spacing: -0.5px;
}
.postlist-link {
	font-size: var(--step-5); /* 19px /16 */
	padding-right: .5em;
 	text-decoration: none;
}
.postlist-link h3 {
		font-size: var(--step-2);
		margin-bottom: 0;
}
.postlist-link p {
	background-color: var(--color-gray-90);
	border-radius: 100px;
	color: var(--background-color);
	font-family: var(--font-family-ui);
	font-size: var(--step--2);
	font-variation-settings: var(--font-variation-ui);
	letter-spacing: var(--space-3xs);
	margin-top: calc(var(--space-3xs) * -1);
	padding-left: var(--space-xs);
	padding-right: var(--space-xs);
	text-transform: uppercase;
	width: max-content;
}
.post-copy {
	display: flex;
	flex-flow: column wrap;
}

.post-image {
	width: 15rem;
	height: 15rem;
	object-fit: cover;
	object-position: 50% 50%;
}

@container postlist (max-width: 500px) {
	.postlist-item {
		flex-flow: column wrap;
	}
	.post-image-container {
		margin-left: 0;
		margin-top: calc(var(--space-l) * -1);
		width: 100%;
	}
	.post-image-container img.post-image {
		width: calc(100cqw - var(--space-m));
	}
	.postlist-link {
		padding: 0;
	}
	.postlist-link h3 {
		padding-top: var(--space-m);
	}
	.postlist-link p {
		margin-top: var(--space-xs);
	}
}

/* Tags */
a.post-tag {
	color: var(--text-color-tag);
	padding-right: var(--space-5xs);
	text-decoration: none;
}
a.post-tag:before {
	content: "#";
}
a.post-tag:visited {
	color: var(--text-color-tag);
}
a.post-tag:hover {
	color: var(--text-color-tag);
}
.tag-feed-icon {
	fill: var(--rss-orange);
	height: 3.5rem;
	transition: var(--transition-normal);
	width: var(--space-l);
}
.taglist {
	display: flex;
	flex-flow: row wrap;
	list-style-type: none;
	padding-left: 0;
}
.taglist li {
	margin: 0em .5em 1.25em 0em;
}
.taglist li a {
	font-size: var(--step-2);
}

.postlist-item > .post-tag {
	align-self: center;
}

/* Article / Post */
.post h2 {
	font-size: var(--step-2);
}

/* Post Metadata */
.post-metadata {
	padding: var(--space-m) 0 var(--space-l) 0;
}
.post-metadata p, .post-metadata ul, .post-metadata ul li, time, .metadata {
	display: flex;
	flex-flow: row wrap;
	font-size: var(--meta-font-size);
	font-style: var(--meta-font-style);
	font-variation-settings: var(--meta-font-variatoin-settings);
	line-height: calc(var(--step--1) * 0.5 + var(--step--1));
	list-style: none;
	margin: 0;
	padding-left: 0em;
}

.post-metadata time {
	padding-left: .15rem;
}

/* Direct Links / Markdown Headers */
a.header-anchor {
	font-style: normal;
	margin-left: .1em;
	text-decoration: none;
}
a[href].header-anchor,
a[href].header-anchor:visited {
	color: transparent;
}
a[href].header-anchor:focus,
a[href].header-anchor:hover {
	text-decoration: underline;
}
a[href].header-anchor:focus,
:hover > a[href].header-anchor {
	color: #aaa;
}
h2 + .header-anchor {
	font-size: var(--step-2);
}

/* Components */
article.post {
	grid-column: 1 / span 12;
	container: article / inline-size;
}

/* Utilities */
.grid-container {
	max-width: var(--grid-max-width);
	padding-inline: var(--grid-gutter);
	margin-inline: auto;
}
.grid {
	display: grid;
	gap: var(--grid-gutter);
	grid-template-columns: repeat(var(--grid-columns), 1fr);
}
