* {
    box-sizing: border-box;
}

header {
    height: 200px;
    background-image: url("junkshelf.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

h1 {
    margin: 0;
    color: white;
    text-align: center;
    font-size: 6em;
    line-height: 2em;
}

main {
    max-width: 1000px;
    margin: 24px auto;
    padding: 0 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #f5f2e9;
    border: 2px solid #353535;
}

th,
td {
    padding: 12px 14px;
    border: 1px solid #777;
    text-align: left;
}

thead {
    color: white;
    background: #315b50;
}

tbody tr:nth-child(even) {
    background: #e7e3d7;
}

tfoot {
    font-weight: bold;
    background: #d5ddd5;
}

footer {
    margin-top: 20px;
    padding: 14px;
    border-top: 3px solid red;
    text-align: center;
    font-style: italic;
}

@media (max-width: 719px) {
    h1 {
        font-size: 3em;
        line-height: 200px;
    }

    table,
    tbody,
    tfoot,
    tr,
    td {
        display: block;
        width: 100%;
    }

    thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    tbody tr {
        margin-bottom: 12px;
        border: 1px solid #777;
    }

    td {
        display: grid;
        grid-template-columns: minmax(7rem, 35%) 1fr;
        gap: 8px;
        border: 0;
        border-bottom: 1px solid #ccc;
        overflow-wrap: anywhere;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
    }

    tfoot td {
        display: block;
    }

    tfoot td::before {
        content: none;
    }
}