/* --- Global Variables & Fluid Spacing System --- */
:root {
	--col3: #5c8262; 
	
	--bg-color: #f6f0e2; 
	--card-bg: #fffbf0; /* Slightly lighter cream for project cards */
	--text-color: #3e3128; 
	--border-color: #c9bda5; 
	--grayed-out: #a39b8b; 
	
	--max-app-width: 800px; /* Widened slightly to accommodate a grid */

	/* Fluid Design Tokens */
	--space-xs: clamp(2px, 0.5svh, 4px);
	--space-sm: clamp(4px, 1svh, 8px);
	--space-md: clamp(8px, 1.5svh, 16px);
	--space-lg: clamp(12px, 2.5svh, 24px);
	--space-xl: clamp(24px, 5svh, 40px); 
}

* { 
	box-sizing: border-box; 
	margin: 0; 
	padding: 0; 
}

body { 
	background-color: var(--bg-color); 
	color: var(--text-color); 
	/* Default font set to Play for standard text */
	font-family: 'Play', Arial, sans-serif; 
	display: flex; 
	flex-direction: column; 
	align-items: center; 
	min-height: 100svh; 
	padding: var(--space-lg); 
	overflow-x: hidden; 
}

/* --- Layout --- */
.cover-container { 
	width: 100%;
	max-width: var(--max-app-width);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-xl); 
}

.hero-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-lg);
	width: 100%;
	max-width: 600px;
}

/* --- Image Styling --- */
.hero-image { 
	max-width: 100%; 
	height: auto;
	border-radius: 4px; 
	border: 2px solid var(--border-color); 
	box-shadow: 0 4px 12px rgba(62, 49, 40, 0.08); 
}

.divider {
	width: 100%;
	max-width: 200px;
	border-bottom: 2px dashed var(--border-color); 
}

/* --- Projects Grid & Cards --- */
.projects-grid {
	display: grid;
	grid-template-columns: 1fr; /* Single column on mobile */
	gap: var(--space-lg);
	width: 100%;
}

@media (min-width: 600px) {
	.projects-grid {
		grid-template-columns: repeat(2, 1fr); /* Two columns on larger screens */
	}
}

.project-card {
	background-color: var(--card-bg);
	border: 2px dashed var(--border-color);
	border-radius: 8px;
	padding: var(--space-xl) var(--space-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	text-align: center;
	gap: var(--space-lg);
	box-shadow: 0 4px 6px rgba(0,0,0,0.02);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(62, 49, 40, 0.06);
}

/* --- Typography --- */
.project-info {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

/* Applying the new Slab Serif to the headings */
.project-title {
	font-family: 'Arvo', serif;
	font-size: clamp(1.8rem, 6vw, 2.4rem); 
	color: var(--text-color);
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.5px;
	line-height: 1.1;
}

.project-tagline {
	font-size: clamp(0.9rem, 4vw, 1.1rem);
	color: var(--grayed-out);
	margin: 0;
	font-style: italic; 
}

/* --- Components --- */
.play-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: clamp(0.8rem, 2.5svh, 1rem) clamp(1.5rem, 5vw, 2.5rem); 
	font-size: clamp(1.1rem, 3svh, 1.2rem); 
	font-weight: bold; 
	color: #f6f0e2;
	background-color: var(--col3); 
	text-decoration: none;
	border-radius: 6px; 
	transition: all 0.2s ease;
	touch-action: manipulation;
	user-select: none;
	width: auto;
}

.play-button:hover {
	background-color: #46664b; 
	transform: translateY(-2px);
}

.play-button:active {
	transform: translateY(0);
}