:root {
	--bg: #f6f2eb; /*#f6f2eb*/
	--paper: #fffdf9; 
	--ink: #1d1a16;
	--muted: #76695a;
	--wood: #b88958;
	--wood-deep: #7b4d2c;
	--line: #dfd3c6;
	--radius-xl: 28px;
	--radius-lg: 18px;
	--shadow-soft: 0 12px 40px rgba(58, 40, 24, 0.12);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	scrollbar-gutter: stable;
	background: radial-gradient(circle at 85% 0%, #fff7eb 0%, transparent 38%), var(--bg);
	color: var(--ink);
	font-family: "Inter", sans-serif;
	scroll-behavior: smooth;
}

body {
	line-height: 1.5;
	overflow-x: hidden;
}

.site-shell {
	max-width: 1200px;
	margin: 0 auto;
	padding: 26px 20px 64px;
	position: relative;
}

.site-shell::before,
.site-shell::after {
	content: "";
	position: absolute;
	pointer-events: none;
	z-index: 0;
}
/*
.site-shell::before {
	width: 340px;
	height: 340px;
	border: 0px solid rgba(184, 137, 88, 0.4); was 1px, but it looked too heavy
	border-radius: 45% 55% 64% 36% / 38% 38% 62% 62%;
	top: -120px;
	right: -120px;
	transform: rotate(14deg);
}

.site-shell::after {
	width: 260px;
	height: 260px;
	border: 0px solid rgba(123, 77, 44, 0.25); was 1px, but it looked too heavy
	border-radius: 38px;
	bottom: 120px;
	left: -140px;
	transform: rotate(-20deg);
}
*/

section,
header,
footer,
nav {
	position: relative;
	z-index: 1;
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-bottom: 40px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}

.sticky-nav-page .topbar {
	position: sticky;
	top: 0;
	z-index: 1100;
	transition: width 220ms ease, padding 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, border-radius 220ms ease;
}

.sticky-nav-page .topbar.scrolled {
	justify-content: center;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	box-shadow: 0 8px 22px rgba(58, 40, 24, 0.12);
	backdrop-filter: blur(4px);
}

.sticky-nav-page .topbar.scrolled .brand {
	display: none;
}

.sticky-nav-page .topbar.scrolled .topnav {
	justify-content: center;
	flex-wrap: nowrap;
	gap: 14px;
}

.sticky-nav-page .topbar.scrolled .topnav a {
	font-size: 0.84rem;
	white-space: nowrap;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.78rem;
}

.brand-mark {
	width: 36px;
	height: 36px;
	border: 2px solid var(--ink);
	border-radius: 9px;
	transform: rotate(45deg);
	display: grid;
	place-items: center;
}

.brand-mark::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid var(--wood);
	border-radius: 4px;
	transform: rotate(-45deg);
}

