/* Timothy P. Cooper — global site styles */

:root {
	--tpc-bg: #f6f3ed;
	--tpc-text: #202224;
	--tpc-teal: #2f6f73;
	--tpc-soft: #dce9e8;
	--tpc-line: #d7d4ce;
	--tpc-dark: #273033;
}

/* Base */
html,
body {
	background: var(--tpc-bg);
	color: var(--tpc-text);
}

body,
button,
input,
select,
textarea {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
		Helvetica, Arial, sans-serif;
}

body {
	font-size: 17px;
	line-height: 1.65;
}

/* Remove theme backgrounds where possible */
#page,
.site,
.site-content,
.content-area,
.site-main,
.entry-content {
	background: transparent;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--tpc-text);
	font-family: inherit;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

h1,
.entry-title {
	font-size: clamp(2.4rem, 6vw, 4.4rem);
	margin-bottom: 1.5rem;
}

h2 {
	font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
	font-size: 1.2rem;
}

/* Links */
a {
	color: var(--tpc-teal);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--tpc-dark);
}

/* Overall page width */
.site-content,
.content-area {
	width: 100%;
}

.site-main,
.entry-content {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content {
	padding-left: 36px;
	padding-right: 36px;
}

/* Header / navigation */
.site-header {
	background: var(--tpc-bg);
	border-bottom: 1px solid var(--tpc-line);
}

.site-title,
.site-title a {
	color: var(--tpc-text);
	font-weight: 600;
	text-decoration: none;
}

.main-navigation a,
.menu a {
	color: var(--tpc-text);
	text-decoration: none;
	font-weight: 500;
}

.main-navigation a:hover,
.main-navigation a:focus,
.menu a:hover,
.menu a:focus {
	color: var(--tpc-teal);
}

/* Buttons */
button,
input[type="button"],
input[type="submit"],
.wp-block-button__link {
	background: var(--tpc-dark);
	color: #fff;
	border: 1px solid var(--tpc-dark);
	border-radius: 2px;
	font-family: inherit;
	font-weight: 500;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--tpc-teal);
	border-color: var(--tpc-teal);
	color: #fff;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
	background: transparent;
	color: var(--tpc-text);
	border: 1px solid var(--tpc-line);
	border-radius: 2px;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--tpc-teal);
	outline: 1px solid var(--tpc-teal);
}

/* Dividers */
hr {
	border: 0;
	border-top: 1px solid var(--tpc-line);
}

/* Footer */
.site-footer {
	background: var(--tpc-bg);
	color: var(--tpc-text);
	border-top: 1px solid var(--tpc-line);
}

/* Mobile */
@media (max-width: 700px) {
	.entry-content {
		padding-left: 22px;
		padding-right: 22px;
	}

	body {
		font-size: 16px;
	}
}

/* Homepage refinements */

.home .entry-content h2 {
	font-size: clamp(1.8rem, 3.5vw, 2.35rem);
	margin-top: 3.5rem;
	margin-bottom: 1.4rem;
}

.home .entry-content > p {
	margin-top: 0.35rem;
	margin-bottom: 0.9rem;
}

.home .entry-content h2 + p {
	margin-top: 0;
}

/* Featured Works: keep title + descriptor visually together */
.home .entry-content a {
	text-underline-offset: 3px;
}

.home .wp-block-audio {
	max-width: 760px;
	margin-top: 0.7rem;
	margin-bottom: 2rem;
}

.home .wp-block-audio audio {
	width: 100%;
}

.home .entry-content {
	padding-bottom: 4rem;
}

@media (max-width: 700px) {
	.home .entry-content h2 {
		margin-top: 2.75rem;
	}
}

/* Homepage hierarchy refinements */

.home .entry-title {
	font-size: clamp(2.6rem, 5vw, 3.6rem);
	margin-bottom: 1rem;
}

.home .entry-content > p:first-child {
	margin-bottom: 3rem;
}

.home .entry-content h2 {
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	margin-top: 3.25rem;
	margin-bottom: 1.15rem;
}

/* Featured Works */
.home .entry-content h2:first-of-type ~ p {
	line-height: 1.45;
}

/* Reduce audio visual weight */
.home .wp-block-audio {
	max-width: 700px;
	margin-bottom: 1.6rem;
}

.home .wp-block-audio audio {
	height: 42px;
}

/* News item */
.home .entry-content strong {
	font-weight: 600;
}

