/* ==========================================================================
   Slemish Players — modern dark theatre theme
   ========================================================================== */

@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/fonts/fraunces-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/fonts/fraunces-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--bg: #131417;
	--bg-raised: #1b1d22;
	--bg-card: #1f2228;
	--text: #e9e5dd;
	--text-muted: #a09a8e;
	--gold: #c9a45c;
	--gold-bright: #e6c37a;
	--red: #8e2f39;
	--border: rgba(255, 255, 255, 0.09);
	--shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--container: 68rem;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
}

html, body {
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

a {
	color: var(--gold-bright);
	text-decoration: none;
}
a:hover { text-decoration: underline; }

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

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   Header & nav
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(19, 20, 23, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.75rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 600;
	color: #fff;
}
.brand:hover { text-decoration: none; color: var(--gold-bright); }
.brand img { border-radius: 50%; }

.site-nav {
	display: flex;
	gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
	color: var(--text);
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
}
.site-nav a:hover {
	color: var(--gold-bright);
	text-decoration: none;
}
.site-nav a[aria-current="page"] {
	color: var(--gold);
	border-bottom-color: var(--gold);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: 0;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--text);
	transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 640px) {
	.nav-toggle { display: flex; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: var(--bg-raised);
		border-bottom: 1px solid var(--border);
		padding: 0.5rem 0;
	}
	.site-nav a {
		padding: 0.8rem clamp(1rem, 4vw, 2rem);
		border-bottom: 0;
	}
	.site-nav a[aria-current="page"] { border-left: 3px solid var(--gold); }
	.nav-open .site-nav { display: flex; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: min(78vh, 40rem);
	padding: clamp(3rem, 8vw, 6rem) 1rem;
	text-align: center;
	background:
		linear-gradient(rgba(13, 14, 16, 0.72), rgba(19, 20, 23, 0.94) 85%, var(--bg)),
		url("/images/bg.jpg") center / cover no-repeat;
}

.hero-inner {
	width: 100%;
	max-width: 40rem;
}

.hero-logo {
	width: min(340px, 90%);
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
	border-radius: 6px;
}

.hero p.tagline {
	font-size: clamp(1.05rem, 2.6vw, 1.3rem);
	color: var(--text);
	margin: 1.2rem 0 2rem;
}

.hero-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.button {
	display: inline-block;
	padding: 0.7rem 1.6rem;
	border: 1px solid var(--gold);
	border-radius: 4px;
	color: var(--gold-bright);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background 0.2s, color 0.2s;
}
.button:hover {
	background: var(--gold);
	color: #17130a;
	text-decoration: none;
}
.button.primary {
	background: var(--gold);
	color: #17130a;
}
.button.primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.section + .section { border-top: 1px solid var(--border); }

.section-title {
	display: flex;
	align-items: baseline;
	gap: 1rem;
}
.section-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, var(--gold), transparent);
	opacity: 0.5;
}

/* Feature card (latest production on home) */
.feature-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow);
}
.feature-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.feature-card-body {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 0.4rem;
}
.feature-card-body .button { margin-top: 1.2rem; }
@media (max-width: 700px) {
	.feature-card { grid-template-columns: 1fr; }
	.feature-card img { max-height: 320px; }
}

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

/* --------------------------------------------------------------------------
   Archive (shows index)
   -------------------------------------------------------------------------- */

.page-header {
	padding-block: clamp(2rem, 5vw, 3.5rem) 0;
}
.page-header p { color: var(--text-muted); max-width: 45rem; }

.archive-filter {
	margin: 1.5rem 0 0;
}
.archive-filter input {
	width: 100%;
	max-width: 26rem;
	padding: 0.7rem 1rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text);
	font-size: 1rem;
}
.archive-filter input:focus {
	outline: 2px solid var(--gold);
	outline-offset: 1px;
	border-color: transparent;
}

.decade { padding-block: 1.5rem; }
.decade > h2 {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--gold);
	font-size: 1.4rem;
	letter-spacing: 0.06em;
}
.decade > h2::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border);
}

.show-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.25rem;
}

.show-card {
	display: flex;
	flex-direction: column;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 8px;
	overflow: hidden;
	color: var(--text);
	transition: transform 0.15s, border-color 0.15s;
}
.show-card:hover {
	transform: translateY(-3px);
	border-color: var(--gold);
	text-decoration: none;
}

.show-card-media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 50% 120%, rgba(201, 164, 92, 0.18), transparent 60%),
		linear-gradient(160deg, #23262d, #17181c);
	display: grid;
	place-items: center;
}
.show-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.show-card-media .placeholder-year {
	font-family: var(--serif);
	font-size: 2.2rem;
	font-weight: 600;
	color: rgba(201, 164, 92, 0.55);
}

