:root,
[data-theme="light"] {
	--bg: #f5f4ef;
	--surface: #ffffff;
	--surface-2: #efede6;
	--text: #1f1f1b;
	--muted: #66655f;
	--border: rgba(31, 31, 27, 0.12);
	--accent: #0e6b73;
	--shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
	--radius: 16px;
	--max: 1120px;
}

[data-theme="dark"] {
	--bg: #141412;
	--surface: #1c1c19;
	--surface-2: #22211e;
	--text: #eceae4;
	--muted: #b1aea6;
	--border: rgba(236, 234, 228, 0.14);
	--accent: #6ec4cc;
	--shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Inter, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -3rem;
	background: var(--surface);
	color: var(--text);
	padding: 0.75rem 1rem;
	border-radius: 999px;
	z-index: 1000;
}

.skip-link:focus {
	top: 1rem;
}

.container {
	width: min(92%, var(--max));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(10px);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	border-bottom: 1px solid var(--border);
}

.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}

.brand {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nav-links {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	flex-wrap: wrap;
}

.nav-links a {
	color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
	color: var(--text);
}

.theme-toggle,
.button,
.back-link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}

.theme-toggle {
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	width: 44px;
	cursor: pointer;
}

.hero {
	padding: 5rem 0 3rem;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 2rem;
	align-items: end;
}

.eyebrow {
	margin: 0 0 1rem;
	color: var(--accent);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
}

h1,
h2,
h3 {
	line-height: 1.1;
	margin: 0;
}

.hero h1 {
	font-size: clamp(2.4rem, 5vw, 4.9rem);
	max-width: 20ch;
}

.lead {
	font-size: 1.05rem;
	color: var(--muted);
	max-width: 180ch;
	margin-top: 1.25rem;
}

.hero-card,
.section-card,
.art-card,
.detail-panel,
.contact-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.hero-card {
	padding: 1.5rem;
}

.hero-card p {
	margin: 0.4rem 0;
	color: var(--muted);
}

.section {
	padding: 1rem 0 4rem;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.section-header p {
	margin: 0.5rem 0 0;
	color: var(--muted);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
}

.art-card {
	overflow: hidden;
}

.art-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.art-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.art-content .button {
  margin-top: auto;
}

.art-image-link {
  display: block;
}

.art-image-link img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--surface-2);
}

.art-image-link:hover img,
.art-image-link:focus-visible img {
  opacity: 0.94;
}

.meta {
	color: var(--muted);
	font-size: 0.95rem;
}

.art-content h3 {
	font-size: 1.2rem;
	margin-bottom: 0.45rem;
}

.art-content p {
	margin: 0 0 1rem;
	color: var(--muted);
}

.button,
.back-link {
	padding: 0.8rem 1.1rem;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
}

.button.primary {
	background: var(--accent);
	color: #fff;
	border-color: transparent;
}

.about-grid,
.contact-grid,
.detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.section-card,
.contact-card,
.detail-panel {
	padding: 1.5rem;
}

.section-card p,
.contact-card p,
.detail-panel p,
.detail-panel li {
	color: var(--muted);
}

.list {
	padding-left: 1.1rem;
	margin: 0.75rem 0 0;
}

.page-hero {
	padding: 3rem 0 2rem;
}

.page-hero p {
	color: var(--muted);
	max-width: 62ch;
}

.detail-image-wrap {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.detail-image-wrap img {
	width: 100%;
	max-height: 76vh;
	object-fit: contain;
	background: var(--surface-2);
}

.featured-button {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: zoom-in;
}

.thumb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 0.75rem;
	margin-top: 1rem;
}

.thumb-button {
	border: 1px solid var(--border);
	background: var(--surface);
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
}

.thumb-button img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.thumb-button:hover,
.thumb-button:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.button:hover,
.button:focus-visible,
.back-link:hover,
.back-link:focus-visible {
	outline: 2px solid transparent;
	transform: translateY(-1px);
}

.thumb-button.is-active {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 999;
}

.lightbox.active {
	display: flex;
}

.lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.lightbox-content {
	position: relative;
	z-index: 1;
	width: min(1100px, 100%);
	max-height: 90vh;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-content img {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	background: var(--surface);
	border-radius: 12px;
}

.lightbox-nav,
.close-button {
	position: absolute;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	cursor: pointer;
}

.lightbox-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	font-size: 2rem;
}

.lightbox-nav.prev {
	left: 1rem;
}

.lightbox-nav.next {
	right: 1rem;
}

.close-button {
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
	font-size: 1.5rem;
}

.footer {
	padding: 2rem 0 4rem;
	color: var(--muted);
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	border-top: 1px solid var(--border);
	padding-top: 1.5rem;
}

@media (max-width: 820px) {

	.hero-grid,
	.about-grid,
	.contact-grid,
	.detail-grid {
		grid-template-columns: 1fr;
	}

	.section-header,
	.navbar {
		align-items: flex-start;
	}

	.navbar {
		padding: 0.75rem 0;
		flex-direction: column;
	}

	.lightbox-nav.prev {
		left: 0.25rem;
	}

	.lightbox-nav.next {
		right: 0.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}