.topnav {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.topnav a {
	text-decoration: none;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
	transition: color 180ms ease;
}

.topnav a:hover {
	color: var(--ink);
}

.hero {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 28px;
	align-items: end;
	margin-bottom: 34px;
}

.eyebrow {
	align-items: center;
	gap: 10px;
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	color: var(--muted);
	margin-bottom: 16px;
}

.eyebrow::before {
	content: "";
	width: 34px;
	height: 1px;
	background: var(--muted);
}

h1 {
	margin: 0;
	font-size: clamp(2rem, 7vw, 5rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
	font-family: "Playfair Display", serif;
	font-weight: 700;
}

.home-page .hero-copy h1 {
	font-size: clamp(1.4rem, 4.1vw, 3.2rem);
	white-space: nowrap;
}

.hero-copy p {
	max-width: 42ch;
	margin: 22px 0 0;
	color: var(--muted);
	font-size: 1.02rem;
}

.hero-note {
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	backdrop-filter: blur(2px);
	box-shadow: var(--shadow-soft);
	padding: 24px;
	align-self: stretch;
	display: grid;
	gap: 16px;
	justify-items: start;
}

.hero-note h2 {
	margin: 0;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.hero-note p {
	margin: 0;
	color: var(--muted);
	font-size: 0.96rem;
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chip {
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.65);
	color: var(--ink);
	font-weight: 600;
}

.gallery {
	margin-top: 0px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 500px; /*Change the distance between images on top and bottom*/

}
.home-page .gallery {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 60px 0;
	background-image: url('images/bg-wall-light.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	position: relative;
	transition: background-image 400ms ease;
}
.home-page .gallery::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(246, 242, 235, 0.0);
	pointer-events: none;
}

.art-card {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: var(--shadow-soft);
	width: 100vw;
	margin-left: calc(50% - 50vw);
	min-height: 280px;
	transform: translateY(12px);
	opacity: 0;
	transition: transform 600ms ease, opacity 600ms ease;
}

.home-page .art-card {
	width: 600px; /*adjust image to pixels*/
	margin-left: auto; /*move the images to the left or right on the index page*/
	margin-right: auto;
	min-height: 0;
	aspect-ratio: 16/9;
	border: 8px solid var(--wood-deep);
	border-radius: 3px;
	box-shadow: 
		inset 0 0 0 2px #d5a678, /*d5a678*/
		inset 0 0 0 3px var(--wood-deep),
		0 8px 24px rgba(58, 40, 24, 0.25),
		0 16px 48px rgba(58, 40, 24, 0.15);
	background: linear-gradient(135deg, 
		rgba(213, 166, 120, 0.15) 0%, 
		rgba(184, 137, 88, 0.08) 50%, 
		rgba(123, 77, 44, 0.12) 100%);
}

.home-page .art-card::after {
	content: "";
	position: absolute;
	inset: -14px;
	border-radius: 3px;
	background: 
		linear-gradient(45deg, transparent 48%, rgba(213, 166, 120, 0.3) 50%, transparent 52%),
		linear-gradient(-45deg, transparent 48%, rgba(213, 166, 120, 0.2) 50%, transparent 52%);
	background-size: 8px 8px;
	pointer-events: none;
	z-index: -1;
}

.art-card.visible {
	transform: translateY(0);
	opacity: 1;
}

.art-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16, 12, 8, 0.03) 0%, rgba(16, 12, 8, 0.7) 95%);
	z-index: 1;
}

.art-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 900ms cubic-bezier(.2, .9, .2, 1);
	filter: saturate(0.94) contrast(1.04);
}

.art-card:hover img {
	transform: scale(1.06);
}

.collection-grid .art-card:focus-visible {
	outline: 2px solid rgba(123, 77, 44, 0.8);
	outline-offset: 2px;
}

.art-info {
	position: absolute;
	inset: auto 16px 16px;
	z-index: 2;
	color: #f8f2e9;
	display: grid;
	gap: 4px;
}

.art-title {
	margin: 0;
	font-family: "Playfair Display", serif;
	font-size: clamp(1.3rem, 2vw, 1.9rem);
	line-height: 1.06;
}

.art-meta {
	margin: 0;
	font-size: 0.84rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	opacity: 0.92;
}

.art-collection {
	margin: 0;
	font-size: 0.64rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	opacity: 0.92;
}

.card-a {
	grid-column: 1 / -1;
	min-height: 460px;
}

.card-b {
	grid-column: 1 / -1;
	min-height: 460px;
}

.card-c,
.card-d {
	grid-column: 1 / -1;
	min-height: 360px;
}

.story {
	margin-top: 34px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	align-items: center;
	background: linear-gradient(112deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 248, 239, 0.78) 100%);
	box-shadow: 0 8px 20px rgba(78, 53, 32, 0.06);
}

.story p {
	margin: 0;
	color: var(--muted);
	max-width: 100%;
}

.story strong {
	color: var(--ink);
	font-weight: 700;
}

.story-badge {
	width: 110px;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 1px dashed rgba(123, 77, 44, 0.55);
	display: grid;
	place-items: center;
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wood-deep);
	text-align: center;
	padding: 10px;
	background: rgba(255, 250, 242, 0.85);
	font-weight: 700;
}

.home-page .bg-toggle {
	position: relative;
	top: auto;
	right: auto;
	z-index: auto;
	width: auto;
	height: auto;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: none;
	box-shadow: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1px 10px;
	font-size: 0.9rem;
	color: var(--muted);
	font-weight: 600;
	transition: color 180ms ease, background 180ms ease;
	touch-action: manipulation;
}

.home-page .bg-toggle:hover {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.85);
}

.home-page .bg-toggle:active {
	transform: none;
}

.sticky-nav-page .topbar.scrolled .bg-toggle {
	font-size: 0.84rem;
	white-space: nowrap;
	padding: 1px 10px;
}

