/* ==========================================================================
   Xagor Studio — global layout (non-homepage): footer, generic pages,
   portfolio archive/single. Homepage-specific composition lives in
   front-page.css.
   ========================================================================== */

.site-main {
	padding-top: var(--nav-h);
	min-height: 100vh;
}

/* ------------------------------- footer ---------------------------------- */

.site-footer {
	border-top: 1px solid rgba(193, 162, 98, 0.18);
	padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
}

.site-footer__inner {
	max-width: 1200px;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-footer__copy {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}

.site-footer__social {
	display: flex;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.85rem;
}

.site-footer__social a {
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.25s ease;
}
.site-footer__social a:hover,
.site-footer__social a:focus-visible {
	color: var(--gold-soft);
}

/* --------------------------- generic pages -------------------------------- */

.generic-content {
	max-width: 760px;
	margin-inline: auto;
	padding: 3rem clamp(1.25rem, 4vw, 3rem) 5rem;
}

.generic-content__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 0 1.5rem;
}

.generic-content__body {
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.8;
}
.generic-content__body p { margin: 0 0 1.25rem; }
.generic-content__body a {
	color: var(--gold-soft);
	text-decoration: underline;
	text-decoration-color: rgba(193, 162, 98, 0.4);
}

/* --------------------------- portfolio archive ---------------------------- */

.project-archive {
	max-width: 1320px;
	margin-inline: auto;
	padding: 3rem clamp(1.25rem, 4vw, 3rem) 5rem;
}

.project-archive__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 0 2.5rem;
}

.project-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

.project-card {
	display: block;
	color: inherit;
}

.project-card__cover {
	aspect-ratio: 4 / 3;
	background: var(--black-deep);
	border: 1px solid rgba(193, 162, 98, 0.14);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.9rem;
}
.project-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease-arrive);
}
.project-card:hover .project-card__cover img,
.project-card:focus-visible .project-card__cover img {
	transform: scale(1.04);
}

.project-card__title {
	font-size: 1.15rem;
	margin: 0 0 0.35rem;
}

.project-card__meta {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}

/* --------------------------- portfolio single ----------------------------- */

.project-single {
	max-width: 1100px;
	margin-inline: auto;
	padding: 3rem clamp(1.25rem, 4vw, 3rem) 5rem;
}

.project-single__header {
	margin-bottom: 2.5rem;
	text-align: center;
}

.project-single__eyebrow {
	color: var(--gold-soft);
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	margin: 0 0 0.75rem;
}

.project-single__title {
	font-size: clamp(2rem, 5vw, 3.25rem);
	margin: 0 0 0.75rem;
}

.project-single__meta {
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.95rem;
}

.project-single__cover {
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 2.5rem;
}
.project-single__cover img { width: 100%; display: block; }

.project-single__body {
	max-width: 720px;
	margin-inline: auto;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.85;
}
.project-single__body p { margin: 0 0 1.4rem; }

.project-single__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
	margin-top: 2.5rem;
}
.project-single__gallery img {
	width: 100%;
	border-radius: 4px;
}

.project-single__external {
	text-align: center;
	margin-top: 2.5rem;
}
.project-single__external a {
	color: var(--gold-soft);
	border: 1px solid rgba(193, 162, 98, 0.5);
	padding: 0.6rem 1.4rem;
	border-radius: 999px;
	transition: background-color 0.25s ease;
}
.project-single__external a:hover { background: rgba(193, 162, 98, 0.1); }
