/* ============================================================
   AIRPIX — minimal stylesheet
   Mobile-first. Breakpoint at 768px. Auto dark mode.
   ============================================================ */

:root {
	--bg: #f2f2f2;          /* 95% white */
	--fg: #000000;
	--muted: #555555;
	--gap: 4px;
	--max-width: 1400px;
	--font-display: 'Oswald', 'Bebas Neue', 'Arial Narrow', sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1a1a1a;      /* 90% black */
		--fg: #f2f2f2;      /* 95% white */
		--muted: #aaaaaa;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */

.site-header {
	padding: 48px 24px 32px;
	text-align: center;
}

.logo {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(56px, 12vw, 120px);
	letter-spacing: 0.02em;
	line-height: 1;
}

.tagline {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(14px, 3vw, 18px);
	letter-spacing: 0.25em;
	text-transform: uppercase;
	margin-top: 8px;
	color: var(--muted);
}

/* ---------- Intro ---------- */

.intro {
	max-width: 640px;
	margin: 0 auto;
	padding: 16px 24px 32px;
	text-align: center;
	font-size: 16px;
}

/* ---------- Gallery ---------- */

.gallery {
	display: grid;
	grid-template-columns: 1fr;          /* mobile: 1 per row */
	gap: var(--gap);
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--gap);
}

.gallery-item {
	overflow: hidden;
	background: var(--muted);
	aspect-ratio: 3 / 2;
	cursor: zoom-in;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.15s ease;
}

.gallery-item img:hover {
	opacity: 0.92;
}

.empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 64px 24px;
	color: var(--muted);
}

.empty-state code {
	background: rgba(128, 128, 128, 0.15);
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 0.9em;
}

/* ---------- Footer ---------- */

.site-footer {
	text-align: center;
	padding: 48px 24px;
	font-size: 14px;
	color: var(--muted);
}

.site-footer a {
	color: var(--fg);
	text-decoration: none;
	border-bottom: 1px solid var(--muted);
}

.site-footer a:hover {
	border-bottom-color: var(--fg);
}

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.95);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	cursor: zoom-out;
	padding: 16px;
}

.lightbox.open {
	display: flex;
}

.lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* ============================================================
   Desktop / tablet breakpoint — 3 per row at 768px+
   ============================================================ */

@media (min-width: 768px) {
	.gallery {
		grid-template-columns: repeat(3, 1fr);
	}

	.site-header {
		padding: 80px 24px 48px;
	}
}
