/*
Theme Name: Afterimage
Theme URI: https://briangooding.com
Author: Brian Gooding
Author URI: https://briangooding.com
Description: A dark portfolio theme that presents photographs and instrumental music as one body of work, with a site-wide player and photograph-and-song pairings.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: afterimage
*/

:root {
	--bg: #100f0e;
	--surface: #1a1816;
	--ink: #efe9e0;
	--text: #cdc6bb;
	--muted: #9b9489;
	--rule: #2d2a26;
	--wave: #4a4640;
	--signal: #f37e7e;
	--on-signal: #1a0d0d;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(16px, 4vw, 56px);
	--measure: 68ch;
	--section: clamp(56px, 6vw, 88px);
	--gap: clamp(16px, 2vw, 28px);
	--row-gap: 40px;
	--head-gap: 24px;
	--dock-space: 0px;
	--end-space: 64px; /* space above the footer on every page (see "even space above the footer") */
	color-scheme: dark;
}

@media (max-width: 699px) {
	:root { --end-space: 40px; }
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	padding-bottom: var(--dock-space);
	overflow-x: hidden;
}

.has-dock {
	--dock-space: 232px;
}

img,
video,
canvas {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration-color: var(--wave);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
	color: var(--signal);
	text-decoration-color: currentColor;
}

:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
}

#content:focus {
	outline: 0;
}

h1,
h2,
h3,
h4 {
	color: var(--ink);
	font-family: var(--serif);
	font-weight: 300;
	line-height: 1.15;
	text-wrap: balance;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip-path: none;
	background: var(--signal);
	color: var(--on-signal);
}

.eyebrow,
.meta {
	margin: 0;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0.04em;
}

/* em dash between date and categories, and between a song's projects and its mood */
.meta__cats::before {
	content: "\2014";
	margin: 0 0.5em;
	color: var(--wave);
}

.meta a {
	text-decoration: none;
}

/* ---------- header ---------- */
.site-header {
	position: relative;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 32px;
	padding: 22px var(--gutter);
}

.site-header__brand {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 16px;
}

.wordmark {
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1.2;
	text-decoration: none;
	text-transform: lowercase;
}

.site-header__tagline {
	color: var(--muted);
	font-size: 0.8125rem;
}

.nav-toggle {
	display: none;
	padding: 8px 0 8px 16px;
	border: 0;
	background: none;
	color: var(--ink);
	font: inherit;
	cursor: pointer;
}

.site-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 6px 0;
	text-decoration: none;
	text-transform: lowercase;
}

#primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 26px;
}

#primary-menu > li {
	position: relative;
}

#primary-menu > li > a {
	color: var(--ink);
}

#primary-menu > li > a:hover,
#primary-menu > .current-menu-item > a {
	color: var(--signal);
}

#primary-menu > .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

@media (min-width: 900px) {
	#primary-menu > li > .sub-menu {
		position: absolute;
		top: 100%;
		right: 0;
		display: none;
		grid-auto-flow: column;
		grid-auto-columns: max-content;
		gap: 40px;
		padding: 20px 24px;
		border: 1px solid var(--rule);
		background: var(--surface);
	}

	#primary-menu > li:hover > .sub-menu,
	#primary-menu > li:focus-within > .sub-menu,
	#primary-menu > li.is-open > .sub-menu {
		display: grid;
	}

	.site-nav .sub-menu .sub-menu a {
		padding: 3px 0;
	}
}

.site-nav .sub-menu > .menu-item-has-children > a {
	color: var(--muted);
	font-size: 0.8125rem;
	pointer-events: none;
}

@media (max-width: 899px) {
	.nav-toggle {
		display: block;
		margin-left: auto;
	}

	.site-header {
		align-items: center;
	}

	.site-header__brand {
		flex: 1;
		min-width: 0;
	}

	.site-nav {
		display: none;
		flex-basis: 100%;
		padding: 8px 0 12px;
		border-top: 1px solid var(--rule);
	}

	.site-nav.is-open {
		display: block;
	}

	#primary-menu {
		display: block;
	}

	#primary-menu a {
		padding: 10px 0;
	}

	#primary-menu > li > .sub-menu {
		display: none;
		padding: 0 0 8px 16px;
	}

	#primary-menu > li.is-open > .sub-menu {
		display: block;
	}
}

/* ---------- light mode ---------- */
html[data-theme="light"] {
	--bg: #f5f1ea;
	--surface: #ebe5db;
	--ink: #1a1816;
	--text: #3b3732;
	--muted: #6f685f;
	--rule: #dcd4c8;
	--wave: #b5ac9f;
	--signal: #c94f49;
	--on-signal: #fff8f5;
	color-scheme: light;
}
.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: 36px;
	height: 36px;
	margin: -6px -8px -6px 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--ink);
	cursor: pointer;
	transition: color 0.15s;
}
.theme-toggle:hover { color: var(--signal); }
.site-header .site-nav { margin-left: auto; }
.site-header .theme-toggle { margin-left: -22px; }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (max-width: 899px) {
	.site-header .theme-toggle { order: 1; margin: 0 -8px 0 -28px; }
	.site-header .site-nav { order: 2; margin-left: 0; }
}

/* ---------- photographs and waveforms ---------- */
.photo-frame {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--surface);
}

.photo-frame img {
	width: 100%;
}

/* Photographs fading through while a song plays. Contain keeps the signature in frame. */
.photo-frame img.slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--bg);
}

.wave {
	width: 100%;
	height: 44px;
	margin-top: 8px;
}

