/*
Theme Name: BIS Theme
Description: Custom thema voor de BIS auteurs- en blogsite: blog met categorieën, auteursprofielen en boeken.
Author: BIS Publishers
Version: 1.0.0
Text Domain: bis-theme
*/

/* -------------------------------------------------- */
/* Variabelen (huisstijl bispublishers.com)             */
/* -------------------------------------------------- */
:root {
	--color-primary: #F2A024;
	--color-primary-dark: #EC6208;
	--color-accent: #FEED00;
	--color-black: #000000;
	--color-white: #FFFFFF;
	--color-bg-light: #F9F9F9;
	--color-bg-lighter: #EDEDED;
	--color-text: #1D1D1D;
	--color-text-muted: #666666;
	--color-border: #E5E5E5;

	--font-base: 'Bricolage Grotesque', Helvetica, Arial, sans-serif;

	--container-width: 1240px;
	--radius: 10px;
	--space-section: 7rem;
}

/* -------------------------------------------------- */
/* Reset & basis                                        */
/* -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-base);
	font-size: 17px;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
	font-family: var(--font-base);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 0.6em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; }
.archive-title {
	padding-bottom: 0.3em;
	margin-bottom: 2.5rem;
	border-bottom: 4px solid var(--color-black);
}
h2 {
	font-size: clamp(1.7rem, 2.6vw, 2.4rem);
	padding-bottom: 0.3em;
	border-bottom: 4px solid var(--color-black);
}
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 28px;
}
.section { padding: var(--space-section) 0; }
.section--tight { padding: 3.5rem 0; }
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 3rem;
	padding-bottom: 1.2rem;
	border-bottom: 4px solid var(--color-black);
	flex-wrap: wrap;
}
.section-head h2 { margin: 0; padding-bottom: 0; border-bottom: none; }
.bg-light { background: var(--color-bg-light); }

/* -------------------------------------------------- */
/* Knoppen                                              */
/* -------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.85em 1.9em;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	background: var(--color-primary);
	color: var(--color-black);
	border: 2px solid var(--color-primary);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	cursor: pointer;
}
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-white); }
.btn-outline {
	background: transparent;
	color: var(--color-black);
	border: 2px solid var(--color-black);
}
.btn-outline:hover { background: var(--color-black); color: var(--color-white); border-color: var(--color-black); }

/* -------------------------------------------------- */
/* Afgeknipt logo (huisstijlkenmerk uit de BIS brand guide:  */
/* logo gecentreerd, 2/3 zichtbaar / 1/3 afgesneden)          */
/* -------------------------------------------------- */
.logo-crop {
	/* logo-mark.png verhouding: 1646 x 884px */
	--logo-w: clamp(160px, 24vw, 340px);
	height: calc(var(--logo-w) * 0.3583);
	overflow: hidden;
	display: flex;
	justify-content: center;
	background: var(--color-white);
	pointer-events: none;
	user-select: none;
}
.logo-crop img {
	width: var(--logo-w);
	max-width: none;
	flex-shrink: 0;
}
.logo-crop--top img { margin-top: calc(var(--logo-w) * -0.1789); }
.logo-crop--bottom img { margin-top: 0; }

/* -------------------------------------------------- */
/* Header                                               */
/* -------------------------------------------------- */
.site-header {
	background: var(--color-white);
}

/* Rij 1: dunne navigatiebalk */
.header-topbar {
	position: relative;
	border-bottom: 1px solid var(--color-border);
}
.header-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 42px;
}
.header-nav-group { display: flex; align-items: center; gap: 2.5rem; }
.primary-nav ul { display: flex; align-items: center; gap: 2.2rem; }
.primary-nav a {
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: -0.01em;
	position: relative;
}
.primary-nav a:hover { color: var(--color-primary-dark); }
.primary-nav li.is-current a { color: var(--color-primary); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; flex-shrink: 0; }

