/* Haiku style */
.hero {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	margin-block: 22px;
}

.hero p {
	margin: 0;
	font-weight: bold;
	font-style: italic;
}

/* For very thin screens, put the image and haiku below each other */
@media screen and (max-width: 400px) {
	.hero {
		flex-direction: column;
		justify-content: center;
	}

	.hero p {
		text-align: center;
	}
}

p:has(.badge) {
	line-height: 2em;
}

a:has(.badge) {
	text-decoration: none;
}

.badge {
	padding: 6px 11px;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 12px;
	white-space: nowrap;
	letter-spacing: 2px;
	position: relative;
	overflow: clip;
	z-index: 1;
}

a .badge:hover::before {
	content: "";
	display: block;
	position: absolute;
	inset: 0;
	background: hsla(0, 0%, 100%, 0.2);
	z-index: -1;
}

.badge > svg {
	height: 1.8em;
	translate: 0 0.55em;
}

details img[alt*="Saxion diploma"] {
	height: unset;
}

.webrings {
	text-align: center;
}

.webrings h3 {
	border: none;
	margin-bottom: 0.2em;
}

/* Webrings */
.webring {
	display: flex;
	gap: 0.25rem;
	justify-content: center;
	align-items: center;

	font-size: 1.2em;
}

.webring img {
	height: 1.5em;
}

/* Table of Contents style */
aside h2 {
	margin-bottom: 0;
}

aside ol {
	padding-left: 1em;
}

aside > nav > ol {
	padding-left: 0;
}

aside li {
	list-style-type: none;
}

@media screen and (min-width: 1800px) {
	aside {
		position: fixed;
		top: 0;
		left: 2em;
	}
}

/* Card styles */
.card * {
	padding: 0;
	margin: 0;
}

.card {
	border: 1px solid;
	padding: 8px;
	position: relative;

	display: flex;
	flex-direction: column;

	border-radius: 8px;
}

.card div.visuals {
	display: flex;
	flex-direction: row;
	gap: 16px;

	overflow-x: scroll;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	scroll-snap-stop: always;

	/*width: 100%;*/
	/*aspect-ratio: 16 / 9;*/
	/*object-fit: cover;*/
	/*overflow: clip;*/
	border-radius: 6px;

	margin-bottom: 8px;
}

.card div.visuals > * {
	min-width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;

	scroll-snap-align: start;

	border-radius: 6px;
}

.card-title-bar {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.2em;
}

.card .stars {
	font-weight: 500;
}

.card .blog-link {
	margin-top: 0.3em;
	font-style: italic;
	padding-left: 1ch;
	font-size: 0.9em;
}

@media screen and (min-width: 1000px) {
	.two-col {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px;
	}
}

.tags {
	margin-top: auto;
	padding: 0.8em 0 0.4em;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1.0em 0.3em;
}

.tags li {
	display: inline;
}

.tags a, .tags a:visited {
	background: black;
	border-radius: 100vw;
	padding: 0.4em 0.8em;
	color: unset;
}

.tags a:hover, .tags a:focus-within {
	background: #333;
}

section.two-col + h3 {
	margin-top: 5em;
}