/* ---------- play button ---------- */
.play-button {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 14px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.play-button__icon {
	position: relative;
	display: block;
	flex: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--signal);
	border-radius: 50%;
	transition: background 0.15s;
}

.play-button__icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	margin: -7px 0 0 -4px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid var(--signal);
}

.play-button:hover .play-button__icon {
	background: var(--signal);
}

.play-button:hover .play-button__icon::before {
	border-left-color: var(--on-signal);
}

.play-button.is-playing .play-button__icon {
	background: var(--signal);
}

.play-button.is-playing .play-button__icon::before {
	width: 11px;
	height: 13px;
	margin: -6.5px 0 0 -5.5px;
	border: 0;
	border-right: 4px solid var(--on-signal);
	border-left: 4px solid var(--on-signal);
}

.play-button--large .play-button__icon {
	width: 60px;
	height: 60px;
}

/* ---------- lead ---------- */
.lead {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: var(--gap) calc(var(--gap) * 2);
	align-items: center;
	max-width: 1500px;
	margin: 0 auto;
	padding: var(--head-gap) var(--gutter) calc(var(--section) / 2);
}

.lead__photo {
	margin: 0;
}

.lead__title {
	margin: 14px 0 12px;
	font-size: clamp(2.75rem, 5.4vw, 5rem);
	line-height: 1.02;
	letter-spacing: -0.015em;
}

.lead__with {
	margin: 0 0 var(--head-gap);
	font-family: var(--serif);
	font-size: 1.1875rem;
	font-style: italic;
	font-weight: 300;
}

.lead__intro {
	max-width: 36ch;
	margin: var(--head-gap) 0 0;
	padding-top: var(--head-gap);
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 0.9375rem;
}

@media (max-width: 899px) {
	.lead {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- sections ---------- */
.section {
	max-width: 1500px;
	margin: 0 auto;
	padding: calc(var(--section) / 2) var(--gutter);
}

.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 24px;
	margin-bottom: var(--head-gap);
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rule);
}

.section__head h2 {
	margin: 0;
	font-size: clamp(1.625rem, 3vw, 2.25rem);
}

.section__head a {
	color: var(--muted);
	font-size: 0.9375rem;
}

/* ---------- pairings ---------- */
.pairing-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--row-gap) var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pairing__row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 8px;
}

.pairing > .photo-frame {
	cursor: pointer;
}

.pairing > .photo-frame img {
	transition: opacity 0.2s;
}

.pairing > .photo-frame:hover img {
	opacity: 0.85;
}

.pairing__open {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-align: left;
	cursor: pointer;
}

.pairing__open:hover {
	color: var(--signal);
}

.lead__title:focus {
	outline: 0;
}

.pairing__track {
	margin: 0 0 2px;
	font-size: 1.3125rem;
}

@media (max-width: 699px) {
	.pairing-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- moods ---------- */
.mood-list {
	columns: 2;
	column-gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mood-list li {
	break-inside: avoid;
	border-bottom: 1px solid var(--rule);
}

.mood-list a {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 13px 0;
	text-decoration: none;
}

.mood-list__title {
	flex: 1;
	min-width: 0;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.25rem;
	font-weight: 300;
	transition: color 0.15s;
}

.mood-list__title::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 12px;
	border-radius: 50%;
	background: hsl(var(--h) 55% 60%);
	transform: translateY(-2px);
}

.mood-list a:hover .mood-list__title {
	color: var(--signal);
}

.mood-list__count {
	flex: none;
	color: var(--muted);
	font-size: 0.8125rem;
}

@media (max-width: 699px) {
	.mood-list {
		columns: 1;
	}
}

/* ---------- series ---------- */
.series__group {
	margin: var(--row-gap) 0 12px;
}

.series__group:first-of-type {
	margin-top: 0;
}

/* Each group fills the full width, whatever its number of series. */
.series-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: var(--row-gap) var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 699px) {
	.series-grid {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.series-grid li.series-grid__wide {
		grid-column: 1 / -1;
	}
}

.series-grid a {
	display: block;
	text-decoration: none;
}

.series-grid .photo-frame {
	aspect-ratio: 3 / 2;
}

.series-grid img {
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s;
}

.series-grid a:hover img {
	opacity: 0.8;
}

.series-grid__title {
	display: block;
	margin-top: 8px;
	color: var(--ink);
}

.series-grid a:hover .series-grid__title {
	color: var(--signal);
}

/* ---------- blog ---------- */
/* Three across, so six posts per page fill two even rows (one column on phones). */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--row-gap) var(--gap);
}

