/*
Theme Name: Tenor
Theme URI: https://tenor.laurentmartin.org/
Author: Laurent Martin
Description: Modern block-theme port of the original Applause (Metrothemes v1.3) one-page design of laurentmartin.org, as deployed 2014-2020. Design authority: docs/learnings/applause-design-spec.md (theme source + owner bub_mt config + Wayback captures).
Version: 0.1.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tenor
*/

/* ---------- Fonts (self-hosted; GDPR — no Google CDN on a German site).
   WOFF2 files land in assets/fonts/ in a follow-up step; stacks degrade
   gracefully until then. ---------- */
@font-face {
	font-family: 'Quattrocento Sans';
	src: url('assets/fonts/quattrocento-sans-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Quattrocento Sans';
	src: url('assets/fonts/quattrocento-sans-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Open Sans';
	src: url('assets/fonts/open-sans-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Open Sans';
	src: url('assets/fonts/open-sans-800.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* Cancel WP's automatic block-gap margins between root blocks — section
   rhythm is owned by our own paddings (Applause: 130px/140px). */
.wp-site-blocks > * + * {
	margin-block-start: 0 !important;
}

/* ---------- Hero (#mt-header port): 640px photographic header ---------- */
.tenor-hero {
	min-height: 640px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-position: center top;
	background-size: cover;
	background-attachment: fixed;
	padding: 40px 20px;
}
.tenor-hero .tenor-logo img {
	width: 222px;
	height: auto;
}
/* Hero text (original .hgroup: h1 72px Quattrocento 800, h2 30px Open Sans) */
.tenor-hero .tenor-hgroup h1 {
	font-family: var(--wp--preset--font-family--body);
	font-size: 72px;
	font-weight: 800;
	letter-spacing: -2px;
	color: var(--wp--preset--color--text);
	line-height: 1.1;
	margin: 0;
}
.tenor-hero .tenor-tagline {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 30px;
	color: var(--wp--preset--color--text);
	margin: 0.2em 0 0;
}

/* ---------- Sticky nav (light bar over red page) ---------- */
.tenor-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--nav-bg);
	border-bottom: 1px solid var(--wp--preset--color--nav-border);
}
.tenor-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 auto;
	padding: 0;
	max-width: var(--wp--style--global--wide-size);
}
.tenor-nav a {
	display: block;
	padding: 30px 15px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	font-weight: 300;
	color: var(--wp--preset--color--text-on-light);
	text-decoration: none;
	text-shadow: 1px 1px 0 #ffffff;
}
.tenor-nav a:hover {
	color: #000000;
}

/* ---------- One-page sections (Applause rhythm + parallax identity) ---------- */
.tenor-section {
	padding: 130px 20px 140px;
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	/* anchor targets land below the sticky nav */
	scroll-margin-top: 90px;
}
.tenor-section > * {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
	min-width: 0;
}
.tenor-section .tenor-section-header {
	text-align: center;
	margin-bottom: 60px;
}
.tenor-section .tenor-section-header h2 {
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -2px;
	margin: 0 0 20px;
}

/* Contain converted/aligned content inside the section column */
.tenor-section .alignfull,
.tenor-section .alignwide {
	max-width: 100% !important;
	width: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.tenor-section img {
	max-width: 100%;
	height: auto;
}

/* ---------- Cards (events / videos / gallery grids) ---------- */
.tenor-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}
.tenor-card {
	outline: 1px solid var(--wp--preset--color--card-outline);
	background: rgba(255, 255, 255, 0.96);
	color: var(--wp--preset--color--text-on-light);
	min-width: 0;
}
.tenor-card h3,
.tenor-card h4,
.tenor-card a {
	color: var(--wp--preset--color--text-on-light);
}
.tenor-card .tenor-card-body {
	padding: 18px;
}
.tenor-card img {
	display: block;
	width: 100%;
	height: auto;
}
/* Event date badge (.dates port) */
.tenor-datebadge {
	display: inline-block;
	background: var(--wp--preset--color--nav-bg);
	text-transform: uppercase;
	text-align: center;
	padding: 8px 14px;
	font-family: var(--wp--preset--font-family--heading);
	line-height: 1.2;
}
.tenor-datebadge .d {
	display: block;
	font-size: 26px;
	font-weight: 800;
}
.tenor-event-meta {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	font-size: 15px;
}
.tenor-event-meta li {
	margin: 4px 0;
}
/* Video card lightbox-style overlay link */
.tenor-videocard a.tenor-video-link {
	position: relative;
	display: block;
}

/* ---------- Listen (audio tracks) ---------- */
.tenor-track {
	margin: 0 0 26px;
}
.tenor-track h4 {
	margin: 0 0 8px;
}
.tenor-track audio {
	width: 100%;
	display: block;
}

/* ---------- Contact ---------- */
.tenor-contact .tenor-section-header h2 {
	font-size: 50px;
	text-transform: uppercase;
}
.tenor-contact .tenor-section-header p {
	font-size: 18px;
	text-transform: uppercase;
	margin: 0;
}
.tenor-contact-cols {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}
.tenor-contact-cols > * {
	flex: 1 1 0;
	min-width: 0;
}
.tenor-contact-form label {
	display: block;
	margin: 14px 0 4px;
	font-weight: 700;
}
.tenor-contact-form input[type='text'],
.tenor-contact-form input[type='email'],
.tenor-contact-form textarea {
	width: 100%;
	padding: 10px;
	border: none;
	font: inherit;
	color: var(--wp--preset--color--text-on-light);
	box-sizing: border-box;
}
.tenor-contact-form button {
	margin-top: 16px;
	padding: 12px 28px;
	border: none;
	background: var(--wp--preset--color--accent);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.tenor-form-notice {
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--wp--preset--color--text-on-light);
	margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.tenor-footer {
	text-align: center;
	padding: 30px 20px 40px;
	font-size: 15px;
}
.tenor-footer p {
	margin: 0;
}

/* ---------- Interior pages (single post / event / page) ---------- */
.tenor-interior {
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto;
	padding: 60px 20px 100px;
	min-width: 0;
	overflow-wrap: break-word;
}
.tenor-interior .alignfull,
.tenor-interior .alignwide {
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ---------- Section backgrounds (deployed 2017 assignments; site-relative
   uploads paths work in dev and prod). Original inlined these per-section
   from page meta; centralized here. ---------- */
.tenor-hero {
	background-image: url('/wp-content/uploads/2014/04/Astra-Portrait1.jpg');
	background-color: var(--wp--preset--color--background);
}
#performances.tenor-section {
	background-image: url('/wp-content/uploads/2013/10/Turandot_bg.jpg');
}
#videos.tenor-section {
	background-image: url('/wp-content/uploads/2014/12/vlcsnap-2014-12-17-23h53m57s207.png');
}
#listen.tenor-section {
	background-image: url('/wp-content/uploads/2013/10/Bremerhaven.jpg');
}
#photos.tenor-section {
	background-image: url('/wp-content/uploads/2013/10/Fidelio.jpg');
}
#news.tenor-section {
	background-image: url('/wp-content/uploads/2015/07/tlfy_bedroom-1024x654.jpg');
}

/* ---------- Motion & responsive ---------- */
@media (prefers-reduced-motion: reduce) {
	.tenor-hero,
	.tenor-section {
		background-attachment: scroll;
	}
}
/* fixed-attachment is broken/expensive on iOS — scroll there too */
@media (hover: none) and (pointer: coarse) {
	.tenor-hero,
	.tenor-section {
		background-attachment: scroll;
	}
}
@media (max-width: 1180px) {
	.tenor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 800px) {
	.tenor-contact-cols {
		flex-direction: column;
	}
}
@media (max-width: 600px) {
	.tenor-hero {
		min-height: 520px;
	}
	.tenor-hero .tenor-hgroup h1 {
		font-size: 48px;
	}
	.tenor-nav ul {
		flex-direction: column;
	}
	.tenor-nav a {
		padding: 10px 0 10px 30px;
		border-bottom: 1px solid var(--wp--preset--color--nav-border);
	}
	.tenor-grid {
		grid-template-columns: 1fr;
	}
	.tenor-section {
		padding: 80px 16px 90px;
	}
}
