/*
 * Judith Nijland — aanvullende CSS.
 *
 * Kleuren, typografie en spacing komen uit theme.json. Hier staat alleen wat
 * daar niet in past: de concertenlijst, het aanmeldblok, de projectdetail-
 * pagina's en een paar losse patronen.
 *
 * Variabelen die hier gebruikt worden komen uit theme.json:
 *   --wp--preset--color--ink | ink-soft | paper | paper-deep | gold | gold-lit | sage
 *   --wp--preset--font-family--display | body
 *   --wp--custom--line | --wp--custom--line-soft
 */

:root {
	--line: var(--wp--custom--line, rgba(43, 32, 24, .18));
	--line-soft: var(--wp--custom--line-soft, rgba(43, 32, 24, .09));
}

/* ---------- toegankelijkheid ---------- */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- header ---------- */

.masthead {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--wp--preset--color--paper) 92%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line-soft);
}

.masthead .wordmark a {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.3rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.nav a {
	font-family: var(--wp--preset--font-family--display);
	text-decoration: none;
	padding-bottom: .3rem;
	border-bottom: 2px solid transparent;
	transition: border-color .18s ease, color .18s ease;
}

.nav a:hover,
.nav .current-menu-item > a {
	color: var(--wp--preset--color--gold);
	border-bottom-color: var(--wp--preset--color--gold);
	text-decoration: none;
}

/* ---------- hero ---------- */

.splash .hero-name {
	color: #F8F1E6;
	margin-bottom: .9rem;
}

.splash .hero-line {
	color: #EBDECC;
	margin-bottom: 1.4rem;
}

.splash .tongues {
	color: var(--wp--preset--color--gold-lit);
}

/* Verloop van links naar rechts, zodat de tekstkolom altijd contrast heeft
   en de zon rechts in beeld vrij blijft. */
.splash .wp-block-cover__background {
	background: linear-gradient(to right,
			rgba(34, 23, 15, .70) 0%,
			rgba(34, 23, 15, .46) 30%,
			rgba(34, 23, 15, .10) 54%,
			rgba(34, 23, 15, 0) 68%),
		linear-gradient(to top, rgba(34, 23, 15, .42), rgba(34, 23, 15, 0) 42%) !important;
}

.tongues {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem 1.4rem;
	font-family: var(--wp--preset--font-family--display);
}

.tongues span {
	position: relative;
}

.tongues span + span::before {
	content: "";
	position: absolute;
	left: -.75rem;
	top: .55em;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(248, 241, 230, .6);
}

/* ---------- concertenlijst ---------- */

.ledger {
	border-top: 1px solid var(--wp--preset--color--ink);
}

.gig {
	display: grid;
	grid-template-columns: 5.5rem 9rem minmax(0, 13rem) minmax(0, 1fr) auto;
	gap: .3rem 1.5rem;
	align-items: baseline;
	padding: .95rem 0;
	border-bottom: 1px solid var(--line-soft);
}

.gig .when {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--gold);
	white-space: nowrap;
}

.gig .city {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
}

.gig .venue {
	font-size: .96rem;
	color: var(--wp--preset--color--ink-soft);
}

.gig .project {
	font-size: .96rem;
	font-style: italic;
	color: var(--wp--preset--color--ink-soft);
}

.gig .project a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--line-soft);
}

.gig .project a:hover {
	color: var(--wp--preset--color--gold);
	border-color: currentColor;
	text-decoration: none;
}

.gig .ticket {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--gold);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--gold-lit);
	white-space: nowrap;
}

.gig .ticket:hover {
	color: var(--wp--preset--color--ink);
	border-color: currentColor;
	text-decoration: none;
}

.archive-head {
	margin: 4rem 0 0;
	padding-bottom: .6rem;
}

.archive .gig {
	padding-block: .75rem;
}

.archive .gig .when {
	color: var(--wp--preset--color--sage);
}

.archive .gig .city {
	font-size: 1rem;
	color: var(--wp--preset--color--ink-soft);
}

.archive .gig .venue,
.archive .gig .project {
	color: var(--wp--preset--color--sage);
}

/* ---------- projectenlijst op de homepage ---------- */

.home-head {
	margin: clamp(3rem, 6vw, 4.5rem) 0 1.25rem;
}

.repertoire .repertoire-row {
	gap: 1.25rem;
	padding: .85rem 0;
	border-bottom: 1px solid var(--line-soft);
}

.repertoire .thumb img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 2px;
}

.repertoire .title a {
	text-decoration: none;
	color: inherit;
}

.repertoire .repertoire-row:hover .title a {
	color: var(--wp--preset--color--gold);
}

/* ---------- projectdetailpagina ---------- */

.backlink {
	font-family: var(--wp--preset--font-family--display);
	font-size: .95rem;
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--gold-lit);
}

.detail .frame img {
	width: 100%;
	border-radius: 2px;
}

.detail .prose h3 {
	color: var(--wp--preset--color--gold);
	margin-top: 2.1rem;
}

.credits {
	font-size: .92rem;
	color: var(--wp--preset--color--ink-soft);
	margin-top: 1.6rem;
	line-height: 1.55;
}

.credits span {
	display: block;
}

/* ---------- aanmeldblok ---------- */

.signup {
	margin: clamp(3rem, 6vw, 4.5rem) 0 0;
	padding: clamp(1.6rem, 4vw, 2.4rem);
	background: var(--wp--preset--color--paper-deep);
	border-top: 2px solid var(--wp--preset--color--gold);
	border-radius: 2px;
}

.signup h2 {
	font-family: var(--wp--preset--font-family--display);
	margin: 0 0 .5rem;
}

.signup p {
	margin: 0;
	max-width: 46ch;
	color: var(--wp--preset--color--ink-soft);
}

