/* The End HTX — theme styles */

:root {
	--te-bg: #0b0b0b;
	--te-bg-2: #141414;
	--te-bg-3: #1c1c1c;
	--te-line: #2a2a2a;
	--te-text: #f2f0eb;
	--te-muted: #a39f97;
	--te-accent: #e3242b;
	--te-display: "Anton", "Impact", "Arial Narrow", sans-serif;
	--te-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--te-max: 1240px;
	--te-gutter: clamp(16px, 4vw, 40px);
	--te-header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--te-header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--te-bg);
	color: var(--te-text);
	font: 400 17px/1.6 var(--te-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--te-accent); text-underline-offset: 3px; }
a:hover { color: var(--te-accent); }
:focus-visible { outline: 2px solid var(--te-accent); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--te-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .02em;
	line-height: 1.05;
	margin: 0 0 .5em;
}

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--te-accent); color: #fff; padding: 8px 14px; }

.container { width: 100%; max-width: var(--te-max); margin: 0 auto; padding: 0 var(--te-gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .7em 1.4em;
	font: 400 1rem/1 var(--te-display);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent, .wp-block-button__link { background: var(--te-accent); color: #fff; }
.btn--accent:hover, .wp-block-button__link:hover { background: #fff; color: #000; }
.btn--outline { border-color: var(--te-text); color: var(--te-text); }
.btn--outline:hover { background: var(--te-text); color: #000; }
.btn--ghost { border-color: var(--te-line); color: var(--te-text); }
.btn--ghost:hover { border-color: var(--te-text); color: var(--te-text); }
.btn--lg { font-size: 1.2rem; padding: .8em 1.8em; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 11, 11, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--te-line);
}
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; transition: background .25s, border-color .25s; }
.site-header.is-overlay.is-scrolled { background: rgba(11, 11, 11, .92); border-color: var(--te-line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	max-width: var(--te-max); height: var(--te-header-h); margin: 0 auto; padding: 0 var(--te-gutter);
}
.site-brand__text { font: 400 1.8rem/1 var(--te-display); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.site-brand .custom-logo { max-height: 48px; width: auto; }

.site-nav .menu { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
	font: 400 1rem/1 var(--te-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
	padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav .current-menu-item > a:not([href*="#"]) { color: var(--te-text); border-color: var(--te-accent); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 26px; height: 2px; background: var(--te-text); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; position: relative; z-index: 2; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		background: var(--te-bg);
		display: flex; align-items: center; justify-content: center;
		opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; align-items: center; gap: 22px; }
	.site-nav a { font-size: 2rem; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100vh; min-height: 100svh;
	display: grid; place-items: center;
	text-align: center;
	background: #000;
	isolation: isolate;
	overflow: hidden;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background: var(--hero-img) center / cover no-repeat;
	transform: scale(1.04);
}
.hero.is-gray::before, .page-hero.is-gray::before { filter: grayscale(1) contrast(1.15); }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	/* --hero-overlay comes from Customize → The End → Hero → Photo darkness. */
	background:
		linear-gradient(180deg, transparent 75%, var(--te-bg) 100%),
		rgba(0, 0, 0, var(--hero-overlay, .45));
}
.hero__inner { padding: calc(var(--te-header-h) + 20px) var(--te-gutter) 60px; }
.hero__title {
	font-size: clamp(5rem, 22vw, 17rem);
	line-height: .85;
	letter-spacing: .01em;
	margin: 0;
	text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero__tagline {
	font: 400 clamp(1.1rem, 2.6vw, 1.8rem)/1.2 var(--te-display);
	text-transform: uppercase; letter-spacing: .35em;
	margin: .6em 0 1.6em;
	padding-left: .35em; /* balance the trailing letter-spacing */
}
.hero__scroll {
	position: absolute; bottom: 28px; left: 50%; width: 22px; height: 22px; margin-left: -11px;
	border-right: 2px solid var(--te-text); border-bottom: 2px solid var(--te-text);
	transform: rotate(45deg); opacity: .7;
	animation: te-bob 2s infinite;
}
@keyframes te-bob { 50% { transform: translateY(8px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--te-line); }
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section-title { font-size: clamp(2.6rem, 7vw, 5rem); margin: 0; word-spacing: .15em; }
.section-title::after { content: ""; display: block; width: 80px; height: 3px; margin: 18px auto 0; background: var(--te-accent); }
.section-kicker {
	font: 500 .85rem/1.4 var(--te-body); text-transform: uppercase; letter-spacing: .25em;
	color: var(--te-muted); margin: 14px 0 0;
}
.section-cta { text-align: center; margin: clamp(40px, 5vw, 64px) 0 0; }
.empty-note { text-align: center; color: var(--te-muted); }

/* ---------- Show grid / cards ---------- */
.show-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: clamp(20px, 3vw, 36px);
}
.show-card { display: flex; flex-direction: column; background: var(--te-bg-2); border: 1px solid var(--te-line); transition: border-color .2s, transform .2s; }
.show-card:hover { border-color: #444; transform: translateY(-3px); }
.show-card__flyer { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--te-bg-3); }
.show-card__flyer img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.show-card:hover .show-card__flyer img { transform: scale(1.03); }
.show-card__noflyer { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; font: 400 1.6rem/1.1 var(--te-display); text-transform: uppercase; }
.show-card__badge {
	position: absolute; top: 12px; left: 12px;
	display: flex; flex-direction: column; align-items: center;
	min-width: 56px; padding: 6px 8px 4px;
	background: var(--te-accent); color: #fff;
	font-family: var(--te-display); text-transform: uppercase; line-height: 1;
}
.show-card__badge span { font-size: .8rem; letter-spacing: .12em; }
.show-card__badge strong { font-weight: 400; font-size: 1.8rem; }
.show-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.show-card__meta { margin: 0 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--te-muted); display: flex; justify-content: space-between; gap: 10px; }
.show-card__venue { color: var(--te-text); }
.show-card__title { font-size: 1.45rem; line-height: 1.1; margin: 0 0 8px; }
.show-card__title a { text-decoration: none; }
.show-card__price { margin: 0 0 14px; color: var(--te-muted); font-weight: 500; }
.show-card__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.show-card__actions .btn { flex: 1 1 auto; font-size: .95rem; padding: .7em 1em; }

/* ---------- Spotlight ---------- */
.spotlight { background: var(--te-accent); color: #fff; padding: clamp(56px, 8vw, 100px) 0; }
.spotlight__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.spotlight__flyer img { width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.spotlight .section-kicker { color: rgba(255,255,255,.85); margin: 0 0 12px; }
.spotlight__title { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .95; }
.spotlight__date { font: 400 1.3rem/1.2 var(--te-display); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1.4em; }
.spotlight .btn--accent { background: #000; }
.spotlight .btn--accent:hover { background: #fff; color: #000; }
@media (max-width: 760px) { .spotlight__grid { grid-template-columns: 1fr; } }

/* ---------- Page content / blocks ---------- */
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 1.6em; }
.entry-content h3 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.entry-content p { max-width: 70ch; }
.entry-content .is-kicker { font-size: .82rem; text-transform: uppercase; letter-spacing: .2em; color: var(--te-accent); margin-top: -.4em; }
.wp-block-quote { margin: 1.4em 0 0; padding: 0 0 0 22px; border-left: 3px solid var(--te-accent); color: #d8d4cc; font-size: 1rem; }
.wp-block-quote cite { display: block; margin-top: .8em; font-style: normal; font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; color: var(--te-muted); }
.wp-block-quote cite::before { content: "— "; }
.wp-block-image { margin: 0; }
.wp-block-image img { width: 100%; }
.wp-block-columns { display: flex; gap: clamp(28px, 5vw, 72px); }
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-columns.te-split + .wp-block-columns.te-split { margin-top: clamp(56px, 8vw, 110px); }
.wp-block-columns.te-split:nth-of-type(even) .wp-block-column:first-child { order: 0; }
@media (max-width: 781px) { .wp-block-columns { flex-direction: column; } .wp-block-column { width: 100%; } }
.wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.section--gallery .wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px; margin: 0;
}
.section--gallery .wp-block-gallery .wp-block-image { margin: 0; width: auto !important; aspect-ratio: 1; overflow: hidden; }
.section--gallery .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: filter .3s, transform .4s; }
.section--gallery .wp-block-gallery .wp-block-image:hover img { filter: none; transform: scale(1.04); }
@media (max-width: 760px) { .section--gallery .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(32px, 4vw, 48px); text-align: center; border-bottom: 1px solid var(--te-line); }
.page-title { font-size: clamp(2.8rem, 8vw, 6rem); margin: 0; }

/* Page banner with a photo (Featured Image or the Customizer default). */
.page-hero--image {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; align-items: end;
	border-bottom: 0;
	padding: 0 0 clamp(32px, 5vw, 56px);
	min-height: clamp(240px, 38vh, 420px);
}
.page-hero--short { min-height: clamp(200px, 26vh, 300px); }
.page-hero--tall  { min-height: clamp(320px, 60vh, 640px); }
.page-hero--image::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background: var(--banner-img) center / cover no-repeat;
}
.page-hero--image::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, transparent 78%, var(--te-bg) 100%),
		rgba(0, 0, 0, var(--banner-overlay, .6));
}
.page-hero--image .page-title { text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.page-hero--image .section-kicker { color: var(--te-text); }
.page-article .entry-content { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 110px); }

/* ---------- Single show ---------- */
.show-single { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.show-single__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.show-single__flyer img { width: 100%; border: 1px solid var(--te-line); }
.show-single__info { position: sticky; top: calc(var(--te-header-h) + 24px); }
.show-single__info .section-kicker { margin: 0 0 12px; color: var(--te-accent); }
.show-single__title { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; }
.show-facts { margin: 24px 0 28px; border-top: 1px solid var(--te-line); }
.show-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--te-line); }
.show-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--te-muted); padding-top: 3px; }
.show-facts dd { margin: 0; }
.show-single__note { font-size: .85rem; color: var(--te-muted); text-align: center; margin: 10px 0 28px; }
.back-link { display: inline-block; margin-top: 24px; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; color: var(--te-muted); }
@media (max-width: 860px) {
	.show-single__grid { grid-template-columns: 1fr; }
	.show-single__info { position: static; }
}

/* ---------- Pagination ---------- */
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--te-line); text-decoration: none; font-family: var(--te-display); }
.pagination .current { background: var(--te-accent); border-color: var(--te-accent); }

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--te-line); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-title { font-size: 1.3rem; letter-spacing: .1em; margin-bottom: 1em; }
.footer-col p { margin: 0 0 .6em; color: var(--te-muted); }
.footer-col a { color: var(--te-text); text-decoration: none; }
.footer-col a:hover { color: var(--te-accent); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 .55em; }
.footer-col--newsletter input[type="email"], .footer-col--newsletter input[type="text"] {
	width: 100%; padding: 12px 14px; background: var(--te-bg-2); color: var(--te-text); border: 1px solid var(--te-line); font: inherit;
}
.footer-col--newsletter button, .footer-col--newsletter input[type="submit"] {
	margin-top: 10px; padding: 12px 20px; background: var(--te-accent); color: #fff; border: 0;
	font: 400 1rem/1 var(--te-display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
	margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--te-line);
	font-size: .82rem; color: var(--te-muted); text-transform: uppercase; letter-spacing: .12em;
}
.site-footer__mark { font: 400 1.6rem/1 var(--te-display); color: var(--te-text); letter-spacing: .04em; }
.site-footer__bottom a { color: var(--te-text); }
