/*
 * The Blog page's featured story (partials/blog/featured.php, includes/blog-featured.php).
 * A lead story: a 3:2 photo with the site's card (cream, lilac offset, as on the share box) over its
 * bottom right corner on desktop, hanging below the photo, and over its bottom edge on phones. Headings
 * are Instrument Serif, the rest Lexend. Centred and narrower than the article grid below (Jon, 11-13).
 *
 * Type scale: the page's h1 ("Featured Stories", custom.css) is 44px, 50px from 992px up. This title is
 * the next heading down, so it stays a step below that: 32px on phones, 38px on desktop.
 */
.vb-feature {
	--f-ink: var(--vb-color-primary, #231F20);
	--f-red: var(--vb-color-accent, #EF4343);
	--f-cream: var(--vb-color-cream, #F4F2EB);
	--f-lilac: var(--vb-color-lilac, #E8D1E3);
	--f-offset: 10px;
	margin: clamp(8px, 2vw, 32px) 0 clamp(48px, 5vw, 72px);
	font-family: "Lexend", sans-serif;
	color: var(--f-ink);
	text-align: left;
}
/* The offset would otherwise run off the right edge of a phone. */
.vb-feature__inner { position: relative; width: min(992px, 100% - 2 * clamp(20px, 3.2vw, 40px)); margin: 0 auto; }

.vb-feature__media { display: block; overflow: hidden; background: var(--f-cream); }
.vb-feature__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }

.vb-feature__card {
	position: relative;
	margin: -56px calc(16px + var(--f-offset)) 0 16px;
	padding: 28px 24px 30px;
	background: var(--f-cream);
	box-shadow: var(--f-offset) var(--f-offset) 0 var(--f-lilac);
}
.vb-feature .vb-feature__title { margin: 0; font-family: "Instrument Serif", serif; font-size: clamp(29px, 8vw, 32px); font-weight: 400; line-height: 1.06; letter-spacing: -.005em; text-wrap: balance; }
.vb-feature .vb-feature__title a { color: inherit; text-decoration: none; }
/* The title link covers the card. The photo is its own link to the same post (not a tab stop). */
.vb-feature .vb-feature__title a::after { content: ""; position: absolute; z-index: 1; inset: 0; }
.vb-feature .vb-feature__title a:focus-visible { outline: none; }
.vb-feature__inner:has(.vb-feature__title a:focus-visible) .vb-feature__card { outline: 2px solid var(--f-ink); outline-offset: 4px; }
.vb-feature .vb-feature__dek { max-width: 34em; margin: 16px 0 0; font-size: 17px; font-weight: 400; line-height: 1.6; color: rgba(35, 31, 32, .78); text-wrap: pretty; }
.vb-feature__btn { display: inline-block; margin-top: 24px; padding: 14px 24px; background: var(--f-red); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; transition: background-color .15s; }

.vb-feature__inner:hover .vb-feature__btn,
.vb-feature__inner:has(.vb-feature__title a:focus-visible) .vb-feature__btn { background: var(--f-ink); }
.vb-feature__inner:hover .vb-feature__media img { transform: scale(1.025); }

@media (min-width: 960px) {
	/* Photo on the left two thirds, the card over its bottom right corner and hanging --f-drop below it. */
	.vb-feature__inner { --f-drop: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; padding-bottom: var(--f-drop); }
	.vb-feature__media { grid-column: 1 / 9; grid-row: 1; }
	.vb-feature__card { grid-column: 7 / 13; grid-row: 1; margin: 0 var(--f-offset) calc(-1 * var(--f-drop)) 0; padding: clamp(30px, 3.4vw, 40px); }
	.vb-feature .vb-feature__title { font-size: 38px; }
	.vb-feature .vb-feature__dek { margin-top: 16px; font-size: 17px; }
	.vb-feature__btn { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.vb-feature__media img,
	.vb-feature__btn { transition: none; }
	.vb-feature__inner:hover .vb-feature__media img { transform: none; }
}