@media (max-width: 699px) {
	.post-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.card .photo-frame {
	aspect-ratio: 3 / 2;
	margin-bottom: 12px;
}

.card .photo-frame img {
	height: 100%;
	object-fit: cover;
}

.card__title {
	margin: 4px 0 8px;
	font-size: 1.3125rem;
}

.card__title a {
	text-decoration: none;
}

.card__excerpt p {
	margin: 0;
	font-size: 0.9375rem;
}

/* ---------- pages and articles ---------- */
.page-head {
	margin-bottom: 26px;
}

.page-head h1 {
	margin: 6px 0 0;
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	letter-spacing: -0.01em;
}

.page-head__intro {
	max-width: var(--measure);
	margin-top: 10px;
	color: var(--muted);
}

.article {
	max-width: calc(var(--measure) + 2 * var(--gutter));
	margin: 0 auto;
	padding: clamp(20px, 4vw, 48px) var(--gutter) clamp(48px, 6vw, 88px);
}

.article--wide {
	max-width: 1500px;
}

.article--wide .entry-content > p,
.article--wide .entry-content > h2,
.article--wide .entry-content > h3,
.article--wide .entry-content > ul {
	max-width: var(--measure);
}

.entry-content {
	overflow-wrap: break-word;
}


.entry-content h2 {
	margin: 1.8em 0 0.5em;
	font-size: 1.875rem;
}

.entry-content h3 {
	margin: 1.6em 0 0.4em;
	font-size: 1.4375rem;
}

.entry-content img {
	height: auto;
}

.entry-content a {
	color: var(--ink);
	text-decoration-color: var(--signal);
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding-left: 20px;
	border-left: 1px solid var(--signal);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.25rem;
	font-weight: 300;
}

.entry-content pre {
	overflow-x: auto;
	padding: 18px;
	background: var(--surface);
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption,
figure {
	max-width: 100%;
}

.wp-caption-text,
figcaption {
	color: var(--muted);
	font-size: 0.8125rem;
}

/* ---------- listen while you look ---------- */
.score {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
	padding: 12px 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.score p {
	margin: 0;
	line-height: 1.3;
}

.score .eyebrow {
	display: block;
}

.score__track {
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.1875rem;
	font-weight: 300;
}

/* ---------- posts navigation, forms, comments ---------- */
.post-navigation .nav-links,
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	padding-top: 18px;
	border-top: 1px solid var(--rule);
}

/* blog pagination: equal space above and below the page numbers */
.pagination .nav-links {
	margin-top: calc(var(--end-space) / 2);
	padding-top: calc(var(--end-space) / 2);
}

.post-navigation a {
	color: var(--ink);
	text-decoration: none;
}

.post-navigation .eyebrow {
	display: block;
}

.page-numbers.current {
	color: var(--signal);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--wave);
	border-radius: 0;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
}

input[type="submit"],
button[type="submit"],
.search-submit {
	padding: 10px 22px;
	border: 1px solid var(--signal);
	border-radius: 0;
	background: none;
	color: var(--signal);
	font: inherit;
	cursor: pointer;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.search-submit:hover {
	background: var(--signal);
	color: var(--on-signal);
}

/* ---------- footer ---------- */
.site-footer {
	display: grid;
	justify-items: center;
	gap: 14px;
	text-align: center;
	margin-top: 0;
	padding: calc(var(--section) / 2) var(--gutter);
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 0.9375rem;
}

.site-footer__invite {
	margin: 0;
	color: var(--ink);
	font-family: var(--serif);
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	font-weight: 300;
	line-height: 1.25;
}

.site-footer__invite a {
	text-decoration-color: var(--signal);
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__copyright {
	margin: 0;
	font-size: 0.8125rem;
	white-space: nowrap;
}


/* ---------- player ---------- */
/*
 * YouTube's terms require the player to stay visible at 200x200 or more and uncovered,
 * so the video tile is part of the dock rather than hidden behind custom controls.
 */
.dock {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 30;
	display: flex;
	align-items: stretch;
	border-top: 1px solid var(--wave);
	background: var(--surface);
}

.dock[hidden] {
	display: none;
}

.dock__video {
	position: relative;
	flex: none;
	width: 200px;
	height: 200px;
	background: #000;
}

.dock__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	opacity: 0.55;
	transition: opacity 0.2s;
}

/* The album cover sits back so the photographs lead, and returns when pointed at. */
.dock__video:hover iframe,
.dock__video:focus-within iframe {
	opacity: 1;
}

.dock__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	padding: 12px var(--gutter);
}

.dock__title,
.dock__source {
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dock__title {
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1.25;
}

.dock__source {
	color: var(--muted);
	font-size: 0.875rem;
}

.dock__seek {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--muted);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}

.dock__wave {
	position: relative;
	flex: 1;
	min-width: 0;
	height: 44px;
}

.dock__wave .wave {
	margin: 0;
}

.dock__wave input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.dock__wave input:focus-visible {
	opacity: 0.35;
}

.dock__controls {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dock__controls button {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--ink);
	cursor: pointer;
}

.dock__controls button:hover {
	background: var(--rule);
}

.dock__controls svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.dock__controls .dock__play {
	border: 1px solid var(--signal);
	color: var(--signal);
}

.dock__controls .dock__play:hover {
	background: var(--signal);
	color: var(--on-signal);
}

.dock__external {
	margin-left: 10px;
	color: var(--muted);
	font-size: 0.875rem;
}

.dock__controls .dock__close {
	margin-left: auto;
	color: var(--muted);
}

/* Minimized: title and controls only. A mood page sets this when a song in its list starts (afterimage.js). */
.dock--minimized .dock__video,
.dock--minimized .dock__source,
.dock--minimized .dock__seek {
	display: none;
}

.dock--minimized .dock__toggle svg {
	transform: rotate(180deg);
}

/* On wider screens the player is a small corner card, so it stays off the photographs.
 * It floats over the page's corner, so the page gets no extra space below it. */
@media (min-width: 900px) {
	.has-dock {
		--dock-space: 0px;
	}

	.dock {
		right: 16px;
		bottom: 16px;
		left: auto;
		flex-direction: column;
		width: 232px;
		border: 1px solid var(--rule);
	}

	.dock__video {
		width: 100%;
	}

	.dock__body {
		flex: none;
		gap: 6px;
		padding: 10px 12px;
	}

	.dock__title {
		font-size: 1.125rem;
		white-space: normal;
	}

	.dock__source {
		font-size: 0.75rem;
		line-height: 1.35;
		white-space: normal;
	}

	.dock__seek > span,
	.dock__external {
		display: none;
	}

	.dock__wave,
	.dock__wave .wave {
		height: 28px;
	}

	.dock__controls {
		gap: 2px;
	}

	.dock__controls button {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 699px) {
	.has-dock {
		--dock-space: 216px;
	}

	.has-dock.dock-minimized {
		--dock-space: 64px;
	}

	.dock__body {
		gap: 4px;
		padding: 8px 10px;
	}

	.dock__title {
		font-size: 1.0625rem;
	}

	.dock__source {
		font-size: 0.8125rem;
	}

	.dock__seek > span,
	.dock__external {
		display: none;
	}

	.dock__wave,
	.dock__wave .wave {
		height: 32px;
	}

	.dock__controls {
		gap: 0;
	}

	.dock__controls button {
		width: 36px;
		height: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}


/* ---------- even space above the footer on every page: 64px, 40px on phones ----------
 * The last block on the page ends flush (no trailing margins); the page itself adds --end-space (set in :root);
 * the footer adds nothing.
 */
.site-main > .article,
.site-main > article { padding-bottom: var(--end-space); }
.site-main > .section:last-child { padding-bottom: var(--end-space); }
.site-main > :last-child :is(p, ul, ol, li, figure, div, section, form, nav, blockquote, table, .aig-gallery):last-child { margin-bottom: 0; }
/* the comment form ends on a hidden spam-check box, so its last visible line is the one before it */
.site-main p:has(+ .akismet-fields-container),
.site-main p:has(+ p.akismet-fields-container) { margin-bottom: 0; }
/* empty paragraphs left by the editor take up no space */
.entry-content > p:empty { display: none; }
/* project pages end on the photo gallery (a script tag may follow it) */
.site-main .entry-content > .aig-gallery:last-of-type { margin-bottom: 0; }

/* ---------- mood pages: no colour dot or "Mood" label above the intro ---------- */
.ca-mood .ca-hero p.ca-eyebrow { display: none; }


/* ---------- [project_list] cards (selected poetry, all photography projects) ---------- */
.bdg-project-list h2 {
	font-family: var(--serif);
	font-weight: 300;
	font-size: 30px;
	margin: 54px 0 15px;
}
.bdg-project-list h2:first-child { margin-top: 0; }
.bdg-project-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 20px;
	margin: 0 0 2em;
}
.bdg-project-grid:last-child { margin-bottom: 0; }
.bdg-project-card {
	display: block;
	flex: var(--g, 13.33) 1 calc(var(--r, 1.333) * 200px);
	min-width: 0;
	text-decoration: none;
	color: var(--ink);
	border: 0;
}
.bdg-project-card__img {
	display: block;
	width: 100%;
	aspect-ratio: var(--r, 1.333);
	max-height: 360px;
	overflow: hidden;
	background: var(--surface);
}
.bdg-project-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	margin: 0;
	transition: opacity .3s ease, transform .5s ease;
}
.bdg-project-card:hover .bdg-project-card__img img { opacity: .85; transform: scale(1.03); }
.bdg-project-card--noimg .bdg-project-card__img { aspect-ratio: auto; height: 0; }
.bdg-project-card__title {
	display: block;
	margin-top: .6em;
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.3;
	transition: color .15s;
}
.bdg-project-card:hover .bdg-project-card__title { color: var(--signal); }


/* ---------- menu: "nature" / "people" group headings read as headings, not smaller than their items ---------- */
.site-nav .sub-menu > li.menu-item-has-children > a {
	font-family: var(--serif);
	font-size: 1.125rem;
	font-weight: 300;
	letter-spacing: 0;
	text-transform: none;
}

/* ---------- project pages: intro text runs the full width of the photographs, justified ---------- */
.article--wide .entry-content > .project-intro > * {
	max-width: none;
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}

/* ---------- blog cards without a featured image ---------- */
.card__text-tile {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	margin-bottom: 12px;
	padding: 18px 20px;
	overflow: hidden;
	background: var(--surface);
	color: var(--text);
	font-family: var(--serif);
	font-size: 1.0625rem;
	line-height: 1.55;
	text-decoration: none;
	border: 0;
}
.card__text-tile::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 64px;
	background: linear-gradient(to bottom, transparent, var(--surface));
	pointer-events: none;
}
.card__text-tile:hover { color: var(--ink); }

