/*
 * Artikelen ("Wijnkennis") — inc/artikel.php.
 * Bouwt op homepage.css + zakelijk.css + landing.css (hero, kruimelpad, verwijzingen, productblok).
 * Rustige leespagina: donkere hero voor het merk, lichte kolom van 44rem voor de tekst.
 */

.boozt-ahero *,
.boozt-artikel *,
.boozt-asectie * {
	box-sizing: border-box; /* valkuil 5 */
}

/* Secties sluiten naadloos aan (main heeft een flow-layout met blokruimte). */
body.boozt-artikelpagina .wp-site-blocks > main > * {
	margin-block-start: 0;
}

body.boozt-artikelpagina {
	/* Hoever de uitgelichte foto uit de hero de tekst in steekt. */
	--ahero-overlap: clamp(2.5rem, 7vw, 6rem);
}

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

/* Een artikeltitel is een zin, geen slogan: kleiner dan de hero's van de landingspagina's, wel in kapitalen.
   Vier klassen om de berekende grootte van landing.css (drie klassen, ook in de mobiele query) te overtreffen. */
.boozt-zhero.boozt-lhero.boozt-ahero .boozt-zhero__h1 {
	font-size: clamp(1.9rem, 1rem + 4.2vw, 4.25rem);
	line-height: 0.96;
	letter-spacing: -0.03em;
	max-width: 17em;
	text-wrap: balance;
	margin-bottom: 0.5em;
}

.boozt-ahero .boozt-zhero__lead {
	max-width: 52ch;
}

.boozt-ahero__meta {
	margin: 1.5rem 0 0;
	font-size: 0.8125rem;
	color: color-mix(in srgb, var(--wp--preset--color--cream, #ebe0d6) 70%, transparent);
}

.boozt-ahero__beeld {
	position: relative;
	z-index: 3; /* boven de filmkorrel */
	margin-top: clamp(2.5rem, 5vw, 4rem);
	margin-bottom: calc(var(--ahero-overlap) * -1);
}

/* Twee klassen: WooCommerce en WordPress zetten elders img { height: auto } (valkuil 11).
   21:9 houdt de foto ook op een laag scherm in beeld; op mobiel 3:2, anders wordt het een streep. */
.boozt-ahero .boozt-ahero__beeld img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	border-radius: 1rem;
	box-shadow: 0 1.5rem 3rem rgba(27, 11, 9, 0.3);
}

/* ------------------------------------------------------------------ tekst */

.boozt-artikel {
	padding-top: var(--wp--preset--spacing--50, 3.5rem);
	padding-bottom: var(--wp--preset--spacing--60, 5rem);
}

.boozt-ahero:not(.zonder-fotos) + .boozt-artikel {
	padding-top: calc(var(--ahero-overlap) + var(--wp--preset--spacing--50, 3.5rem));
}

.boozt-artikel .wp-block-post-content {
	font-size: 1.125rem;
	line-height: 1.7;
}

.boozt-artikel .wp-block-post-content > :first-child {
	margin-top: 0;
}

.boozt-artikel .wp-block-post-content h2 {
	font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.125rem);
	line-height: 1.12;
	margin-top: 2.5em;
	margin-bottom: 0.5em;
	text-wrap: balance;
	scroll-margin-top: calc(var(--vino2-bar-h, 4.5rem) + 1.25rem);
}

.boozt-artikel .wp-block-post-content h3 {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.25;
	margin-top: 2em;
	margin-bottom: 0.35em;
}

.boozt-artikel .wp-block-post-content :is(h2, h3) + p {
	margin-top: 0;
}

.boozt-artikel .wp-block-post-content :is(ul, ol) {
	padding-left: 1.25em;
}

.boozt-artikel .wp-block-post-content li + li {
	margin-top: 0.4em;
}

.boozt-artikel .wp-block-post-content a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.boozt-artikel .wp-block-post-content a:hover {
	text-decoration-thickness: 2px;
}

.boozt-artikel .wp-block-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.75rem;
}

/* Het korte antwoord bovenaan: <div class="boozt-kern">. */
.boozt-kern {
	margin-block: 0 2.5rem;
	padding: 1.5rem 1.75rem;
	border-radius: 1rem;
	background-color: var(--wp--preset--color--cream, #ebe0d6);
}

.boozt-kern > :first-child {
	margin-top: 0;
}

.boozt-kern > :last-child {
	margin-bottom: 0;
}

.boozt-kern__kop {
	margin: 0 0 0.35rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--lg);
}

