:root {
	--night: #090908;
	--charcoal: #12110f;
	--ivory: #f2eee5;
	--gold: #c6a15b;
	--smoke: #aaa49a;
	--line: rgba(255, 255, 255, 0.16);
	--serif: Georgia, "Times New Roman", serif;
	--sans: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--night);
	color: var(--ivory);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open {
	overflow: hidden;
}

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

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

button,
input,
textarea {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--ivory);
	color: #111;
	transform: translateY(-150%);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100px;
	padding: 0 5vw;
	border-bottom: 1px solid var(--line);
}

.brand {
	display: flex;
	flex-direction: column;
	gap: 6px;
	letter-spacing: 0.22em;
}

.brand strong {
	font-family: var(--serif);
	font-size: 1.18rem;
	font-weight: 400;
}

.brand small {
	color: #d6d1c7;
	font-size: 0.54rem;
	letter-spacing: 0.26em;
}

.brand .custom-logo {
	width: auto;
	max-width: 220px;
	max-height: 65px;
}

.custom-logo-link {
	display: block;
}

.primary-nav .menu {
	display: flex;
	gap: 2.4rem;
	align-items: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-nav a,
.header-contact {
	font-size: 0.72rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
	color: var(--gold);
}

.header-contact {
	padding: 12px 20px;
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.header-contact:hover,
.header-contact:focus-visible {
	border-color: var(--gold);
	color: var(--gold);
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 12px 8px;
	border: 0;
	background: transparent;
	color: white;
}

.menu-toggle > span:not(.screen-reader-text) {
	display: block;
	width: 100%;
	height: 1px;
	margin: 7px 0;
	background: currentColor;
	transition: transform 0.25s ease;
}

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100svh;
	overflow: hidden;
	background:
		radial-gradient(circle at 78% 38%, rgba(165, 124, 70, 0.3), transparent 24%),
		radial-gradient(circle at 70% 60%, rgba(53, 55, 65, 0.75), transparent 42%),
		linear-gradient(120deg, #070706 15%, #1a1612 60%, #080808);
}

.hero.has-image {
	background-image: var(--hero-image);
	background-position: center;
	background-size: cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(8, 8, 7, 0.97) 0%, rgba(10, 9, 7, 0.8) 42%, rgba(9, 9, 7, 0.18) 76%, rgba(8, 8, 8, 0.55) 100%),
		linear-gradient(0deg, rgba(9, 9, 8, 0.78) 0%, transparent 35%);
}

.hero-content {
	position: relative;
	z-index: 2;
	width: 60%;
	padding: 160px 5vw 90px;
}

.eyebrow {
	margin: 0;
	color: var(--gold);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.manifesto blockquote,
.artist-copy h2,
.site-footer h2,
.archive-heading h1,
.single-copy h1,
.not-found h1 {
	font-family: var(--serif);
	font-weight: 400;
}

.hero h1 {
	max-width: 900px;
	margin: 24px 0;
	font-size: clamp(3.6rem, 6.4vw, 7rem);
	line-height: 0.94;
	letter-spacing: -0.045em;
}

.hero h1::first-line {
	color: var(--ivory);
}

.hero h1 em {
	color: var(--gold);
	font-weight: 400;
}

.hero-intro {
	max-width: 590px;
	color: #d5d0c7;
	font-size: 1.08rem;
	line-height: 1.75;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-top: 38px;
}

.button,
.text-link {
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	min-width: 250px;
	padding: 19px 22px;
	border: 0;
}

.button-light {
	background: var(--ivory);
	color: #151310;
}

.button-light span {
	margin-left: 35px;
	font-size: 1.1rem;
}

.text-link {
	padding: 15px 2px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.discover {
	position: absolute;
	right: 5vw;
	bottom: 30px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	font-size: 0.55rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.discover i {
	color: var(--gold);
	font-size: 1.2rem;
	font-style: normal;
}

.gallery-section {
	padding: 120px 5vw;
	background: #0e0d0b;
}

.section-heading {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 8vw;
	align-items: end;
	margin-bottom: 64px;
}

.section-heading h2,
.artist-copy h2,
.site-footer h2 {
	max-width: 820px;
	margin: 16px 0 0;
	font-size: clamp(3.1rem, 5.5vw, 6rem);
	line-height: 0.94;
	letter-spacing: -0.04em;
}

.section-heading > p {
	max-width: 480px;
	padding-left: 30px;
	border-left: 1px solid var(--gold);
	color: var(--smoke);
	line-height: 1.8;
}

.artwork-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 300px;
	gap: 12px;
}

.artwork-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: #181612;
}

.artwork-card:nth-child(1),
.artwork-card:nth-child(4) {
	grid-row: span 2;
}

.artwork-card:nth-child(6) {
	grid-column: span 2;
}

.artwork-link {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
}

.artwork-link > img,
.artwork-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.artwork-placeholder {
	display: block;
	background:
		radial-gradient(circle at 60% 35%, rgba(198, 161, 91, 0.25), transparent 20%),
		linear-gradient(140deg, #28231d, #0b0b0a);
}

.artwork-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(8, 7, 6, 0.93), transparent 64%);
}

.artwork-info {
	position: absolute;
	inset: auto 24px 22px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.artwork-info small {
	color: var(--gold);
	font-size: 0.56rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.artwork-info strong {
	font-family: var(--serif);
	font-size: 1.45rem;
	font-weight: 400;
}

.artwork-info > span {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	font-size: 0.64rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}

.artwork-link:hover > img,
.artwork-link:focus-visible > img {
	filter: saturate(1.12);
	transform: scale(1.055);
}

.artwork-link:hover .artwork-info > span,
.artwork-link:focus-visible .artwork-info > span {
	max-height: 30px;
	margin-top: 8px;
	opacity: 1;
}

.gallery-more {
	display: table;
	margin: 55px auto 0;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--gold);
	color: var(--gold);
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.empty-gallery {
	padding: 70px;
	border: 1px solid rgba(198, 161, 91, 0.38);
	background: linear-gradient(135deg, rgba(198, 161, 91, 0.08), transparent);
	text-align: center;
}

.empty-gallery h3 {
	margin: 0 0 15px;
	font-family: var(--serif);
	font-size: 2rem;
	font-weight: 400;
}

.empty-gallery p {
	max-width: 650px;
	margin: auto;
	color: var(--smoke);
	line-height: 1.7;
}

.manifesto {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 3vw;
	padding: 150px 9vw;
	background: var(--ivory);
	color: #17140f;
}

.section-number {
	color: #8c784f;
	font-size: 0.62rem;
	letter-spacing: 0.2em;
}

.manifesto blockquote {
	max-width: 1050px;
	margin: 0;
	font-size: clamp(2.8rem, 5.4vw, 6rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.manifesto-note {
	grid-column: 2;
	margin-top: 60px;
	padding-left: 45%;
	color: #686156;
	line-height: 1.8;
}

.manifesto-note span {
	color: #17140f;
	font-family: var(--serif);
	font-style: italic;
}

.artist-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 760px;
}

.artist-image {
	min-height: 620px;
	background:
		linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent),
		var(--artist-image, linear-gradient(140deg, #2c2822, #0b0b0a));
	background-position: center;
	background-size: cover;
}

.artist-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10vw 9vw;
	background: #12100e;
}

.artist-lead {
	color: #e5ded0;
	font-family: var(--serif);
	font-size: 1.45rem;
	line-height: 1.55;
}

.artist-copy > p:not(.eyebrow):not(.artist-lead) {
	color: var(--smoke);
	line-height: 1.9;
}

.artist-copy > a {
	margin-top: 25px;
	color: var(--gold);
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.artist-copy > a span {
	margin-left: 20px;
}

.site-footer {
	padding: 110px 5vw 35px;
	background: #080807;
}

.footer-heading {
	margin-bottom: 50px;
}

.email-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 32px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	font-family: var(--serif);
	font-size: clamp(1.4rem, 3vw, 3rem);
}

.email-link span {
	color: var(--gold);
}

.visitor-counter {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
}

.visitor-counter-mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(198, 161, 91, 0.45);
	border-radius: 50%;
	color: var(--gold);
	font-size: 0.9rem;
}

.visitor-counter-copy {
	display: flex;
	gap: 14px;
	align-items: baseline;
}

.visitor-counter-number {
	color: var(--ivory);
	font-family: var(--serif);
	font-size: clamp(2rem, 4vw, 3.8rem);
	line-height: 1;
	letter-spacing: -0.04em;
}

.visitor-counter-label {
	color: #9d978e;
	font-family: var(--serif);
	font-size: 1rem;
	font-style: italic;
}

.visitor-counter-note {
	margin: 0;
	color: #aaa49a;
	font-family: var(--serif);
	font-size: 0.88rem;
	line-height: 1.45;
	text-align: right;
}

.visitor-counter-note small {
	display: block;
	margin-top: 3px;
	color: #66615b;
	font-family: var(--sans);
	font-size: 0.56rem;
	font-style: normal;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 35px;
	color: #76716a;
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.social-links {
	display: flex;
	gap: 25px;
	color: #bbb5ab;
}

.artwork-dialog {
	width: min(950px, calc(100% - 40px));
	max-height: 90vh;
	padding: 0;
	overflow: auto;
	border: 0;
	background: #171512;
	color: var(--ivory);
	box-shadow: 0 30px 100px #000;
}

.artwork-dialog::backdrop {
	background: rgba(2, 2, 2, 0.91);
	backdrop-filter: blur(12px);
}

.dialog-close {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 3;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(9, 9, 9, 0.75);
	color: white;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}

.story-dialog-content {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	min-height: 560px;
}

.story-image img {
	width: 100%;
	height: 100%;
	min-height: 560px;
	object-fit: cover;
}

.story-copy {
	align-self: center;
	padding: 70px 60px;
}

.story-copy h2 {
	margin: 20px 0 28px;
	font-family: var(--serif);
	font-size: clamp(2.5rem, 4vw, 4.5rem);
	font-weight: 400;
	line-height: 1;
}

.story-text {
	color: #b8b1a6;
	font-family: var(--serif);
	font-size: 1.12rem;
	line-height: 1.75;
}

.story-copy > a {
	display: inline-block;
	margin-top: 28px;
	color: var(--gold);
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.single-main {
	min-height: 100vh;
	padding-top: 100px;
	background: #0d0c0a;
}

.single-story {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
	min-height: calc(100vh - 100px);
}

.single-image {
	min-height: 700px;
	background: #090909;
}

.single-image img {
	width: 100%;
	height: 100%;
	max-height: calc(100vh - 100px);
	object-fit: contain;
}

.single-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8vw 7vw;
}

.single-copy h1 {
	margin: 22px 0 35px;
	font-size: clamp(3rem, 5vw, 6rem);
	line-height: 0.98;
	letter-spacing: -0.04em;
}

.entry-content {
	color: #c0baaf;
	font-family: var(--serif);
	font-size: 1.15rem;
	line-height: 1.85;
}

.entry-content a {
	color: var(--gold);
	text-decoration: underline;
}

.back-link {
	margin-top: 40px;
	color: var(--gold);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.archive-main {
	min-height: 70vh;
	padding: 180px 5vw 120px;
	background: #0e0d0b;
}

.archive-heading {
	max-width: 900px;
	margin-bottom: 65px;
}

.archive-heading h1,
.not-found h1 {
	margin: 20px 0;
	font-size: clamp(3.4rem, 6vw, 7rem);
	line-height: 0.95;
	letter-spacing: -0.045em;
}

.archive-description {
	max-width: 620px;
	color: var(--smoke);
	line-height: 1.75;
}

.archive-grid .artwork-card:nth-child(1),
.archive-grid .artwork-card:nth-child(4),
.archive-grid .artwork-card:nth-child(6) {
	grid-column: auto;
	grid-row: auto;
}

.pagination {
	margin-top: 60px;
	text-align: center;
}

.pagination .nav-links {
	display: flex;
	gap: 18px;
	justify-content: center;
}

.pagination a,
.pagination .current {
	padding: 10px;
}

.pagination .current {
	color: var(--gold);
}

.not-found {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 85vh;
	padding: 160px 8vw 100px;
	background:
		radial-gradient(circle at 75% 35%, rgba(198, 161, 91, 0.2), transparent 25%),
		#0b0a09;
}

.not-found p:not(.eyebrow) {
	margin-bottom: 35px;
	color: var(--smoke);
}

@media (max-width: 900px) {
	.site-header {
		height: 78px;
	}

	.menu-toggle {
		position: relative;
		z-index: 3;
		display: block;
	}

	.menu-open .menu-toggle > span:first-child {
		transform: translateY(4px) rotate(45deg);
	}

	.menu-open .menu-toggle > span:nth-child(2) {
		transform: translateY(-4px) rotate(-45deg);
	}

	.primary-nav {
		position: fixed;
		inset: 0;
		display: grid;
		place-items: center;
		background: rgba(8, 8, 7, 0.97);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease;
	}

	.primary-nav .menu {
		flex-direction: column;
		gap: 30px;
	}

	.primary-nav a {
		font-family: var(--serif);
		font-size: 2rem;
		letter-spacing: 0;
		text-transform: none;
	}

	.menu-open .primary-nav {
		opacity: 1;
		pointer-events: auto;
	}

	.header-contact {
		display: none;
	}

	.hero {
		min-height: 820px;
		background-position: 60% center;
	}

	.hero-overlay {
		background:
			linear-gradient(90deg, rgba(8, 8, 7, 0.93) 0%, rgba(9, 8, 6, 0.58) 78%),
			linear-gradient(0deg, #080807 0%, transparent 55%);
	}

	.hero-content {
		width: 100%;
		padding: 130px 7vw 100px;
	}

	.hero h1 {
		font-size: clamp(3.35rem, 14vw, 5.6rem);
	}

	.hero-intro {
		max-width: 90%;
	}

	.hero-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.discover {
		display: none;
	}

	.gallery-section {
		padding: 90px 5vw;
	}

	.section-heading {
		grid-template-columns: 1fr;
	}

	.artwork-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 300px;
	}

	.artwork-card:nth-child(1),
	.artwork-card:nth-child(4),
	.artwork-card:nth-child(6) {
		grid-column: auto;
		grid-row: auto;
	}

	.manifesto {
		grid-template-columns: 1fr;
		padding: 100px 7vw;
	}

	.manifesto blockquote,
	.manifesto-note {
		grid-column: 1;
	}

	.manifesto-note {
		margin-top: 25px;
		padding-left: 20%;
	}

	.artist-section {
		grid-template-columns: 1fr;
	}

	.artist-image {
		min-height: 520px;
	}

	.artist-copy {
		padding: 100px 8vw;
	}

	.story-dialog-content {
		grid-template-columns: 1fr;
	}

	.story-image img {
		min-height: 300px;
		max-height: 42vh;
	}

	.story-copy {
		padding: 45px 30px;
	}

	.single-main {
		padding-top: 78px;
	}

	.single-story {
		grid-template-columns: 1fr;
	}

	.single-image {
		min-height: 0;
	}

	.single-image img {
		max-height: 75vh;
	}

	.single-copy {
		padding: 90px 8vw;
	}
}

@media (max-width: 540px) {
	.brand small {
		display: none;
	}

	.hero h1 {
		font-size: 3.25rem;
	}

	.hero-intro {
		font-size: 0.96rem;
	}

	.button {
		min-width: 235px;
	}

	.artwork-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 390px;
	}

	.section-heading h2,
	.artist-copy h2,
	.site-footer h2 {
		font-size: 3.15rem;
	}

	.manifesto-note {
		padding-left: 0;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 18px;
		align-items: flex-start;
	}

	.visitor-counter {
		grid-template-columns: auto 1fr;
		gap: 16px;
	}

	.visitor-counter-copy {
		flex-direction: column;
		gap: 4px;
	}

	.visitor-counter-note {
		grid-column: 2;
		text-align: left;
	}

	.empty-gallery {
		padding: 45px 25px;
	}

	.archive-main {
		padding: 140px 6vw 90px;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
