:root {
	--bg-color:#3F4739;
	--lite-color:#282d23;
	--text-color:white;
	--accent-color:#F1BF98;
	--border-color:#4a5442;
	--grid-color:#252525;
	--film-border:#555555;
}

@font-face {
	font-family: 'Young Serif';
	src: url('../fonts/young-serif-latin-400-normal.woff2') format('woff2'),
	     url('../fonts/young-serif-latin-400-normal.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	padding-bottom: 60px;
	font-family: "Young Serif", serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.2;
	overflow-x: hidden;
}

/* BRUTALIST TYPOGRAPHY */

h1 {
	color: var(--text-color);
	font-size: clamp(32px, 8vw, 96px);
	font-weight: 400;
	margin-left: 4px;
	padding: 0;
	line-height: 1.1;
	text-transform: lowercase;
	letter-spacing: -0.02em;
}

h3 {
	color: var(--text-color);
	font-size: clamp(22px, 4vw, 42px);
	font-weight: 400;
	margin: 0 0 24px 0;
	padding-top: 32px;
	text-transform: lowercase;
	letter-spacing: -0.01em;
	border-left: 6px solid var(--accent-color);
	padding-left: 16px;
}

p {
	color: var(--text-color);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 24px 0;
	font-family: "Young Serif", serif;
}

/* BRUTALIST HEADER & NAV */

header {
	background-color: var(--lite-color);
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	border-bottom: 2px solid var(--border-color);
}

nav {
	display: flex;
	justify-content: flex-end;
	padding: 0;
	margin: 0;
}

nav ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
	gap: 0;
}

nav ul li {
	position: relative;
	margin: 0;
}

nav ul li a {
	display: block;
	color: var(--text-color);
	padding: 18px 28px;
	text-decoration: none;
	text-transform: lowercase;
	font-size: 16px;
	letter-spacing: 0;
	border-left: 1px solid var(--border-color);
	transition: background-color 0.2s ease;
	position: relative;
}

nav ul li:first-child a {
	border-left: none;
}

nav ul li a:hover {
	background-color: var(--bg-color);
}

nav a.current {
	background-color: var(--bg-color);
	font-weight: bold;
}

/* HERO SECTION */

.hero-container {
	position: relative;
	width: 100%;
	margin-bottom: 16px;
	padding: 0;
	padding-top: 64px;
	background-color: var(--bg-color);
}

.hero-content {
	position: relative;
	background: var(--lite-color);
	padding: 4px;
	margin: 0 auto;
	max-width: 1200px;
	border: 2px solid var(--border-color);
}

.hero-content h1 {
	font-size: clamp(32px, 8vw, 64px);
	margin: 0;
	margin-left: 0;
}

.hero-content p {
	font-family: "Young Serif", serif;
	font-size: 14px;
	line-height: 1.5;
	border-left: 3px solid var(--accent-color);
	padding-left: 8px;
	margin: 0;
}

.hero-slideshow {
	width: 100%;
	height: 60vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	animation: slideshow 20s infinite;
	border-bottom: 3px solid var(--border-color);
}

/* BRUTALIST CONTENT WRAPPER */

.desc {
	padding: 0 32px;
	margin-bottom: 48px;
	position: relative;
}


/* EXPOSED GRID SYSTEM */

.masonry-grid {
	column-count: 3;
	column-gap: 24px;
	padding: 32px;
	counter-reset: image-counter;
	position: relative;
}


/* FILM-INSPIRED GRID ITEMS */

.grid-item {
	position: relative;
	background: var(--lite-color);
	border: 3px solid var(--border-color);
	padding: 0;
	counter-increment: image-counter;
	margin-bottom: 24px;
	break-inside: avoid;
	display: inline-block;
	width: 100%;
}

.grid-item::before {
	content: counter(image-counter, decimal-leading-zero);
	position: absolute;
	top: -12px;
	left: 8px;
	background: var(--bg-color);
	color: var(--accent-color);
	font-family: 'Courier New', monospace;
	font-size: 11px;
	padding: 2px 6px;
	border: 1px solid var(--accent-color);
	z-index: 1;
}


.grid-item img {
	width: 100%;
	height: auto;
	display: block;
}

/* TECHNICAL METADATA OVERLAY */

