/**
 * Projects — scoped front-end styles.
 *
 * Single project pages reuse author publication card classes from authors.css;
 * this file adds project-specific layout (hero + archive index).
 *
 * @package Granish_Core
 */

.granish-project-content {
	padding: 0 !important;
	margin: 0;
	max-width: none !important;
	width: 100%;
}

.granish-project-single {
	--author-font: 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--author-gray: #f0f0f0;
	--author-hairline: #e5e5e5;
	--author-accent: #c0392b;
	margin: 0;
	max-width: none;
	font-family: var(--author-font);
}

.granish-project-hero-inner {
	display: block;
}

.granish-project-meta {
	flex: none;
	width: 100%;
	max-width: 880px;
}

.granish-project-kind {
	font-family: var(--author-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--author-accent);
	margin: 0 0 8px;
}

.granish-project-title {
	margin: 0 0 10px;
}

.granish-project-lead {
	font-family: var(--author-font);
	font-size: 17px;
	line-height: 1.55;
	color: #444;
	margin: 0;
	max-width: 52em;
}

.granish-project-body-text {
	font-family: var(--author-font);
	font-size: 16px;
	line-height: 1.65;
	color: #333;
}

.granish-project-body-text > :first-child {
	margin-top: 0;
}

.granish-project-body-text > :last-child {
	margin-bottom: 0;
}

.granish-project-intro {
	margin-bottom: 32px;
}

/* Archive index (/project/) */
.granish-project-content.granish-project-archive {
	--author-font: 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	max-width: 1120px !important;
	margin: 0 auto;
	padding: 40px 20px 56px !important;
	width: auto;
	font-family: var(--author-font);
}

.granish-project-archive-hero {
	margin: 0 0 36px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e5e5;
}

.granish-project-archive-title {
	margin: 0;
	font-family: var(--author-font);
	font-size: 34px;
	line-height: 1.15;
	font-weight: 700;
	color: #111;
}

.granish-project-archive-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
	gap: 36px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.granish-project-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.granish-project-card-link:hover .granish-project-card-title {
	color: #444;
}

.granish-project-card-cover {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 2px;
	background: #ececec;
	margin: 0 0 16px;
}

.granish-project-card-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.granish-project-card-cover--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient( 145deg, #ececec 0%, #dedede 100% );
}

.granish-project-card-placeholder {
	font-family: var(--author-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #999;
}

.granish-project-card-title {
	margin: 0 0 10px;
	font-family: var(--author-font);
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: #111;
}

.granish-project-card-excerpt {
	margin: 0 0 12px;
	font-family: var(--author-font);
	font-size: 15px;
	line-height: 1.55;
	color: #555;
}

.granish-project-card-count {
	margin: 0;
	font-family: var(--author-font);
	font-size: 13px;
	color: #888;
}

.granish-project-archive-empty {
	margin: 0;
	color: #666;
}

@media (max-width: 720px) {
	.granish-project-meta .author-name {
		font-size: 28px;
	}

	.granish-project-lead {
		font-size: 16px;
	}

	.granish-project-archive-title {
		font-size: 28px;
	}

	.granish-project-archive-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.granish-project-card-title {
		font-size: 22px;
	}
}