.bg-toggle-icon {
	display: block;
	line-height: 1;
}

.footer {
	margin-top: 42px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	color: var(--muted);
	font-size: 0.84rem;
	letter-spacing: 0.04em;
	/*text-transform: uppercase;*/
}

.contact-section {
	margin-top: 16px;
}

.contact-card {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 28px;
	align-items: center;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: linear-gradient(112deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 248, 239, 0.82) 100%);
	box-shadow: var(--shadow-soft);
	transform: translateY(12px);
	opacity: 0;
	transition: transform 600ms ease, opacity 600ms ease;
}

.contact-card.visible {
	transform: translateY(0);
	opacity: 1;
}

.contact-photo-wrap {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--paper);
	box-shadow: 0 8px 20px rgba(78, 53, 32, 0.08);
}

.contact-photo {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 340px;
	object-fit: cover;
	filter: saturate(0.96) contrast(1.03);
}

.contact-details h2 {
	margin: 0;
	font-family: "Playfair Display", serif;
	font-size: clamp(1.8rem, 3.2vw, 2.7rem);
	line-height: 1.08;
}

.contact-role {
	margin: 8px 0 0;
	color: var(--wood-deep);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.contact-text {
	margin: 14px 0 18px;
	color: var(--muted);
	max-width: 45ch;
}

.contact-link {
	display: inline-block;
	text-decoration: none;
	color: var(--ink);
	font-weight: 700;
	letter-spacing: 0.01em;
	border-bottom: 1px solid rgba(29, 26, 22, 0.35);
	padding-bottom: 2px;
	transition: color 180ms ease, border-color 180ms ease;
}

.contact-link:hover {
	color: var(--wood-deep);
	border-color: rgba(123, 77, 44, 0.55);
}

.collections-hero {
	margin-bottom: 12px;
}

.collection-year {
	margin-top: 26px;
}

.collection-year h2 {
	margin: 0 0 14px;
	font-family: "Playfair Display", serif;
	font-size: clamp(1.5rem, 3vw, 2.3rem);
	letter-spacing: -0.01em;
	line-height: 1.1;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}

.collection-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.collection-grid .art-card {
	width: 100%;
	margin-left: 0;
	min-height: 170px;
	border-radius: 12px;
	cursor: pointer;
}

.collection-grid .card-a,
.collection-grid .card-b,
.collection-grid .card-c,
.collection-grid .card-d {
	grid-column: auto;
	min-height: 170px;
}

.collection-grid .art-card::before {
	background: linear-gradient(180deg, rgba(16, 12, 8, 0.02) 35%, rgba(16, 12, 8, 0.82) 100%);
	opacity: 0;
	transition: opacity 260ms ease;
}

.collection-grid .art-info {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 220ms ease, transform 220ms ease;
	pointer-events: none;
}

.collection-grid .art-card:hover::before {
	opacity: 1;
}

.collection-grid .art-card:hover .art-info {
	opacity: 1;
	transform: translateY(0);
}

.collection-grid .art-title {
	font-size: clamp(0.92rem, 1.15vw, 1.1rem);
	line-height: 1.15;
}

.collection-grid .art-meta {
	font-size: 0.66rem;
	letter-spacing: 0.05em;
}

.art-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: none;
}

.art-modal.is-open {
	display: block;
}

.art-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 12, 8, 0.72);
	backdrop-filter: blur(4px);
}

.art-modal__panel {
	position: relative;
	z-index: 1;
	width: min(1080px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	margin: 16px auto;
	background: var(--paper);
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-soft);
	overflow: auto;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
}

.art-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.85);
	color: var(--ink);
	width: 38px;
	height: 38px;
	border-radius: 999px;
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
	touch-action: manipulation;
}

.art-modal__media-wrap {
	background: #efe7dc;
	min-height: 420px;
}

.art-modal__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.art-modal__content {
	padding: 34px 28px 28px;
	display: grid;
	align-content: start;
	gap: 10px;
}

.art-modal__collection {
	margin: 0;
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wood-deep);
	font-weight: 700;
}

