/*
Theme Name: Soul of Abbey
Theme URI: https://soulofabbey.nl
Author: Soul of Abbey
Description: Donker, rustig thema voor Soul of Abbey (dierencommunicatie). Zwart en zilver naar het logo, kantrandjes, boogvormige foto's en de gele kattenogen als accent.
Version: 1.0.0
Requires at least: 6.0
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: soul-of-abbey
*/

/* ==========================================================================
   Kleuren, lettertypen, maten
   ========================================================================== */
:root {
	--ink: #111214;
	--ink-2: #1b1d21;
	--ink-3: #26292f;
	--silver: #c7cbd1;
	--silver-dim: #8b9098;
	--mist: #eeeeec;
	--pale: #dcdedf;
	--eye: #d9da8e;
	--eye-deep: #5b5f1f;

	--font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--gutter: clamp(1.25rem, 5vw, 4rem);
	--wrap: 1180px;
	--line: rgba(17, 18, 20, 0.35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.menu-open { overflow: hidden; }

body {
	margin: 0;
	background: var(--mist);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--eye-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .panel--dark :focus-visible { outline-color: var(--eye); }

.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: -999px; top: 0; z-index: 200;
	background: var(--eye); color: var(--ink);
	padding: 0.75rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 0.5em;
	overflow-wrap: break-word;
}
h1 { font-size: clamp(3rem, 10vw, 6.25rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); }

p { margin: 0 0 1.1em; }

.lead {
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
	line-height: 1.5;
}

.wrap { max-width: var(--wrap); margin: 0 auto; }

/* Donkere vlakken, met het bloem-des-levens patroon uit het logo. */
.dark {
	background-color: var(--ink);
	color: var(--mist);
	--line: rgba(199, 203, 209, 0.5);
}
.dark .lead { color: var(--silver); }
.pattern {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='69.28' viewBox='0 0 40 69.28'%3E%3Cg fill='none' stroke='%23c7cbd1' stroke-opacity='.07' stroke-width='1'%3E%3Ccircle cx='20' cy='-34.641' r='40'/%3E%3Ccircle cx='-20' cy='-34.641' r='40'/%3E%3Ccircle cx='60' cy='-34.641' r='40'/%3E%3Ccircle cx='0' cy='0.0' r='40'/%3E%3Ccircle cx='40' cy='0.0' r='40'/%3E%3Ccircle cx='20' cy='34.641' r='40'/%3E%3Ccircle cx='-20' cy='34.641' r='40'/%3E%3Ccircle cx='60' cy='34.641' r='40'/%3E%3Ccircle cx='0' cy='69.282' r='40'/%3E%3Ccircle cx='40' cy='69.282' r='40'/%3E%3Ccircle cx='20' cy='103.923' r='40'/%3E%3Ccircle cx='-20' cy='103.923' r='40'/%3E%3Ccircle cx='60' cy='103.923' r='40'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 40px 69.28px;
}

/* ==========================================================================
   Knoppen en links
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.6rem;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--solid { background: var(--eye); color: var(--ink); }
.btn--solid:hover { background: #fff; color: var(--ink); }
.btn--line { border-color: var(--silver); color: var(--mist); background: transparent; }
.btn--line:hover { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.btn--dark { background: var(--ink); color: var(--mist); }
.btn--dark:hover { background: var(--eye-deep); color: #fff; }
.btn--small { padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.textlink {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--eye-deep);
	text-underline-offset: 0.3em;
}
.textlink:hover { color: var(--eye-deep); }
.dark .textlink, .panel--dark .textlink { text-decoration-color: var(--eye); }
.dark .textlink:hover, .panel--dark .textlink:hover { color: var(--eye); }

/* ==========================================================================
   Kantrandje: een sierrand met gaatjes tussen twee vlakken
   ========================================================================== */
.lace-down { position: relative; }
.lace-down::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	top: calc(100% - 1px);
	height: 14px;
	z-index: 3;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 14px 4px, var(--eyelet) 0 2px, transparent 2.6px),
		radial-gradient(circle at 14px -1px, var(--edge) 0 14px, transparent 14.6px);
	background-size: 28px 14px;
	background-repeat: repeat-x;
}
.lace-down--dark { --edge: var(--ink); --eyelet: var(--mist); }
.lace-down--light { --edge: var(--mist); --eyelet: var(--ink); }

