/*
Theme Name: Harborline
Theme URI: https://www.eetbaretuingids.nl
Author: Marieke van den Berg
Author URI: https://www.eetbaretuingids.nl
Description: A warm, earthy design with soft tinted surfaces, generous rounding and clean line-art inspired details for calm, content-focused reading.
Version: 2.4.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--bg: #faf5ec;
	--fg: #3d3128;
	--muted: #8d7c6a;
	--border: #e5dac5;
	--radius: 18px;
	--shadow: 0 3px 14px rgba(93, 64, 43, 0.09);
	--accent: #bf6740;
	--sage: #7f9779;
	--butter: #f0d48a;
	--tint: #f4edde;
	--tint-2: #eef1e4;
	--media-ratio: 16/9;
}

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

html {
	margin: 0;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;
	font-weight: 700;
	line-height: 1.25;
	color: var(--fg);
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
}

blockquote {
	margin: 1.5em 0;
	padding: 0.2em 0 0.2em 1.4em;
	border-left: 4px solid var(--butter);
	color: var(--muted);
	font-family: "Iowan Old Style", Palatino, Georgia, serif;
	font-size: 1.1rem;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
}

th,
td {
	padding: 0.6em 0.8em;
	border: 1px solid var(--border);
	text-align: left;
}

th {
	background: var(--tint);
}

code,
pre {
	background: var(--tint);
	border-radius: 6px;
	font-size: 0.92em;
}

code {
	padding: 0.15em 0.4em;
}

pre {
	padding: 1em 1.2em;
	overflow-x: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

h1,
h2,
h3,
p,
li,
.entry-title,
.card-title {
	overflow-wrap: break-word;
}

/* ---------- Header ---------- */

.site-header {
	background: linear-gradient(115deg, #7a4326 0%, #a85c36 55%, #cd8550 100%);
	color: #fdf6e9;
	box-shadow: var(--shadow);
}

.header-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0 14px;
}

.site-name {
	margin: 0;
	font-family: "Iowan Old Style", Palatino, Georgia, serif;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.site-name a {
	color: #fdf6e9;
}

.site-name a:hover,
.site-name a:focus {
	color: var(--butter);
	text-decoration: none;
}

.custom-logo-link img {
	display: block;
	max-height: 64px;
	width: auto;
}

.header-search {
	position: relative;
	display: flex;
	align-items: center;
}

.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(253, 246, 233, 0.45);
	border-radius: 50%;
	background: rgba(253, 246, 233, 0.12);
	color: #fdf6e9;
	cursor: pointer;
	transition: background 0.2s ease;
}

.search-toggle:hover,
.search-toggle:focus {
	background: rgba(253, 246, 233, 0.28);
}

.search-panel {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 60;
	width: min(320px, 86vw);
	padding: 14px;
	background: #fdf6e9;
	border-radius: var(--radius);
	box-shadow: 0 10px 30px rgba(61, 49, 40, 0.25);
}

/* ---------- Navigation ---------- */

.site-nav {
	border-top: 1px solid rgba(253, 246, 233, 0.22);
}

.nav-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 14px 0;
	border: 0;
	background: transparent;
	color: #fdf6e9;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.nav-toggle::before {
	content: "";
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.nav-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 14px;
}

.nav-menu.is-open {
	display: block;
}

.nav-menu a {
	display: block;
	padding: 10px 4px;
	color: #fdf6e9;
}

.nav-menu a:hover,
.nav-menu a:focus {
	color: var(--butter);
	text-decoration: none;
}

.menu-item-has-children {
	position: relative;
}

.menu-item-has-children > a {
	display: inline-block;
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-left: 2px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #fdf6e9;
	cursor: pointer;
	vertical-align: middle;
}

.submenu-toggle::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"]::before {
	transform: rotate(225deg);
}

.sub-menu {
	display: none;
	list-style: none;
	margin: 0 0 6px;
	padding: 0 0 0 18px;
	border-left: 2px solid rgba(253, 246, 233, 0.3);
}

.sub-menu.is-open {
	display: block;
}

@media (min-width: 900px) {
	.nav-toggle {
		display: none;
	}

	.nav-menu {
		display: flex !important;
		flex-wrap: wrap;
		align-items: center;
		padding: 0;
	}

	.nav-menu > li > a {
		padding: 15px 16px;
	}

	.nav-menu > li:first-child > a {
		padding-left: 0;
	}

	.submenu-toggle {
		display: none;
	}

	.sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 70;
		min-width: 250px;
		padding: 10px;
		background: #fdf6e9;
		border: 0;
		border-radius: var(--radius);
		box-shadow: 0 12px 32px rgba(61, 49, 40, 0.22);
	}

	.sub-menu a {
		color: var(--fg);
		padding: 8px 12px;
		border-radius: 10px;
	}

	.sub-menu a:hover,
	.sub-menu a:focus {
		background: var(--tint);
		color: var(--accent);
	}

	.menu-item-has-children:hover > .sub-menu,
	.menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
	max-width: 100%;
	margin: 0 0 22px;
	font-size: 0.86rem;
	color: var(--muted);
}

