/*
Theme Name: Spinozaplantsoen
Description: Modern rebuild of the original spinozaplantsoen.nl look (based on Thematic 0.7 by Ian Stewart, GPL). Classic PHP theme, responsive, no dependencies.
Version: 2.1.3
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: spinozaplantsoen
*/

/* =Tokens (colours from the original theme)
-------------------------------------------------------------- */
:root {
	--green: #94b411;
	--green-dark: #6f8a08;
	--green-tint: #f3f6e7;
	--coral: #fa5258;
	--coral-dark: #d93a41;
	--text: #1d1f1a;
	--muted: #6b6f66;
	--line: #e3e6dc;
	--serif: "Hoefler Text", Georgia, "Times New Roman", serif;
	--sans: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Segoe UI", system-ui, sans-serif;
	--wrap: 960px;
	--gutter: 20px;
	--radius: 6px;
}

/* =Base
-------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font: 15px/1.65 var(--sans);
}
h1, h2, h3, h4, h5, h6 { font-weight: normal; margin: 0; }
p, ul, ol, dl, pre, table, figure { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.4em; }
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }
blockquote { margin: 0 0 1.2em; padding-left: 1em; border-left: 3px solid var(--green); font-style: italic; }
input, textarea, select, button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: #fff; color: var(--text); padding: 8px 14px; border-radius: var(--radius);
	box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.skip-link:focus { left: 8px; }

/* =Header: plant logo left, icon strip right (as on the original)
-------------------------------------------------------------- */
#branding {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 10px;
}
.site-logo { display: block; flex: none; line-height: 0; }
.site-logo img { width: 196px; height: auto; }
.site-logo:hover img { transform: rotate(-2deg); }
.site-logo img { transition: transform .3s ease; }
.site-icons { width: 335px; height: auto; margin-top: 40px; margin-right: 30px; }

/* =Menu: the green bar
-------------------------------------------------------------- */
#access {
	background: var(--green);
	position: relative;
	z-index: 20;
}
#access .menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0 4px;
}
#access .menu li { margin: 0; }
#access .menu a {
	display: block;
	padding: 10px 10px 9px;
	color: #fff;
	font-weight: bold;
	font-size: 15px;
	text-decoration: none;
	border-bottom: 3px solid transparent;
}
#access .menu a:hover { border-bottom-color: rgba(255,255,255,.6); }
#access .menu .current-menu-item > a,
#access .menu .current_page_item > a { border-bottom-color: #fff; }
#access .menu a:focus-visible { outline-color: #fff; outline-offset: -3px; }
.menu-toggle { display: none; }

/* =Layout: content + sidebar
-------------------------------------------------------------- */
#main {
	display: flex;
	align-items: flex-start;
	gap: 56px;
	padding-top: 40px;
	padding-bottom: 56px;
}
#container { flex: 1 1 auto; min-width: 0; }
#content { max-width: 620px; }
.main-aside { flex: 0 0 210px; }

/* =Titles & meta
-------------------------------------------------------------- */
.entry-title {
	font-family: var(--serif);
	font-weight: bold;
	color: var(--coral);
	font-size: 30px;
	line-height: 1.15;
	margin: 0 0 6px;
	text-wrap: balance;
}
.entry-title a { color: inherit; }
.entry-meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.entry-meta a { color: var(--muted); font-style: italic; }
.page-title {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: bold;
	color: var(--text);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--green);
}
.page-title span { color: var(--coral); }

/* =Overview cards (home, archives, search)
-------------------------------------------------------------- */
.card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	padding: 26px 0;
	border-top: 1px solid var(--green);
}
.card:first-of-type { border-top: 0; padding-top: 0; }
.card.has-thumb { grid-template-columns: 200px 1fr; }
.card-thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--green-tint);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .4s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card .entry-title { font-size: 23px; }
.card-excerpt { margin: 8px 0 10px; }
.more-link { font-weight: bold; font-size: 14px; }
.more-link:hover span[aria-hidden] { margin-left: 3px; }