/* ==========================================================================
   Kop en menu
   ========================================================================== */
.site-header {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 30;
	background: transparent;
}
.site-header__bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 1320px;
	margin: 0 auto;
	padding: 1rem var(--gutter);
}
.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-right: auto;
	color: var(--mist);
	text-decoration: none;
}
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.01em; }

.site-header .brand .brand__name {
    font-family: "Lobster", cursive;
    font-size: 1.5rem;
    letter-spacing: 0;
}

.menu-toggle, .menu-close {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 1.1rem;
	border: 1.5px solid var(--silver-dim);
	border-radius: 999px;
	background: transparent;
	color: var(--mist);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}
.menu-toggle:hover, .menu-close:hover { border-color: var(--silver); background: rgba(255, 255, 255, 0.08); }

.menu-toggle__icon {
	position: relative;
	width: 1.1rem; height: 0.7rem;
	border-top: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
}
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 50%;
	border-top: 1.5px solid currentColor;
	transform: translateY(-50%);
}

@media (max-width: 34rem) { .header-cta { display: none; } }

.menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	overflow-y: auto;
	padding: 1rem var(--gutter) 4rem;
}
.js .menu-overlay { display: none; }
.js .menu-overlay.is-open { display: block; }
.no-js .menu-overlay { position: static; padding-top: 7rem; }
.no-js .menu-toggle, .no-js .menu-close { display: none; }

.menu-overlay__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1320px;
	margin: 0 auto;
	min-height: 52px;
	padding-bottom: 1rem;
}
.menu-overlay__nav { max-width: 1320px; margin: clamp(1.5rem, 5vw, 4rem) auto 0; }
.menu-overlay .menu {
	list-style: none;
	margin: 0; padding: 0;
	columns: 2 20rem;
	column-gap: 4rem;
}
.menu-overlay .menu > li { break-inside: avoid; margin: 0 0 0.6rem; }
.menu-overlay a {
	display: inline-block;
	padding: 0.15rem 0;
	color: var(--mist);
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3.4vw, 2.4rem);
	line-height: 1.2;
	text-decoration: none;
}
.menu-overlay a:hover,
.menu-overlay .current-menu-item > a,
.menu-overlay .current_page_item > a { color: var(--eye); }
.menu-overlay .sub-menu {
	list-style: none;
	margin: 0.2rem 0 1rem;
	padding: 0 0 0 1rem;
	border-left: 1px solid var(--silver-dim);
}
.menu-overlay .sub-menu a {
	font-family: var(--font-body);
	font-size: 1.05rem;
	color: var(--silver);
}

