/*
Theme Name: RN Nelemans
Theme URI: https://www.rebeccanelemans.nl/
Author: Neon
Description: Lightweight classic theme for rebeccanelemans.nl, rebuilt from the 2024 design so the site no longer depends on Elementor Pro Theme Builder. Work Sans is self-hosted; no external font or CDN requests.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rn-nelemans
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* ==========================================================
   1. Fonts — self-hosted Work Sans (latin subset)
   ========================================================== */

@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/work-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'Work Sans';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/work-sans-latin-400-italic.woff2') format('woff2');
}

@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/work-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/work-sans-latin-600-normal.woff2') format('woff2');
}

/* ==========================================================
   2. Tokens
   ========================================================== */

:root {
	--rn-bg: #f2ede5;
	--rn-surface: #fff;
	--rn-ink: #333;
	--rn-ink-soft: #6f6a63;
	--rn-rule: rgba(51, 51, 51, 0.2);
	--rn-rule-faint: rgba(51, 51, 51, 0.1);
	--rn-accent: #725eff;

	/* Section colour. Overridden per category by body classes below,
	   which is what tinted the post titles on the old site. */
	--rn-section: #333;

	--rn-font: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

	--rn-container: 1180px;
	--rn-sidebar: 300px;
	--rn-gutter: 1.5rem;
	--rn-column-gap: 4rem;
}

/* Section accents, matching the old menu colours.
   Add these slugs to your categories, or edit rn_section_colors() in functions.php. */
