/*
 * Front page: the newest post, shown by the Latest Posts block in full-content
 * mode. The title is set in Fraunces with a small vine below it. The post's
 * text comes first and its pictures after.
 */

.wp-block-latest-posts.wp-block-latest-posts__list > li {
	list-style-type: none;
}

.wp-block-latest-posts a.wp-block-latest-posts__post-title {
	display: block;
	margin: 0.4rem 0 1.1rem;
	font-family: "Fraunces", Georgia, serif;
	font-optical-sizing: auto;
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.2rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: #ede1d3; /* blue oyster */
	text-decoration: none;
	text-shadow: 0 2px 14px rgba(180, 195, 145, 0.18);
	transition: color 0.2s ease;
}

/* A short vine under the title (vine.svg); it grows on hover */
.wp-block-latest-posts a.wp-block-latest-posts__post-title::after {
	content: "";
	display: block;
	width: 7rem;
	height: 20px;
	margin-top: 0.7rem;
	background: url("vine.svg") left center / 200px 20px no-repeat;
	-webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
	mask-image: linear-gradient(90deg, #000 55%, transparent);
	transition: width 0.4s ease;
}

.wp-block-latest-posts a.wp-block-latest-posts__post-title:hover,
.wp-block-latest-posts a.wp-block-latest-posts__post-title:focus-visible {
	color: #fff;
}
.wp-block-latest-posts a.wp-block-latest-posts__post-title:hover::after,
.wp-block-latest-posts a.wp-block-latest-posts__post-title:focus-visible::after {
	width: 200px;
}

/* Text first, then pictures */
.wp-block-latest-posts__post-full-content {
	display: flex;
	flex-direction: column;
	gap: 1.25em;
}
.wp-block-latest-posts__post-full-content > * {
	margin: 0;
}
.wp-block-latest-posts__post-full-content > :is(figure, .wp-block-image, .wp-block-gallery, .wp-block-columns, .wp-block-video, .wp-block-embed) {
	order: 1;
	margin-top: 0.5em;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-latest-posts a.wp-block-latest-posts__post-title,
	.wp-block-latest-posts a.wp-block-latest-posts__post-title::after {
		transition: none;
	}
}