/* ---------- comment box as wide as the post text ---------- */
.comment-form textarea,
.comment-respond textarea {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/* ---------- cinematic audio page ---------- */
.ca-seo-intro { max-width: var(--measure); }
.entry-content .ca-section-title {
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 300;
	line-height: 1.2;
	margin: 54px 0 15px;
}
/* "find me on" cards all the same height */
.entry-content ul.links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	grid-auto-rows: 1fr;
	gap: 12px;
}
.entry-content ul.links > li { height: 100%; margin: 0; }
.entry-content ul.links > li > a { height: 100%; box-sizing: border-box; }

/* Hover arrows on the song's photograph: low opacity, stronger on the arrow itself. */
.slide-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 40px;
	height: 56px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	opacity: 0;
	cursor: pointer;
	text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
	transition: opacity 0.2s ease;
}

.slide-arrow--prev { left: 4px; }
.slide-arrow--next { right: 4px; }

.has-slide-arrows:hover .slide-arrow { opacity: 0.3; }
.has-slide-arrows .slide-arrow:hover,
.has-slide-arrows .slide-arrow:focus-visible { opacity: 0.7; }

@media (hover: none) {
	.has-slide-arrows .slide-arrow { opacity: 0.3; }
}

/* Gallery viewer: prev/next are the plugin's own (halves of the photo, as Modula had). */
.aig-viewer .aig-btn:hover,
.aig-viewer .aig-btn:focus-visible {
	opacity: 0.8;
}



