/* vdki.nl -- one stylesheet, no framework. Keeps the look of the old
   site: white page on the photo background, blue accent, Monda for
   paragraphs and Helvetica for headings and the rest. */

:root {
	--accent: #0099cc;
	--accent-dark: #007399;
	--text: #2b2b2b;
	--muted: #6b6b6b;
	--line: #e3e3e3;
	--panel: #f4f4f2;
	--ok: #2e9e4f;
	--error: #c0392b;
	--radius: 6px;
	--text-font: 'Monda', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html {
	background: #3a3a3a url(../img/background.png) no-repeat center center fixed;
	background-size: cover;
}

body {
	margin: 0;
	font: 1.0625rem/1.65 var(--sans);
	color: var(--text);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

p { font-family: var(--text-font); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.2rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }

.page {
	max-width: 960px;
	margin: 3rem auto;
	padding: 1.5rem 2rem 1rem;
	background: #fff;
	box-shadow: 0 10px 40px rgb(0 0 0 / .35);
}

/* Header + nav */
.site-header { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.logo img { width: 100%; max-width: 910px; }
.site-header nav { margin-top: 1rem; display: flex; justify-content: flex-end; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-header nav a {
	display: block; padding: .45rem .9rem; border-radius: var(--radius);
	text-decoration: none; color: var(--text); font-weight: 500;
}
.site-header nav a:hover { background: var(--panel); color: var(--text); }
.site-header nav a[aria-current="page"] { background: var(--accent); color: #fff; }
.nav-toggle { display: none; }

/* Buttons */
.button, button.button {
	display: inline-block; padding: .65rem 1.4rem; border: 0; border-radius: var(--radius);
	background: var(--accent); color: #fff; font: inherit; font-weight: 600;
	text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-dark); color: #fff; }

/* Home */
.slider { display: grid; margin: 0 0 1.5rem; }
.slide { grid-area: 1 / 1; margin: 0; animation: fade 12s infinite; }
.slide:nth-child(2) { animation-delay: -6s; }
.slide figcaption { font-size: .7rem; color: var(--muted); text-align: right; padding-top: .25rem; }
@keyframes fade { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.slide { animation: none; }
	.slide:nth-child(2) { display: none; }
}

.title { text-align: center; margin: 1rem 0 2rem; }
.title h1 { margin: 0; font-size: 2.6rem; }
.title p { margin: 0; font-family: var(--sans); font-size: 1.5rem; color: var(--muted); }

blockquote {
	margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--accent);
	font-family: var(--sans); font-style: italic; color: var(--muted);
}

.panel { background: var(--panel); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.panel h2 { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 1.75rem; position: relative; margin: .3rem 0; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Gallery + lightbox */
.gallery {
	list-style: none; padding: 0; margin: 1.5rem 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem;
}
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; overflow: visible; }
.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox img { max-width: 90vw; max-height: 88vh; }
.lightbox button {
	position: fixed; background: rgb(0 0 0 / .4); color: #fff; border: 0;
	font-size: 2.5rem; line-height: 1; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
}
.lightbox-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-close { right: 1rem; top: 1rem; font-size: 2rem !important; }

/* Call to action + footer */
.cta {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	background: var(--panel); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2.5rem 0 1.5rem;
}
.cta h2 { margin: 0; font-size: 1.3rem; }
.cta p { margin: 0; color: var(--muted); }

.site-footer {
	border-top: 1px solid var(--line); padding-top: 1.25rem;
	display: grid; grid-template-columns: 1fr auto; gap: 1rem; font-size: .9rem; color: var(--muted);
}
.site-footer address { font-style: normal; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.copyright { grid-column: 1 / -1; margin: .5rem 0 0; }

/* Small screens */
@media (max-width: 720px) {
	.page { margin: 0; padding: 1rem 1.1rem; box-shadow: none; }
	h1 { font-size: 1.8rem; }
	.title h1 { font-size: 2rem; }
	.site-header nav { flex-direction: column; align-items: stretch; }
	.nav-toggle {
		display: block; align-self: flex-end; padding: .4rem .9rem; font: inherit;
		background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
	}
	.site-header ul { display: none; flex-direction: column; margin-top: .5rem; }
	.site-header nav.open ul { display: flex; }
	.site-footer { grid-template-columns: 1fr; }
	.cta { flex-direction: column; align-items: flex-start; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
}
