/* Project card — Carbon Blue surface */
.project-card {
	background: var(--color-surface-container, #1e1f25);
	border: 1px solid var(--color-outline-variant, #444651);
	border-radius: 1rem;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transition: border-color 200ms ease, transform 200ms ease;
}

.project-card:hover,
.project-card:focus-within {
	border-color: var(--color-primary, #b6c4ff);
}

.project-card:focus-within {
	outline: 2px solid var(--color-primary, #b6c4ff);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.project-card { transition: none; }
}

.project-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.project-card__type {
	background: var(--color-primary-12);
	color: var(--color-primary, #b6c4ff);
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-weight: 600;
}

.project-card__provider { color: var(--color-on-surface-variant, #c5c5d3); }

.project-card__title {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.4;
	margin: 0;
	color: var(--color-on-surface, #e3e1e9);
}

.project-card__title-link {
	color: inherit;
	text-decoration: none;
}

.project-card__title-link:hover { text-decoration: underline; }

.project-card__excerpt {
	color: var(--color-on-surface-variant, #c5c5d3);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.project-card__foot {
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid var(--color-outline-variant, #444651);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.project-card__meta { display: inline-flex; gap: 0.75rem; align-items: center; color: var(--color-on-surface-variant, #c5c5d3); font-size: 0.875rem; }

.project-card__actions { display: inline-flex; gap: 0.5rem; }

.project-card__action {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.1;
	text-decoration: none;
	border: 2px solid transparent;
	transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;

    &:hover { background: var(--color-primary-87); border-color: var(--color-primary-87); }
}

.project-card__action--primary {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary, #b6c4ff);
}


.project-card__action--secondary {
	color: var(--color-on-surface, #e3e1e9);
	border-color: var(--color-outline, #8f909d);
}

.project-card__action:focus-visible {
	outline: 2px solid var(--color-primary, #b6c4ff);
	outline-offset: 3px;
}

.stat-card {
	background: var(--color-surface-container, #1e1f25);
	border: 1px solid var(--color-outline-variant, #444651);
	border-radius: 1rem;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	text-align: center;
}

.stat-card__icon { color: var(--color-on-surface-variant, #c5c5d3); }

.stat-card__value {
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--color-on-surface, #e3e1e9);
}

.stat-card__label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	color: var(--color-on-surface-variant, #c5c5d3);
}

.meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-outline-variant, #444651);
	font-size: 0.9375rem;
}

.meta-row:last-child { border-bottom: 0; }

.meta-row__label { color: var(--color-on-surface-variant, #c5c5d3); display: inline-flex; align-items: center; gap: 0.5rem; }
.meta-row__value { color: var(--color-on-surface, #e3e1e9); font-weight: 600; }
.meta-row__icon { color: var(--color-on-surface-variant, #c5c5d3); }

.archive-projects { padding-top: 2rem; padding-bottom: 4rem; }

.archive-projects__head {
	padding-left: 1rem;
	border-left: 4px solid var(--color-primary, #b6c4ff);
	margin-bottom: 2rem;
}

.archive-projects__title {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 2.25rem;
	line-height: 1.2;
	margin: 0 0 0.5rem;
	color: var(--color-on-surface, #e3e1e9);
}

.archive-projects__intro {
	color: var(--color-on-surface-variant, #c5c5d3);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 70ch;
	margin: 0;
}

.archive-projects__empty {
	text-align: center;
	padding: 4rem 1rem;
	color: var(--color-on-surface-variant, #c5c5d3);
}

.archive-projects__empty-title {
	font-weight: 700;
	font-size: 1.5rem;
	margin: 0 0 0.5rem;
	color: var(--color-on-surface, #e3e1e9);
}

/* Pagination links on dark surface */
.archive-projects__pagination a,
.archive-projects__pagination span {
	background: var(--color-surface-container, #1e1f25);
	color: var(--color-on-surface, #e3e1e9);
	border: 1px solid var(--color-outline-variant, #444651);
	border-radius: 4px;
}

/* Project-type taxonomy archive — the page hero renders the heading,
 * breadcrumbs handle navigation. */
.tax-project { padding-top: 2rem; padding-bottom: 4rem; }

.tax-project__pagination {
	margin-top: 2rem;
}

.tax-project__empty {
	text-align: center;
	padding: 4rem 1rem;
	color: var(--color-on-surface-variant, #c5c5d3);
}

.tax-project__empty-title {
	font-weight: 700;
	font-size: 1.5rem;
	margin: 0 0 0.5rem;
	color: var(--color-on-surface, #e3e1e9);
}

.tax-project__pagination a,
.tax-project__pagination span {
	background: var(--color-surface-container, #1e1f25);
	color: var(--color-on-surface, #e3e1e9);
	border: 1px solid var(--color-outline-variant, #444651);
	border-radius: 4px;
}

.single-project__hero {
	background: var(--color-surface-container-low, #1a1b21);
	border: 1px solid var(--color-outline-variant, #444651);
	border-radius: 1rem;
	padding: 2rem;
	margin-bottom: 2rem;
}

.single-project__meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.5rem;
	color: var(--color-on-surface-variant, #c5c5d3);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.single-project__title {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 2.25rem;
	line-height: 1.2;
	color: var(--color-on-surface, #e3e1e9);
	margin: 0 0 0.75rem;
}

.single-project__version { color: var(--color-on-surface-variant, #c5c5d3); font-weight: 400; font-size: 1.5rem; margin-left: 0.5rem; }

.single-project__excerpt {
	color: var(--color-on-surface-variant, #c5c5d3);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 70ch;
	margin: 0 0 1.5rem;
}

.single-project__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.single-project__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.single-project__layout {
		grid-template-columns: 2fr 1fr;
		gap: 4rem;
	}
}

.single-project__body h2,
.single-project__sidebar h3 { color: var(--color-on-surface, #e3e1e9); font-family: var(--font-sans); font-weight: 700; }

.single-project__maintainer,
.single-project__details,
.single-project__stats {
	background: var(--color-surface-container, #1e1f25);
	border: 1px solid var(--color-outline-variant, #444651);
	border-radius: 1rem;
	padding: 1.25rem;
	margin-bottom: 1rem;
}

.single-project__owner { display: flex; align-items: center; gap: 0.75rem; }
.single-project__owner-avatar {
	width: 40px;
	height: 40px;
	background-size: 40px 40px;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 0.5rem;
	background-color: var(--color-surface-container-high, #292a2f);
}

.single-project__owner-link { color: var(--color-on-surface, #e3e1e9); font-weight: 600; text-decoration: none; }
.single-project__owner-link:hover { color: var(--color-primary, #b6c4ff); }

.single-project__stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}

.home-recent__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}
.home-recent__title {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1.75rem;
	color: var(--color-on-surface, #e3e1e9);
	margin: 0;
}
.home-recent__view-all {
	color: var(--color-primary-87, #dce1ff);
	font-weight: 600;
	text-decoration: none;
}
.home-recent__view-all:hover { text-decoration: underline; }

.home-recent__divider {
	border: 0;
	border-top: 1px solid var(--color-outline-variant, #444651);
	margin: 0 0 1.5rem;
}

.home-recent__empty { text-align: center; padding: 4rem 1rem; color: var(--color-on-surface-variant, #c5c5d3); }

/* Website-mode project card + single-project screenshot/platform */
.single-project__screenshot { margin: 0 0 1.5rem; }
.single-project__screenshot img { width: 100%; height: auto; border-radius: 0.75rem; display: block; border: 1px solid var(--color-outline-variant, #444651); }
.project-card__platform { color: var(--color-on-surface-variant, #c5c5d3); font-size: 0.875rem; }

