/* ================================================================
   Shay's Art — Main Stylesheet
   Dark, gallery-first. Mobile-first.
   ================================================================ */

/* ----------------------------------------------------------------
   Reset & base
   ---------------------------------------------------------------- */

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

html {
	font-size: 16px;
	background: #000;
	color: #d8d0c4;
}

body {
	font-family: Georgia, 'Times New Roman', serif;
	background: #000;
	color: #d8d0c4;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: #d8d0c4;
	text-decoration: none;
}

a:hover,
a:focus {
	color: #fff;
	text-decoration: underline;
}

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

ul {
	list-style: none;
}

/* ----------------------------------------------------------------
   Site header
   ---------------------------------------------------------------- */

.site-header {
	padding: 1.25rem 1rem;
	text-align: center;
}

.site-title {
	font-size: 1.5rem;
	font-weight: normal;
	letter-spacing: 0.04em;
	color: #d8d0c4;
	text-decoration: none;
}

.site-title:hover,
.site-title:focus {
	color: #fff;
	text-decoration: none;
}

/* ----------------------------------------------------------------
   Site footer
   ---------------------------------------------------------------- */

.site-footer {
	margin-top: auto;
	padding: 2rem 1rem;
	text-align: center;
}

.footer-nav {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #d8d0c4;
}

.footer-nav a {
	color: #d8d0c4;
}

.footer-nav a:hover,
.footer-nav a:focus {
	color: #c8956c;
	text-decoration: none;
}

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

.gallery-wrap {
	flex: 1;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.gallery-grid {
	display: grid;
	gap: 8px;
	padding: 8px;
	background: #000;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.gallery-item {
	background: #111;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
	min-width: 0;
}

.gallery-item a {
	display: block;
	width: 100%;
	height: 100%;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.2s ease;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	opacity: 0.85;
}

.gallery-empty {
	text-align: center;
	padding: 4rem 1rem;
	color: #d8d0c4;
	font-style: italic;
}

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

.gallery-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	padding: 2rem 1rem;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
}

.gallery-pagination__prev,
.gallery-pagination__next {
	color: #d8d0c4;
}

.gallery-pagination__prev:hover,
.gallery-pagination__prev:focus,
.gallery-pagination__next:hover,
.gallery-pagination__next:focus {
	color: #c8956c;
	text-decoration: none;
}

.gallery-pagination__info {
	color: #d8d0c4;
}

/* ----------------------------------------------------------------
   Single painting
   ---------------------------------------------------------------- */

.painting-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 0 2rem;
}

.painting-title {
	font-size: 1.1rem;
	font-weight: normal;
	letter-spacing: 0.04em;
	text-align: center;
	padding: 1rem 1rem 0.75rem;
	color: #d8d0c4;
}

.painting-stage {
	width: 100%;
	max-width: 1000px;
	padding: 0 8px;
	overflow: hidden;
	touch-action: pan-y;
	cursor: zoom-in;
	max-height: calc(100dvh - 11rem);
}

.painting-img {
	width: 100%;
	height: auto;
	max-height: calc(100dvh - 11rem);
	object-fit: contain;
	display: block;
	transform-origin: center center;
	will-change: transform;
	user-select: none;
	-webkit-user-drag: none;
}

.painting-nav {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	padding: 1.25rem 1rem 0;
	font-size: 0.9rem;
}

.painting-fullsize {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	padding: 0.5rem 1rem 0;
	text-align: center;
}

.painting-fullsize a {
	color: #d8d0c4;
}

.painting-fullsize a:hover,
.painting-fullsize a:focus {
	color: #c8956c;
	text-decoration: none;
}

.painting-arrow {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	color: #d8d0c4;
	font-size: 3rem;
	line-height: 1;
	padding: 1rem 0.9rem;
	z-index: 20;
	opacity: 0.75;
	transition: opacity 0.2s, color 0.2s;
}

.painting-arrow--prev { left: 0.75rem; }
.painting-arrow--next { right: 0.75rem; }

.painting-arrow:hover,
.painting-arrow:focus {
	color: #c8956c;
	opacity: 1;
	text-decoration: none;
}

.painting-nav__back {
	color: #d8d0c4;
}

.painting-nav__back:hover,
.painting-nav__back:focus {
	color: #c8956c;
	text-decoration: none;
}

.painting-nav__hello {
	color: #d8d0c4;
	font-style: italic;
}

.painting-nav__hello:hover,
.painting-nav__hello:focus {
	color: #c8956c;
	text-decoration: none;
}

/* ----------------------------------------------------------------
   Generic pages (About, Contact)
   ---------------------------------------------------------------- */

.page-wrap {
	flex: 1;
	max-width: 680px;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 3rem;
	width: 100%;
}

.page-title {
	font-size: 1.3rem;
	font-weight: normal;
	letter-spacing: 0.04em;
	margin-bottom: 1.75rem;
	color: #d8d0c4;
}

.page-content {
	line-height: 1.75;
	color: #d8d0c4;
}

.page-content p {
	margin-bottom: 1.25em;
}

.page-content a {
	border-bottom: 1px solid #c8956c;
	color: #d8d0c4;
}

.page-content a:hover,
.page-content a:focus {
	color: #c8956c;
	border-color: #c8956c;
	text-decoration: none;
}

/* ----------------------------------------------------------------
   Contact form (rendered by shays-contact plugin)
   ---------------------------------------------------------------- */

.shays-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.shays-contact-form label {
	display: block;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #d8d0c4;
	margin-bottom: 0.3rem;
}

.shays-contact-form input[type="text"],
.shays-contact-form input[type="email"],
.shays-contact-form textarea {
	width: 100%;
	background: #111;
	border: 1px solid #333;
	color: #d8d0c4;
	padding: 0.6rem 0.75rem;
	font-size: 1rem;
	font-family: inherit;
	border-radius: 2px;
	outline: none;
	transition: border-color 0.15s;
}

.shays-contact-form input:focus,
.shays-contact-form textarea:focus {
	border-color: #c8956c;
}

.shays-contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

.shays-contact-form button[type="submit"] {
	align-self: flex-start;
	background: transparent;
	border: 1px solid #d8d0c4;
	color: #d8d0c4;
	padding: 0.6rem 1.5rem;
	font-size: 0.9rem;
	font-family: inherit;
	letter-spacing: 0.06em;
	cursor: pointer;
	border-radius: 2px;
	transition: border-color 0.15s, color 0.15s;
}

.shays-contact-form button[type="submit"]:hover,
.shays-contact-form button[type="submit"]:focus {
	border-color: #c8956c;
	color: #c8956c;
}

.shays-contact-notice {
	padding: 0.75rem 1rem;
	border-radius: 2px;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.shays-contact-notice--success {
	background: #0d1f0d;
	border: 1px solid #2a5c2a;
	color: #8fbf8f;
}

.shays-contact-notice--error {
	background: #1f0d0d;
	border: 1px solid #5c2a2a;
	color: #bf8f8f;
}
