:root {
	/* Colors */
	--background: #fff;
	--foreground: #32363e;

	--primary: #c49772;
	--primary-dark: #9d795b;
	--primary-light: #d0ac8e;
	--primary-bg: #e7d5c7;

	--secondary: #c5998b;
	--secondary-dark: #9e7a6f;
	--secondary-light: #d1ada2;
	--secondary-bg: #e8d6d1;

	--tertiary: #f0e7dd;
	--tertiary-dark: #c0b9b1;
	--tertiary-light: #f3ece4;
	--tertiary-bg: #f9f5f1;

	/* Fonts */
	--font-family-heading: "Noto Serif Display", -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans",
		sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
		"Noto Color Emoji";
	--font-family-sans-serif: "Roboto", -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans",
		sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
		"Noto Color Emoji";
	--line-height: 1.5;

	/* Borders */
	--button-border: 2px;
	--dropdown-border: 1px;
	--input-border: 2px;
	--panel-border: 1px;

	/* Radii */
	--button-radius: 1rem;
	--dropdown-radius: 0.25rem;
	--input-radius: 0.5rem;
	--panel-radius: 1.5rem;

	/* Padding */
	--button-padding: 1rem;
	--dropdown-padding: 1rem;
	--input-padding: 1rem;
	--panel-padding: 1rem;

	--navigation-height: 6rem;
}

/* Scroll smooth naar anchors op de pagina. */
html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion) {
	html {
		scroll-behavior: unset;
	}
}

/* Zorg dat er niet buiten de pagina gescrolt kan worden. */
body {
	overscroll-behavior-y: none;
	color: var(--foreground);
}

hr {
	background-color: currentColor;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
	line-height: 1.125;
	letter-spacing: -0.0125em;
	text-wrap: balance;
}
h1,
.h1,
h2,
.h2 {
	position: relative;
	padding-bottom: 0.75rem;
	margin-bottom: 1rem;
}
h1::after,
.h1::after,
h2::after,
.h2::after {
	content: "";
	position: absolute;
	display: block;
	bottom: 0;
	width: 25%;
	left: 0;
	height: 3px;
	border-radius: 1px;
	background-color: currentColor;
}
h1[style*="text-align:center"]::after,
h1.text-center::after,
.h1[style*="text-align:center"]::after,
.h1.text-center::after,
h2[style*="text-align:center"]::after,
h2.text-center::after,
.h2[style*="text-align:center"]::after,
.h2.text-center::after {
	width: 20%;
	left: 40%;
}

li,
p,
.p {
	line-height: 1.75;
	hyphens: auto;
	text-wrap: pretty;
}

/* Navigatie balk mee laten scrollen. */
.nav-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: white;
	box-shadow: 0px 0px 12px -4px rgba(0, 0, 0, 0.5);
}
@media screen and (min-width: 992px) {
	#adminbar + * .nav-header {
		top: 3.55rem;
	}
}