/* =Single posts & pages
-------------------------------------------------------------- */
.single .hentry, .page .hentry { padding: 0; }
.entry-content { margin-top: 20px; overflow-wrap: break-word; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content h1, .entry-content h2 { font-size: 20px; font-weight: bold; margin: 1.4em 0 .6em; color: var(--green-dark); }
.entry-content h3 { font-weight: bold; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; margin: 1.4em 0 .6em; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-weight: bold; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.entry-content ul { list-style: square; }
.entry-content img { margin-bottom: 14px; border-radius: 3px; }
.entry-content table { border-collapse: collapse; }
.entry-content td, .entry-content th { padding: 3px 12px 3px 0; vertical-align: top; text-align: left; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.alignleft { float: left; margin: 0 22px 12px 0; }
.alignright { float: right; margin: 0 0 12px 22px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; clear: both; }
.wp-caption { max-width: 100%; margin-bottom: 18px; }
.wp-caption img { margin: 0; }
.wp-caption-text, .wp-element-caption { margin: 4px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* "Terug naar de voorpagina" above pages */
#page-top .xoxo { list-style: none; margin: 0; padding: 0; }
#page-top .widgetcontainer { margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
#page-top a { color: var(--muted); }
#page-top a::before { content: "← "; }
#page-top a:hover { color: var(--coral); }

/* =Navigation
-------------------------------------------------------------- */
.navigation { display: flex; justify-content: space-between; gap: 20px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--green); font-weight: bold; }
.nav-next { margin-left: auto; text-align: right; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.post-nav a {
	display: flex; flex-direction: column; gap: 2px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color .2s, background .2s;
}
.post-nav a:hover { border-color: var(--green); background: var(--green-tint); }
.post-nav-next { grid-column: 2; text-align: right; }
.post-nav-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-nav-title { font-family: var(--serif); font-weight: bold; color: var(--coral); line-height: 1.25; }

/* =Sidebar: drawing, Facebook, search
-------------------------------------------------------------- */
.aside .xoxo { list-style: none; margin: 0; padding: 0; }
.main-aside .widgetcontainer { margin: 0 0 26px; }
.main-aside .widget_custom_html img { margin-bottom: 18px !important; }
.main-aside .widget_custom_html > div > img { mix-blend-mode: multiply; } /* white drawing background disappears on tinted panels */
.main-aside .widget_custom_html a img { border-radius: 4px; transition: opacity .2s; }
.main-aside .widget_custom_html a:hover img { opacity: .85; }
.aside h3 {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: bold;
	color: var(--coral);
	margin: 0 0 10px;
}
.searchform { display: flex; width: 100%; }
.searchform input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #c9ccc2;
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	background: #fff;
}
.searchform input[type="search"]:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 2px rgba(148,180,17,.35); }
.searchform button {
	flex: none;
	padding: 8px 14px;
	border: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--green);
	color: #fff;
	font-weight: bold;
	cursor: pointer;
}
.searchform button:hover { background: var(--green-dark); }

/* =Footer
-------------------------------------------------------------- */
#footer {
	background: var(--green-tint);
	border-top: 3px solid var(--green);
	padding: 28px 0 18px;
	font-size: 14px;
	color: var(--muted);
}
.footer-columns { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 24px; }
.footer-title { font-family: var(--serif); font-weight: bold; font-size: 16px; color: var(--green-dark); margin-bottom: 4px; }
.footer-col p { margin-bottom: 8px; }
#footer a { color: var(--text); }

/* =Tablet
-------------------------------------------------------------- */
@media (max-width: 900px) {
	#main { gap: 32px; }
	.main-aside { flex-basis: 180px; }
	.site-icons { width: 260px; margin-right: 0; }
	.card.has-thumb { grid-template-columns: 160px 1fr; }
}

/* =Phone
-------------------------------------------------------------- */
@media (max-width: 720px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }

	#branding { align-items: center; padding-top: 10px; padding-bottom: 8px; }
	.site-logo img { width: 92px; }
	.site-icons { width: 150px; margin: 0; }

	/* Sticky green bar with a Menu button */
	#access { position: sticky; top: 0; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
	#access.has-toggle .menu-toggle {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		padding: 12px 0;
		background: none;
		border: 0;
		color: #fff;
		font-weight: bold;
		font-size: 17px;
		cursor: pointer;
	}
	.menu-toggle-bars,
	.menu-toggle-bars::before,
	.menu-toggle-bars::after {
		display: block;
		width: 22px;
		height: 2px;
		background: #fff;
		border-radius: 2px;
		transition: transform .25s ease, opacity .2s;
	}
	.menu-toggle-bars { position: relative; }
	.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.menu-toggle-bars::before { top: -7px; }
	.menu-toggle-bars::after { top: 7px; }
	#access.is-open .menu-toggle-bars { background: transparent; }
	#access.is-open .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
	#access.is-open .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }

	#access.has-toggle .menu { display: none; }
	#access.has-toggle.is-open .menu {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding-bottom: 8px;
		border-top: 1px solid rgba(255,255,255,.35);
	}
	#access .menu a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
	#access .menu li:last-child a { border-bottom: 0; }
	#access .menu .current-menu-item > a,
	#access .menu .current_page_item > a { border-bottom-color: rgba(255,255,255,.2); text-decoration: underline; text-underline-offset: 4px; }
	/* without JS: compact wrapped list */
	#access:not(.has-toggle) .menu a { padding: 8px 8px 8px 0; border: 0; font-size: 15px; }

	#main { flex-direction: column; gap: 32px; padding-top: 24px; padding-bottom: 40px; }
	#content { max-width: none; }
	.entry-title { font-size: 26px; }
	.card.has-thumb { grid-template-columns: 1fr; gap: 12px; }
	.card-thumb { aspect-ratio: 16 / 10; }
	.alignleft, .alignright { float: none; margin: 0 0 14px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { grid-column: 1; }

	.main-aside { flex-basis: auto; width: 100%; padding: 20px; background: var(--green-tint); border-radius: var(--radius); }
	.main-aside .xoxo { display: flex; flex-direction: column; gap: 18px; }
	.main-aside .widgetcontainer { margin: 0; min-width: 0; }
	.main-aside .widget_search { order: -1; }
	.main-aside .widget_custom_html .custom-html-widget { display: flex; align-items: center; gap: 24px; }
	.main-aside .widget_custom_html img { margin: 0 !important; }
	.main-aside .widget_custom_html > div > img { width: 120px !important; }
	.main-aside .widget_custom_html a img { width: 150px; }
	.footer-columns { grid-template-columns: 1fr; gap: 6px; }
}

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