/*
 * HSH Featured Post — [hsh_featured_post] shortcode.
 *
 * Large featured-article banner: image with "Featured" badge on the left,
 * serif title / lead / author meta / Read More button on the right.
 * Pure CSS, no JavaScript. Overridable custom properties:
 * --hsh-f-title, --hsh-f-text, --hsh-f-accent, --hsh-f-btn-color,
 * --hsh-f-badge-bg, --hsh-f-radius.
 */

.hsh-featured {
	--hsh-f-title: #2f4b3f;
	--hsh-f-text: #5b5b5b;
	--hsh-f-accent: #eec95c;
	--hsh-f-btn-color: #3a3a1f;
	--hsh-f-badge-bg: #ffffff;
	--hsh-f-radius: 14px;
	display: grid;
	grid-template-columns: 42% minmax(0, 1fr);
	gap: clamp(28px, 5vw, 70px);
	align-items: center;
	margin-bottom: 60px;
}

/* ---- Media ---- */

.hsh-featured__media {
	position: relative;
	display: block;
	aspect-ratio: 13 / 10; /* reserves space: zero CLS */
	border-radius: var(--hsh-f-radius);
	overflow: hidden;
	background: #e8e4da;
}

.hsh-featured__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hsh-featured__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--hsh-f-badge-bg);
	color: #333;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ---- Body ---- */

.hsh-featured__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hsh-featured__title {
	margin: 0 0 22px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 3.4vw, 48px);
	font-weight: 500;
	line-height: 1.15;
}

.hsh-featured__title a {
	color: var(--hsh-f-title);
	text-decoration: none;
}

.hsh-featured__title a:hover,
.hsh-featured__title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.hsh-featured__excerpt {
	margin: 0 0 24px;
	color: var(--hsh-f-text);
	font-size: 16px;
	line-height: 1.7;
	max-width: 62ch;
}

/* ---- Meta ---- */

.hsh-featured__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 26px;
}

.hsh-featured__meta img.hsh-featured__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: block;
}

.hsh-featured__meta-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.hsh-featured__author {
	color: #3d3d3d;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
}

.hsh-featured__details {
	color: #7a7a7a;
	font-size: 13px;
	line-height: 1.2;
}

/* ---- Button ---- */

.hsh-featured__btn {
	display: inline-block;
	background: var(--hsh-f-accent);
	color: var(--hsh-f-btn-color);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 999px;
	padding: 15px 30px;
	transition: filter 0.2s ease;
}

.hsh-featured__btn:hover,
.hsh-featured__btn:focus-visible {
	filter: brightness(0.94);
	color: var(--hsh-f-btn-color);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
	.hsh-featured {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.hsh-featured__media {
		aspect-ratio: 16 / 10;
	}
}
