/*
 * In de stijl van de oude WordPress-site (thema Hestia): een foto over de hele
 * breedte met de titel erin, een witte "kaart" die over de kop heen valt, een
 * rode kop met verloop op de andere pagina's en een zwarte voet.
 */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/fonts/site/roboto-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/site/roboto-slab-latin.woff2") format("woff2");
}

:root {
    --accent: #c92d2f;
    --accent-dark: #a92426;
    --accent-light: #f9542a;
    --heading: #3c4858;
    --text: #555;
    --muted: #888;
    --line: #e5e5e5;
    --page: #eee;
    --card: #fff;
    --footer: #1d1d1d;
    --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
    --slab: "Roboto Slab", Georgia, "Times New Roman", serif;
    --wrap: 72rem;
    --narrow: 46rem;
    --shadow-raised: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2);
    --shadow-card: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
    color-scheme: light;
}

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

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

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font: 300 1.0625rem/1.75 var(--sans);
}

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

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; color: var(--heading); }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }

strong, b { font-weight: 700; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 20; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--narrow)); }

/* Kop met menu: wit, op de homepage doorzichtig over de foto */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, .12), 0 7px 10px -5px rgba(0, 0, 0, .15);
}
.header-inner { display: flex; align-items: center; justify-content: center; gap: .5rem 2rem; min-height: 4.4rem; padding-block: .5rem; flex-wrap: wrap; }
.brand { display: none; font: 400 1.1rem/1.3 var(--sans); color: var(--heading); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .4rem; }
.nav a {
    color: #555;
    text-decoration: none;
    font: 400 .78rem/1 var(--sans);
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: .85rem .8rem;
    border-radius: 3px;
}
.nav a:hover { background: rgba(0, 0, 0, .05); color: var(--accent); }
.nav a.active { color: var(--accent); }

.is-home .site-header { position: absolute; left: 0; right: 0; background: transparent; box-shadow: none; }
.is-home .nav a, .is-home .brand { color: #fff; }
.is-home .nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.is-home .nav a.active { color: #fff; }

/* Homepage: de foto van het boek over de hele breedte */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: max(34rem, 100vh);
    background: #333 center / cover no-repeat;
    color: #fff;
    text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero-inner { position: relative; padding-block: 7rem 9rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; margin: 0 0 1.1rem; letter-spacing: -.01em; }
.hero-sub { font: 400 clamp(1.05rem, 2.2vw, 1.3rem)/1.5 var(--slab); margin: 0 0 2.4rem; }

.button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font: 400 .8rem/1 var(--sans);
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 1.05rem 2.2rem;
    border-radius: 3px;
    text-decoration: none;
    box-shadow: 0 2px 2px 0 rgba(201, 45, 47, .14), 0 3px 1px -2px rgba(201, 45, 47, .2), 0 1px 5px 0 rgba(201, 45, 47, .12);
    transition: box-shadow .2s, background-color .2s;
}
.button:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 14px 26px -12px rgba(201, 45, 47, .42), 0 4px 23px 0 rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(201, 45, 47, .2); }

/* Kop van de andere pagina's: rood met verloop */
.page-header {
    background: linear-gradient(45deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    text-align: center;
}
.page-header-inner { padding-block: 5.5rem 8rem; }
.page-header-title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.15; margin: 0; }
.page-header-sub { margin: 1rem 0 0; font-size: 1rem; opacity: .9; }
.page-header-sub strong { font-weight: 700; }

/* De witte kaart die over de kop heen valt */
.raised {
    position: relative;
    z-index: 1;
    background: var(--card);
    margin: -3.75rem auto 0;
    width: min(100% - 3.75rem, 82rem);
    border-radius: 6px;
    box-shadow: var(--shadow-raised);
    padding-block: 1rem 3rem;
}
.raised > .wrap, .raised > .narrow { padding-block: 3rem 1rem; }

.about { color: #777; }

/* Nieuwsberichten */
.section-title { text-align: center; margin-bottom: 2.2rem; }
.section-title h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 .4rem; }
.section-title p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-heading { text-align: center; font-size: 1.7rem; margin: 0 0 2rem; }
.more { text-align: center; margin-top: 2.2rem; }
.button-quiet { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.button-quiet:hover { background: var(--accent); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 2.2rem 2rem; }
.card { display: flex; flex-direction: column; }
.card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-raised); margin-bottom: 1rem; }
.card .card-category { margin: 0 0 .3rem; font: 700 .72rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.card h3 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 .6rem; }
.card h3 a { color: var(--heading); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; font-size: .95rem; color: #777; }
.more-link { white-space: nowrap; text-decoration: none; }

.related { border-top: 1px solid var(--line); margin-top: 2rem; }

/* Pagina's en berichten */
.cover { display: block; border-radius: 6px; margin-bottom: 2rem; box-shadow: var(--shadow-raised); }
.empty { color: var(--muted); text-align: center; }
.post-category { margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.label { display: inline-block; margin-left: .3rem; padding: .25rem .6rem; border-radius: 12px; background: var(--accent); color: #fff; font: 700 .7rem/1.3 var(--sans); text-transform: uppercase; text-decoration: none; }
.label:hover { background: var(--accent-dark); color: #fff; }

.prose h2 { font-size: 1.6rem; line-height: 1.25; margin: 2rem 0 .6rem; }
.prose h3 { font-size: 1.3rem; margin: 1.6rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--accent); font-style: italic; color: #777; }
.prose .has-text-align-center { text-align: center; }
.prose p.has-text-align-center strong { display: block; margin-top: 2.5rem; color: var(--heading); letter-spacing: .06em; font-size: 1rem; }
.prose figure { margin: 1.8rem auto; text-align: center; }
.prose figure img { display: block; margin-inline: auto; border-radius: 6px; box-shadow: var(--shadow-raised); }
.prose figcaption { margin-top: .8rem; font-size: .9rem; font-style: italic; color: var(--muted); }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.prose .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 4px; }

/* Voet */
.site-footer { margin-top: 4rem; background: var(--footer); color: #aaa; font: 300 .9rem/1.6 var(--sans); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.footer-nav a { color: #fff; text-decoration: none; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-inner p { margin: 0; }
.footer-inner p a { color: #ccc; }

@media (max-width: 760px) {
    body { font-size: 1rem; }
    .header-inner { gap: 0; min-height: 0; padding-block: .6rem .3rem; }
    .brand { display: block; width: 100%; text-align: center; font-weight: 700; }
    .nav a { padding: .6rem .5rem; font-size: .72rem; }
    .hero-inner { padding-block: 9rem 7rem; }
    .raised { width: calc(100% - 1rem); margin-top: -2.5rem; }
    .raised > .wrap, .raised > .narrow { padding-block: 2rem .5rem; }
    .page-header-inner { padding-block: 3.5rem 5.5rem; }
}
.prose sup, .prose sub { line-height: 0; }