.header-social { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.header-social a { color: var(--color-black); display: flex; }
.header-social a:hover { color: var(--color-primary); }
.header-social svg { width: 18px; height: 18px; }

.search-toggle {
	display: flex;
	align-items: center;
	background: none;
	border: 0;
	padding: 0;
	color: var(--color-black);
	cursor: pointer;
	flex-shrink: 0;
}
.search-toggle:hover { color: var(--color-primary); }
.search-toggle svg { width: 18px; height: 18px; }

.header-search-form {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 60;
	background: var(--color-white);
	border-bottom: 1px solid var(--color-border);
	padding: 1.2rem 0;
	box-shadow: 0 12px 24px -18px rgba(0,0,0,0.3);
}
.header-search-form.is-open { display: block; }
.header-search-form-inner { display: flex; align-items: center; gap: 0.8rem; }
.header-search-form input[type="search"] {
	flex: 1;
	font-family: var(--font-base);
	font-size: 1.05rem;
	padding: 0.7em 1.2em;
	border: 2px solid var(--color-border);
	border-radius: 999px;
}
.header-search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--color-primary);
}
.header-search-form button {
	display: flex;
	align-items: center;
	background: var(--color-black);
	color: var(--color-white);
	border: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}
.header-search-form button:hover { background: var(--color-primary-dark); }
.header-search-form button svg { width: 18px; height: 18px; }

@media (max-width: 700px) {
	.nav-toggle { display: block; }
	.primary-nav {
		display: none;
		position: absolute;
		top: 42px;
		left: 0;
		right: 0;
		z-index: 50;
		background: var(--color-white);
		border-bottom: 1px solid var(--color-border);
		padding: 1.5rem 28px;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
}

/* Rij 2: groot logo (masthead) */
.header-masthead {
	padding: 1rem 0;
	border-bottom: 3px solid var(--color-black);
}
.header-masthead-inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}
.site-logo {
	display: inline-flex;
	align-items: center;
	font-size: clamp(2.4rem, 5.5vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	flex-shrink: 0;
}
.logo-dot {
	display: inline-block;
	width: 0.2em;
	height: 0.2em;
	margin-left: 0.06em;
	border-radius: 50%;
	background: var(--color-primary);
}
.header-tagline {
	max-width: 380px;
	margin: 0 0 0.6rem;
	color: var(--color-text-muted);
	font-size: 1.02rem;
	line-height: 1.5;
	text-align: right;
}
@media (max-width: 700px) {
	.header-masthead-inner { flex-direction: column; align-items: flex-start; }
	.header-tagline { text-align: left; }
}

/* -------------------------------------------------- */
/* Hero (opening afbeelding)                            */
/* -------------------------------------------------- */
.hero {
	position: relative;
	width: 100%;
	height: 62vh;
	min-height: 380px;
	max-height: 640px;
	overflow: hidden;
	background: var(--color-black);
}
.hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.82;
}
.hero-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 3rem 0 3.5rem;
	background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 100%);
}
.hero-caption .container { color: var(--color-white); }
.hero-caption h1 { color: var(--color-white); margin-bottom: 0.4em; }
.eyebrow {
	display: inline-block;
	background: var(--color-primary);
	color: var(--color-black);
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	margin-bottom: 1em;
}

