/*
Theme Name: Duurzaam Digitaal Dichtbij
Theme URI: https://paul.kruithofvanderkolk.nl
Author: Paul van der Kolk-Kruithof
Author URI: https://paul.kruithofvanderkolk.nl
Description: Blokthema voor het politieke weblog van Paul van der Kolk-Kruithof, gemeenteraadslid in Assen. Geïnspireerd op de huisstijl van Progressief Nederland. Zelfgehoste lettertypes, geen externe diensten, geen tracking.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pkvdk
Tags: blog, block-patterns, full-site-editing, one-column, custom-colors
*/

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:where(.wp-site-blocks) > * { margin-block-start: 0; }

.pk-section {
	padding-top: clamp(3.5rem, 8vw, 6rem);
	padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

/* Sectiekop met "meer"-link rechts */
.pk-section-head { gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.pk-more a {
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
}

/* ---------- Header ---------- */
.pk-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(0,0,0,.08); }
body.admin-bar .pk-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .pk-header { top: 46px; } }
.pk-header-inner { padding-top: 1rem; padding-bottom: 1rem; gap: 1rem 2rem; }

.pk-brand { gap: .875rem; }
.pk-mark { margin: 0; }
.pk-mark a {
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px;
	background: var(--wp--preset--color--zwart);
	color: var(--wp--preset--color--wit);
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800; font-size: 1.5rem; text-decoration: none;
}
.pk-mark a:hover { background: var(--wp--preset--color--roze); color: var(--wp--preset--color--zwart); }
.pk-brand-text { gap: 0 !important; }
.pk-brand-text .wp-block-site-title { margin: 0; line-height: 1.05; }
.pk-brand-text .wp-block-site-title a { text-decoration: none; }
.pk-role { margin: 0; font-size: 1rem; color: var(--wp--preset--color--tekstgrijs); line-height: 1.2; }

.pk-nav .wp-block-navigation-item__content { padding-block: .5rem; text-decoration: none; }
.pk-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--rood-donker); }
.pk-nav .current-menu-item > a { color: var(--wp--preset--color--rood-donker); }
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--mint) !important;
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 1.75rem; font-weight: 800; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.pk-hero-cols { gap: clamp(2rem, 5vw, 3.5rem); align-items: center !important; }
.pk-slogan {
	font-size: clamp(4rem, 9vw, 8.25rem) !important;
	line-height: .92 !important;
	letter-spacing: -0.01em;
	margin: 0;
}
.pk-lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); max-width: 38em; }

.pk-selfie { margin: 0 24px 24px 0 !important; position: relative; }
.pk-selfie img {
	display: block; width: 100%;
	aspect-ratio: 4 / 5; object-fit: cover;
	box-shadow: 24px 24px 0 var(--wp--preset--color--roze);
}
.pk-selfie figcaption {
	position: absolute; left: -16px; bottom: 40px; margin: 0;
	background: var(--wp--preset--color--wit); color: var(--wp--preset--color--zwart);
	padding: .5rem 1rem;
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800; font-size: 1.375rem; text-transform: uppercase; line-height: 1;
}

/* ---------- Themakaarten ---------- */
.pk-theme-card {
	padding: 1.75rem 1.5rem 2rem !important;
	min-height: 17.5rem;
	gap: .875rem !important;
	transition: transform .2s ease;
}
.pk-theme-card:hover { transform: translateY(-4px); }
.pk-theme-nr {
	margin: 0; font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800; font-size: 3.5rem; line-height: 1;
}
.pk-theme-card h3 { margin: 0; }
.pk-theme-card p { font-size: 1.125rem; line-height: 1.45; margin: 0; }
.pk-theme-card .pk-more { margin-top: auto !important; }

/* ---------- Blogkaarten ---------- */
.pk-card {
	background: var(--wp--preset--color--wit);
	height: 100%;
	gap: 0 !important;
}
.pk-card .wp-block-post-featured-image { margin: 0; }
.pk-card .wp-block-post-featured-image img { transition: transform .4s ease; }
.pk-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.pk-card .wp-block-post-featured-image { overflow: hidden; }
.pk-card-body { padding: 1.5rem 1.5rem 1.75rem !important; gap: .75rem !important; }
.pk-card-body > * { margin: 0 !important; }
.pk-card .wp-block-post-title a { text-decoration: none; }
.pk-card .wp-block-post-title a:hover { color: var(--wp--preset--color--rood-donker); }
.pk-card .wp-block-post-excerpt { font-size: 1.125rem; color: var(--wp--preset--color--tekstgrijs); }
.pk-card .wp-block-post-excerpt__more-text { display: none; }
.pk-card-meta { gap: .5rem .75rem !important; font-size: 1rem; }
.pk-card-meta .wp-block-post-date { color: var(--wp--preset--color--tekstgrijs); }

/* Categorie-labels (kaarten en artikelkop) */
.pk-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pk-chips .wp-block-post-terms__separator { display: none; }
.pk-chips a {
	display: inline-block;
	background: var(--wp--preset--color--zwart); color: var(--wp--preset--color--wit);
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800; font-size: 1rem; text-transform: uppercase; line-height: 1.1;
	padding: .25rem .5rem; text-decoration: none;
}
.pk-chips a:hover { background: var(--wp--preset--color--roze); color: var(--wp--preset--color--zwart); }

/* Categoriefilter op blogpagina */
.pk-catlist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pk-catlist li { margin: 0; }
.pk-catlist a {
	display: inline-block; padding: .625rem 1rem;
	background: var(--wp--preset--color--wit); border: 1px solid var(--wp--preset--color--zwart);
	font-weight: 700; text-decoration: none;
}
.pk-catlist a:hover, .pk-catlist .current-cat a {
	background: var(--wp--preset--color--zwart); color: var(--wp--preset--color--wit);
}

