/* Site footer shell */

.site-footer {
    padding: 3.5rem 0 1.5rem;
    background: var(--pp-colour-primary-dark);
    color: var(--pp-colour-inverse-68);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
}

.site-footer p {
    font-size: .9rem;
}

.footer-brand-lockup {
    align-items: center;
    gap: .65rem;
    color: var(--pp-colour-inverse);
    line-height: 1;
    text-decoration: none;
}

.footer-brand-lockup img {
    display: block;
    width: 3rem;
    height: 2.75rem;
    object-fit: contain;
}

.footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: .18rem;
}

.footer-brand-name,
.footer-brand-tagline {
    display: block;
    white-space: nowrap;
}

.footer-brand-name {
    font-family: var(--pp-font-body);
    font-size: 1.05rem;
    font-weight: var(--pp-font-weight-bold);
    letter-spacing: .02em;
    text-transform: uppercase;
}

.footer-brand-tagline {
    color: var(--pp-colour-accent);
    font-family: var(--pp-font-body);
    font-size: .58rem;
    font-weight: var(--pp-font-weight-bold);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    justify-content: flex-end;
}

.footer-nav a + a::before {
    content: '|';
    margin-right: 1.25rem;
    color: var(--pp-colour-inverse-16);
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    width: 100%;
}

.footer-nav a,
.footer-legal a {
    color: var(--pp-colour-inverse-76);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: var(--pp-colour-accent);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: var(--pp-colour-inverse);
    font-size: 1.5rem;
    text-decoration: none;
    transition:
        color var(--pp-transition-fast),
        border-color var(--pp-transition-fast),
        background-color var(--pp-transition-fast);
}

.footer-social:hover {
    color: var(--pp-colour-primary-dark);
    background: var(--pp-colour-accent);
    border-color: var(--pp-colour-accent);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-attribution {
    color: var(--pp-colour-inverse-68);
}

.footer-legal-attribution::before {
    content: '|';
    margin-right: 1rem;
    color: var(--pp-colour-inverse-16);
}

.footer-legal-attribution a {
    color: var(--pp-colour-inverse-76);
    text-decoration: none;
}

.footer-legal-attribution a:hover {
    color: var(--pp-colour-accent);
}

@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 3rem;
    }

    .footer-top {
        display: block;
        text-align: center;
    }

    .footer-identity {
        margin-bottom: 2.25rem;
    }

    .footer-actions {
        display: block;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: .75rem;
    }

    .footer-nav a + a::before {
        display: none;
    }

    .footer-socials {
        justify-content: center;
        margin-top: 1.75rem;
    }

    .footer-social {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.5rem;
    }

    .footer-meta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .75rem;
        margin-top: 2.5rem;
        text-align: center;
    }

    .footer-legal {
        order: 1;
        justify-content: center;
    }

    .footer-legal-attribution::before {
        margin-right: .75rem;
    }

    .footer-copyright {
        order: 2;
    }

    .footer-brand-lockup img {
        width: 2.75rem;
        height: 2.5rem;
    }

}