/* -------------------------------------------------- */
/* Categorie-tabs                                       */
/* -------------------------------------------------- */
.category-tabs { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.category-tabs a {
	padding: 0.6em 1.4em;
	border-radius: 999px;
	border: 2px solid var(--color-border);
	font-weight: 600;
	font-size: 0.92rem;
}
.category-tabs a:hover { border-color: var(--color-primary); }
.category-tabs a.is-active {
	background: var(--color-black);
	border-color: var(--color-black);
	color: var(--color-white);
}

/* -------------------------------------------------- */
/* Kaartgrid: blogartikelen                              */
/* -------------------------------------------------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card-post { display: block; }
.card-post-media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-bg-lighter);
	margin-bottom: 1.1rem;
}
.card-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card-post:hover .card-post-media img { transform: scale(1.045); }
.card-post-category {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--color-white);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.4em 0.8em;
	border-radius: 999px;
}
.card-post h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-post:hover h3 { color: var(--color-primary-dark); }
.card-post-excerpt { color: var(--color-text-muted); font-size: 0.96rem; }
.card-post-author {
	margin-top: 0.9rem;
	font-size: 0.9rem;
	font-weight: 600;
}

/* -------------------------------------------------- */
/* Auteursgrid                                          */
/* -------------------------------------------------- */
.author-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2.2rem;
}
@media (max-width: 980px) { .author-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .author-grid { grid-template-columns: repeat(2, 1fr); } }

.card-author { text-align: center; display: block; }
.card-author-photo {
	aspect-ratio: 1 / 1;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-bg-lighter);
	margin: 0 auto 1rem;
	width: 68%;
}
.card-author-photo img { width: 100%; height: 100%; object-fit: contain; }
.card-author h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.card-author:hover h3 { color: var(--color-primary-dark); }
.card-author-role { color: var(--color-text-muted); font-size: 0.88rem; }

/* archief-grid met meer kolommen voor het volledige overzicht */
.author-grid--archive { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .author-grid--archive { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .author-grid--archive { grid-template-columns: repeat(2, 1fr); } }


/* -------------------------------------------------- */
/* About BIS (homepage teaser)                          */
/* -------------------------------------------------- */
.about-teaser {
	background: var(--color-black);
	text-align: center;
}
.about-teaser .container { max-width: 700px; }
.about-teaser h2 { color: var(--color-white); }
.about-teaser p { color: rgba(255, 255, 255, 0.75); font-size: 1.08rem; margin-bottom: 2.2rem; }

/* -------------------------------------------------- */
/* Alfabet-navigatie auteursoverzicht                   */
/* -------------------------------------------------- */
.alpha-group { margin-bottom: 3.5rem; }
.alpha-group-letter {
	font-size: 1rem;
	font-weight: 800;
	color: var(--color-primary-dark);
	border-bottom: 2px solid var(--color-border);
	padding-bottom: 0.6rem;
	margin-bottom: 1.8rem;
}

/* -------------------------------------------------- */
/* Blogartikel: content                                 */
/* -------------------------------------------------- */
.entry {
	max-width: 780px;
	margin: 0 auto;
}
.entry-meta {
	color: var(--color-text-muted);
	font-size: 0.92rem;
	margin-bottom: 1.5rem;
}
.entry-content { font-size: 1.08rem; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 2.4em 0; }
.entry-content blockquote {
	margin: 2.6em 0;
	padding: 0.4em 0 0.4em 1.8em;
	border-left: 5px solid var(--color-primary);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--color-black);
	position: relative;
}
.entry-content blockquote p { margin-bottom: 0.4em; }
.entry-content blockquote cite {
	display: block;
	margin-top: 0.6em;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-text-muted);
	font-style: normal;
}

/* -------------------------------------------------- */
/* Share-iconen onder blogartikel                       */
/* -------------------------------------------------- */
.share-row {
	max-width: 780px;
	margin: 3.5rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.share-label {
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
	margin-right: 0.4rem;
}
.share-row a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 2px solid var(--color-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-black);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.share-row a:hover { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-white); }
.share-row svg { width: 16px; height: 16px; }

/* -------------------------------------------------- */
/* Auteursblok onder blogartikel                        */
/* -------------------------------------------------- */
.author-box {
	max-width: 780px;
	margin: 4.5rem auto 0;
	padding: 2.2rem;
	background: var(--color-bg-light);
	border-radius: var(--radius);
	display: flex;
	gap: 1.6rem;
	align-items: flex-start;
}
.author-box-photo {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--color-bg-lighter);
}
.author-box-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name { font-size: 1.1rem; margin-bottom: 0.2rem; }
.author-box-role { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 0.8rem; }
.author-box-bio { font-size: 0.95rem; line-height: 1.6; max-width: 520px; margin-bottom: 1.2rem; }
.author-box .btn { padding: 0.5em 1.3em; font-size: 0.85rem; }
.author-box-books-title {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-muted);
	margin: 1.8rem 0 0.8rem;
}
@media (max-width: 560px) { .author-box { flex-direction: column; align-items: center; text-align: center; } }