.show-card-body {
	padding: 0.9rem 1rem 1.1rem;
}
.show-card-body .year {
	color: var(--gold);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
}
.show-card-body h3 {
	font-size: 1.15rem;
	margin: 0.25rem 0 0.2rem;
}
.show-card-body .writer {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Show page
   -------------------------------------------------------------------------- */

.show { padding-block: clamp(2rem, 5vw, 3.5rem); }

.show-header { text-align: center; margin-bottom: 2rem; }
.show-year {
	color: var(--gold);
	font-weight: 600;
	letter-spacing: 0.2em;
	margin: 0 0 0.4rem;
}
.show-header h1 { margin-bottom: 0.3rem; }
.show-writer {
	font-family: var(--serif);
	font-size: 1.2rem;
	color: var(--text);
	margin: 0;
}
.show-director {
	color: var(--text-muted);
	margin: 0.3rem 0 0;
}

.show-hero {
	margin: 0 0 2.5rem;
}
.show-hero img {
	width: 100%;
	border-radius: 10px;
	box-shadow: var(--shadow);
}

.show-section {
	margin-block: clamp(2rem, 5vw, 3rem);
	padding-top: clamp(1.5rem, 4vw, 2rem);
	border-top: 1px solid var(--border);
}
.show-section > h2 {
	color: var(--gold-bright);
}

.award-kind {
	margin-top: 1.5rem;
	color: #fff;
}
.award-group { margin: 0.8rem 0 1.2rem; }
.award-group h4 {
	margin: 0 0 0.3rem;
	font-size: 1rem;
	color: var(--text);
}
.award-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.award-list li {
	padding: 0.15rem 0 0.15rem 1.6rem;
	position: relative;
	color: var(--text-muted);
}
.award-list li::before {
	content: "\2605"; /* star */
	position: absolute;
	left: 0.2rem;
	color: var(--gold);
}
.award-list.nominations li::before {
	content: "\2606"; /* outline star */
}

.people-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}
.person {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1rem;
	text-align: center;
}
.person img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 0.7rem;
}
.person-name {
	margin: 0;
	font-weight: 600;
	color: #fff;
}
.person-role {
	margin: 0.15rem 0 0;
	font-size: 0.9rem;
	color: var(--gold);
}

/* Photo gallery: uniform grid, click to enlarge */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.8rem;
}
.gallery img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 6px;
	cursor: zoom-in;
	transition: opacity 0.15s;
}
.gallery img:hover { opacity: 0.85; }
@media (max-width: 520px) {
	.gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Clippings & programmes: masonry-ish columns, full image visible */
.clippings {
	column-width: 280px;
	column-gap: 1rem;
}
.clippings figure {
	break-inside: avoid;
	margin: 0 0 1rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.5rem;
}
.clippings img {
	width: 100%;
	display: block;
	border-radius: 3px;
	cursor: zoom-in;
}
.clippings figcaption {
	font-size: 0.8rem;
	color: var(--text-muted);
	padding: 0.4rem 0.2rem 0.1rem;
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
}
th {
	text-align: left;
	color: var(--gold);
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.6rem 0.8rem;
	border-bottom: 2px solid var(--gold);
}
td {
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid var(--border);
}
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.back-link { margin-top: 3rem; }

/* --------------------------------------------------------------------------
   Content pages (history, contact)
   -------------------------------------------------------------------------- */

.page {
	padding-block: clamp(2rem, 5vw, 3.5rem);
	max-width: 46rem;
}

/* Contact form */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1.5rem;
}
.contact-form label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text);
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text);
	font-size: 1rem;
	font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--gold);
	outline-offset: 1px;
	border-color: transparent;
}
.contact-form button {
	align-self: flex-start;
	padding: 0.7rem 2rem;
	background: var(--gold);
	color: #17130a;
	border: 0;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}
.contact-form button:hover { background: var(--gold-bright); }
.privacy-note {
	font-size: 0.85rem;
	color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--border);
	margin-top: clamp(3rem, 8vw, 5rem);
}
.site-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 1.5rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}
.site-footer .social {
	color: var(--text-muted);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border);
	border-radius: 50%;
	transition: color 0.2s, border-color 0.2s;
}
.site-footer .social:hover {
	color: var(--gold-bright);
	border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
	max-width: min(96vw, 1100px);
	max-height: 92vh;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 0.75rem;
}
.lightbox::backdrop {
	background: rgba(0, 0, 0, 0.85);
}
.lightbox img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	margin-inline: auto;
	border-radius: 4px;
}
.lightbox-caption {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.85rem;
	margin: 0.5rem 0 0;
}
.lightbox-caption:empty { display: none; }
.lightbox-close {
	position: absolute;
	top: 0.3rem;
	right: 0.5rem;
	background: none;
	border: 0;
	color: var(--text);
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}
.lightbox-close:hover { color: var(--gold-bright); }