/* Tabellen: op een smal scherm schuift de tabel, niet de pagina. */
.boozt-tabel {
	margin-block: 1.75rem;
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--line, #dccbba);
	border-radius: 1rem;
	background-color: #fff;
}

.boozt-tabel table {
	width: 100%;
	min-width: 32rem;
	border-collapse: collapse;
	font-size: 1rem;
	line-height: 1.45;
}

.boozt-tabel :is(th, td) {
	padding: 0.85rem 1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--wp--preset--color--line, #dccbba);
}

.boozt-tabel tr:last-child :is(th, td) {
	border-bottom: 0;
}

.boozt-tabel thead th {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	background-color: var(--wp--preset--color--cream, #ebe0d6);
}

.boozt-tabel tbody th {
	font-weight: 600;
	width: 30%;
}

/* ---------------------------------------------------------- inhoudsopgave */

.boozt-inhoud {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line, #dccbba);
}

.boozt-inhoud__kop {
	margin: 0 0 0.6rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-muted, #6b5a52);
}

.boozt-inhoud ol {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.35rem;
}

.boozt-inhoud a {
	color: var(--wp--preset--color--ink, #1b0b09);
	text-decoration: none;
}

.boozt-inhoud a:hover,
.boozt-inhoud a:focus-visible {
	color: var(--wp--preset--color--wine, #70041c);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* ------------------------------------------------- product en "lees verder" */

/* Het productblok staat hier op zand, zodat het loskomt van de tekst erboven. */
body.boozt-artikelpagina .boozt-lsectie--product {
	background-color: var(--wp--preset--color--cream, #ebe0d6);
}

.boozt-averder__kop {
	margin-bottom: 1.5rem;
}

/* De kaarten staan op linnen; op zand zouden ze wegvallen. */
.boozt-averder .boozt-lverwijzing {
	background-color: var(--wp--preset--color--cream, #ebe0d6);
}

/* -------------------------------------------------------- artikelkaarten */

.boozt-asectie__kop {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-bottom: 1.75rem;
}

.boozt-asectie__kop .boozt-z__h2 {
	margin: 0;
}

.boozt-asectie__alles {
	font-weight: 600;
	text-decoration: none;
}

.boozt-asectie__alles:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.boozt-akaarten {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 2rem 1.5rem;
}

/* De hele kaart is klikbaar via de link in de titel (::after over de kaart). */
.boozt-akaart {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.boozt-akaart__foto {
	aspect-ratio: 3 / 2;
	border-radius: 1rem;
	overflow: hidden;
	background-color: var(--wp--preset--color--cream, #ebe0d6);
}

.boozt-akaart .boozt-akaart__foto img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.38, 0.005, 0.215, 1);
}

.boozt-akaart:hover .boozt-akaart__foto img {
	transform: scale(1.03);
}

.boozt-akaart__hub {
	margin: 0 0 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--wine, #70041c);
}

.boozt-akaart__titel {
	margin: 0;
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.15;
	text-wrap: balance;
}

.boozt-akaart__titel a {
	color: inherit;
	text-decoration: none;
}

.boozt-akaart__titel a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.boozt-akaart__titel a:focus-visible {
	outline: none;
}

.boozt-akaart:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--ink, #1b0b09);
	outline-offset: 0.5rem;
	border-radius: 1rem;
}

.boozt-akaart__intro {
	margin: 0.6rem 0 0;
	color: var(--wp--preset--color--ink-muted, #6b5a52);
}

.boozt-akaart__meer {
	margin: 0.75rem 0 0;
	font-weight: 600;
	color: var(--wp--preset--color--wine, #70041c);
}

@media (prefers-reduced-motion: reduce) {
	.boozt-akaart .boozt-akaart__foto img {
		transition: none;
	}
}

@media (max-width: 781px) {
	.boozt-ahero .boozt-ahero__beeld img {
		aspect-ratio: 3 / 2;
	}

	.boozt-artikel .wp-block-post-content {
		font-size: 1.0625rem;
	}
}