.grid-item .caption {
	position: absolute;
	bottom: 3px;
	left: 3px;
	right: 3px;
	padding: 10px;
	background: rgba(40, 45, 35, 0.95);
	border: 1px solid var(--border-color);
	font-family: 'Courier New', monospace;
	font-size: 10px;
	text-transform: lowercase;
	letter-spacing: 0.01em;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.grid-item:hover .caption {
	opacity: 1;
	transform: translateY(0);
}

/* BLOG SECTION */

body > div {
	padding-top: 80px;
}

.blog {
	display: flex;
	flex-direction: column;
	padding: 32px;
	gap: 0;
}

.blog li {
	list-style: none;
	border-left: 4px solid var(--border-color);
	transition: border-color 0.2s ease;
}

.blog li:hover {
	border-left-color: var(--accent-color);
}

.blog a {
	display: block;
	padding: 16px 24px;
	color: var(--text-color);
	text-decoration: none;
	font-size: 24px;
	text-transform: lowercase;
	letter-spacing: -0.01em;
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.blog a:hover {
	background-color: var(--lite-color);
	padding-left: 32px;
}

/* BLOG POST CONTENT */

body h1 {
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 32px 24px;
	margin-top: 80px;
}

body p {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 32px 24px;
	font-size: 16px;
	line-height: 1.8;
	position: relative;
}

body blockquote {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px 32px;
	border-left: 4px solid var(--accent-color);
	background: var(--lite-color);
	margin-bottom: 24px;
}

body blockquote p {
	padding: 0;
	margin: 0;
	font-style: italic;
}

body p img {
	width: 100%;
	max-width: 900px;
	height: auto;
	display: block;
	margin: 24px auto;
	border: 3px solid var(--border-color);
	padding: 0;
	background: var(--lite-color);
}

/* Blog image container with hover effect */
.blog-image {
	position: relative;
	max-width: 900px;
	margin: 24px auto;
	padding: 0;
}

.blog-image img {
	width: 100%;
	height: auto;
	display: block;
	border: 3px solid var(--border-color);
	background: var(--lite-color);
}

.blog-image .caption {
	position: absolute;
	bottom: 3px;
	left: 3px;
	right: 3px;
	padding: 10px;
	background: rgba(40, 45, 35, 0.95);
	border: 1px solid var(--border-color);
	font-family: 'Courier New', monospace;
	font-size: 10px;
	text-transform: lowercase;
	letter-spacing: 0.01em;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.blog-image:hover .caption {
	opacity: 1;
	transform: translateY(0);
}

/* FOOTER */

footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--lite-color);
	border-top: 1px solid var(--border-color);
	z-index: 99;
}

footer p {
	margin: 0;
	padding: 12px;
	text-align: center;
	font-family: "Young Serif", serif;
	font-size: 10px;
	letter-spacing: 0.05em;
}

/* LINKS */

a {
	color: var(--accent-color);
	transition: color 0.2s ease;
}

a:hover {
	color: var(--text-color);
}

figcaption {
	color: var(--text-color);
	font-family: 'Courier New', monospace;
	font-size: 10px;
	margin-top: 8px;
}

hr {
	border: none;
	border-top: 2px solid var(--border-color);
	margin: 48px 32px;
}

/* IMAGE CONTAINERS */

.img-container {
	max-width: 100%;
	text-align: center;
	padding: 32px;
	margin-bottom: 64px;
}

.responsive {
	max-width: 100%;
	height: auto;
	border: 4px solid var(--film-border);
	padding: 8px;
	background: var(--lite-color);
}

/* SLIDESHOW ANIMATION */

@keyframes slideshow {
	0%, 4.99% { background-image: url('images/MC1019-4-1.webp'); }
	5%, 9.99% { background-image: url('images/MB1019-3-1.webp'); }
	10%, 14.99% { background-image: url('images/MC1037-4-1.webp'); }
	15%, 19.99% { background-image: url('images/PENN1.webp'); }
	20%, 24.99% { background-image: url('images/MB1036-1-2.webp'); }
	25%, 29.99% { background-image: url('images/PENN8.webp'); }
	30%, 34.99% { background-image: url('images/MB1025-1-1.webp'); }
	35%, 39.99% { background-image: url('images/PENN7.webp'); }
	40%, 44.99% { background-image: url('images/PENN6.webp'); }
	45%, 49.99% { background-image: url('images/MB1039-2-1.webp'); }
	50%, 54.99% { background-image: url('images/PENN5.webp'); }
	55%, 59.99% { background-image: url('images/PENN4.webp'); }
	60%, 64.99% { background-image: url('images/PENN3.webp'); }
	65%, 69.99% { background-image: url('images/PENN2.webp'); }
	70%, 74.99% { background-image: url('images/MC1039-1-1.webp'); }
	75%, 79.99% { background-image: url('images/MC1036-3-1.webp'); }
	80%, 84.99% { background-image: url('images/MB1040-1-1.webp'); }
	85%, 89.99% { background-image: url('images/MC1019-4-2.webp'); }
	90%, 94.99% { background-image: url('images/MC1001-4-2.webp'); }
	95%, 99.99% { background-image: url('images/PENN9.webp'); }
	100% { background-image: url('images/MC1019-4-1.webp'); }
}

/* RESPONSIVE BREAKPOINTS */

@media (max-width: 1024px) {
	.masonry-grid {
		column-count: 2;
		column-gap: 16px;
		padding: 24px;
	}
}

@media (max-width: 768px) {
	.hero-content {
		padding: 12px;
		margin: 0 16px;
	}

	.hero-slideshow {
		height: 50vh;
	}

	.masonry-grid {
		column-count: 1;
		column-gap: 24px;
		padding: 16px;
	}

	nav ul li a {
		padding: 16px 20px;
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 48px;
	}

	h3 {
		font-size: 28px;
	}

	.hero-content {
		padding: 8px;
		margin: 0 8px;
	}

	.hero-slideshow {
		height: 40vh;
	}

	nav ul li a {
		padding: 12px 16px;
		font-size: 14px;
	}
}

/* PRINT STYLES */

@media print {
	body {
		background: white;
		color: black;
	}

	header, footer {
		display: none;
	}
}
