
:root {
    /* B5 (ISO): 176 x 250 mm. Pas --rug aan op de definitieve rugdikte. */
    --breedte: 176mm;
    --hoogte: 250mm;
    --rug: 18mm;
    --wrap: calc(var(--breedte) * 2 + var(--rug));

    /*--nacht: #1c1b1d;*/
    --nacht: #111111;
    --lucht: #3a393a;      /* sluit aan op de lucht in de foto */
    --papier: #f6f3ed;
/*
    --papier: #f3efe8;
    --papier: #f6f8ff;
    --papier: #eceef7;
    --papier: #fff;
*/
    --grijs: #bdb8b0;
    --marge: 17mm;
    --scrim: 24, 23, 25;

    --foto: url("/img/rode-plein.jpg");
}

/* ---------- Kleurstelling: Kobalt ---------- */
/* De achterkant krijgt altijd kobalt; rug en voorkant alleen als hun optie aan staat */
.podium[data-kleur="kobalt"] .achter,
.podium[data-kleur="kobalt"][data-kobalt-rug="aan"] .rug,
.podium[data-kleur="kobalt"][data-kobalt-voor="aan"] .voor {
    --nacht: #031a55;
    --lucht: #003a94;
    /*--papier: #f4f6fc;*/
    --grijs: #bccaee;
    --scrim: 2, 14, 52;
}
html, body {
    /*background: #fff;*/
    /*background: #e1d6cc;*/
    background: #cecece;
}
body {
    min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 12mm 0;
}
.podium, .titlepage.deel-vlak.podium {
    background-color: #111111;
}
.deel-vlak {
    position: relative;
    height: var(--hoogte);
    overflow: hidden;
    flex: none;
    /*background: linear-gradient(to bottom, var(--nacht) 0%, var(--lucht) 52%, var(--lucht) 100%);*/
    background: none;
    color: var(--papier);
}
* {
    box-sizing: border-box;
    margin: 0; padding: 0;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}

/* Foto onderaan, oplossend in de nachtlucht */
.foto {
    position: absolute;
    left: 0; bottom: 0;
    width: var(--breedte);
    height: 118mm;
    background-image: var(--foto);
    background-repeat: no-repeat;
    background-size: auto 140mm;
    background-position: 0 100%;
    /*noinspection CssInvalidPropertyValue*/
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%);
}
.foto.no-mask {
    -webkit-mask-image: none;
    mask-image: none;
}

.cover-fade {
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--breedte);
    height: 118mm;
    /*background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%);*/
    background: linear-gradient(to top, rgba(1, 1, 1, 0) 0%, rgba(1, 1, 1, .0) 72%, #111 100%);
    z-index: 3;
}

.podium[data-deel="2"] .voor .foto { background-position: 100% 100%; }

/* ---------- Omslag ---------- */
.omslag {
    display: flex;
    height: var(--hoogte);
    /*box-shadow: 0 6mm 14mm rgba(0,0,0,.55);*/
    box-shadow: 0 0.1mm 10mm rgba(0,0,0,.2);
}
.podium {
    --v: .5;                       /* verloop-intensiteit achterkant (0 – 1) */
    color: var(--papier);
    font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
}


/* ---------- Voorkant ---------- */
.titelblok {
    z-index: 2;
    position: absolute;
    top: 24mm;
    left: var(--marge);
    right: var(--marge);
    /*color: #fff;*/
}
.deel-sub {
    font-size: calc(4.2mm * var(--s, 1));
    /*color: var(--grijs);*/
    opacity: 0.7;
    color: var(--papier);
}
.ondertitel {
/*
    width: fit-content;
    max-width: 100mm;
    margin-top: 11mm;
*/
    font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: calc(4.6mm * var(--s, 1));
    line-height: 1.45;
    opacity: 0.7;
    color: var(--papier);
    /*color: #fff;*/

    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    max-width: unset;
}
.deel-label {
    font-family: "PT Serif", Georgia, serif;
    font-size: calc(6.4mm * var(--s, 1));

    /*opacity: 0.8;*/
    /*color: var(--papier);*/
    color: #fff;
    opacity: 1;
}
.auteur-boven {
    margin-bottom: 10mm;
    /*margin-bottom: 9mm;*/
}
.deel-blok {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /*gap: 1.6mm;*/
    gap: 0.0mm;
    text-align: right;
}
.voet {
    z-index: 2;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46mm;
    /*padding: 0 var(--marge) 13mm;*/
    padding: 0 var(--marge) 10mm;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(to bottom, transparent, rgba(var(--scrim), .78));
}


/* Rug */
.rug-inhoud {
    z-index: 2;
    position: absolute; inset: 0;
    padding: 14mm 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-left: .2mm solid rgba(255,255,255,.06);
    border-right: .2mm solid rgba(255,255,255,.06);
}
.rug-tekst {
    writing-mode: vertical-rl;   /* leest van boven naar beneden */
    white-space: nowrap;
}
.rug-titel {
    font-family: "PT Serif", Georgia, serif;
    font-weight: 700;
    font-size: calc(8.4mm * var(--s, 1));
    letter-spacing: -0.005em;
}

/* ---------- Achterkant licht: bovenste 2/3 crèmewit-blauw ---------- */
.podium[data-achter-licht="aan"] .achter {
    /*--licht-boven: #f6f2e9; crèmewit */
    --licht-boven: #f6f8ff;                                                   /* crèmewit */
    --licht-onder: color-mix(in srgb, #f6f2e9, #c5d6ee calc(var(--v) * 100%)); /* wordt blauwer bij hoger verloop */
    --rand: calc(var(--hoogte) * 2 / 3);
    --zacht: calc(var(--v) * 70mm);                                           /* breedte van de overgang */
    background: linear-gradient(to bottom,
    var(--licht-boven) 0,
    var(--licht-onder) calc(var(--rand) - var(--zacht) / 2),
    var(--lucht) calc(var(--rand) + var(--zacht) / 2),
    var(--lucht) 100%);
    color: #0f1b33;
}
/* Foto als blauwe duotoon (uit te zetten); de voorfoto blijft altijd in kleur */
.podium[data-kleur="kobalt"][data-kobalt-foto="aan"] .achter .foto,
.podium[data-kleur="kobalt"][data-kobalt-foto="aan"][data-kobalt-rug="aan"] .rug .foto {
    /*filter: grayscale(1) contrast(1.15) brightness(1.15);*/
    /*mix-blend-mode: luminosity;*/
}


.podium { display: flex; justify-content: center; }
@media screen and (max-width: 760px) { .omslag { zoom: .5; } }
@media print {
    html, body { background: none; }
    body { display: block; padding: 0; min-height: 0; }
    .omslag { box-shadow: none; }
}
@page { size: 370mm 250mm; margin: 0; }