/* ==========================================================================
   Homepage: hero
   ========================================================================== */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 36rem;
	min-height: clamp(36rem, 100svh, 60rem);
	padding: 9rem var(--gutter) clamp(4.5rem, 9vw, 7rem);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; animation: emerge 2.6s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, var(--ink) 0, rgba(17, 18, 20, 0.85) 22%, rgba(17, 18, 20, 0) 55%),
		linear-gradient(90deg, rgba(17, 18, 20, 0.55) 0, rgba(17, 18, 20, 0) 40%);
}
@media (min-width: 56rem) {
	.hero__media { left: 26%; }
	.hero__media::after {
		background:
			linear-gradient(90deg, var(--ink) 0, rgba(17, 18, 20, 0.7) 18%, rgba(17, 18, 20, 0) 55%),
			linear-gradient(0deg, var(--ink) 0, rgba(17, 18, 20, 0) 28%);
	}
}
.hero__body { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { margin-bottom: 0.4em; }
.hero__line { display: block; animation: rise 1s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero__line:nth-child(1) { animation-delay: 0.7s; }
.hero__line:nth-child(2) { animation-delay: 1.05s; }
.hero__text { max-width: 31rem; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.5; color: var(--silver); animation: rise 1s 1.4s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero .btn-row { animation: rise 1s 1.6s cubic-bezier(0.2, 0.6, 0.2, 1) both; }

@keyframes emerge { from { opacity: 0; filter: brightness(0.35); } to { opacity: 1; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Vlakken en indeling
   ========================================================================== */
.section { position: relative; padding: clamp(4.5rem, 10vw, 9rem) var(--gutter); }
.section--light { background: var(--mist); color: var(--ink); }
.section--flow { padding-top: 0; }
.section-title { margin-bottom: 0.3em; }
.section-lead { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); max-width: 34rem; margin-bottom: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 2rem; }

/* Boogvormige foto's */
.arch {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 999px 999px 0 0;
	overflow: hidden;
	background: var(--ink-3);
	outline: 1px solid var(--line);
	outline-offset: 0.6rem;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--hero { width: min(100%, 18rem); justify-self: start; margin: 0.6rem; }

/* Intro */
.intro { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
.intro__text { max-width: 38rem; }
.intro__photos { position: relative; padding: 0.6rem 0.6rem 14%; max-width: 30rem; }
.intro__photos .arch--lg { width: 82%; }
.intro__photos .arch--sm {
	position: absolute;
	right: 0.6rem; bottom: 0;
	width: 44%;
	outline: 0;
	box-shadow: 0 0 0 0.7rem var(--mist);
}
@media (min-width: 56rem) {
	.intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
	.intro__photos { justify-self: end; width: 100%; }
}

/* Aanbod */
.offer { display: grid; gap: clamp(1rem, 2vw, 1.5rem); margin-top: 2.5rem; }
.panel { display: flex; flex-direction: column; gap: 1.75rem; padding: clamp(1.5rem, 3.5vw, 3rem); }
.panel h3 { margin-bottom: 0.4em; }
.panel--dark { background: var(--ink); color: var(--mist); --line: rgba(199, 203, 209, 0.5); }
.panel--pale { background: var(--pale); color: var(--ink); --line: rgba(17, 18, 20, 0.4); }
.arch--panel { width: min(100%, 13rem); margin: 0.6rem; flex: none; }
@media (min-width: 56rem) {
	.offer { grid-template-columns: 7fr 5fr; }
	.panel--dark { flex-direction: row; align-items: center; }
	.panel--dark .arch--panel { width: 42%; }
}

.rows { list-style: none; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 0; border-top: 1px solid var(--silver-dim); }
.rows a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 2rem;
	padding: 1.2rem 0;
	border-bottom: 1px solid var(--silver-dim);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3.2vw, 2.2rem);
	text-decoration: none;
}
.rows small { font-family: var(--font-body); font-size: 1rem; color: #3c3f45; }
.rows a:hover { color: var(--eye-deep); }

/* Over mij */
.about { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about .arch { max-width: 26rem; margin: 0.6rem; }
.about__text { max-width: 36rem; }
@media (min-width: 56rem) {
	.about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
	.about .arch { width: 100%; }
}

/* Foto's op een rij */
.strip {
	display: flex;
	gap: 1rem;
	margin-top: 2.5rem;
	padding: 0 var(--gutter) 1rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-color: var(--silver-dim) transparent;
}
.strip figure {
	flex: 0 0 auto;
	height: clamp(15rem, 36vw, 24rem);
	margin: 0;
	scroll-snap-align: start;
	background: var(--ink-3);
}
.strip img { width: auto; height: 100%; max-width: none; }

/* Blog */
.posts { display: grid; gap: clamp(2rem, 4vw, 3rem) 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.post-card__link { display: block; color: inherit; text-decoration: none; }
.post-card__media { aspect-ratio: 3 / 2; margin-bottom: 1.1rem; overflow: hidden; background: var(--ink-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__title { margin: 0 0 0.4rem; font-size: 1.5rem; }
.post-card__excerpt { margin: 0; color: #3c3f45; }
.post-card__link:hover .post-card__title { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--eye-deep); text-underline-offset: 0.2em; }

.navigation.pagination { margin-top: 3rem; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-numbers { padding: 0.45rem 1rem; border: 1px solid var(--silver-dim); border-radius: 999px; color: var(--ink); text-decoration: none; }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--mist); }
a.page-numbers:hover { border-color: var(--ink); }

/* Afsluiting */
.cta h2 { font-size: clamp(2.8rem, 9vw, 5.5rem); max-width: 14ch; }
.cta .lead { max-width: 30rem; }

/* ==========================================================================
   Pagina's en artikelen
   ========================================================================== */
.page-hero { padding: clamp(8rem, 16vw, 11rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.page-hero__in { display: grid; gap: 2.5rem; align-items: end; }
.page-hero h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.75rem); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0 0 1rem; color: var(--silver); font-size: 0.95rem; }
.page-hero__meta a { color: var(--silver); }
@media (min-width: 52rem) {
	.page-hero__in.has-img { grid-template-columns: minmax(0, 1fr) 18rem; }
	.arch--hero { justify-self: end; }
}

.prose { max-width: 44rem; margin: 0 auto; }
.prose > * { margin-top: 0; margin-bottom: 1.2em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
	margin-left: 0; margin-right: 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--eye-deep);
	font-family: var(--font-display);
	font-size: 1.3em;
	line-height: 1.4;
}
.prose img { border-radius: 0.2rem; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: #3c3f45; }
.prose hr { border: 0; border-top: 1px solid var(--silver-dim); margin: 2.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--silver-dim); text-align: left; }
.prose .wp-block-button__link {
	border-radius: 999px;
	background: var(--ink);
	color: var(--mist);
	font-weight: 600;
	padding: 0.85rem 1.6rem;
	text-decoration: none;
}
.prose .wp-block-button__link:hover { background: var(--eye-deep); color: #fff; }
.prose .alignwide, .prose .alignfull { max-width: none; }
@media (min-width: 60rem) {
	.prose .alignwide { margin-left: -6rem; margin-right: -6rem; }
}
.prose .alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.prose .alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }

.post-nav { display: grid; gap: 1.5rem 3rem; max-width: 44rem; margin: 4rem auto 0; padding-top: 2rem; border-top: 1px solid var(--silver-dim); }
.post-nav a { color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; text-decoration: none; }
.post-nav a:hover { color: var(--eye-deep); }
@media (min-width: 40rem) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav__next { text-align: right; } }

/* ==========================================================================
   Voet
   ========================================================================== */
.site-footer { position: relative; border-top: 1px solid rgba(199, 203, 209, 0.18); padding: 0 var(--gutter); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding: 4.5rem 0 3rem; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1rem; }
.footer-name { margin: 0; font-family: var(--font-display); font-size: 1.5rem; }
.footer-tag { margin: 0.25rem 0 0; color: var(--silver); }
.footer-title { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: 1.2rem; color: var(--silver); }
.footer-col p { margin: 0 0 0.5rem; }
.footer-col a { white-space: nowrap; color: var(--mist); text-decoration-color: var(--eye); text-underline-offset: 0.25em; }
.footer-col a:hover { color: var(--eye); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { white-space: normal; }
.footer-base { padding: 1.5rem 0 2rem; border-top: 1px solid rgba(199, 203, 209, 0.18); color: var(--silver-dim); font-size: 0.95rem; }
.footer-base p { margin: 0; }

/* ==========================================================================
   Beweging beperken als iemand dat heeft ingesteld
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__img, .hero__line, .hero__text, .hero .btn-row { animation: none; }
}
