﻿@font-face {
	font-family: "Manrope";
	src: url("fonts/Manrope/Manrope-VariableFont_wght.ttf") format("truetype");
	font-weight: 100 900;
}

:root {
	--pico-font-family-sans-serif: "Manrope", sans-serif;
	--pico-background-color: #062026;
	--pico-card-background-color: #0a3323;
	--pico-card-border-color: #105666;
	--pico-color: var(--pico-color-pumpkin-150);
	--pico-muted-color: var(--pico-color-pumpkin-550);
	--pico-primary: #839958;
	--pico-secondary: ##45443b;
	--pico-text-light: #f7f4d5;
	--pico-text-dark: #787667;
	--pico-border-radius: 1rem;
	--accent: #d3968c;
	--grain-opacity: 0.035;
}

/* Grain overlay */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
	background-size: 350px 350px;
	background-repeat: repeat;
	opacity: var(--grain-opacity);
	pointer-events: none;
	z-index: 9999;
}

body {
	background-color: var(--pico-background-color);
}

/* ── Hero ── */
.hero {
	padding: 6rem 0 4rem;
	border-bottom: 1px solid var(--pico-secondary);
	margin-bottom: 1rem;
}

.hero-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pico-muted-color);
	margin-bottom: 1.5rem;
}

.hero h1 {
	font-size: clamp(2.4rem, 6vw, 4.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin-bottom: 1.25rem;
	color: var(--pico-text-light);
}

	.hero h1 em {
		font-style: normal;
		color: var(--pico-primary);
	}

.hero p {
	font-size: 1rem;
	color: var(--pico-text-dark);
	font-weight: 400;
	max-width: 36ch;
	line-height: 1.7;
	margin: 0;
}

/* ── Section label ── */
.section-label {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pico-primary);
	margin-bottom: 2rem;
}

/* ── Project grid ── */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
	margin-bottom: 6rem;
}

/* ── Card ── */
.card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: var(--pico-border-radius);
	background: var(--pico-card-background-color);
	border: 1px solid var(--pico-card-border-color);
	padding: 2rem;
	position: relative;
	overflow: hidden;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

	.card-link::after {
		content: "↗";
		position: absolute;
		top: 1.5rem;
		right: 1.5rem;
		font-size: 0.85rem;
		color: var(--pico-primary);
		transition: color 0.2s ease, transform 0.2s ease;
	}

	.card-link:hover {
		transform: translateY(-4px);
		border-color: var(--accent);
		box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent);
	}

		.card-link:hover::after {
			color: var(--accent);
			transform: translate(2px, -2px);
		}

	/* Card accent bar — each card gets a unique color via nth-child */
/*	.card-link::before {
		content: "";
		position: absolute;
		top: 0;
		left: 2rem;
		right: 2rem;
		height: 2px;
		border-radius: 0 0 4px 4px;
		background: var(--card-accent, var(--accent));
		opacity: 0;
		transition: opacity 0.25s ease;
	}

	.card-link:hover::before {
		opacity: 1;
	}*/

.projects-grid .card-link:nth-child(1) {
	--card-accent: var(--accent);
}

.projects-grid .card-link:nth-child(2) {
	--card-accent: var(--accent);
}

.projects-grid .card-link:nth-child(3) {
	--card-accent: var(--accent);
}

.projects-grid .card-link:nth-child(4) {
	--card-accent: var(--accent);
}

.projects-grid .card-link:nth-child(5) {
	--card-accent: var(--accent);
}

.projects-grid .card-link:nth-child(6) {
	--card-accent: var(--accent);
}

.card-tag {
	display: inline-block;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--pico-primary);
	margin-bottom: 1rem;
}

.card-link h2 {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin-bottom: 0.6rem;
	color: var(--pico-text-light);
}

.card-link p {
	font-size: 0.85rem;
	color: var(--pico-text-dark);
	line-height: 1.6;
	margin: 0;
}

/* ── Footer ── */
footer {
	border-top: 1px solid var(--pico-secondary);
	padding: 2.5rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.75rem;
	color: var(--pico-primary);
}

	footer a {
		color: var(--pico-primary);
		text-decoration: none;
		transition: color 0.2s;
	}

	footer a:hover {
			color: var(--accent);
		}

/* Staggered card entrance */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.projects-grid .card-link {
	opacity: 0;
	animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

	.projects-grid .card-link:nth-child(1) {
		animation-delay: 0.05s;
	}

	.projects-grid .card-link:nth-child(2) {
		animation-delay: 0.12s;
	}

	.projects-grid .card-link:nth-child(3) {
		animation-delay: 0.19s;
	}

	.projects-grid .card-link:nth-child(4) {
		animation-delay: 0.26s;
	}

	.projects-grid .card-link:nth-child(5) {
		animation-delay: 0.33s;
	}

	.projects-grid .card-link:nth-child(6) {
		animation-delay: 0.40s;
	}
