:root {
	--bg: #f6f1ea;
	--surface: #fffaf3;
	--text: #2a2420;
	--muted: #7a6d63;
	--accent: #b4472f;
	--line: #e3d8cb;
	--overlay: rgba(20, 16, 14, 0.94);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #171412;
		--surface: #211d1a;
		--text: #efe6dc;
		--muted: #a89a8d;
		--accent: #e2775c;
		--line: #3a332e;
		--overlay: rgba(8, 7, 6, 0.96);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #171412;
	--surface: #211d1a;
	--text: #efe6dc;
	--muted: #a89a8d;
	--accent: #e2775c;
	--line: #3a332e;
	--overlay: rgba(8, 7, 6, 0.96);
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.6 Inter, system-ui, sans-serif;
}

a {
	color: inherit;
}

.hero {
	padding: 72px 16px 40px;
	text-align: center;
}

.hero h1 {
	margin: 0;
	font: 600 clamp(2.4rem, 8vw, 4.8rem) / 1.05 Fraunces, Georgia, serif;
	letter-spacing: -0.02em;
}

.tagline {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 1.05rem;
}

.contact-top,
.contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin-top: 20px;
	font-size: 0.95rem;
}

.contact-top a,
.contact a {
	text-decoration: none;
	border-bottom: 1px solid var(--line);
	padding-bottom: 2px;
}

.contact-top a:hover,
.contact a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

main {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px 64px;
}

.filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 0 24px;
	scrollbar-width: none;
	justify-content: safe center;
}

.chip {
	flex: none;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--text);
	padding: 8px 16px;
	border-radius: 999px;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
}

.chip.active {
	background: var(--text);
	border-color: var(--text);
	color: var(--bg);
}

.gallery {
	columns: 3 280px;
	column-gap: 16px;
}

.work {
	break-inside: avoid;
	margin: 0 0 16px;
}

.work[hidden] {
	display: none;
}

.work-open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--surface);
	cursor: zoom-in;
	border-radius: 6px;
	overflow: hidden;
}

.work img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

.work-open:hover img {
	transform: scale(1.03);
}

.work figcaption {
	padding: 8px 2px 0;
	color: var(--muted);
	font-size: 0.85rem;
}

.empty {
	text-align: center;
	color: var(--muted);
	padding: 64px 0;
}

.about {
	max-width: 680px;
	margin: 0 auto;
	padding: 48px 16px 80px;
	border-top: 1px solid var(--line);
	text-align: center;
}

.about h2 {
	font: 600 1.6rem/1.2 Fraunces, Georgia, serif;
	margin: 32px 0 0;
}

.bio p {
	margin: 0 0 1em;
}

.lightbox {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--overlay);
	color: #f3ece4;
}

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox::backdrop {
	background: transparent;
}

.lightbox figure {
	margin: 0;
	padding: 56px 16px 24px;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lightbox img {
	max-width: 100%;
	max-height: calc(100dvh - 160px);
	object-fit: contain;
}

.lightbox figcaption {
	margin-top: 12px;
	text-align: center;
	max-width: 640px;
}

.lightbox figcaption span {
	display: block;
	opacity: 0.75;
	font-size: 0.9rem;
}

.lightbox button {
	position: absolute;
	background: none;
	border: 0;
	color: inherit;
	font-size: 2.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 12px 16px;
}

.lb-close {
	top: 4px;
	right: 4px;
}

.lb-prev {
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}

.lb-next {
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 640px) {
	.hero {
		padding-top: 48px;
	}
	.gallery {
		columns: 2;
		column-gap: 10px;
	}
	.work {
		margin-bottom: 10px;
	}
	.lb-prev,
	.lb-next {
		display: none;
	}
}
