/**
 * Blog list / archive cards
 * The blog post card grid (.mtp-two-col + .mtp-blog-item), entry meta
 * (date, label, separator), excerpts, author byline, and the editorial
 * section header used on the homepage / archives / author pages.
 */

.mtp-blog-display {
	margin-top: var(--space-section);
}

/* ---------- Card ---------- */
.mtp-two-col li.mtp-blog-item {
	list-style: none;
	margin-bottom: 0;
	padding: clamp(1.35rem, 2.75vw, 1.85rem);
	border: 1px solid var(--brand-border-strong);
	border-bottom: none;
	border-radius: var(--radius-md);
	background: var(--brand-white);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	transition:
		box-shadow 0.2s var(--ease-out),
		transform 0.2s var(--ease-out),
		border-color 0.2s var(--ease-out);
}
.mtp-two-col li.mtp-blog-item:hover {
	box-shadow: var(--shadow-md);
	border-color: color-mix(in srgb, var(--brand-purple) 28%, var(--brand-border-strong));
}
.mtp-two-col li.mtp-blog-item > article {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	flex: 1 1 auto;
}

/* Hover lift only when device truly supports hover (skip mobile tap states). */
@media (hover: hover) and (pointer: fine) {
	.mtp-two-col li.mtp-blog-item:hover {
		transform: translateY(-2px);
	}
}

/* Honor user motion preferences. */
@media (prefers-reduced-motion: reduce) {
	.mtp-two-col li.mtp-blog-item {
		transition: box-shadow 0.2s ease, border-color 0.2s ease;
	}
	.mtp-two-col li.mtp-blog-item:hover {
		transform: none;
	}
}

/* ---------- Title ---------- */
.mtp-entry-title {
	font-size: clamp(1.1rem, 0.8vw + 0.95rem, 1.3rem);
	font-weight: 600;
	letter-spacing: -0.022em;
	line-height: 1.28;
	text-wrap: balance;
}
.mtp-entry-title a {
	text-decoration: none;
	color: var(--brand-black);
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition:
		color 0.2s var(--ease-out),
		background-size 0.25s var(--ease-out);
}
.mtp-entry-title a:hover {
	color: var(--brand-purple);
	background-size: 100% 1px;
}

/* ---------- Date / meta line ---------- */
/* Single-line editorial metadata, no pill, no shadow. */
.mtp-entry-meta {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	color: var(--brand-text-quiet);
	letter-spacing: 0.01em;
	line-height: 1.3;
}
.mtp-entry-meta time.published {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.45rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.mtp-entry-meta__label {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--brand-text-quiet);
}
.mtp-entry-meta__sep {
	color: color-mix(in srgb, var(--brand-text-quiet) 55%, transparent);
}
.mtp-entry-meta__date {
	font-size: 0.7rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--brand-text-quiet);
	letter-spacing: -0.1px;
}

/* ---------- Excerpt ---------- */
.mtp-blog-item .mtp-entry-content {
	margin: 0;
}
.mtp-blog-item .mtp-entry-excerpt {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--brand-text-muted);
	text-wrap: pretty;
}
.mtp-blog-item .mtp-entry-excerpt p {
	margin: 0;
}
.mtp-blog-item .mtp-entry-excerpt p + p {
	margin-top: 0.5em;
}

/* ---------- Card footer (author byline) ---------- */
.mtp-entry-footer {
	margin-top: auto;
	padding-top: 0.65rem;
	border-top: 1px solid var(--brand-border);
}
.mtp-blog-item .author {
	display: block;
	align-items: baseline;
	gap: 0.4rem;
	font-size: 0.7rem;
	line-height: 1.3;
	padding-top: 2px;
	text-align: right;
	color: var(--brand-text-quiet);
}
.mtp-blog-item .author__label {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--brand-text-quiet);
}
.mtp-blog-item .author a {
	color: var(--brand-text);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--brand-purple) 30%, transparent);
	transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.mtp-blog-item .author a:hover {
	color: var(--brand-purple);
	border-bottom-color: color-mix(in srgb, var(--brand-purple) 65%, transparent);
}

/* ---------- Editorial section header ---------- */
/* Used on the homepage, archive, and author list pages. */
.mtp-blog-section-header {
	margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
	padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
	border-bottom: 1px solid var(--brand-rule);
}
.mtp-blog-section-header__title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 0.35rem;
}
.mtp-blog-section-header__eyebrow {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brand-text-quiet);
}
.mtp-blog-section-header__count {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--brand-text-quiet);
	font-variant-numeric: tabular-nums;
}
.mtp-blog-section-header__title {
	margin: 0;
	font-size: clamp(1.55rem, 2vw + 1rem, 2rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.1;
	color: var(--brand-black);
}
