/* Recovery story cards: the Recovery Stories page and Recent Recoveries on the home page */

/* ---------- Story cards ---------- */

.story-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.story-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	border: 1px solid var(--panel-border);
	border-top: 3px solid var(--gold);
	background: var(--panel);
}

.story-card[hidden] {
	display: none;
}

.story-art {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: radial-gradient(ellipse at 50% 40%, #1c1f22 0%, var(--bg) 70%);
	font-size: 72px;
}

.story-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.story-body {
	align-self: stretch;
	flex: 1;
	padding: 16px 18px 20px;
}

.story-kicker {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--secondary);
}

.story-card h3 {
	margin: 6px 0 8px;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 24px;
	font-weight: 500;
}

.story-found,
.story-note {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--text-soft);
}

.story-found b {
	color: var(--gold);
}

.story-link {
	display: inline-block;
	margin-top: 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--gold);
}

.story-link:hover {
	text-decoration: underline;
}

@media (max-width: 1000px) {
	.story-card {
		gap: 32px;
	}
}

@media (max-width: 760px) {
	.story-card {
		gap: 24px;
	}
	.story-found,
	.story-note {
		font-size: 15px;
	}
}

body.light-mode .story-found,
body.light-mode .story-note {
	color: var(--light-text-soft);
}

body.light-mode .story-card {
	background: #fff;
	border-color: var(--light-border-alt);
	border-top-color: var(--gold);
}

body.light-mode .story-art {
	background: radial-gradient(ellipse at 50% 40%, #fffdf9 0%, #eee8de 70%);
}
