/*
Theme Name: The Capitalist
Theme URI: https://glittertheatrical.co.uk/home/
Author: Glitter Theatrical
Author URI: https://glittertheatrical.co.uk/home/
Description: A lightweight one-page microsite for The Capitalist, a new musical in development: A Christmas Carol, told backwards. Written for producers, venues and collaborators. Every word is editable in Appearance → Customize → The Capitalist page.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-capitalist
Tags: one-column, custom-menu, theme-options, translation-ready, accessibility-ready
*/

/* -------------------------------------------------------------- Fonts (self-hosted, SIL OFL) */

@font-face {
	font-family: "EB Garamond";
	src: url("assets/fonts/eb-garamond-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "EB Garamond";
	src: url("assets/fonts/eb-garamond-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "EB Garamond";
	src: url("assets/fonts/eb-garamond-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display SC";
	src: url("assets/fonts/playfair-display-sc-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* -------------------------------------------------------------- Tokens (from the marketing pack) */

:root {
	--midnight: #0a0d12;
	--steel: #1f2d3c;
	--brown: #4b3223;
	--gold: #b08a58;
	--gold-light: #cfac74;
	--parchment: #d9d1c3;
	--parchment-muted: #a8a093;

	--rule: rgb(176 138 88 / 0.38);
	--rule-faint: rgb(176 138 88 / 0.18);

	--serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--display: "Playfair Display SC", "Playfair Display", Didot, "Bodoni 72", Georgia, serif;

	--step--1: clamp(0.94rem, 0.9rem + 0.18vw, 1.06rem);
	--step-0: clamp(1.13rem, 1.06rem + 0.32vw, 1.31rem);
	--step-1: clamp(1.3rem, 1.18rem + 0.55vw, 1.62rem);
	--step-2: clamp(1.55rem, 1.36rem + 0.9vw, 2.1rem);
	--step-3: clamp(2.1rem, 1.6rem + 2.3vw, 3.5rem);
	--step-4: clamp(2.2rem, 1.5rem + 3.2vw, 4.3rem);

	--gutter: clamp(1.25rem, 5vw, 3.5rem);
	--max: 76rem;
	--content: 68rem;
	--gap-section: clamp(4rem, 2.6rem + 5vw, 7rem);
	--header-h: 4.25rem;
}

/* -------------------------------------------------------------- Base */

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

html {
	background: var(--midnight);
	color: var(--parchment);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: var(--serif);
	font-size: var(--step-0);
	line-height: 1.62;
	font-kerning: normal;
	font-variant-ligatures: common-ligatures;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
svg,
picture {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

p {
	margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 400;
	line-height: 1.12;
	text-wrap: balance;
}

em,
i {
	font-style: italic;
}

a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-color: var(--rule);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
	color: var(--gold-light);
	text-decoration-color: currentColor;
}

:focus-visible {
	outline: 2px solid var(--gold-light);
	outline-offset: 4px;
}

::selection {
	background: var(--gold);
	color: var(--midnight);
}

[hidden] {
	display: none !important;
}

.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -10rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--parchment);
	color: var(--midnight);
	font-weight: 500;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
}

.stars {
	font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
	font-size: 0.78em;
	letter-spacing: 0.06em;
	color: var(--gold-light);
	white-space: nowrap;
}

/* Playfair Display SC's fi/fl ligatures are lowercase forms, so switch ligatures off wherever it is used. */
.brand__name,
.clock__numerals,
.stave__num,
.stave__title,
.subhead,
.pull,
.role__name,
.person__name,
.contact__title,
.contact__email,
.listen__title,
.doc__title,
.doc__numeral,
.doc__subtitle,
.entry h2,
.entry h3 {
	font-variant-ligatures: no-common-ligatures;
	font-feature-settings: "liga" 0, "clig" 0;
}

/* -------------------------------------------------------------- Buttons and links */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7em 1.7em 0.66em;
	border: 1px solid var(--gold);
	background: rgb(176 138 88 / 0.1);
	color: var(--parchment);
	font-family: var(--serif);
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.button:hover {
	background: var(--gold);
	color: var(--midnight);
}

.text-link {
	font-style: italic;
	text-decoration-color: var(--gold);
}

/* -------------------------------------------------------------- Header */

.scroll-sentinel {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 6px;
	pointer-events: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header.is-scrolled {
	background: rgb(10 13 18 / 0.92);
	border-bottom-color: var(--rule-faint);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--parchment);
	text-decoration: none;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.brand__mark {
	width: auto;
	height: 2.3rem;
}

.brand__name {
	font-family: var(--display);
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	white-space: nowrap;
}

/* On the home page the small mark waits until the big logo has scrolled away. */
.js .home .site-header:not(.is-past-hero) .brand {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.header-cta {
	display: inline-block;
	margin-left: auto;
	padding: 0.42em 1.05em 0.38em;
	border: 1px solid var(--rule);
	color: var(--parchment);
	font-size: 1.02rem;
	text-decoration: none;
	white-space: nowrap;
}

.header-cta:hover {
	border-color: var(--gold);
	background: rgb(176 138 88 / 0.12);
	color: var(--parchment);
}

/* Very narrow screens: keep the name for screen readers, show only the monogram. */
@media (max-width: 26rem) {
	.brand__name {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

/* -------------------------------------------------------------- Hero */

.hero {
	/* As wide as possible while keeping the buttons above the fold. */
	--logo-w: clamp(17rem, calc((100svh - 27rem) * 1.58), min(52rem, 88vw));
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	min-height: min(100svh, 64rem);
	margin-top: calc(var(--header-h) * -1);
	padding: calc(var(--header-h) + clamp(1rem, 4vh, 3rem)) var(--gutter) clamp(2.5rem, 7vh, 5rem);
	overflow: hidden;
	text-align: center;
}

/* Candlelight behind the logo, fog along the bottom, a vignette at the edges. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(to bottom, transparent 70%, var(--midnight) 99%),
		radial-gradient(closest-side at 50% 40%, rgb(176 138 88 / 0.17), rgb(75 50 35 / 0.08) 55%, transparent),
		radial-gradient(85% 45% at 50% 86%, rgb(31 45 60 / 0.62), transparent 72%),
		radial-gradient(140% 100% at 50% 40%, transparent 55%, rgb(0 0 0 / 0.5));
}

/* Fine grain, like the print texture on the poster. */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.06;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
	mask-image: linear-gradient(to bottom, #000 60%, transparent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
	width: 100%;
}

.hero__mark {
	position: relative;
	width: var(--logo-w);
	margin: calc(var(--logo-w) * 0.15) auto 0;
}

.hero__logo {
	position: relative;
	z-index: 1;
	margin: 0;
	line-height: 0;
}

.hero__logo img {
	width: 100%;
	filter: drop-shadow(0 0.6rem 1.6rem rgb(0 0 0 / 0.55));
}

/* The clock face behind the logo. Its hands run backwards. */
.clock {
	position: absolute;
	z-index: 0;
	left: 21%;
	top: -30%;
	width: 58%;
	height: auto;
	overflow: visible;
	color: var(--gold);
	opacity: 0.58;
	pointer-events: none;
}

.clock__numerals {
	font-family: var(--display);
	font-size: 50px;
	letter-spacing: 2px;
	fill: currentColor;
	text-anchor: middle;
}

.clock__ring--faint {
	opacity: 0.55;
}

.clock__hand {
	transform-box: view-box;
	transform-origin: 50% 50%;
}

.clock__hand--hour {
	transform: rotate(-60deg);
}

@media (prefers-reduced-motion: no-preference) {
	.clock__hand--minute {
		animation: tc-rewind-minute 2.8s cubic-bezier(0.18, 0.75, 0.25, 1) 0.4s both, tc-drift-minute 240s linear 3.2s infinite;
	}

	.clock__hand--hour {
		animation: tc-rewind-hour 2.8s cubic-bezier(0.18, 0.75, 0.25, 1) 0.4s both, tc-drift-hour 2880s linear 3.2s infinite;
	}

	.is-offscreen .clock__hand {
		animation-play-state: paused;
	}
}

@keyframes tc-rewind-minute {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(-720deg);
	}
}

@keyframes tc-drift-minute {
	from {
		transform: rotate(-720deg);
	}
	to {
		transform: rotate(-1080deg);
	}
}

@keyframes tc-rewind-hour {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(-60deg);
	}
}

@keyframes tc-drift-hour {
	from {
		transform: rotate(-60deg);
	}
	to {
		transform: rotate(-420deg);
	}
}

.hero__lockup {
	margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
}

.hero__adaptation,
.hero__backwards {
	display: block;
	text-wrap: balance;
	padding-left: 0.3em; /* balances the trailing letter-space */
	text-transform: uppercase;
	letter-spacing: 0.3em;
	line-height: 1.5;
}

.hero__adaptation {
	color: var(--parchment);
	font-size: clamp(0.8rem, 0.62rem + 0.75vw, 1.2rem);
}

.hero__backwards {
	color: var(--gold-light);
	font-size: clamp(1.05rem, 0.8rem + 1.1vw, 1.6rem);
	font-style: italic;
}

.rule {
	width: min(15rem, 60vw);
	height: auto;
	margin: 0.8rem auto 0.7rem;
	color: var(--gold);
	aspect-ratio: 320 / 24;
}

.hero__credit {
	margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
	text-wrap: balance;
	color: var(--parchment-muted);
	font-style: italic;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2rem;
	margin: 1.5rem 0 0;
}

/* -------------------------------------------------------------- Dividers between staves */

.divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1rem, 3vw, 2rem);
	max-width: var(--max);
	margin: var(--gap-section) auto;
	padding: 0 var(--gutter);
}

.divider__line {
	flex: 0 1 14rem;
	height: 1px;
	background: linear-gradient(to left, var(--gold), transparent);
	opacity: 0.6;
}

.divider__line:last-child {
	background: linear-gradient(to right, var(--gold), transparent);
}

.divider__icon {
	width: auto;
	height: 3rem;
}

.hero + .divider {
	margin-top: clamp(1.5rem, 4vw, 3.5rem);
}

.divider__icon--holly {
	height: 2.4rem;
}

/* -------------------------------------------------------------- Introduction (always open) */

.intro {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	max-width: var(--content);
	margin: 0 auto;
	padding: 0 var(--gutter);
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (min-width: 52rem) {
	.intro {
		grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
		align-items: center;
	}
}

.intro__text {
	max-width: 31em;
}

.lead {
	margin-bottom: 1.2em;
	color: var(--parchment);
	font-size: var(--step-2);
	font-style: italic;
	line-height: 1.32;
	text-wrap: balance;
}

.intro__figure {
	justify-self: center;
	width: min(100%, 25rem);
}

@media (min-width: 52rem) {
	.intro__figure {
		justify-self: end;
	}
}

/* -------------------------------------------------------------- Hear the songs (always open) */

.listen {
	max-width: 46rem;
	margin: 0 auto;
	padding: 0 var(--gutter);
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

.listen__title {
	color: var(--parchment);
	font-family: var(--display);
	font-size: var(--step-3);
	line-height: 1.05;
	text-align: center;
}

.listen__intro {
	margin: 0.7rem 0 0;
	color: var(--parchment-muted);
	font-style: italic;
	text-align: center;
}

.listen__note {
	margin: 1.5rem 0 0;
	color: var(--parchment-muted);
	font-size: var(--step--1);
	font-style: italic;
	text-align: center;
}

.tracks {
	margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
	padding: 0;
	list-style: none;
	border-top: 3px double var(--rule);
}

.track {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	align-items: center;
	column-gap: clamp(0.9rem, 3vw, 1.4rem);
	padding-top: 1.15rem;
	scroll-margin-top: calc(var(--header-h) + 2rem);
}

.track__body {
	grid-column: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"title time"
		"note note"
		"seek seek"
		"audio audio"
		"error error";
	align-items: baseline;
	column-gap: 1rem;
}

.track:not(.is-enhanced) .track__body {
	border-bottom: 1px solid var(--rule-faint);
}

.track__title {
	grid-area: title;
	margin: 0;
	color: var(--parchment);
	font-size: var(--step-1);
	font-style: italic;
	line-height: 1.25;
}

.track__note {
	grid-area: note;
	margin: 0.15rem 0 0;
	color: var(--parchment-muted);
	font-size: var(--step--1);
	line-height: 1.35;
}

.track__time {
	grid-area: time;
	margin: 0;
	color: var(--parchment-muted);
	font-size: var(--step--1);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.track:not(.is-started) .track__elapsed,
.track:not(.is-started) .track__sep {
	display: none;
}

.track.is-started .track__time {
	color: var(--gold-light);
}

.track__audio {
	grid-area: audio;
	width: 100%;
	margin: 0.7rem 0 1rem;
}

.track__error {
	grid-area: error;
	margin: 0;
	color: var(--gold-light);
	font-size: var(--step--1);
	font-style: italic;
}

.track__error:not(:empty) {
	margin: 0.2rem 0 0.9rem;
}

/* Play and pause: the gold lozenge from the stave toggles, filled while a song plays. */
.track__play,
.programme__listen {
	position: relative;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gold-light);
	cursor: pointer;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.track__play {
	width: 3.25rem;
	height: 3.25rem;
}

.track__play::before,
.programme__listen::before {
	content: "";
	position: absolute;
	inset: 0.56rem;
	border: 1px solid var(--gold);
	transform: rotate(45deg);
	transition: background-color 0.25s ease;
}

.track__icon,
.programme__icon {
	position: relative;
	fill: currentColor;
}

.track__icon {
	width: 1.5rem;
	height: 1.5rem;
}

.icon-pause,
.is-playing .icon-play {
	display: none;
}

.is-playing .icon-pause {
	display: inline;
}

.track.is-playing .track__play,
.programme__listen.is-playing {
	color: var(--midnight);
}

.track.is-playing .track__play::before,
.programme__listen.is-playing::before {
	background: var(--gold);
}

/* Hover only where there is a pointer, so a tap on a phone doesn't leave the button lit. */
@media (hover: hover) {
	.track__play:hover,
	.programme__listen:hover {
		color: var(--midnight);
	}

	.track__play:hover::before,
	.programme__listen:hover::before {
		background: var(--gold);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.track.is-loading .track__play::before {
		animation: tc-waiting 1.2s ease-in-out infinite;
	}
}

@keyframes tc-waiting {
	50% {
		background-color: rgb(176 138 88 / 0.35);
	}
}

/* Position: a hairline that fills with gold, with a small lozenge to drag. */
.track__seek {
	--pct: 0%;
	grid-area: seek;
	width: 100%;
	height: 1.4rem;
	margin: 0.45rem 0 0.1rem;
	padding: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.track__seek:focus-visible {
	outline-offset: 2px;
}

.track__seek::-webkit-slider-runnable-track {
	height: 1px;
	background: linear-gradient(to right, var(--gold) var(--pct), var(--rule) var(--pct));
}

.track__seek::-webkit-slider-thumb {
	width: 0.7rem;
	height: 0.7rem;
	margin-top: calc(0.5px - 0.35rem);
	border: 0;
	border-radius: 0;
	background: var(--gold-light);
	opacity: 0;
	transform: rotate(45deg);
	transition: opacity 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.track__seek::-moz-range-track {
	height: 1px;
	background: var(--rule);
}

.track__seek::-moz-range-progress {
	height: 1px;
	background: var(--gold);
}

.track__seek::-moz-range-thumb {
	width: 0.7rem;
	height: 0.7rem;
	border: 0;
	border-radius: 0;
	background: var(--gold-light);
	opacity: 0;
	transform: rotate(45deg);
	transition: opacity 0.2s ease;
}

.track.is-started .track__seek::-webkit-slider-thumb,
.track__seek:hover::-webkit-slider-thumb,
.track__seek:focus-visible::-webkit-slider-thumb {
	opacity: 1;
}

.track.is-started .track__seek::-moz-range-thumb,
.track__seek:hover::-moz-range-thumb,
.track__seek:focus-visible::-moz-range-thumb {
	opacity: 1;
}

/* -------------------------------------------------------------- Staves: collapsed until clicked or tapped */

.staves {
	max-width: var(--content);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.stave {
	border-top: 1px solid var(--rule);
	scroll-margin-top: var(--header-h);
	transition: background-color 0.4s ease;
}

.stave:last-child {
	border-bottom: 1px solid var(--rule);
}

.stave[open] {
	background: linear-gradient(to bottom, rgb(31 45 60 / 0.22), rgb(31 45 60 / 0) 26rem);
}

.stave__summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 2.5rem;
	grid-template-areas:
		"mark toggle"
		"title toggle"
		"teaser toggle";
	align-items: center;
	column-gap: 1rem;
	padding: 1.5rem 0.25rem 1.6rem;
	list-style: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.stave__summary::-webkit-details-marker {
	display: none;
}

.stave__summary:focus-visible {
	outline-offset: -2px;
}

.stave__mark {
	grid-area: mark;
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	color: var(--gold);
	line-height: 1;
}

.stave__word {
	color: var(--parchment-muted);
	font-size: var(--step--1);
	font-style: italic;
}

.stave__num {
	font-family: var(--display);
	font-size: 1.5rem;
	letter-spacing: 0.04em;
}

.stave__title {
	grid-area: title;
	margin: 0.35rem 0 0;
	color: var(--parchment);
	font-family: var(--display);
	font-size: clamp(1.85rem, 1.3rem + 2vw, 3.05rem);
	line-height: 1.05;
	letter-spacing: 0.01em;
	transition: color 0.25s ease;
}

.stave__teaser {
	grid-area: teaser;
	margin-top: 0.35rem;
	color: var(--parchment-muted);
	font-style: italic;
	line-height: 1.4;
}

/* Open/close mark: a gold lozenge with a plus that becomes a minus. */
.stave__toggle {
	grid-area: toggle;
	position: relative;
	justify-self: end;
	width: 1.15rem;
	height: 1.15rem;
	margin-right: 0.4rem;
	border: 1px solid var(--gold);
	transform: rotate(45deg);
	transition: background-color 0.25s ease;
}

.stave__toggle::before,
.stave__toggle::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0.6rem;
	height: 1px;
	background: var(--gold-light);
	transform: translate(-50%, -50%) rotate(-45deg);
	transition: transform 0.3s ease, background-color 0.25s ease;
}

.stave__toggle::after {
	transform: translate(-50%, -50%) rotate(45deg);
}

.stave[open] .stave__toggle::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.stave__summary:hover .stave__title {
	color: var(--gold-light);
}

.stave__summary:hover .stave__toggle,
.stave[open] .stave__toggle {
	background: var(--gold);
}

.stave__summary:hover .stave__toggle::before,
.stave__summary:hover .stave__toggle::after,
.stave[open] .stave__toggle::before,
.stave[open] .stave__toggle::after {
	background: var(--midnight);
}

.stave__content {
	padding: 0.5rem 0.25rem clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 48rem) {
	.stave__summary {
		grid-template-columns: 7rem minmax(0, 1fr) 3rem;
		grid-template-areas:
			"mark title toggle"
			"mark teaser toggle";
		column-gap: 2rem;
		padding: 1.9rem 0.5rem 2rem;
	}

	.stave__mark {
		flex-direction: column;
		align-items: flex-end;
		align-self: center;
		gap: 0.3rem;
	}

	.stave__num {
		font-size: clamp(2.4rem, 1.4rem + 2vw, 3.2rem);
	}

	.stave__title {
		margin-top: 0;
	}

	.stave__content {
		padding-left: calc(7rem + 2rem + 0.5rem);
		padding-right: 3.5rem;
	}
}

/* Smooth open and close where the browser supports animating details. */
@media (prefers-reduced-motion: no-preference) {
	@supports (interpolate-size: allow-keywords) and selector(::details-content) {
		.staves {
			interpolate-size: allow-keywords;
		}

		.stave::details-content {
			height: 0;
			overflow: clip;
			transition: height 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), content-visibility 0.5s allow-discrete;
		}

		.stave[open]::details-content {
			height: auto;
		}
	}
}

.stave__intro {
	max-width: 31em;
	margin-bottom: 1.5rem;
	color: var(--parchment);
	font-size: var(--step-1);
	font-style: italic;
	line-height: 1.45;
}

.subhead {
	margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem;
	padding-bottom: 0.7rem;
	border-bottom: 3px double var(--rule);
	color: var(--gold-light);
	font-family: var(--display);
	font-size: var(--step-1);
	letter-spacing: 0.03em;
}

.stave__content > .subhead:first-child,
.stave__content > .stave__intro + .subhead,
.music .subhead {
	margin-top: 0.5rem;
}

.prose {
	max-width: 31em;
}

/* -------------------------------------------------------------- I. The story */

.pull {
	margin: 1.3em 0 1.2em;
	padding: 0.9em 0;
	border-top: 1px solid var(--rule-faint);
	border-bottom: 1px solid var(--rule-faint);
	color: var(--gold-light);
	font-family: var(--display);
	font-size: var(--step-2);
	line-height: 1.22;
	text-wrap: balance;
}

.question {
	position: relative;
	max-width: 17em;
	margin: 0 0 0.9em;
	color: var(--parchment);
	font-size: var(--step-4);
	font-style: italic;
	line-height: 1.1;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

.question::before,
.question::after {
	color: var(--gold);
}

.question::before {
	content: "\201C";
	position: absolute;
	left: -0.48em;
}

.question::after {
	content: "\201D";
}

@media (max-width: 40rem) {
	.question::before {
		position: static;
	}
}

.triptych {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: clamp(3rem, 6vw, 4.5rem) 0 0;
	padding: 0;
	list-style: none;
}

.triptych__caption {
	margin: 1.1rem 0 0;
	padding-left: 0.18em;
	color: var(--parchment);
	font-size: clamp(0.8rem, 0.72rem + 0.35vw, 0.98rem);
	letter-spacing: 0.18em;
	line-height: 1.6;
	text-align: center;
	text-transform: uppercase;
	text-wrap: balance;
}

@media (max-width: 47.99rem) {
	.triptych {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(70vw, 18rem);
		gap: 1.25rem;
		margin-inline: calc(var(--gutter) * -1 - 0.25rem);
		padding: 0.5rem calc(var(--gutter) + 0.25rem) 1rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 var(--gutter);
		scrollbar-width: none;
	}

	.triptych::-webkit-scrollbar {
		display: none;
	}

	.triptych__item {
		scroll-snap-align: start;
	}
}

/* -------------------------------------------------------------- II. Characters */

.roles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 2.25rem clamp(1.5rem, 3vw, 2.5rem);
}

.role {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 0;
	align-content: start;
	padding-top: 1rem;
	border-top: 1px solid var(--rule);
}

.role__name {
	align-self: end;
	margin: 0;
	color: var(--parchment);
	font-family: var(--display);
	font-size: var(--step-2);
	line-height: 1.12;
}

.role__desc {
	margin: 0.55rem 0 0;
}

.roles--compact {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	gap: 1.75rem clamp(1.25rem, 2.5vw, 2rem);
}

.roles--compact .role {
	display: block;
	grid-row: auto;
	border-top-color: var(--rule-faint);
}

.roles--compact .role__name {
	font-size: var(--step-1);
}

.roles--compact .role__desc {
	font-size: var(--step--1);
	line-height: 1.5;
}

.specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 1.1rem;
	margin: 0.75rem 0 0;
	font-size: var(--step--1);
	line-height: 1.45;
}

.specs div {
	display: flex;
	gap: 0.4em;
}

.specs dt {
	color: var(--parchment-muted);
	font-style: italic;
}

.specs dd {
	margin: 0;
	color: var(--gold-light);
}

.roles__ensemble {
	margin: 2.25rem 0 0;
	color: var(--parchment-muted);
	font-style: italic;
}

/* -------------------------------------------------------------- III. Music */

.music {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 60rem) {
	.music {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
		align-items: start;
	}
}

/* Songs and cast set like a theatre programme, with dotted leaders. */
.programme {
	margin: 0;
	padding: 0;
	list-style: none;
}

.programme li {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0.45rem 0;
}

.programme--numbered {
	counter-reset: song;
}

.programme--numbered li::before {
	counter-increment: song;
	content: counter(song);
	flex: 0 0 1.6rem;
	color: var(--gold);
	font-family: var(--display);
	font-size: 0.95em;
	font-variant-ligatures: no-common-ligatures;
}

.programme__title {
	font-style: italic;
}

.programme__listen {
	flex: 0 0 1.75rem;
	align-self: center;
	width: 1.75rem;
	height: 1.75rem;
	margin: -0.25rem -0.15rem;
}

.programme__listen::before {
	inset: 0.4rem;
}

.programme__icon {
	width: 0.95rem;
	height: 0.95rem;
}

.programme__leader {
	flex: 1 1 1.5rem;
	min-width: 1.5rem;
	border-bottom: 1px dotted rgb(176 138 88 / 0.55);
	transform: translateY(-0.28em);
}

.programme__note {
	color: var(--parchment-muted);
	font-size: var(--step--1);
	text-align: right;
}

/* -------------------------------------------------------------- IV. Show information: summary with icons */

.summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 3px double var(--rule);
}

.summary__item {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 0.3rem;
	padding: 1.6rem 0.9rem 1.7rem;
	border-bottom: 1px solid var(--rule-faint);
	text-align: center;
}

.summary__item:nth-child(2n) {
	border-left: 1px solid var(--rule-faint);
}

.summary__icon {
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.45rem;
	color: var(--gold);
}

.summary__label {
	color: var(--parchment-muted);
	font-size: var(--step--1);
	font-style: italic;
	line-height: 1.3;
}

.summary__value {
	color: var(--parchment);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.12rem);
	line-height: 1.35;
	text-wrap: balance;
}

@media (min-width: 60rem) {
	.summary {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.summary__item:nth-child(2n) {
		border-left: 0;
	}

	.summary__item:not(:nth-child(4n + 1)) {
		border-left: 1px solid var(--rule-faint);
	}
}

/* -------------------------------------------------------------- V. Creative team */

.person {
	max-width: 36em;
}

.person__name {
	margin: 0;
	color: var(--parchment);
	font-family: var(--display);
	font-size: var(--step-2);
	line-height: 1.15;
}

.person__role {
	margin: 0.3rem 0 0.8rem;
	color: var(--gold-light);
	font-style: italic;
}

.person__bio {
	max-width: 31em;
}

.person__note {
	margin-top: 1.5rem;
	color: var(--parchment-muted);
	font-style: italic;
}

/* -------------------------------------------------------------- Get in touch */

.contact-section {
	max-width: var(--content);
	margin: 0 auto;
	padding: 0 var(--gutter);
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

.contact {
	display: grid;
	justify-items: center;
	padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.25rem, 6vw, 5rem);
	text-align: center;
	background:
		radial-gradient(70% 90% at 50% 0%, rgb(176 138 88 / 0.1), transparent 70%),
		rgb(31 45 60 / 0.22);
}

.contact__title {
	margin: 0 0 1rem;
	color: var(--parchment);
	font-family: var(--display);
	font-size: var(--step-3);
	line-height: 1.05;
}

.contact__intro {
	max-width: 30em;
	color: var(--parchment);
}

.contact__email {
	margin-top: 0.75rem;
	color: var(--gold-light);
	font-family: var(--display);
	font-size: clamp(1.15rem, 0.5rem + 3.4vw, 2.5rem);
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-decoration: none;
	text-wrap: balance;
}

.contact__email:hover {
	color: var(--parchment);
}

.contact__note {
	max-width: 30em;
	margin: 0.9rem auto 1.9rem;
	color: var(--parchment-muted);
}

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

.site-footer {
	margin-top: var(--gap-section);
	padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 3rem;
	border-top: 1px solid var(--rule-faint);
	background: linear-gradient(to bottom, rgb(31 45 60 / 0.12), rgb(31 45 60 / 0.4));
	color: var(--parchment-muted);
	font-size: var(--step--1);
	text-align: center;
}

.site-footer__inner {
	display: grid;
	justify-items: center;
	gap: 0.2rem;
	max-width: 40rem;
	margin: 0 auto;
}

.site-footer__mark {
	width: auto;
	height: 3.2rem;
	margin-bottom: 1.1rem;
	opacity: 0.9;
}

.site-footer p {
	margin: 0;
}

/* Glitter Theatrical, quietly, in the site's gold. */
.parent-mark {
	display: grid;
	justify-items: center;
	gap: 0.45rem;
	margin: 1.75rem 0 0.25rem;
	padding: 1.25rem 2rem 0;
	border-top: 1px solid var(--rule-faint);
	color: var(--gold);
	text-decoration: none;
	opacity: 0.85;
	transition: opacity 0.25s ease;
}

.parent-mark:hover {
	color: var(--gold);
	opacity: 1;
}

.parent-mark__with {
	color: var(--parchment-muted);
	font-size: 0.82rem;
	font-style: italic;
}

.parent-mark__logo {
	width: 12rem;
	max-width: 62vw;
	height: auto;
}

.parent-mark__logo--upload {
	width: auto;
	max-width: 12rem;
	height: 2.6rem;
	object-fit: contain;
	filter: url(#tc-gold);
}

.site-footer__legal {
	margin-top: 1.25rem !important;
	font-size: 0.85rem;
	opacity: 0.8;
}

.site-footer__sep {
	display: inline-block;
	width: 0.3rem;
	height: 0.3rem;
	margin: 0 0.75rem 0.15rem;
	border: 1px solid var(--gold);
	transform: rotate(45deg);
}

/* -------------------------------------------------------------- Frames with Victorian corners */

.frame {
	position: relative;
	margin: 0;
	padding: clamp(0.55rem, 1.1vw, 0.85rem);
	border: 1px solid var(--rule);
	background: rgb(10 13 18 / 0.6);
}

.frame::before {
	content: "";
	position: absolute;
	inset: 5px;
	border: 1px solid var(--rule-faint);
	pointer-events: none;
}

.frame picture,
.frame img {
	width: 100%;
}

.corner {
	position: absolute;
	width: 2.1rem;
	height: 2.1rem;
	color: var(--gold);
	pointer-events: none;
}

.corner--tl {
	top: -0.4rem;
	left: -0.4rem;
}

.corner--tr {
	top: -0.4rem;
	right: -0.4rem;
	transform: scaleX(-1);
}

.corner--bl {
	bottom: -0.4rem;
	left: -0.4rem;
	transform: scaleY(-1);
}

.corner--br {
	bottom: -0.4rem;
	right: -0.4rem;
	transform: scale(-1);
}

.frame--small .corner {
	width: 1.5rem;
	height: 1.5rem;
	top: auto;
	bottom: auto;
	left: auto;
	right: auto;
}

.frame--small .corner--tl {
	top: -0.3rem;
	left: -0.3rem;
}

.frame--small .corner--tr {
	top: -0.3rem;
	right: -0.3rem;
}

.frame--small .corner--bl {
	bottom: -0.3rem;
	left: -0.3rem;
}

.frame--small .corner--br {
	bottom: -0.3rem;
	right: -0.3rem;
}

/* -------------------------------------------------------------- Other pages (privacy policy, 404, posts) */

.doc {
	max-width: 46rem;
	margin: 0 auto;
	padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0;
}

.doc__header {
	margin-bottom: clamp(2rem, 4vw, 3rem);
	text-align: center;
}

.doc__title {
	font-family: var(--display);
	font-size: var(--step-3);
}

.doc__numeral {
	margin: 0 0 0.5rem;
	color: var(--gold);
	font-family: var(--display);
	font-size: var(--step-2);
	letter-spacing: 0.2em;
}

.doc__date {
	margin: 0;
	color: var(--gold-light);
	font-style: italic;
}

.doc__subtitle {
	margin: 0.2rem 0 1rem;
	font-family: var(--display);
	font-size: var(--step-2);
}

.doc__subtitle a {
	text-decoration: none;
}

.doc__article + .doc__article {
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid var(--rule-faint);
}

.doc--404 .entry {
	text-align: center;
}

.entry > * + * {
	margin-top: 1em;
}

.entry h2,
.entry h3 {
	margin-top: 2em;
	font-family: var(--display);
	color: var(--parchment);
}

.entry h2 {
	font-size: var(--step-2);
}

.entry h3 {
	font-size: var(--step-1);
}

.entry ul,
.entry ol {
	padding-left: 1.25em;
}

.entry blockquote {
	margin: 1.5em 0;
	padding-left: 1.25em;
	border-left: 1px solid var(--gold);
	font-style: italic;
}

.entry img {
	height: auto;
}

.entry .wp-block-button__link {
	border: 1px solid var(--gold);
	border-radius: 0;
	background: rgb(176 138 88 / 0.1);
	color: var(--parchment);
}

/* -------------------------------------------------------------- Print */

@media print {
	.track__play,
	.track__seek,
	.track__audio,
	.programme__listen {
		display: none !important;
	}
}

/* -------------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