.art-modal__title {
	margin: 0;
	font-family: "Playfair Display", serif;
	font-size: clamp(1.5rem, 2.6vw, 2.4rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.art-modal__size {
	margin: 0;
	font-size: 0.86rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 600;
}

.art-modal__blurb {
	margin: 6px 0 0;
	line-height: 1.55;
	color: var(--ink);
	max-width: 42ch;
}

@media (max-width: 760px) {
	.site-shell {
		padding: 16px 12px 34px;
	}

	.site-shell::before,
	.site-shell::after {
		display: none;
	}

	.topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 26px;
	}

	.sticky-nav-page .topbar.scrolled {
		width: calc(100% - 8px);
		border-radius: 16px;
		padding: 8px 10px;
	}

	.sticky-nav-page .topbar.scrolled .topnav {
		width: 100%;
		justify-content: center;
		gap: 8px;
	}

	.sticky-nav-page .topbar.scrolled .topnav a {
		font-size: 0.78rem;
		padding: 6px 9px;
	}

	.sticky-nav-page .topbar.scrolled .bg-toggle {
		font-size: 0.78rem;
		padding: 6px 9px;
	}

	.brand {
		font-size: 0.72rem;
	}

	.topnav {
		width: 100%;
		justify-content: flex-start;
		gap: 8px;
	}

	.topnav a {
		display: inline-block;
		padding: 7px 10px;
		border: 1px solid var(--line);
		border-radius: 999px;
		font-size: 0.82rem;
	}

	.home-page .topnav .bg-toggle {
		padding: 7px 10px;
		font-size: 0.82rem;
	}

	.hero {
		margin-bottom: 22px;
	}

	.hero-copy p {
		max-width: 100%;
		font-size: 0.95rem;
		margin-top: 14px;
	}

	.art-title {
		font-size: clamp(1rem, 4.2vw, 1.35rem);
	}

	.art-meta {
		font-size: 0.72rem;
	}

	.art-collection {
		font-size: 0.58rem;
	}

	.footer {
		margin-top: 26px;
		font-size: 0.76rem;
		gap: 8px;
	}
}

@media (max-width: 600px) {
	.home-page .art-card {
		width: 95vw;
	}
}

@media (max-width: 980px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.hero-note {
		max-width: 560px;
	}

	.card-a,
	.card-b,
	.card-c,
	.card-d {
		grid-column: span 0; /*adjusted to 0 to fix the narrowing the page issue and the picture disappearing*/
	}

	.card-a,
	.card-b {
		min-height: 420px;
	}

	.contact-card {
		grid-template-columns: 1fr;
	}

	.contact-photo {
		min-height: 280px;
	}

	.collection-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.art-modal__panel {
		grid-template-columns: 1fr;
	}

	.art-modal__media-wrap {
		min-height: 320px;
	}
}

@media (max-width: 640px) {
	.site-shell {
		padding-bottom: 30px;
	}

	.story {
		grid-template-columns: 1fr;
	}

	.story-badge {
		width: 92px;
	}

	.card-a,
	.card-b,
	.card-c,
	.card-d {
		min-height: 230px;
	}

	.collection-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.collection-grid .art-card,
	.collection-grid .card-a,
	.collection-grid .card-b,
	.collection-grid .card-c,
	.collection-grid .card-d {
		min-height: 140px;
	}

	.art-modal__content {
		padding: 24px 18px 20px;
	}

	.art-modal__close {
		top: 8px;
		right: 8px;
	}

	.art-modal__panel {
		width: calc(100vw - 12px);
		max-height: calc(100vh - 12px);
		margin: 6px auto;
	}

	.art-modal__media-wrap {
		min-height: 220px;
	}

	.contact-card {
		padding: 16px;
		gap: 16px;
	}

	.contact-photo {
		min-height: 220px;
	}
}

@media (max-width: 420px) {
	.collection-grid {
		grid-template-columns: 1fr;
	}

	.collection-grid .art-card,
	.collection-grid .card-a,
	.collection-grid .card-b,
	.collection-grid .card-c,
	.collection-grid .card-d {
		min-height: 180px;
	}
}

@media (hover: none) and (pointer: coarse) {
	.collection-grid .art-card::before {
		opacity: 1;
		background: linear-gradient(180deg, rgba(16, 12, 8, 0.04) 45%, rgba(16, 12, 8, 0.78) 100%);
	}

	.collection-grid .art-info {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html,
	body,
	* {
		scroll-behavior: auto !important;
		animation-duration: 0ms !important;
		transition-duration: 0ms !important;
	}

	.art-card {
		opacity: 1;
		transform: none;
	}
}