/* Featured Works grouping */

.home .entry-content .wp-block-group {
	margin-bottom: 1.6rem;
}

.home .entry-content .wp-block-group p {
	margin-top: 0;
	margin-bottom: 0.35rem;
}

.home .entry-content .wp-block-group p:last-child {
	margin-bottom: 0;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
	background: #fff;
}

/* Homepage Featured Works */

.home .entry-content h2:first-of-type + .wp-block-group,
.home .entry-content h2:first-of-type ~ .wp-block-group {
	border-top: 1px solid var(--tpc-line);
	padding: 1rem 0 1.05rem;
	margin-bottom: 0;
}

.home .entry-content h2:first-of-type ~ .wp-block-group:last-of-type {
	border-bottom: 1px solid var(--tpc-line);
}

.home .entry-content .wp-block-group p:first-child {
	margin-bottom: 0.25rem;
	font-size: 1.03rem;
	font-weight: 600;
}

.home .entry-content .wp-block-group p:last-child {
	color: #5f6365;
	font-size: 0.92rem;
}

/* Homepage News callout */

.home .tpc-news-callout {
	background: var(--tpc-soft);
	border-top: 1px solid var(--tpc-line);
	border-bottom: 1px solid var(--tpc-line);
	padding: 1rem 1.1rem;
	margin-bottom: 0;
}

.home .tpc-news-callout p {
	margin: 0;
}

.home .tpc-news-callout p + p {
	margin-top: 0.25rem;
}

.home .tpc-news-callout strong {
	font-weight: 600;
}

/* Homepage Listen & Watch */

.home .tpc-media-block {
	background: #fff;
	border: 1px solid var(--tpc-line);
	padding: 1.2rem 1.25rem;
	margin-top: 1rem;
}

.home .tpc-media-block p {
	margin: 0 0 0.45rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.home .tpc-media-block .wp-block-audio {
	margin: 0 0 1.4rem;
	max-width: 680px;
}

.home .tpc-media-block .wp-block-audio:last-child {
	margin-bottom: 0;
}

.home .tpc-media-block audio {
	width: 100%;
	height: 40px;
}

/* Homepage hero divider */

.home .tpc-hero-rule {
	border: 0;
	border-top: 1px solid var(--tpc-line);
	margin: 2.75rem 0 3rem;
	width: 100%;
}

/* =========================================================
   Final component refinements
   ========================================================= */


/* 1. Featured Works — tighter rows */

.home .entry-content h2:first-of-type + .wp-block-group,
.home .entry-content h2:first-of-type ~ .wp-block-group {
	padding-top: 0.7rem;
	padding-bottom: 0.75rem;
}

.home .entry-content h2:first-of-type ~ .wp-block-group p:first-child {
	margin-bottom: 0.15rem;
}

.home .entry-content h2:first-of-type ~ .wp-block-group p:last-child {
	margin-bottom: 0;
	line-height: 1.35;
}


/* 2. Listen & Watch — more finished media panel */

.home .tpc-media-block {
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid var(--tpc-line);
	padding: 1.35rem 1.5rem 1.5rem !important;
	margin-top: 1rem;
	border-radius: 3px;
}

.home .tpc-media-block > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.home .tpc-media-block p {
	margin-top: 0;
	margin-bottom: 0.45rem;
	font-size: 0.94rem;
	font-weight: 600;
}

.home .tpc-media-block .wp-block-audio {
	max-width: none;
	width: 100%;
	margin-top: 0;
	margin-bottom: 1.35rem;
}

.home .tpc-media-block .wp-block-audio:last-child {
	margin-bottom: 0;
}

.home .tpc-media-block audio {
	display: block;
	width: 100%;
	height: 40px;
}


/* 3. Music page — distinguish expanded details */

.tpc-music-catalog .tpc-work-details {
	background: #edf3f2;
	border-left: 3px solid var(--tpc-teal);
	padding: 1rem 1.15rem 1.15rem;
	margin: 0 0 0.8rem;
	font-size: 0.92rem;
	line-height: 1.5;
}

.tpc-music-catalog .tpc-detail-grid {
	gap: 0.1rem 2rem;
}

.tpc-music-catalog .tpc-detail-grid p {
	margin: 0.4rem 0;
}

.tpc-music-catalog .tpc-detail-grid strong,
.tpc-music-catalog .tpc-media-label {
	font-size: 0.75rem;
	letter-spacing: 0.05em;
}

.tpc-music-catalog .tpc-links,
.tpc-music-catalog .tpc-video-links {
	margin-top: 0.8rem;
	margin-bottom: 0.15rem;
}


/* Mobile refinements */

@media (max-width: 700px) {
	.home .tpc-media-block {
		padding: 1.1rem 1rem 1.2rem !important;
	}

	.tpc-music-catalog .tpc-work-details {
		padding: 0.9rem 1rem 1rem;
	}
}

/* Mobile menu toggle — theme-specific input control */

@media (max-width: 800px) {
	.site-header input[type="button"],
	.site-header input[type="submit"],
	.site-header input[type="checkbox"] + label,
	.main-navigation input + label,
	.menu-toggle-label {
		background: var(--tpc-teal) !important;
		border-color: var(--tpc-teal) !important;
		color: #fff !important;
	}

	.site-header input[type="checkbox"] + label:hover,
	.site-header input[type="checkbox"] + label:focus,
	.main-navigation input + label:hover,
	.main-navigation input + label:focus {
		background: var(--tpc-dark) !important;
		border-color: var(--tpc-dark) !important;
		color: #fff !important;
	}
}

/* Homepage hero layout */

.home .tpc-home-hero {
	align-items: center;
	min-height: 360px;
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	gap: 3.5rem;
}

.home .tpc-home-hero > .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.home .tpc-home-hero h1 {
	margin-top: 0;
	margin-bottom: 1rem;
}

.home .tpc-home-hero .wp-block-image {
	margin: 0;
}

.home .tpc-home-hero .wp-block-image img {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin-left: auto;
	border-radius: 4px;
}

@media (max-width: 781px) {
	.home .tpc-home-hero {
		min-height: 0;
		padding-top: 1.5rem;
		padding-bottom: 2rem;
		gap: 2rem;
	}

	.home .tpc-home-hero .wp-block-image img {
		margin-left: 0;
		max-width: 300px;
	}
}

/* Site footer */

.site-footer {
	background: var(--tpc-bg);
	border-top: 1px solid var(--tpc-line);
	padding: 2rem 0 1.25rem;
}

.site-footer .widget-area,
.site-footer .site-info {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 36px;
	padding-right: 36px;
}

.site-footer .widget {
	margin: 0;
}

.site-footer .widget p {
	margin: 0;
	line-height: 1.5;
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--tpc-text);
}