/* ---------- [monthly_albums]: colour timeline, covers by year, and the sleeve viewer ---------- */
/* the intro: the page's own text above the gallery (or the default one) */
.entry-content > p:has(~ .albums),
.albums__lede {
	max-width: var(--measure);
	margin: 0 0 clamp(28px, 4vw, 44px);
	font-family: var(--serif);
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	font-weight: 300;
	line-height: 1.55;
	color: var(--text);
}

/* one stripe per album, in the cover's own colour, oldest on the left */
.albums__spectrum {
	display: flex;
	height: clamp(44px, 6vw, 72px);
	margin: 0 0 clamp(72px, 9vw, 120px);
}
.albums__spectrum a {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	background: var(--c);
	transition: flex-grow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.3s;
}
.albums__spectrum a:first-child { border-radius: 3px 0 0 3px; }
.albums__spectrum a:last-child { border-radius: 0 3px 3px 0; }
.albums__spectrum a:hover,
.albums__spectrum a:focus-visible {
	flex-grow: 24; /* about a third of the band: room for the label */
	z-index: 1;
}
/* hovering a stripe opens it wide enough to show its month and album inside it (--t: dark or light text for its colour) */
.albums__spectrum a::before {
	content: attr(data-label);
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	padding: 0 14px;
	overflow: hidden;
	text-align: center;
	color: var(--t, #f5f1ea);
	font-family: var(--serif);
	font-size: 0.9375rem;
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}
.albums__spectrum a:hover::before,
.albums__spectrum a:focus-visible::before {
	opacity: 1;
	transition-delay: 0.15s; /* once the stripe has opened */
}
@media (hover: none) {
	.albums__spectrum a::before { display: none; } /* a tap opens the album instead */
}

.albums__spectrum a[data-year]::after {
	content: attr(data-year);
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	padding-left: 8px;
	border-left: 1px solid var(--wave);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	line-height: 1;
	color: var(--muted);
	pointer-events: none;
}

.albums__year {
	display: grid;
	grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
	gap: var(--gap);
	margin-bottom: clamp(64px, 8vw, 112px);
}
.albums__year h2 {
	position: sticky;
	top: 96px;
	align-self: start;
	margin: -0.12em 0 0;
	font-size: clamp(3rem, 7vw, 5.6rem);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px var(--wave);
	font-variant-numeric: lining-nums;
}

.albums__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
	gap: clamp(32px, 4vw, 52px) clamp(18px, 2.4vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.entry-content .albums__grid > li { margin: 0; }

.album__open {
	display: block;
	color: inherit;
	text-decoration: none;
}
.album__cover {
	position: relative;
	display: block;
	aspect-ratio: 1;
	background: var(--c);
}
.album__cover img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s;
}
/* hover as on the home page's pairings: the cover fades a little (over the page colour, not its own) */
.album__open:hover .album__cover { background: var(--surface); }
.album__open:hover .album__cover img { opacity: 0.85; }
.album__open:focus-visible { outline: 0; }
.album__open:focus-visible .album__cover { outline: 2px solid var(--signal); outline-offset: 4px; }

.album__lock {
	position: absolute;
	z-index: 2;
	top: 8px;
	right: 8px;
	padding: 2px 8px;
	border-radius: 20px;
	background: rgba(16, 15, 14, 0.72);
	color: #efe9e0;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
}
.album__month {
	display: block;
	margin-top: 16px;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.album__code {
	margin-left: 0.5em;
	text-transform: none;
	letter-spacing: 0.06em;
	opacity: 0.7;
}
.album__title {
	display: block;
	margin-top: 4px;
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 300;
	line-height: 1.3;
	color: var(--ink);
	transition: color 0.15s;
}
.album__open:hover .album__title { color: var(--signal); }
.album__palette {
	display: flex;
	gap: 3px;
	margin-top: 12px;
}
.album__palette i {
	flex: 1;
	height: 3px;
	border-radius: 1px;
	background: var(--s);
}

/* months with no album keep their place in the timeline */
.albums__gap {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	aspect-ratio: 1;
	padding: 12px;
	border: 1px dashed var(--rule);
	text-align: center;
}
.albums__gap-range {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 300;
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--muted);
}
.albums__gap-note {
	margin-top: 6px;
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wave);
}
.albums__gap-why {
	max-width: 22ch;
	margin-top: 12px;
	font-family: var(--serif);
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.45;
	color: var(--muted);
}

@media (max-width: 799px) {
	.albums__year { grid-template-columns: minmax(0, 1fr); }
	.albums__year h2 { position: static; margin: 0; font-size: 3.2rem; }
	.albums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
	.album__title { font-size: 1.05rem; }
	.albums__spectrum a[data-year]::after { font-size: 0.625rem; padding-left: 4px; letter-spacing: 0.06em; }
}

