/*
 * Components layer:
 * Reusable vt-* UI parts such as buttons, cards, page headers, breadcrumbs,
 * and post cards. Page-only overrides belong in pages.css.
 */

.entry {
	margin: 0 0 48px;
}

.entry__title {
	margin: 0 0 20px;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.25;
}

.entry__content > :first-child {
	margin-top: 0;
}

.entry__content > :last-child {
	margin-bottom: 0;
}

.vt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	min-height: 44px;
	padding: 0.72em 1.2em;
	border: 1px solid var(--vt-color-button);
	border-radius: 999px;
	background: var(--vt-color-button);
	color: var(--vt-color-bg);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.vt-button:hover,
.vt-button:focus-visible {
	border-color: var(--vt-color-muted);
	background: var(--vt-color-muted);
	color: var(--vt-color-bg);
}

.vt-button--outline {
	background: transparent;
	color: var(--vt-color-button);
}

.vt-button--outline:hover,
.vt-button--outline:focus-visible {
	background: var(--vt-color-button);
	color: var(--vt-color-bg);
}

.vt-button--text {
	min-height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--vt-color-button);
}

.vt-button--text:hover,
.vt-button--text:focus-visible {
	background: transparent;
	color: var(--vt-color-muted);
}

.vt-card {
	overflow: hidden;
	border: 1px solid var(--vt-color-border);
	border-radius: 8px;
	background: var(--vt-color-bg);
}

.vt-section-header {
	margin-bottom: 24px;
}

.vt-section-header__eyebrow {
	margin: 0 0 8px;
	color: var(--vt-color-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.vt-section-header__title {
	margin: 0;
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	line-height: 1.25;
}

.vt-section-header__description {
	max-width: 42rem;
	margin: 12px 0 0;
	color: var(--vt-color-muted);
}

.vt-breadcrumb {
	margin-bottom: 24px;
	color: var(--vt-color-muted);
	font-size: 0.875rem;
}

.vt-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vt-breadcrumb__item:not(:last-child)::after {
	content: "/";
	margin-left: 8px;
	color: var(--vt-color-border);
}

.vt-page-hero,
.vt-page-header {
	margin-bottom: 32px;
	padding-block: clamp(24px, 5vw, 56px);
	border-bottom: 1px solid var(--vt-color-border);
}

.vt-page-hero__title,
.vt-page-header__title {
	margin: 0;
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	line-height: 1.2;
}

.vt-page-hero__description,
.vt-page-header__description {
	max-width: 44rem;
	margin-top: 12px;
	color: var(--vt-color-muted);
}

.vt-entry,
.vt-post-card {
	margin-bottom: 48px;
}

.vt-entry__thumbnail,
.vt-post-card__thumbnail {
	display: block;
	margin-bottom: 24px;
}

.vt-entry__thumbnail img,
.vt-post-card__thumbnail img {
	display: block;
	width: 100%;
}

.vt-entry__meta,
.vt-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 20px;
	color: var(--vt-color-muted);
	font-size: 0.875rem;
}

.vt-entry__content > :first-child,
.vt-post-card__excerpt > :first-child {
	margin-top: 0;
}

.vt-entry__content > :last-child,
.vt-post-card__excerpt > :last-child {
	margin-bottom: 0;
}

.vt-entry__footer {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--vt-color-border);
}

.vt-post-list {
	display: grid;
	gap: 32px;
}

.vt-post-card {
	display: grid;
	gap: 0;
	margin-bottom: 32px;
}

.vt-post-card__title {
	margin: 0 0 8px;
	font-size: clamp(1.375rem, 3vw, 2rem);
	line-height: 1.3;
}

.vt-post-card__title a {
	text-decoration: none;
}

.vt-post-card__thumbnail {
	margin-bottom: 0;
	background: var(--vt-color-surface);
}

.vt-post-card__thumbnail img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.vt-post-card__body {
	padding: clamp(20px, 3vw, 28px);
}

.vt-post-card__excerpt {
	color: var(--vt-color-muted);
}

.vt-post-card__button {
	margin-top: 20px;
}

@media (min-width: 720px) {
	.vt-post-card.has-post-thumbnail {
		grid-template-columns: minmax(220px, 36%) 1fr;
	}

	.vt-post-card__thumbnail {
		height: 100%;
	}

	.vt-post-card__thumbnail img {
		height: 100%;
	}
}
