* {
    margin: 0;
    padding: 0;
    font-family: 'Arial';
}
body {
    width: 100vw; /* Blaze it */
    box-sizing: border-box;
}
main {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}
.month {
    width: 20%;
    display: grid;
    grid-template-columns: 1fr 1fr 12fr;
    grid-template-rows:auto repeat(31, auto-fill);
    grid-gap: 1px;
    padding: 0 1px;
    background-color: lightgrey;
}
.month > * {
    background-color: white;
    text-align: center;
    padding: 0.25rem;
    /*text-transform: capitalize;*/
    line-height: 1.1337; /* L33T magic number! 🪄✨ */
}
.month h3 {
    grid-column: 1 / 4;
    vertical-align: middle;
    padding: 0.25rem 0;
    font-size: 2rem;
    font-weight: 600;
}
.month h3::first-letter {
    text-transform: capitalize;
}
.weekend {
    background-color: #eee;
}
.month > section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}
img {
    width: 2rem;
    height: 2rem;
    padding-right: 0.25rem;
    max-height: 100%;
}
footer {
    display: grid;
    grid-gap: 0.25rem;
    background: lightgrey;
    padding: 0.25rem;
    grid-template-columns: repeat(5, auto);
    grid-template-rows: auto auto;
    box-sizing: border-box;
}
footer article:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
footer article:nth-child(6) {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
footer article:nth-child(7) {
    grid-column: 5 / 6;
    grid-row: 1 / 3;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
footer article:nth-child(8) {
    grid-column: 6 / 7;
    grid-row: 1 / 3;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
footer article:nth-child(9) {
    grid-column: 7 / 8;
    grid-row: 1 / 3;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
footer article {
    display: flex;
    font-size: 0.8rem;
    align-items: center;
    background-color: white;
    padding: 0.3rem 0.6rem;
}
footer article img {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 4rem;
    height: 4rem;
}
footer article p:first-of-type {
    font-weight: 600;
}

@media print {
    body {
        width: 420mm; /* Blaze it */
        height: 297mm;
        background: lightgrey;
    }
    footer {
        position: absolute;
        bottom: 0;
    }
}