/* the sleeve: always a dark room, washed in the album's colour */
html.sleeve-open { overflow: hidden; }
.sleeve {
	--ink: #efe9e0;
	--text: #cdc6bb;
	--muted: #a8a196;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #0c0b0a;
	color: var(--text);
	overflow-y: auto;
	overscroll-behavior: contain;
	color-scheme: dark;
}
.sleeve::backdrop { background: rgba(0, 0, 0, 0.7); }
.sleeve__wash {
	position: fixed;
	inset: 0;
	overflow: hidden;
	background: radial-gradient(ellipse at 28% 38%, color-mix(in srgb, var(--c) 42%, transparent), transparent 72%), #0c0b0a;
	pointer-events: none;
}
.sleeve__wash img {
	position: absolute;
	inset: -15%;
	width: 130%;
	max-width: none;
	height: 130%;
	object-fit: cover;
	filter: blur(70px) saturate(1.3);
	opacity: 0.32;
}
.sleeve__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: start;
	max-width: 1440px;
	min-height: 100%;
	margin: 0 auto;
	padding: clamp(64px, 8vw, 112px) clamp(64px, 7vw, 120px);
}
.sleeve__cover {
	position: sticky;
	top: clamp(64px, 8vw, 112px);
	margin: 0;
}
.sleeve__cover img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--c);
	box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sleeve__month {
	margin: 0;
	font-size: 0.8125rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}
.sleeve__title {
	margin: 0.15em 0 0.45em;
	font-size: clamp(2.2rem, 4.4vw, 3.8rem);
	color: var(--ink);
}
.sleeve__palette {
	display: flex;
	gap: 8px;
	margin-bottom: 36px;
}
.sleeve__palette i {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--s);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.sleeve .album__tracks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
	gap: 22px 32px;
	padding: 22px 0;
	margin-bottom: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sleeve .album__tracks h4 {
	margin: 0 0 10px;
	font-family: var(--sans);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}
.sleeve .album__tracks ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: t;
}
.sleeve .album__tracks li {
	counter-increment: t;
	display: flex;
	gap: 14px;
	padding: 3px 0;
	color: var(--ink);
	line-height: 1.45;
}
.sleeve .album__tracks li::before {
	content: counter(t, decimal-leading-zero);
	flex: none;
	width: 2.2em;
	font-size: 0.8125rem;
	line-height: 1.85;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.sleeve .album__tracks ol[data-side="b"] li,
.sleeve .album__tracks ol[data-side="c"] li { color: var(--text); }
.sleeve .album__tracks ol[data-side="b"] li::before { content: "b" counter(t, decimal-leading-zero); }
.sleeve .album__tracks ol[data-side="c"] li::before { content: "c" counter(t, decimal-leading-zero); }
.sleeve .album__notes p {
	max-width: 62ch;
	margin: 0 0 1.1em;
	font-family: var(--serif);
	font-size: 1.1rem;
	font-weight: 300;
	line-height: 1.7;
}
.sleeve .album__locked { font-style: italic; color: var(--muted); }
.sleeve__link { margin: 36px 0 0; }
.sleeve__link a {
	display: inline-block;
	padding: 0.7em 1.3em;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 40px;
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sleeve__link a:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #100f0e;
}
.sleeve__btn {
	position: fixed;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0 0 4px;
	border: 0;
	border-radius: 50%;
	background: rgba(12, 11, 10, 0.45);
	color: #efe9e0;
	font: 300 2rem/1 var(--sans);
	cursor: pointer;
	transition: background 0.2s;
}
.sleeve__btn:hover { background: rgba(12, 11, 10, 0.8); }
.sleeve__btn[hidden] { display: none; }
.sleeve__close { top: 16px; right: 16px; }
.sleeve__prev {
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
}
.sleeve__next {
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
}

@media (max-width: 799px) {
	.sleeve__inner { grid-template-columns: minmax(0, 1fr); padding: 72px 16px 96px; gap: 28px; }
	.sleeve__cover { position: static; }
	.sleeve__prev,
	.sleeve__next { top: auto; bottom: 16px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.albums__spectrum a,
	.album__cover img { transition: none; }
}

/* ==========================================================================
   Existing content (was assets/css/legacy.css): carried over from cube-blog-child and recoloured
   ========================================================================== */
/*-------------------------------------------------plugin specific--*/
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	border-color: var(--signal);
}

.contact-form form p:has(input[type="text"], input[type="email"], select) {
	width: auto;
	min-width: 200px;
	display: flow-root;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select {
	width: 100%;
	max-width: 320px;
}

.contact-form textarea {
	width: 100%;
	max-width: 100%;
}

.contact-form__error {
	display: block;
	margin-top: 4px;
	color: var(--signal);
	font-size: 0.9em;
}

.contact-form [aria-invalid="true"] { border-color: var(--signal); }

.contact-form__notice {
	padding: 10px 14px;
	border: 1px solid var(--rule);
}

.contact-form__notice--error { border-color: var(--signal); }

.contact-form .contact-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/*-------------------------------------------------music page--*/
.bg-music {
	--line: var(--rule);
	--card: var(--surface);
	max-width: 760px;
	margin: 0 auto;
	color: var(--text);
	line-height: 1.6;
}

.bg-music * {
	box-sizing: border-box;
}

.bg-music .intro {
	width: auto;
	color: var(--muted);
	margin: 0 0 2rem;
}

.bg-music h2 {
	color: var(--ink);
	font-size: 1.15rem;
	font-weight: 400;
	margin: 2.5rem 0 1rem;
}

.bg-music .links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bg-music .links a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	background: var(--card);
	text-decoration: none;
	transition: border-color 0.15s;
}

.bg-music .links a:hover {
	border-color: var(--signal);
}

.bg-music .links svg {
	width: 26px;
	height: 26px;
	flex: none;
}

.bg-music .links span {
	display: flex;
	flex-direction: column;
	color: var(--ink);
	font-weight: 500;
	line-height: 1.25;
}

.bg-music small {
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 400;
}

.bg-music .player {
	border: 1px solid var(--line);
	overflow: hidden;
	background: var(--card);
}

.bg-music .screen {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.bg-music .screen > * {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bg-music .now {
	padding: 14px 16px 4px;
}

.bg-music .title {
	color: var(--ink);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bg-music .sub,
.bg-music .bar,
.bg-music .note {
	color: var(--muted);
	font-size: 0.8rem;
}

.bg-music .bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px;
	font-variant-numeric: tabular-nums;
}

.bg-music .bar input {
	flex: 1;
	accent-color: var(--signal);
}

.bg-music .controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	padding: 6px 16px 16px;
}

.bg-music .controls button {
	appearance: none;
	border: 0;
	padding: 8px;
	border-radius: 50%;
	background: none;
	color: var(--text);
	line-height: 0;
	cursor: pointer;
}

.bg-music .controls button:hover {
	background: var(--line);
	color: var(--ink);
}

.bg-music .controls button.on {
	color: var(--signal);
}

.bg-music .controls .play {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--signal);
	color: var(--signal);
}

.bg-music .controls .play:hover {
	background: var(--signal);
	color: var(--on-signal);
}

.bg-music .controls svg {
	width: 22px;
	height: 22px;
}

.bg-music .note {
	margin-top: 0.75rem;
}

/*-------------------------------------------cinematic audio moods--*/
.ca-mood,
.ca-moods {
	--h: 0;
	color: var(--text);
}

.ca-mood[data-mood="calm"],
.ca-moods .mood-calm { --h: 150; }
.ca-mood[data-mood="nostalgic"],
.ca-moods .mood-nostalgic { --h: 32; }
.ca-mood[data-mood="hopeful"],
.ca-moods .mood-hopeful { --h: 48; }
.ca-mood[data-mood="playful"],
.ca-moods .mood-playful { --h: 330; }
.ca-mood[data-mood="melancholy"],
.ca-moods .mood-melancholy { --h: 222; }
.ca-mood[data-mood="uneasy"],
.ca-moods .mood-uneasy { --h: 265; }
.ca-mood[data-mood="eerie"],
.ca-moods .mood-eerie { --h: 190; }
.ca-mood[data-mood="experimental"],
.ca-moods .mood-experimental { --h: 95; }
.ca-mood[data-mood="mysterious"],
.ca-moods .mood-mysterious { --h: 10; }

.ca-mood *,
.ca-moods * {
	box-sizing: border-box;
}

.ca-mood p,
.ca-mood ul,
.ca-mood dl,
.ca-mood h2,
.ca-moods p,
.ca-moods h2 {
	margin: 0;
}

.ca-mood h2,
.ca-moods h2 {
	color: var(--ink);
	font-size: 1.25rem;
	line-height: 1.4;
	text-transform: lowercase;
}

.ca-mood a {
	color: var(--signal);
	text-decoration: none;
}

.ca-mood .ca-crumbs {
	font-size: 0.8125rem;
	color: var(--muted);
	text-transform: lowercase;
}

.ca-mood .ca-crumbs a {
	color: var(--signal);
}

.ca-mood .ca-hero {
	display: grid;
	gap: 14px;
	padding: 16px 0 28px;
	border-bottom: 1px solid var(--rule);
}

.ca-mood .ca-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: var(--muted);
	text-transform: lowercase;
}