/* Navigatie toggler met open en sluit animatie. */
.navbar-toggler {
	border: none;
}
.navbar-toggler-icon {
	position: relative;
	background-image: none !important;
}
.navbar-toggler-icon i {
	display: block;
	position: absolute;
	height: 0.1em;
	width: 100%;
	left: 0;

	background-color: black;
	transition-property: left, top, transform, width;
	transition-duration: 250ms;
}
.navbar-toggler-icon i:nth-child(1) {
	top: calc(20% - 0.05em);
}
.navbar-toggler-icon i:nth-child(2) {
	top: calc(50% - 0.05em);
}
.navbar-toggler-icon i:nth-child(3) {
	top: calc(80% - 0.05em);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon i:nth-child(1) {
	top: calc(50% - 0.1em);
	transform: rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon i:nth-child(2) {
	width: 0;
	left: 50%;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon i:nth-child(3) {
	top: calc(50% - 0.1em);
	transform: rotate(-45deg);
}

/* Buttons */
.p-button {
	display: inline-block;
	padding: calc(var(--button-padding) / 2) var(--button-padding);
}

.navbar-light .navbar-nav .nav-link,
header .btn.btn-link:not(.btn-admin),
main .btn.btn-link:not(.btn-admin) {
	color: var(--foreground);
	opacity: 0.75;
}
/* Add arrow icon. */
main
	.btn.btn-link:not(.btn-admin):not([href^="mailto:"]):not(
		[href^="tel:"]
	)::after {
	content: "\f061";
	font: var(--fa-font);
	margin-left: 0.5rem;
	transition: margin-left 200ms ease-out;
}
main
	.btn.btn-link:not(.btn-admin):not([href^="mailto:"]):not(
		[href^="tel:"]
	):active::after,
main
	.btn.btn-link:not(.btn-admin):not([href^="mailto:"]):not(
		[href^="tel:"]
	):focus::after,
main
	.btn.btn-link:not(.btn-admin):not([href^="mailto:"]):not(
		[href^="tel:"]
	):hover::after {
	margin-left: 1.5rem;
}

.navbar-light .navbar-nav .nav-link:active,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover,
header .btn.btn-link:not(.btn-admin):active,
header .btn.btn-link:not(.btn-admin):focus,
header .btn.btn-link:not(.btn-admin):hover,
main .btn.btn-link:not(.btn-admin):active,
main .btn.btn-link:not(.btn-admin):focus,
main .btn.btn-link:not(.btn-admin):hover {
	opacity: 1;
}

.btn.btn-primary:not(.btn-admin),
.btn.btn-secondary:not(.btn-admin),
.btn.btn-tertiary:not(.btn-admin),
.btn.btn-link:not(.btn-admin) {
	border-radius: 0;
	border-top-left-radius: var(--button-radius);
	border-bottom-right-radius: var(--button-radius);
}

.btn.btn-primary:not(.btn-admin):active,
.btn.btn-primary:not(.btn-admin):focus,
.btn.btn-primary:not(.btn-admin):hover,
.btn.btn-secondary:not(.btn-admin):active,
.btn.btn-secondary:not(.btn-admin):focus,
.btn.btn-secondary:not(.btn-admin):hover,
.btn.btn-tertiary:not(.btn-admin):active,
.btn.btn-tertiary:not(.btn-admin):focus,
.btn.btn-tertiary:not(.btn-admin):hover,
.btn.btn-link:not(.btn-admin):active,
.btn.btn-link:not(.btn-admin):focus,
.btn.btn-link:not(.btn-admin):hover {
}

/* Forms */
textarea.form-control {
	min-height: 4em;
}
input.form-control,
textarea.form-control {
	border-radius: 0;
	border-top-left-radius: var(--input-radius);
	border-bottom-right-radius: var(--input-radius);
}

/* Content and blog previews */
.blog-item-link,
.content-item-link {
	color: inherit;
}
.blog-item-link .content,
.content-item-link .content {
	margin-top: 1rem;
}
.blog-item-link:active,
.blog-item-link:focus,
.blog-item-link:hover,
.content-item-link:active,
.content-item-link:focus,
.content-item-link:hover {
	color: inherit;
	text-decoration: none;
}
.blog-item-link .readmore,
.content-item-link .readmore {
	display: table;
	padding: calc(var(--button-padding) / 2) var(--button-padding);
	margin-top: 0.25rem;
	opacity: 0.75;

	font-size: 1rem;
	line-height: 1.5;
	text-align: center;
	vertical-align: middle;

	user-select: none;

	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
		border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.blog-item-link:active .readmore,
.blog-item-link:focus .readmore,
.blog-item-link:hover .readmore,
.content-item-link:active .readmore,
.content-item-link:focus .readmore,
.content-item-link:hover .readmore {
	opacity: 1;
}
.blog-item-link .readmore::after,
.content-item-link .readmore::after {
	content: "\f061";
	font: var(--fa-font);
	margin-left: 0.5rem;
	transition: margin-left 200ms ease-out;
}
.blog-item-link:active .readmore::after,
.blog-item-link:focus .readmore::after,
.blog-item-link:hover .readmore::after,
.content-item-link:active .readmore::after,
.content-item-link:focus .readmore::after,
.content-item-link:hover .readmore::after {
	margin-left: 1.5rem;
}

[data-partial="blog-feed"] .blog-collection-links,
[data-partial="blog-select"] .blog-collection-links {
	margin-top: 2rem;
}

/* Modals */
.modal-header {
	background-color: var(--primary);
	border-top-left-radius: var(--panel-radius);
}
.modal-content {
	border-radius: 0;
	border-top-left-radius: var(--panel-radius);
	border-bottom-right-radius: var(--panel-radius);
}
