/*
 * Beweisfotos als Abzüge: jedes Foto in seinem eigenen Format, mit weißem Rand,
 * darunter wo es war. Das Eigene der Seite ist der Datumsstempel der Kamera —
 * orange, unten rechts im Bild, wie ihn Kompaktkameras auf den Film belichtet
 * haben. Er ist der Beweis, um den es hier geht. Die Versprechen stehen in
 * specs/beweisfotos.md.
 */

.proof-page {
    --pp-night: #253032;
    --pp-grass: #2e7d32;
    --pp-paper: #eef2ef;
    --pp-ink: #1e2629;
    --pp-muted: #5c6b66;
    --pp-stamp: #ff9b2f;
    --pp-numeral: 'Barlow Semi Condensed', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --pp-row: 105px;

    color: var(--pp-ink);
    margin-bottom: 48px;
}

.proof-page ol.breadcrumb {
    margin-bottom: 12px;
}

/* Vorspann: der Kasten aus intro-text.md, ruhig wie auf „Alle Spiele". */
.proof-page .collection-intro {
    margin: 4px 0 26px;
    background: transparent;
    border: 0;
}

.proof-page .collection-intro .card-header {
    padding: 0;
    background: transparent;
    border: 0;
    font-family: var(--pp-numeral);
    font-weight: 700;
    font-size: 22px;
    color: var(--pp-night);
}

.proof-page .collection-intro .card-body {
    padding: 4px 0 0;
    font-style: normal;
    font-size: 16px;
    line-height: 1.55;
    color: var(--pp-ink);
}

.proof-page .collection-numbers {
    display: block;
    margin-top: 6px;
    font-family: var(--pp-numeral);
    font-weight: 600;
    font-size: 17px;
    color: var(--pp-muted);
    font-variant-numeric: tabular-nums;
}

/*
 * Bündige Reihen: Jeder Abzug wächst im Verhältnis seines Formats, sodass alle
 * Fotos einer Reihe gleich hoch stehen und keines beschnitten wird — auf einem
 * Beweisfoto könnte der Beweis am Rand stehen. Gelesen wird von links nach rechts,
 * das jüngste zuerst. Das Pseudo-Element hält die letzte Reihe davon ab, sich
 * über die ganze Breite zu ziehen.
 */
.proof-prints {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.proof-prints::after {
    content: '';
    flex-grow: 1000;
}

.proof-print {
    flex: var(--ratio) 1 calc(var(--ratio) * var(--pp-row));
    min-width: 0;
    padding: 6px 6px 8px;
    background: #fff;
    border: 1px solid rgba(37, 48, 50, .14);
    border-radius: 2px;
}

.proof-print__photo {
    position: relative;
    display: block;
    aspect-ratio: var(--ratio);
    overflow: hidden;
    background: var(--pp-paper);
}

.proof-print__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-print__photo:focus-visible {
    outline: 3px solid var(--pp-night);
    outline-offset: 2px;
}

/* Der Stempel: Ziffern ohne führende Null, das Jahr zweistellig. */
.proof-print__stamp {
    position: absolute;
    right: 8px;
    bottom: 6px;
    font-family: var(--pp-numeral);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    letter-spacing: .08em;
    word-spacing: .12em;
    color: var(--pp-stamp);
    text-shadow: 0 0 3px rgba(255, 110, 0, .55), 0 1px 1px rgba(0, 0, 0, .7);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.proof-print__caption {
    margin: 7px 2px 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--pp-muted);
}

.proof-print__event {
    display: block;
    font-family: var(--pp-numeral);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: var(--pp-ink);
    overflow-wrap: anywhere;
}

.proof-page a.proof-print__event {
    color: var(--pp-ink);
    text-decoration: none;
}

.proof-page a.proof-print__event:hover {
    color: var(--pp-grass);
    text-decoration: underline;
}

.proof-page a.proof-print__event:focus-visible {
    outline: 2px solid var(--pp-night);
    outline-offset: 2px;
}

.proof-print__where {
    display: block;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .proof-page {
        --pp-row: 165px;
    }

    .proof-prints {
        gap: 18px 16px;
    }

    .proof-print__stamp {
        font-size: 17px;
    }
}