.section-advies              { --rn-section: #ccba99; }
.section-projecten           { --rn-section: #ffa882; }
.section-gesprekken-lezingen { --rn-section: #66cc99; }
.section-teksten             { --rn-section: #63d9e2; }
.section-over                { --rn-section: #63635f; }

/* The five hexes above are the originals from the old site. At 44px on
   this cream background the cyan lands around 1.9:1 contrast, which is
   below the 3:1 minimum for large text. Two alternatives, pick one:

   (a) Same hues, darkened to roughly 3.8:1 — uncomment to use.
.section-advies              { --rn-section: #8a7a55; }
.section-projecten           { --rn-section: #c2603a; }
.section-gesprekken-lezingen { --rn-section: #2f8f61; }
.section-teksten             { --rn-section: #2b8a91; }
.section-over                { --rn-section: #63635f; }

   (b) Ink titles everywhere, colour kept for menu hovers only.
:root { --rn-section: #333 !important; }
*/

/* ==========================================================
   3. Base
   ========================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--rn-bg);
	color: var(--rn-ink);
	font-family: var(--rn-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--rn-ink);
}

a:hover,
a:focus-visible {
	color: var(--rn-accent);
}

:focus-visible {
	outline: 2px solid var(--rn-accent);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rn-font);
	font-weight: 400;
	line-height: 1.2;
	margin: 2em 0 0.6em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9375rem; }

p, ul, ol, table, pre, figure, blockquote {
	margin: 0 0 1.5em;
}

blockquote {
	border-left: 2px solid var(--rn-rule);
	margin-left: 0;
	padding-left: 1.5rem;
	font-style: italic;
	color: var(--rn-ink-soft);
}

hr {
	border: 0;
	border-top: 1px solid var(--rn-rule);
	margin: 2.5rem 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--rn-ink);
	color: #fff;
	padding: 0.75rem 1.25rem;
	z-index: 100;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

/* ==========================================================
   4. Layout
   ========================================================== */

.rn-container {
	max-width: var(--rn-container);
	margin: 0 auto;
	padding-inline: var(--rn-gutter);
}

.site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--rn-sidebar);
	gap: var(--rn-column-gap);
	align-items: start;
	padding-bottom: 5rem;
}

.site-content--full {
	grid-template-columns: minmax(0, 1fr);
}

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

/* ==========================================================
   5. Header
   ========================================================== */

.site-header {
	padding: 3.5rem 0 2.75rem;
}

.site-title {
	font-size: clamp(1.5rem, 3.2vw, 2rem);
	font-weight: 400;
	line-height: 1.15;
	margin: 0;
	letter-spacing: -0.005em;
}

.site-title a {
	text-decoration: none;
}

.site-description {
	margin: 0.5rem 0 0;
	color: var(--rn-ink-soft);
	font-size: 0.9375rem;
}

.main-navigation {
	margin-top: 1.25rem;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.75rem;
}

.main-navigation a {
	text-decoration: none;
	font-size: 1rem;
	padding: 0.25rem 0;
	display: inline-block;
	transition: color 0.15s ease;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
	box-shadow: inset 0 -1px 0 currentColor;
}

/* Per-item hover colours. Add menu1 … menu5 as CSS classes on the
   menu items under Appearance → Menus → Screen Options → CSS Classes. */
.main-navigation .menu1 > a:hover, .main-navigation .menu1 > a:focus-visible { color: #ccba99; }
.main-navigation .menu2 > a:hover, .main-navigation .menu2 > a:focus-visible { color: #ffa882; }
.main-navigation .menu3 > a:hover, .main-navigation .menu3 > a:focus-visible { color: #66cc99; }
.main-navigation .menu4 > a:hover, .main-navigation .menu4 > a:focus-visible { color: #63d9e2; }
.main-navigation .menu5 > a:hover, .main-navigation .menu5 > a:focus-visible { color: #63635f; }

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--rn-rule);
	border-radius: 5px;
	color: var(--rn-ink);
	font-family: inherit;
	font-size: 0.9375rem;
	padding: 0.5rem 0.9rem;
	cursor: pointer;
}

@media (max-width: 600px) {
	.site-header {
		padding: 2.25rem 0 1.75rem;
	}

	.menu-toggle {
		display: inline-block;
		margin-top: 1.25rem;
	}

	.main-navigation {
		margin-top: 0;
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
		gap: 0;
		margin-top: 1rem;
	}

	.main-navigation.is-open ul {
		display: flex;
	}

	.main-navigation li {
		border-bottom: 1px solid var(--rn-rule-faint);
	}

	.main-navigation a {
		padding: 0.7rem 0;
		width: 100%;
	}
}

/* ==========================================================
   6. Section heading (Recent / archive titles)
   ========================================================== */

.page-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
	color: var(--rn-section);   /* added */
	margin: 0 0 1.75rem;
}

.archive-description {
	color: var(--rn-ink-soft);
	margin: -1rem 0 2rem;
	max-width: 60ch;
}

/* ==========================================================
   7. Post cards (front page + archives)
   ========================================================== */

.card {
	background: var(--rn-surface);
	margin-bottom: 2.75rem;
}

.card__thumb {
	display: block;
	margin: 0;
}

.card__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.card__body {
	padding: 1.75rem 1.75rem 1.5rem;
}

.card__title {
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 0.75rem;
}

.card__title a {
	color: var(--rn-section);
	text-decoration: none;
}

.card__title a:hover,
.card__title a:focus-visible {
	color: var(--rn-accent);
}

.card__excerpt {
	color: var(--rn-ink-soft);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
	max-width: 62ch;
}

.card__more {
	display: inline-block;
	margin-top: 1.1rem;
	font-size: 0.75rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--rn-ink-soft);
	text-decoration: none;
}

.card__more:hover,
.card__more:focus-visible {
	color: var(--rn-accent);
}

.card__footer {
	border-top: 1px solid var(--rn-rule-faint);
	padding: 0.9rem 1.75rem;
	font-size: 0.78rem;
	color: var(--rn-ink-soft);
}

/* ==========================================================
   8. Single post / page
   ========================================================== */

.entry-header {
	margin-bottom: 2rem;
}

.entry-title {
	font-size: clamp(1.9rem, 4vw, 2.75rem);
	font-weight: 400;
	line-height: 1.14;
	color: var(--rn-section);
	margin: 0;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	max-width: 68ch;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
}

.entry-content figure {
	margin: 2rem 0;
}

.entry-content img {
	display: block;
}

.entry-content figcaption,
.wp-caption-text {
	font-size: 0.8125rem;
	font-style: italic;
	color: var(--rn-ink-soft);
	margin-top: 0.6rem;
	max-width: 68ch;
}

.content-area,
.entry-content {
	min-width: 0;
}

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object {
	max-width: 100%;
	height: auto;
}

.entry-content figure,
.entry-content .wp-caption,
.entry-content .wp-block-image,
.entry-content .gallery,
.entry-content table,
.entry-content pre {
	max-width: 100%;
}

.entry-content .wp-caption,
.entry-content .wp-block-image {
	width: auto !important;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
	width: 100%;
}

.entry-content {
	overflow-wrap: break-word;
}

.entry-content pre {
	overflow-x: auto;
}

.alignleft {
	float: left;
	margin: 0.4rem 1.75rem 1.25rem 0;
}

.alignright {
	float: right;
	margin: 0.4rem 0 1.25rem 1.75rem;
}

.aligncenter {
	margin-inline: auto;
}

.entry-footer {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rn-rule-faint);
	font-size: 0.8125rem;
	color: var(--rn-ink-soft);
}

.entry-footer a {
	color: var(--rn-ink-soft);
}

/* Inline links in body copy — kept from the previous stylesheet */
.entry-content p a,
.entry-content li a {
	color: var(--rn-ink);
	border-bottom: 1px solid var(--rn-ink);
	text-decoration: none;
}

.entry-content p a:hover,
.entry-content li a:hover,
.entry-content p a:focus-visible,
.entry-content li a:focus-visible {
	color: var(--rn-accent);
	border-bottom-color: var(--rn-accent);
}

/* ==========================================================
   9. Post navigation & pagination
   ========================================================== */

.post-navigation {
	margin-top: 3.5rem;
	border-top: 1px solid var(--rn-rule-faint);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	padding-top: 1.5rem;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	text-decoration: none;
	display: block;
}

.post-navigation .nav-label {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--rn-ink-soft);
	margin-bottom: 0.35rem;
}

.post-navigation .nav-title {
	font-size: 1rem;
	line-height: 1.35;
}

@media (max-width: 600px) {
	.post-navigation {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.post-navigation .nav-next {
		text-align: left;
	}
}

.pagination {
	margin-top: 1rem;
	font-size: 0.9375rem;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--rn-rule);
	border-radius: 5px;
	margin: 0 0.25rem 0.5rem 0;
	text-decoration: none;
}

.pagination .current {
	border-color: var(--rn-ink);
}

/* ==========================================================
   10. Sidebar & widgets
   ========================================================== */

.widget {
	/* border-top: 3px solid var(--rn-ink); */
	padding-top: 1rem;
	margin-bottom: 2.75rem;
	font-size: 0.9375rem;
}

.widget-title {
	/* font-size: 1.25rem; */
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
	margin: 0 0 1rem;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	margin-bottom: 0.4rem;
}

.widget a {
	text-decoration: none;
}

/* Core tag cloud, styled to match the Cool Tag Cloud pills so the
   sidebar survives if that plugin is ever removed. */
.tagcloud a,
.wp-block-tag-cloud a {
	display: inline-block;
	font-size: 0.8125rem !important;
	line-height: 22px;
	height: 25px;
	padding: 0 10px;
	margin: 0 6px 6px 0;
	border: 1px solid var(--rn-rule);
	border-radius: 5px;
	background: var(--rn-bg);
	color: var(--rn-ink);
	text-decoration: none;
	white-space: nowrap;
}

.tagcloud a:hover,
.tagcloud a:focus-visible,
.wp-block-tag-cloud a:hover,
.wp-block-tag-cloud a:focus-visible {
	color: var(--rn-accent);
	border-color: var(--rn-accent);
}

/* ==========================================================
   11. Forms & search
   ========================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
	font-family: inherit;
	font-size: 1rem;
	color: var(--rn-ink);
	background: var(--rn-surface);
	border: 1px solid var(--rn-rule);
	border-radius: 5px;
	padding: 0.55rem 0.75rem;
	width: 100%;
	max-width: 26rem;
}

button,
input[type="submit"],
input[type="button"] {
	font-family: var(--rn-font);
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--rn-ink);
	background: var(--rn-surface);
	border: 1px solid var(--rn-rule);
	border-radius: 5px;
	padding: 0.55rem 1.1rem;
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
	color: var(--rn-accent);
	border-color: var(--rn-accent);
}

.search-form {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.search-form label {
	flex: 1 1 12rem;
}

/* ==========================================================
   12. Footer
   ========================================================== */

.site-footer {
	border-top: 1px solid var(--rn-rule-faint);
	padding: 2rem 0 3rem;
	font-size: 0.8125rem;
	color: var(--rn-ink-soft);
}

.site-footer a {
	color: var(--rn-ink-soft);
}

/* ==========================================================
   13. Plugin compatibility — Cool Tag Cloud
   The plugin declares nearly everything !important, so these
   overrides need both the right selector and !important.
   ========================================================== */

.cool-tag-cloud {
	margin-bottom: 1em;
}

.cool-tag-cloud .arial {
	font-family: var(--rn-font) !important;
}

.cool-tag-cloud .ctcleft a,
.cool-tag-cloud .ctcright a {
	display: inline-block !important;
	height: 25px !important;
	line-height: 22px !important;
	padding: 0 10px !important;
	margin: 0 6px 6px 0 !important;
	border: 1px solid var(--rn-rule) !important;
	border-radius: 5px;
	text-decoration: none !important;
	text-shadow: none !important;
	white-space: nowrap !important;
	transition: none !important;
	position: unset;
	font-size: 12px;
}

.cool-tag-cloud .ctcblack .ctcleft a,
.cool-tag-cloud .ctcblack .ctcright a,
.cool-tag-cloud .ctcblack .ctcleft a:visited,
.cool-tag-cloud .ctcblack .ctcright a:visited {
	background: var(--rn-bg) !important;
	color: var(--rn-ink) !important;
	text-shadow: none !important;
}

.cool-tag-cloud .ctcblack .ctcleft a:hover,
.cool-tag-cloud .ctcblack .ctcright a:hover,
.cool-tag-cloud .ctcleft a:focus-visible,
.cool-tag-cloud .ctcright a:focus-visible {
	color: var(--rn-accent) !important;
	background: var(--rn-bg) !important;
	border-color: var(--rn-accent) !important;
	padding: 0 10px !important;
	border: 1px solid var(--rn-accent) !important;
	text-shadow: none !important;
	cursor: pointer !important;
	font-size: 12px;
}

/* ==========================================================
   14. Motion
   ========================================================== */

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