footer {
    background-color: rgba(var(--text-color-rgba), 0.05);
    padding: calc(var(--unit) * 2) 0;
    margin-top: calc(var(--unit) * 4);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    gap: calc(var(--unit) * 2);
    font-weight: 200;

    @media only screen and (min-width: 700px) {
        padding: calc(var(--unit) * 2) 0;
    }

    section {
        width: 100%;
        box-sizing: border-box;
        max-width: var(--max-width);
        margin: auto;
        padding: 0 var(--site-padding);
    }

    .footer-top-inner {
        border-bottom: 1px solid rgba(var(--text-color-rgba), 0.25);

        @media only screen and (min-width: 700px) {
            padding: calc(var(--unit) * 2) 0;
            display: grid;
            grid-template-columns: minmax(200px, 33%) 1fr;
            gap: calc(var(--unit) * 3);
        }

        @media only screen and (min-width: 1000px) {
            grid-template-columns: minmax(300px, 50%) 1fr;
        }
    }

    .footer-about > * {
        margin-bottom: calc(var(--unit) * 2);
    }

    .footer-social {
        display: flex;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: calc(var(--unit) * 2);
        text-align: center;

        @media only screen and (min-width: 700px) {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;

            /* only the copyright/link lines, not the spans inside the back-to-top button */
            & > div > span {
                display: block;
                text-align: left;
            }
        }

        div {
            line-height: 130%;
        }
    }

    .footer-menu {
        padding: 0;
        column-count: 2;
        gap: calc(var(--unit) * 2);
    }
    
    .footer-menu-collection {
        break-inside: avoid;
        padding-bottom: 15px;

        h3 {
            margin-bottom: var(--unit);
        }

        @media (hover) {
            h3:hover {
                text-decoration: underline;
            }

            p:hover {
                text-decoration: underline;
            }
        }
    }
}