@import url('https://fonts.googleapis.com/css?family=Playfair+Display:500,600|Source+Sans+Pro:300,400,600');

.history-page {
	background: #f7f5f1;
}

.history-page #header-wrapper {
	background-size: 128px 128px, 100% 620%, auto;
}

.history-intro {
	position: relative;
	padding: 7em 0 6em;
	color: #fff;
	background: #202b38;
	overflow: hidden;
}

.history-intro:after {
	content: '';
	position: absolute;
	width: 28em;
	height: 28em;
	right: -9em;
	top: -13em;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	box-shadow: 0 0 0 2em rgba(255, 255, 255, 0.04), 0 0 0 4em rgba(255, 255, 255, 0.04);
}

.history-intro .container {
	position: relative;
	z-index: 1;
}

.eyebrow {
	margin-bottom: 1em;
	color: #ff9b89;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.history-intro h1 {
	margin-bottom: 0.35em;
	color: #fff;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 4.5em;
	line-height: 1.05em;
}

.intro-copy {
	max-width: 30em;
	margin-bottom: 2em;
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.25em;
}

.history-meta {
	display: flex;
	gap: 0.8em;
	align-items: center;
	color: #fff;
	font-size: 0.9em;
	font-weight: 600;
}

.meta-divider {
	color: #ff9b89;
}

.history-wrapper {
	padding-top: 4em;
	background: #f7f5f1;
}

.history-tools {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 3em;
	padding-bottom: 1em;
	border-bottom: 1px solid #d8d4ce;
}

.history-tools label {
	color: #202b38;
	font-weight: 600;
}

.history-tools select {
	width: 12em;
	padding: 0.55em 0.8em;
	border: 1px solid #c7c2bb;
	border-radius: 0.2em;
	background: #fff;
	font-size: 0.9em;
}

.performance-list {
	position: relative;
	padding-bottom: 1em;
}

.performance-list:before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 1px;
	background: #d8d4ce;
}

.performance-card {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5em;
	margin-bottom: 4em;
}

.performance-card:nth-child(even) .performance-content {
	grid-column: 2;
	grid-row: 1;
}

.performance-card:before {
	content: '';
	position: absolute;
	left: calc(50% - 0.45em);
	top: 1.6em;
	width: 0.9em;
	height: 0.9em;
	border: 3px solid #f7f5f1;
	border-radius: 50%;
	background: #f35858;
	box-shadow: 0 0 0 1px #f35858;
}

.performance-content {
	grid-column: 1;
	padding: 1.7em 2em 1.8em;
	border-top: 4px solid #f35858;
	background: #fff;
	box-shadow: 0 0.7em 1.5em rgba(32, 43, 56, 0.06);
}

.performance-media {
	position: relative;
	width: calc(100% + 4em);
	height: auto;
	aspect-ratio: 16 / 9;
	margin: -1.7em -2em 1.5em;
	overflow: hidden;
	background: #e7e2db;
}

.performance-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.performance-card:hover .performance-media img {
	transform: scale(1.04);
}

.performance-media.media-missing {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #e7e2db;
	color: #8f887f;
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.performance-card:nth-child(3n) .performance-content {
	border-top-color: #e9a13b;
}

.performance-card:nth-child(3n + 1) .performance-content {
	border-top-color: #57a69b;
}

.performance-date {
	margin-bottom: 0.6em;
	color: #f35858;
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.performance-card:nth-child(3n) .performance-date {
	color: #b26d08;
}

.performance-card:nth-child(3n + 1) .performance-date {
	color: #287d73;
}

.performance-content h2 {
	margin-bottom: 0.2em;
	color: #202b38;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.65em;
}

.performance-location {
	margin-bottom: 1.2em;
	color: #77736d;
	font-size: 0.9em;
}

.performance-location:before {
	content: '\f3c5';
	margin-right: 0.5em;
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
}

.performance-description {
	margin-bottom: 1.3em;
	font-size: 0.96em;
	line-height: 1.65em;
}

.performance-link {
	color: #202b38;
	font-size: 0.85em;
	font-weight: 600;
}

.loading-state,
.empty-state {
	position: relative;
	padding: 3em;
	background: #fff;
	text-align: center;
}

.history-footer {
	padding: 4em 0;
	background: #202b38;
	color: #fff;
	text-align: center;
}

.history-footer p {
	margin-bottom: 1.2em;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.7em;
}

.history-footer .button {
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

@media screen and (max-width: 736px) {
	.history-intro {
		padding: 4em 20px;
	}

	.history-intro h1 {
		font-size: 3em;
	}

	.history-wrapper {
		padding: 3em 20px;
	}

	.history-tools {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.8em;
	}

	.history-tools select {
		width: 100%;
	}

	.performance-list:before {
		left: 0.45em;
	}

	.performance-card,
	.performance-card:nth-child(even) .performance-content {
		display: block;
		margin-left: 1.5em;
	}

	.performance-card:before {
		left: -1.5em;
	}

	.performance-content {
		padding: 1.4em;
	}

	.performance-media {
		width: calc(100% + 2.8em);
		margin: -1.4em -1.4em 1.4em;
	}
}