/* Happy Pens Archive — Home page counts. No global theme overrides. */

.hpc-home-counts {
    --hpc-home-counts-gold: #9c7134;
    --hpc-home-counts-ink: #343b42;
    --hpc-home-counts-divider: #dfceb5;
    --hpc-home-counts-rule: #eee8df;

    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 26px 0;
    border-block: 1px solid var(--hpc-home-counts-rule);
    color: var(--hpc-home-counts-ink);
    font-family: "Libre Baskerville", Georgia, serif;
}

.hpc-home-counts .hpc-home-counts__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 0;
}

.hpc-home-counts .hpc-home-counts__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 0 10px;
    text-align: center;
}

.hpc-home-counts .hpc-home-counts__item + .hpc-home-counts__item::before {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 1px;
    height: 46px;
    background: var(--hpc-home-counts-divider);
    content: "";
    transform: translateY(-50%);
}

.hpc-home-counts .hpc-home-counts__value {
    order: -1;
    margin: 0;
    padding: 0;
    color: var(--hpc-home-counts-gold);
    font-family: inherit;
    font-size: clamp(28px, 3.3vw, 42px);
    font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
    line-height: 1.15;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.hpc-home-counts .hpc-home-counts__value--long {
    font-size: clamp(22px, 2.8vw, 38px);
}

.hpc-home-counts .hpc-home-counts__label {
    margin: 7px 0 0;
    padding: 0;
    color: var(--hpc-home-counts-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 640px) {
    .hpc-home-counts {
        padding-block: 22px;
    }

    .hpc-home-counts .hpc-home-counts__list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        row-gap: 24px;
    }

    .hpc-home-counts .hpc-home-counts__item {
        grid-column: span 2;
        padding-inline: 6px;
    }

    .hpc-home-counts .hpc-home-counts__item:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .hpc-home-counts .hpc-home-counts__item:nth-child(4)::before {
        display: none;
    }

    .hpc-home-counts .hpc-home-counts__item + .hpc-home-counts__item::before {
        height: 38px;
    }

    .hpc-home-counts .hpc-home-counts__value {
        font-size: clamp(20px, 5vw, 28px);
    }

    .hpc-home-counts .hpc-home-counts__value--long {
        font-size: clamp(16px, 4vw, 24px);
    }

    .hpc-home-counts .hpc-home-counts__label {
        margin-top: 6px;
        font-size: 13px;
    }
}