/* -------------------------------------------------- */
/* Boekengrid                                           */
/* -------------------------------------------------- */
.book-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1.8rem;
}
.book-grid a { display: block; }

/* homepage-preview: twee rijen van vier, zelfde formaat als de rest van de grid */
.book-grid--home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .book-grid--home { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .book-grid--home { grid-template-columns: repeat(2, 1fr); } }
.book-cover {
	aspect-ratio: 3 / 4;
	border-radius: 6px;
	overflow: hidden;
	background: var(--color-bg-lighter);
	box-shadow: 0 14px 26px -14px rgba(0,0,0,0.35);
	margin-bottom: 0.7rem;
	transition: transform 0.2s ease;
}
.book-grid a:hover .book-cover { transform: translateY(-6px); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-title { font-size: 0.88rem; font-weight: 600; text-align: center; }

/* -------------------------------------------------- */
/* Auteursprofiel                                       */
/* -------------------------------------------------- */
.author-header {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 3.5rem;
	align-items: start;
	margin-bottom: 4rem;
}
.author-portrait {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-bg-lighter);
}
.author-portrait img { width: 100%; height: auto; display: block; }
.author-facts h1 { margin-bottom: 1.2rem; }
.author-facts-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem 2rem;
	margin-bottom: 1.6rem;
}
.author-facts-list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.96rem;
	color: var(--color-text-muted);
}
.author-facts-list li strong { color: var(--color-text); }
.author-socials { display: flex; gap: 0.8rem; }
.author-socials a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid var(--color-border);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.author-socials a:hover { border-color: var(--color-primary); background: var(--color-primary); }
.author-socials svg { width: 18px; height: 18px; }
@media (max-width: 700px) {
	.author-header { grid-template-columns: 1fr; text-align: center; }
	.author-portrait { width: 55%; margin: 0 auto; }
	.author-facts-list, .author-socials { justify-content: center; }
}
.author-bio { max-width: 780px; font-size: 1.05rem; margin-bottom: 4rem; }

/* -------------------------------------------------- */
/* Pagina ("Over ons")                                  */
/* -------------------------------------------------- */
.page-content { max-width: 780px; margin: 0 auto; font-size: 1.08rem; }
.page-title { text-align: center; max-width: 780px; margin: 0 auto 2.5rem; }

/* -------------------------------------------------- */
/* Paginering                                           */
/* -------------------------------------------------- */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	margin-top: 4rem;
}
.pagination a, .pagination span {
	min-width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: 600;
	font-size: 0.9rem;
}
.pagination .current { background: var(--color-black); color: var(--color-white); }
.pagination a:hover { background: var(--color-bg-lighter); }

/* -------------------------------------------------- */
/* Footer                                               */
/* -------------------------------------------------- */
.site-footer {
	background: var(--color-black);
	color: var(--color-white);
	padding: 4.5rem 0 2.5rem;
	margin-top: var(--space-section);
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 3rem;
	margin-bottom: 3rem;
}
.footer-grid h4 { color: var(--color-white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.2rem; }
.footer-grid a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--color-primary); }
.footer-grid ul li { margin-bottom: 0.7rem; }
.site-footer .site-logo { color: var(--color-white); margin-bottom: 1rem; font-size: 1.8rem; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.15);
	padding-top: 1.8rem;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.55);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------- */
/* Overig                                               */
/* -------------------------------------------------- */
.empty-state { color: var(--color-text-muted); padding: 3rem 0; text-align: center; }
