.tfh-stories-page,
.tfh-story-page {
	--tfh-wine: #79041e;
	--tfh-wine-dark: #590015;
	--tfh-gold: #edb000;
	--tfh-cream: #fff8ed;
	--tfh-muted: #6c6264;
	--tfh-line: #eadfd8;
}

.tfh-story-page #content.slideshow {
	display: none;
}

.tfh-stories {
	margin-block: 2rem 3rem;
}

.tfh-stories__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tfh-stories__item {
	min-width: 0;
}

.tfh-story-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid var(--tfh-line);
	border-top: 3px solid var(--tfh-gold);
	box-shadow: 0 0.5rem 1.5rem rgba(71, 24, 32, 0.05);
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.tfh-story-card:hover {
	transform: translateY(-2px);
	border-color: var(--tfh-gold);
	box-shadow: 0 0.75rem 1.75rem rgba(71, 24, 32, 0.1);
}

.tfh-story-card__title {
	margin: 0;
	padding: 0;
	font-size: clamp(1.2rem, 2.2vw, 1.45rem);
	line-height: 1.25;
}

.tfh-story-card__title a {
	color: var(--tfh-wine);
	text-decoration: none;
	text-underline-offset: 0.2em;
}

.tfh-story-card__title a:hover {
	color: var(--tfh-wine-dark);
	text-decoration: underline;
}

.tfh-story-card__title a:focus-visible,
.tfh-story-back a:focus-visible {
	border-radius: 0.125rem;
	outline: 3px solid var(--tfh-wine);
	outline-offset: 3px;
}

.tfh-story-card__excerpt {
	margin: 1rem 0 1.25rem;
	color: var(--tfh-muted);
	line-height: 1.65;
}

.tfh-story-card__action {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: auto 0 0;
	color: var(--tfh-wine);
	font-weight: 700;
}

.tfh-story-card__action span {
	transition: transform 0.16s ease;
}

.tfh-story-card:hover .tfh-story-card__action span {
	transform: translateX(0.2rem);
}

.tfh-stories__empty {
	margin-block: 2rem;
	padding: 1.25rem;
	background: var(--tfh-cream);
	border-left: 4px solid var(--tfh-gold);
}

.tfh-story-back {
	margin-bottom: 1.75rem;
}

.tfh-story-back a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--tfh-wine);
	font-weight: 700;
	text-decoration: none;
}

.tfh-story-back a:hover {
	color: var(--tfh-wine-dark);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.tfh-story-media {
	margin: 2rem 0;
}

.tfh-story-media .tfh-story-media__image {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--tfh-line);
}

.tfh-story-media figcaption {
	margin-top: 0.5rem;
	color: var(--tfh-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.tfh-story-context {
	display: inline-block;
	margin-bottom: 1.25rem;
	padding: 0.4rem 0.75rem;
	background: var(--tfh-cream);
	border-left: 3px solid var(--tfh-gold);
	color: var(--tfh-muted);
	font-weight: 700;
}

.tfh-story-page .entry-title {
	max-width: 24ch;
}

@media (prefers-reduced-motion: reduce) {
	.tfh-story-card,
	.tfh-story-card__action span {
		transition: none;
	}
}