.ca-mood .ca-eyebrow::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: hsl(var(--h) 55% 60%);
}

.ca-mood .ca-lede {
	color: var(--muted);
	max-width: 62ch;
}

.ca-mood .listen {
	justify-self: start;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--rule);
	padding: 10px 16px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ca-mood .listen::before {
	content: "";
	width: 0;
	height: 0;
	border-left: 9px solid var(--signal);
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
}

.ca-mood .listen:hover,
.ca-mood .listen:focus {
	border-color: var(--signal);
}

.ca-mood .listen small {
	color: var(--muted);
	font-size: 13px;
}

.ca-mood .ca-songs {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: song;
	border-top: 1px solid var(--rule);
}

.ca-mood .ca-songs li {
	counter-increment: song;
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--rule);
}

.ca-mood .ca-songs li::before {
	content: counter(song, decimal-leading-zero);
	font-size: 12px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.ca-mood .ca-songs a {
	flex: 1;
	min-width: 0;
	color: var(--ink);
}

.ca-mood .ca-songs a:hover,
.ca-mood .ca-songs li.is-playing a,
.ca-mood .ca-songs li.is-playing::before {
	color: var(--signal);
}

.ca-mood .ca-songs span {
	font-size: 14px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.ca-mood .glance {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 20px 0;
	border-bottom: 1px solid var(--rule);
}

.ca-mood .glance div {
	padding-right: 16px;
	min-width: 0;
}

.ca-mood .glance dt {
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--muted);
}

.ca-mood .glance dd {
	margin: 2px 0 0;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.ca-mood section {
	display: grid;
	gap: 14px;
	padding: 28px 0;
	border-bottom: 1px solid var(--rule);
}

.ca-mood section:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

.ca-mood .cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 40px;
}

.ca-mood .cols > div {
	display: grid;
	gap: 8px;
	align-content: start;
	min-width: 0;
}

.ca-mood .cols strong {
	color: var(--ink);
	font-weight: 500;
	text-transform: lowercase;
}

.ca-mood ul.list {
	padding-left: 1.1em;
	display: grid;
	gap: 4px;
	list-style: disc;
}

.ca-mood ul.list li {
	margin: 0;
}

.ca-mood ul.list li::marker {
	color: var(--signal);
}

.ca-mood .scenes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
}

