/* ---------------------------------------------------------------------------
 * archive.css — het blogoverzicht (archive.php, home.php)
 *
 * Naar 'Blog' in Claude Design: de band met kruimelpad, kop, inleiding en de
 * onderwerpen als knoppen (.paginaBand uit main.css); daaronder, op wit, het
 * uitgelichte artikel en de kaarten (inc/css/blogKaart.css, laadt hiervóór).
 *
 * De maten zijn die van het ontwerp. Daar is alles content-box, hier
 * border-box (zie de kop van main.css): de randen van 2px op de knoppen
 * vallen hier binnen de 44px, zoals in het ontwerp ook — daar staat de hoogte
 * op een <button>, en een knop is ook in de browser border-box.
 *
 * Wat het ontwerp niet heeft: de bladwijzer onder de kaarten (daar zijn het
 * zeven artikelen), in de vorm van die van het productoverzicht.
 * --------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
 * De band
 * -------------------------------------------------------------------------- */

.blogBand {
    padding-bottom: clamp(40px, 5vw, 64px);
}

.blogIntro {
    max-width: 60ch;
    color: var(--kleurTekstZacht);
    font-size: 16px;
    line-height: 1.65;
}

.blogKnoppen {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blogKnop {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 18px;
    border: 2px solid var(--kleurWit);
    border-radius: var(--hoekPil);
    background: var(--kleurWit);
    color: var(--kleurInkt);
    font-size: 15px;
    font-weight: 700;
    transition: all .2s;
}

.blogKnop:hover {
    border-color: var(--kleurInkt);
    color: var(--kleurInkt);
}

.blogKnop.isAan,
.blogKnop.isAan:hover {
    border-color: var(--kleurInkt);
    background: var(--kleurInkt);
    color: var(--kleurWit);
}

/* --------------------------------------------------------------------------
 * De artikelen
 * -------------------------------------------------------------------------- */

.blogLijst {
    background: var(--kleurWit);
}

.blogLijstBinnen {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: clamp(32px, 4vw, 48px);
    padding-bottom: clamp(56px, 7vw, 96px);
}

/* Het uitgelichte artikel: foto links, tekst rechts op donkergroen; smaller
   dan twee keer 420px staan ze onder elkaar. */
.blogUitgelicht {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    overflow: hidden;
    border-radius: var(--hoekVlak);
    background: var(--kleurActieDiep);
    color: var(--kleurWit);
    transition: transform .3s;
}

.blogUitgelicht:hover {
    color: var(--kleurWit);
    transform: translateY(-3px);
}

.blogUitgelicht:focus-visible {
    outline-offset: 3px;
}

.blogUitgelichtBeeld {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    background: var(--kleurActie);
}

.blogUitgelichtFoto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--curve);
}

.blogUitgelicht:hover .blogUitgelichtFoto {
    transform: scale(1.05);
}

.blogUitgelichtTekst {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(24px, 4vw, 48px);
}

.blogUitgelichtLabel {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: var(--hoekPil);
    background: var(--kleurGeel);
    color: var(--kleurInkt);
    font-size: 14px;
    font-weight: 800;
}

.blogUitgelichtTitel {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.blogUitgelichtSamenvatting {
    color: var(--kleurMint);
    font-size: 17px;
    line-height: 1.6;
}

.blogUitgelichtLees {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-weight: 700;
}

.blogUitgelichtLees .icoon {
    transition: transform .3s var(--curve);
}

.blogUitgelicht:hover .blogUitgelichtLees .icoon {
    transform: translateX(4px);
}

.blogLeeg {
    color: var(--kleurTekstZacht);
    font-size: 16px;
}

/* De bladwijzer, als de pillen van het productoverzicht. */
.blogPaginas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.blogPaginas .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--hoekPil);
    background: var(--kleurGrond);
    color: var(--kleurInkt);
    font-size: 15px;
    font-weight: 700;
    transition: background .2s, color .2s;
}

.blogPaginas a.page-numbers:hover,
.blogPaginas .current {
    background: var(--kleurInkt);
    color: var(--kleurWit);
}

.blogPaginas .dots {
    min-width: 0;
    padding: 0 4px;
    background: none;
}

/* Tijdens het verversen zonder herladen (blog.js). */
.blogLijst[aria-busy='true'] .blogLijstBinnen {
    opacity: .55;
    transition: opacity .2s .1s;
}

/* --------------------------------------------------------------------------
 * Beweging
 *
 * De kop komt binnen en het handschrift wordt geschreven, zoals in het
 * ontwerp (microFx: 700 ms omhoog, het accent met clip-path). Als
 * CSS-animatie en niet uit een script: die begint bij de eerste weergave, dus
 * de kop staat nooit eerst vol in beeld om dan weg te springen. De kaarten
 * doen verschijnen.js en blog.js.
 * -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .blogKop {
        animation: blogKopIn 700ms 80ms var(--curve) backwards;
    }

    .blogKop .kopAccent {
        animation: blogAccentIn 800ms 200ms var(--curve) backwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blogKnop,
    .blogUitgelicht,
    .blogUitgelichtFoto,
    .blogUitgelichtLees .icoon {
        transition: none;
    }

    .blogUitgelicht:hover,
    .blogUitgelicht:hover .blogUitgelichtFoto,
    .blogUitgelicht:hover .blogUitgelichtLees .icoon {
        transform: none;
    }
}

@keyframes blogKopIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

@keyframes blogAccentIn {
    from {
        clip-path: inset(-20% 100% -20% 0);
        transform: translateY(6px) rotate(-2deg);
    }

    to {
        clip-path: inset(-20% 0 -20% 0);
        transform: none;
    }
}
