footer {
    padding: 1.2rem;
    background-color: var(--main-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.footer-link .wrapper {
    background-color: var(--white);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background-color 0.2s ease-in, color 0.2s ease-in;
}
.footer-link .wrapper .footer-icon {
    width: 1.1rem;
    height: 1.1rem;
    transition: filter 0.2s ease-in;
}

@media (hover: hover) {
    .footer-link .wrapper:hover {
        background-color: var(--black);
    }
    .footer-link .wrapper:hover .footer-icon {
        filter: invert(1);
    }
}

/* The editorial contact footer is scoped to the single-page documents. */
.home-page #contact {
    display: block;
    padding: clamp(var(--space-8), 5vw, var(--space-16)) 0;
    background-color: var(--color-ink);
    color: var(--white);
}
.contact-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
    width: min(var(--layout-width), calc(100% - 2 * var(--page-gutter)));
    margin-inline: auto;
}
.home-page #contact .contact-title {
    font-size: clamp(2rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-8);
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-page #contact .footer-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 48px;
    color: var(--white);
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 0.3em;
}
.home-page #contact .footer-icon {
    flex: none;
    filter: invert(1);
}
.home-page #contact .footer-link:hover {
    color: var(--color-header-accent);
}
.home-page #contact :focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
    box-shadow: none;
}
@media (width >= 760px) {
    .contact-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