.trail {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.crumb + .crumb::before {
	content: "\203A";
	margin-right: 6px;
	color: var(--muted);
}

.crumb a {
	color: var(--muted);
}

/* ---------- Layout ---------- */

.layout {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 24px 64px;
	display: block;
}

@media (min-width: 900px) {
	.layout.has-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 48px;
		align-items: start;
	}
}

.page-main {
	max-width: 780px;
	margin: 0 auto;
	padding: 40px 24px 64px;
}

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

.home-hero {
	display: grid;
	gap: 28px;
	align-items: center;
	margin: 0 0 44px;
	padding: 34px 38px;
	background: var(--tint-2);
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

@media (min-width: 820px) {
	.home-hero {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}
}

.hero-title {
	font-size: clamp(1.9rem, 4vw, 2.7rem);
	margin-bottom: 0.35em;
}

.hero-lead {
	font-size: 1.08rem;
	color: var(--muted);
	margin: 0;
}

.hero-art svg {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Post grid cards ---------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 26px;
	margin: 0 0 40px;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--tint);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:nth-child(3n + 2) {
	background: var(--tint-2);
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.card-media {
	display: block;
	aspect-ratio: var(--media-ratio);
	overflow: hidden;
	background: var(--border);
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.card-body {
	padding: 20px 22px 24px;
}

.card-title {
	font-size: 1.18rem;
	margin-bottom: 0.3em;
}

.card-title a {
	color: var(--fg);
}

.card-title a:hover,
.card-title a:focus {
	color: var(--accent);
	text-decoration: none;
}

.card-meta {
	font-size: 0.82rem;
	color: var(--muted);
	margin-bottom: 0.7em;
}

.card-excerpt {
	font-size: 0.94rem;
	color: var(--fg);
}

.card-excerpt p {
	margin-bottom: 0;
}

/* ---------- Archive / search ---------- */

.archive-header {
	margin: 0 0 30px;
	padding-bottom: 18px;
	border-bottom: 2px solid var(--butter);
}

.archive-title {
	font-size: 1.9rem;
	margin-bottom: 0.2em;
}

.archive-desc {
	color: var(--muted);
	max-width: 720px;
}

.archive-desc p:last-child {
	margin-bottom: 0;
}

.no-results {
	color: var(--muted);
}

/* ---------- Pagination ---------- */

.pagination {
	margin: 0 0 20px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--tint);
	color: var(--fg);
}

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fdf6e9;
}

.pagination a.page-numbers:hover {
	background: var(--butter);
	text-decoration: none;
}

/* ---------- Single entry ---------- */

.entry-header {
	margin: 0 0 24px;
}

.entry-title {
	font-size: clamp(1.8rem, 3.5vw, 2.5rem);
	margin-bottom: 0.35em;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 0.86rem;
	color: var(--muted);
}

.entry-meta a {
	color: var(--muted);
}

.entry-meta a:hover {
	color: var(--accent);
}

.entry-media {
	margin: 0 0 28px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
}

.entry-media img {
	display: block;
	width: 100%;
}

.entry-content {
	font-size: 1.03rem;
	overflow-x: hidden;
}

.table-wrap {
	overflow-x: auto;
	margin: 0 0 1.5em;
}

.table-wrap table {
	margin-bottom: 0;
}

.entry-content h2 {
	margin-top: 1.5em;
	font-size: 1.45rem;
}

.entry-content h3 {
	margin-top: 1.4em;
	font-size: 1.2rem;
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content .wp-caption,
.entry-content figure {
	margin: 1.4em 0;
}

.entry-content figcaption {
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: 0.5em;
}

.page-links {
	margin: 1.5em 0;
	font-size: 0.95rem;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 34px 0 0;
}

.entry-tags a {
	display: inline-block;
	padding: 5px 14px;
	background: var(--tint-2);
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 0.82rem;
	color: var(--fg);
}

.entry-tags a:hover {
	background: var(--butter);
	text-decoration: none;
}

/* ---------- Article note ---------- */

.article-note {
	margin: 34px 0 0;
	padding: 18px 22px;
	background: var(--tint-2);
	border-left: 4px solid var(--sage);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 0.95rem;
}

.article-note p:last-child {
	margin-bottom: 0;
}

/* ---------- Author bio ---------- */

.author-bio {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin: 34px 0 0;
	padding: 22px 24px;
	background: var(--tint);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.author-avatar img {
	border-radius: 50%;
	display: block;
}

.author-name {
	font-family: "Iowan Old Style", Palatino, Georgia, serif;
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 0.3em;
}

.author-desc {
	margin: 0;
	font-size: 0.93rem;
	color: var(--muted);
}

/* ---------- Related posts ---------- */

.related-posts {
	margin: 40px 0 0;
	padding-top: 26px;
	border-top: 2px solid var(--butter);
}

.related-title {
	font-size: 1.3rem;
	margin-bottom: 1em;
}

.related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.related-list li {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 12px 14px;
	background: var(--tint);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.related-thumb {
	flex: 0 0 84px;
	aspect-ratio: var(--media-ratio);
	overflow: hidden;
	border-radius: 10px;
	background: var(--border);
}

.related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.related-link {
	display: block;
	font-family: "Iowan Old Style", Palatino, Georgia, serif;
	font-weight: 700;
	color: var(--fg);
	line-height: 1.35;
}

.related-link:hover {
	color: var(--accent);
	text-decoration: none;
}

.related-list time {
	font-size: 0.8rem;
	color: var(--muted);
}

/* ---------- Comments ---------- */

.comments-area {
	margin: 44px 0 0;
	padding-top: 28px;
	border-top: 2px solid var(--butter);
}

.comments-title,
.comment-reply-title {
	font-size: 1.35rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 26px;
}

.comment-item {
	margin-bottom: 18px;
}

.comment-body {
	padding: 18px 20px;
	background: var(--tint);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-bottom: 10px;
	font-size: 0.85rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-name {
	font-weight: 700;
	font-family: "Iowan Old Style", Palatino, Georgia, serif;
}

.comment-date a {
	color: var(--muted);
}

.comment-awaiting {
	margin: 6px 0 0;
	font-size: 0.84rem;
	color: var(--accent);
	font-style: italic;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-reply {
	margin-top: 10px;
	font-size: 0.85rem;
}

.comment-reply a {
	font-weight: 600;
}

.comment-respond {
	margin-top: 26px;
}

.comment-form label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
	color: var(--fg);
	font: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: 2px solid var(--sage);
	outline-offset: 1px;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: center;
}

.comment-form .comment-form-cookies-consent input {
	margin: 0;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
	margin: 0;
}

.comments-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

/* ---------- Search form ---------- */

.search-form {
	display: flex;
	gap: 8px;
}

.search-field {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	color: var(--fg);
	font: inherit;
}

.search-field:focus {
	outline: 2px solid var(--sage);
	outline-offset: 1px;
}

.search-submit {
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fdf6e9;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.search-submit:hover,
.search-submit:focus {
	background: #a8542f;
}

/* ---------- Sidebar ---------- */

.site-sidebar {
	margin-top: 40px;
}

@media (min-width: 900px) {
	.site-sidebar {
		margin-top: 0;
	}
}

.side-module {
	margin-bottom: 26px;
	padding: 20px 22px;
	background: var(--tint-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.side-module:nth-child(even) {
	background: var(--tint);
}

.side-title {
	font-size: 1.05rem;
	margin-bottom: 0.8em;
	padding-bottom: 0.5em;
	border-bottom: 2px solid var(--butter);
}

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

.side-list li {
	padding: 5px 0;
	border-bottom: 1px dashed var(--border);
}

.side-list li:last-child {
	border-bottom: 0;
}

.side-list a {
	color: var(--fg);
}

.side-list a:hover {
	color: var(--accent);
}

.side-module .search-form {
	flex-direction: column;
}

/* ---------- Footer ---------- */

.site-footer {
	background: #f1e8d6;
	border-top: 1px solid var(--border);
	margin-top: 0;
	padding: 48px 24px 30px;
}

.footer-inner {
	max-width: 1180px;
	margin: 0 auto;
}

.footer-grid {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	display: grid;
	gap: 28px;
}

@media (min-width: 700px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.footer-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.footer-heading {
	display: block;
	font-family: "Iowan Old Style", Palatino, Georgia, serif;
	font-weight: 700;
	font-size: 1.02rem;
	margin-bottom: 0.7em;
	padding-bottom: 0.45em;
	border-bottom: 2px solid var(--butter);
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links li {
	padding: 4px 0;
}

.footer-links a {
	color: var(--muted);
	font-size: 0.93rem;
}

.footer-links a:hover,
.footer-links a:focus {
	color: var(--accent);
}

.footer-note {
	font-size: 0.85rem;
	color: var(--muted);
	margin: 0 0 8px;
}

.footer-note p:last-child {
	margin-bottom: 0;
}

.copyright {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
	color: var(--muted);
}

/* ---------- 404 ---------- */

.error-404 {
	max-width: 680px;
	margin: 0 auto;
	padding: 60px 24px 80px;
}

.error-404 .search-form {
	margin-top: 24px;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
	.header-top {
		padding: 14px 0 10px;
	}

	.site-name {
		font-size: 1.3rem;
	}

	.home-hero {
		padding: 24px 22px;
	}

	.author-bio {
		flex-direction: column;
	}
}