/* Platform credit */
.site-footer .site-info {
	margin-top: 1.4rem;
	font-size: 0.72rem;
	color: #8a8d8f;
	opacity: 0.85;
}

.site-footer .site-info a {
	color: inherit;
	text-decoration: none;
	font-weight: 400;
}

.site-footer .site-info a:hover,
.site-footer .site-info a:focus {
	color: var(--tpc-teal);
}

/* Soften the repeated site name in the credit */
.site-footer .site-info .site-name,
.site-footer .site-info strong {
	font-weight: 400 !important;
}

@media (max-width: 700px) {
	.site-footer .widget-area,
	.site-footer .site-info {
		padding-left: 22px;
		padding-right: 22px;
	}
}

/* Page titles */

.entry-title {
	font-size: clamp(2.1rem, 4vw, 3rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.025em;
	margin-bottom: 1.5rem;
}

/* Remove page metadata and prev/next navigation */

.page .entry-meta,
.page .entry-footer,
.page .post-navigation,
.page .navigation.post-navigation,
.page .nav-links {
	display: none !important;
}

/* Homepage hero color treatment */

.home .tpc-home-hero {
	background: var(--tpc-soft);
	padding: 2.75rem 2.5rem;
	border-radius: 4px;
}

.home .tpc-home-hero h2 {
	color: var(--tpc-teal);
}

.home .tpc-home-hero p {
	color: var(--tpc-dark);
}

@media (max-width: 781px) {
	.home .tpc-home-hero {
		padding: 1.75rem 1.5rem;
	}
}

/* Option 2: humanist sans headings */

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title {
	font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.16;
}

/* Global typography — warmer humanist sans */

html,
body,
button,
input,
select,
textarea,
.site-title,
.main-navigation,
.menu,
.entry-content,
.tpc-music-catalog {
	font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title {
	font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.16;
}

body {
	font-weight: 400;
	letter-spacing: 0;
}

.main-navigation a,
.menu a {
	font-weight: 500;
}