@import url("https://fonts.bunny.net/css2?family=DM+Serif+Display:ital@0;1&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap");


.container:not(.wider) {
	max-width: 800px;
}

:root {
	--pico-font-family-sans-serif: "Open Sans", sans-serif;
	--pico-font-size: 100%;
	--pico-spacing: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "DM Serif Display", serif;
}

[data-theme-switcher] {
	color: var(--pico-contrast);
	text-decoration: none;
	font-size: 1.5em;
}

.center,
.centre,
.feature-image {
	text-align: center;
	margin-bottom: calc(var(--pico-block-spacing-vertical)*2);
}

body > header {
	padding-block: 0;
}

main.container {
	padding-top: 0;
}

.feature-image figure {
	overflow: hidden;
	max-height: 500px;
}


.post-banners {
	padding-left: 0;
	margin-left: 0;
}

.post-banners li {
	position: relative;
	margin: 0 !important;
	position: relative;
	background-color: #000;
	list-style: none;
}


.post-banners a {
	position: relative;
	max-height: 8em;
	overflow: hidden;
	display: block;
	text-decoration: none;
}

/* 11ty img processing=picture, else direct img  */
.post-banners picture, .post-banners a > img {
	position: absolute;
	top: 0;
	z-index: 0;
}

.post-banners picture source, .post-banners picture img {
	position: relative;
	top: -250px;
}

.post-banners li:before {
	background-color: rgba(0, 0, 0, 0.4);
	content: "";
	display: block;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 2;
	margin-left: 0;
}
	.post-banners li:hover::before {
		opacity: 0.5;
	}

.post-banners li h5, .post-banners li div {
	z-index: 3;
	position: relative;
	color: #FFF;
}

.post-banners li h5 {
	margin-top: 0;
	margin-bottom: 0.4rem;
	padding: 1.8rem 3rem 0 3rem;
	font-size: 1.2rem;
}

.post-tags {
	margin-top: 0;
	padding: 0 3rem 1.5rem 3rem;
	color: #FFF;
	opacity: 0.8;
}

/* code  */
pre:has(> code) {
	margin: 2em 0 !important;
}
pre > code {
	padding: calc(var(--pico-spacing)/3);
}

pre:has(+figcaption) {
	margin-bottom: 0 !important;
}
pre + figcaption {
	margin-bottom: 0.8em;
	text-align: right;
	padding-top: calc(var(--pico-spacing) * .2);
	font-style: italic;
}