/* Paginering */
.wp-block-query-pagination { gap: .5rem; margin-top: 3rem; font-weight: 700; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 .875rem;
	background: rgba(0,0,0,.08); text-decoration: none;
}
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--zwart); color: var(--wp--preset--color--wit); }

/* ---------- Over mij / citaat ---------- */
.pk-quote { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.pk-quote::before {
	content: ""; display: block; width: 64px; height: 8px; margin-bottom: 1.25rem;
	background: var(--wp--preset--color--zwart);
}
.pk-quote p {
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800; text-transform: uppercase;
	font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08;
}
.pk-quote cite { font-style: normal; font-size: 1.125rem; opacity: .85; }
.pk-dark a { color: inherit; }

/* ---------- Artikel ---------- */
.pk-post-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.pk-post-hero .wp-block-post-title { margin-top: 1rem; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.pk-post-meta { font-size: 1.0625rem; color: var(--wp--preset--color--tekstgrijs); gap: .5rem 1rem !important; }
.pk-post-image { margin-top: clamp(2rem, 5vw, 3rem) !important; }

.wp-block-post-content > * + * { margin-top: 1.25em; }
.wp-block-post-content h2, .wp-block-post-content h3 { margin-top: 2em; }
.wp-block-post-content a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Lijsten met groen blokje, zoals PRO */
.wp-block-post-content ul.wp-block-list { list-style: none; padding-left: 0; }
.wp-block-post-content ul.wp-block-list li { position: relative; padding-left: 1.5rem; margin-bottom: .75rem; }
.wp-block-post-content ul.wp-block-list li::before {
	content: ""; position: absolute; left: .25rem; top: .6em;
	width: 8px; height: 8px; background: var(--wp--preset--color--groen);
}

/* Citaten in artikelen */
.wp-block-post-content .wp-block-quote:not(.pk-quote),
.wp-block-post-content .wp-block-pullquote {
	border: 0; padding: 0 0 0 1.75rem; margin-block: 2.5rem;
	border-left: 8px solid var(--wp--preset--color--roze);
}
.wp-block-post-content .wp-block-quote:not(.pk-quote) p {
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800; font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.1;
}
.wp-block-post-content .wp-block-quote cite { font-style: normal; font-size: 1rem; }

/* Auteurblok onder artikel */
.pk-author { gap: 1.5rem !important; padding: 1.75rem !important; }
.pk-author .pk-mark a { width: 64px; height: 64px; font-size: 1.75rem; }
.pk-author p { margin: 0; }

.pk-postnav { border-top: 1px solid rgba(0,0,0,.15); padding-top: 1.5rem; gap: 1rem 2rem; }
.pk-postnav a { font-weight: 700; text-decoration: none; }
.pk-postnav a:hover { color: var(--wp--preset--color--rood-donker); }

/* ---------- Nieuwsbrief / contact ---------- */
.pk-cta-buttons { margin-top: .5rem !important; }

/* ---------- Footer ---------- */
.pk-footer a { color: var(--wp--preset--color--wit); text-decoration: none; }
.pk-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pk-footer h2 { font-size: 1.375rem !important; margin: 0 0 .5rem; }
.pk-footer ul { list-style: none; padding: 0; margin: 0; }
.pk-footer li { margin: 0 0 .375rem; }
.pk-footer-tagline { font-family: var(--wp--preset--font-family--condensed); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; margin: 0; }
.pk-footer-small { font-size: .9375rem; color: #BBBBBB; }
.pk-footer-bottom { border-top: 1px solid #333333; padding-top: 1.25rem; gap: .75rem 2rem; margin-top: 2.5rem !important; }
.pk-footer .wp-block-social-links .wp-social-link { background: var(--wp--preset--color--wit) !important; color: var(--wp--preset--color--zwart) !important; border-radius: 0; }
.pk-footer .wp-block-social-links .wp-social-link a { color: var(--wp--preset--color--zwart) !important; text-decoration: none; }
.pk-footer .wp-block-social-links .wp-social-link:hover { background: var(--wp--preset--color--roze) !important; }

/* ---------- Toegankelijkheid ---------- */
:where(a, button, input, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--zwart);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--wp--preset--color--roze);
}
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--zwart); color: var(--wp--preset--color--wit);
}

/* Formulieren (bijv. zoekveld of een later toegevoegd nieuwsbriefformulier) */
input[type="text"], input[type="email"], input[type="search"], textarea {
	border: 1px solid var(--wp--preset--color--zwart); border-radius: 0;
	padding: .75rem .875rem; font: inherit; background: var(--wp--preset--color--wit);
	min-height: 48px;
}

/* ---------- Linkspagina ---------- */
.pk-links { gap: 1rem !important; margin-bottom: 2.5rem; }
.pk-link-card { padding: 1.5rem !important; gap: .5rem !important; transition: transform .2s ease; }
.pk-link-card:hover { transform: translateY(-3px); }
.pk-link-card h3 { margin: 0; font-size: 1.5rem; }
.pk-link-card h3 a { text-decoration: none; }
.pk-link-card h3 a::after { content: " \2197"; font-size: .8em; }
.pk-link-card h3 a:hover { color: var(--wp--preset--color--rood-donker); }
.pk-link-card p { margin: 0; font-size: 1.0625rem; }

.pk-badge { margin: 0; }
.pk-badge img { display: block; height: 38px; width: auto; }
.pk-badge a:hover { text-decoration: none; opacity: .9; }