.signup-row {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem;
	margin-top: 1.15rem;
	max-width: 34rem;
}

.signup input[type="email"] {
	flex: 1 1 15rem;
	min-width: 0;
	padding: .72rem 1rem;
	border: 1px solid var(--line);
	border-radius: 2px;
	background: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
}

.signup button {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
	cursor: pointer;
	background: var(--wp--preset--color--gold);
	color: #FBF3E8;
	border: 0;
	padding: .72rem 1.7rem;
	border-radius: 2rem;
	transition: background .18s ease;
}

.signup button:hover {
	background: var(--wp--preset--color--ink);
}

.signup .fineprint {
	font-size: .85rem;
	margin-top: .9rem;
}

/* ---------- shop ---------- */

.ai-note {
	font-size: .8rem;
	color: var(--wp--preset--color--sage);
	margin: -.5rem 0 .55rem;
}

.credit {
	font-size: .85rem;
	color: var(--wp--preset--color--sage);
}

/* ---------- footer ---------- */

.foot {
	color: #CBB69E;
	position: relative;
}

.foot::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--gold), var(--wp--preset--color--sage) 55%, transparent);
}

.foot .foot-name a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}

.foot-links a {
	color: var(--wp--preset--color--gold-lit);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.foot-links a:hover {
	border-bottom-color: currentColor;
	text-decoration: none;
}

.foot-note {
	margin-top: .6rem;
	font-size: .9rem;
	color: #9C8467;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
	.gig {
		grid-template-columns: 5rem minmax(0, 1fr);
		gap: .2rem 1rem;
	}

	.gig .city,
	.gig .venue,
	.gig .project,
	.gig .ticket {
		grid-column: 2;
	}

	.gig .ticket {
		justify-self: start;
		margin-top: .3rem;
	}

	.gig .when {
		grid-row: span 4;
	}
}

@media (max-width: 720px) {
	.splash {
		min-height: min(66vh, 460px) !important;
	}

	/* Op smalle schermen staat de tekst onderin, dus daar hoort het verloop. */
	.splash .wp-block-cover__background {
		background: linear-gradient(to top,
				rgba(34, 23, 15, .82),
				rgba(34, 23, 15, .38) 52%,
				rgba(34, 23, 15, 0) 84%) !important;
	}

	.repertoire .thumb img {
		width: 56px;
		height: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* ------------------------------------------------------------------
 * Correcties na de eerste stagingtest
 * ------------------------------------------------------------------ */

/* Het cover-blok zet has-background-dim-0 op de achtergrondlaag, en die
   klasse betekent opacity:0. Daardoor was het verloop onzichtbaar en stond
   de titel onleesbaar over de foto. */
.splash .wp-block-cover__background {
	opacity: 1 !important;
}

/* De hero-titel binnen het cover-blok erft de h1 uit theme.json, maar het
   cover-blok forceert wit. Hier zetten we de eigen kleuren terug. */
.splash .wp-block-cover__inner-container > * {
	color: inherit;
}

/* Lopende tekst blijft op leesbare breedte, de agenda en de projectenlijst
   mogen de volle 1180px pakken via alignwide. */
.ledger.alignwide,
.repertoire.alignwide {
	max-width: var(--wp--style--global--wide-size);
}

/* Terugkoppeling naar Projecten hoort dicht op de titel te staan. */
.backlink-wrap {
	margin-bottom: 0.4rem;
}

/* De credits en de linklijst in de linkerkolom van een projectpagina. */
.detail .wp-block-column .links {
	list-style: none;
	padding-left: 0;
}

/* ------------------------------------------------------------------
 * Leesbreedte, tweede correctie
 *
 * De container is 1180px breed en wordt door WordPress gecentreerd. Lopende
 * tekst moet daarbinnen links uitlijnen op een leesbare regellengte, niet
 * gecentreerd worden. Vandaar de margin-left op 0.
 * ------------------------------------------------------------------ */

.entry-content > p,
.entry-content > ul:not(.wp-block-post-template),
.entry-content > ol,
.entry-content > blockquote {
	max-width: 68ch;
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Koppen lopen mee met de agenda en de projectenlijst, dus volle breedte. */
.entry-content > .wp-block-heading {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Het aanmeldblok blijft compact en links. */
.entry-content > .signup {
	max-width: 46rem;
	margin-left: 0;
	margin-right: auto;
}

/* Standfirst iets groter dan de rest van de lopende tekst. */
.standfirst {
	font-size: 1.15rem;
}

/* Op de projectpagina's staat de tekst in een kolom; die is al smal genoeg. */
.detail .prose > p,
.detail .prose > ul,
.detail .prose > blockquote {
	max-width: none;
}

/* De agenda mag over de volle containerbreedte. */
.ledger {
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Discografie en citaat op de Over-pagina. */
.discog{list-style:none;padding:0;max-width:26rem}
.discog li{display:flex;justify-content:space-between;gap:1rem;padding:.4rem 0;border-bottom:1px solid var(--line-soft)}
.discog li span:last-child{color:var(--wp--preset--color--ink-soft)}
.wp-block-quote.pull{
	background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper);
	border:0;border-radius:2px;padding:2rem clamp(1.5rem,4vw,2.75rem);margin-top:2.5rem;
}
.wp-block-quote.pull p{font-family:var(--wp--preset--font-family--display);font-size:1.25rem;line-height:1.4;color:inherit}
.wp-block-quote.pull cite{display:block;margin-top:1rem;color:var(--wp--preset--color--gold-lit);font-style:normal;font-size:.95rem}
.todo{font-size:.92rem;color:var(--wp--preset--color--sage);border-left:2px solid var(--line);padding-left:.9rem}