.ca-mood .scenes li {
	margin: 0;
	border: 1px solid var(--rule);
	padding: 4px 12px;
	font-size: 15px;
}

.ca-mood .refs {
	overflow-x: auto;
}

.ca-mood table {
	width: 100%;
	border-collapse: collapse;
	min-width: 520px;
	margin: 0;
	border: 0;
}

.ca-mood th,
.ca-mood td {
	text-align: left;
	padding: 10px 12px 10px 0;
	border: 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
	background: none;
}

.ca-mood th {
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--muted);
}

.ca-mood td:first-child {
	color: var(--ink);
}

.ca-mood td.yr {
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}

.ca-mood .pager {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	flex-wrap: wrap;
}

.ca-mood .pager a {
	display: grid;
}

.ca-mood .pager a span {
	font-size: 0.8125rem;
	color: var(--muted);
}

.ca-mood .pager a strong {
	color: var(--ink);
	font-size: 20px;
	font-weight: 400;
	text-transform: lowercase;
}

.ca-mood .pager a:hover strong {
	color: var(--signal);
}

.ca-mood .pager .next {
	text-align: right;
	margin-left: auto;
}

.ca-mood .ca-player {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	background: #000;
	overflow: hidden;
}

.ca-mood .ca-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ca-moods {
	display: grid;
	gap: 14px;
	margin-top: 32px;
}

.ca-moods .ca-intro {
	color: var(--muted);
}

.ca-moods .grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.ca-moods .card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 12px;
	align-items: start;
	padding: 14px 16px;
	background: var(--surface);
	text-decoration: none;
	border: 1px solid var(--rule);
}

.ca-moods .card:hover {
	border-color: var(--signal);
}

.ca-moods .card::before {
	content: "";
	grid-row: span 2;
	width: 12px;
	height: 12px;
	margin-top: 7px;
	border-radius: 50%;
	background: hsl(var(--h) 55% 60%);
}

.ca-moods .card strong {
	color: var(--ink);
	font-weight: 500;
	text-transform: lowercase;
}

.ca-moods .card span {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.ca-moods .ca-mood-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 20px;
}

@media (max-width: 899px) {
	.ca-moods .ca-mood-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ca-moods .ca-mood-grid {
		grid-template-columns: 1fr;
	}
}

.ca-moods .ca-mood-card {
	display: block;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.ca-moods .ca-mood-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--surface);
}

.ca-moods .ca-mood-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	transition: opacity 0.3s ease, transform 0.5s ease;
}

.ca-moods .ca-mood-card:hover .ca-mood-card__img img {
	opacity: 0.85;
	transform: scale(1.03);
}

.ca-moods .ca-mood-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 0.6em;
	color: var(--ink);
	text-transform: lowercase;
}

.ca-moods .ca-mood-card__title::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: hsl(var(--h) 55% 60%);
}

.ca-moods .ca-mood-card:hover .ca-mood-card__title {
	color: var(--signal);
}

.ca-moods .ca-mood-card__meta {
	display: block;
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 640px) {
	.ca-mood .glance {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 16px;
	}

	.ca-mood .cols {
		grid-template-columns: 1fr;
	}
}

/* Poetry pages: wrap long poem lines instead of cutting them off, and center the photo */
.parent-pageid-4475 .entry-content pre {
	white-space: pre-wrap;
	overflow-wrap: break-word;
	overflow-x: visible;
}

.parent-pageid-4475 .entry-content p:has(> img) {
	margin-left: auto;
	margin-right: auto;
}

.parent-pageid-4475 .entry-content img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	height: auto;
}

@media (max-width: 600px) {
	.parent-pageid-4475 .entry-content pre {
		padding: 16px;
		font-size: 14px;
		line-height: 1.2em;
	}
}

/* Random-song player hidden until the songs are on Brian's own YouTube channel (the Topic channel's uploads playlist no longer exists). Delete this rule to bring it back. */
.bg-music--listen {
	display: none;
}

/* Touch screens: no red ring left on album covers, stripes or links after a tap (keyboard focus rings stay on desktop). */
@media (hover: none) and (pointer: coarse) {
	a:focus,
	a:focus-visible,
	button:focus,
	button:focus-visible,
	.album__open:focus-visible .album__cover {
		outline: none;
	}
	.albums__spectrum a:focus-visible:not(:hover) {
		flex-grow: 1;
		z-index: auto;
	}
	.albums__spectrum a:focus-visible:not(:hover)::before {
		opacity: 0;
	}
	a,
	button {
		-webkit-tap-highlight-color: transparent;
	}
}

/* Docked player: no song title or credit on pages with the dock-no-text body class (set in functions.php). */
.dock-no-text .dock__title,
.dock-no-text .dock__source {
	display: none;
}

/* Docked player: song name only, no "with photographs from..." line, on blog pages (dock-no-source body class, set in functions.php). */
.dock-no-source .dock__source {
	display: none;
}

/* Song titles in lowercase. Theme option: Appearance > Customize > Afterimage (body class songs-lowercase, set in inc/extras.php). */
.songs-lowercase .lead__title,
.songs-lowercase .pairing__track,
.songs-lowercase .pairing__open,
.songs-lowercase .score__track,
.songs-lowercase .dock__title,
.songs-lowercase .album__tracks li,
.songs-lowercase .ca-songs a,
.songs-lowercase article.type-pairing .page-head h1 {
	text-transform: lowercase;
}
