/* Strange Frontiers footer (php/footer.php). Dark, like the rest of the site:
   the logomark and tagline on the left, three columns of links on the right,
   and the rights line along the bottom. */

.sf-footer {
    position: relative;
    /* Over the section links, which phones pin to the window (css/rpg.css
       .rpg-links-rail), so the footer covers them as it scrolls up */
    z-index: 6;
    padding: 56px 60px 0;
    background-color: var(--sf-gray-900);
    border-top: 1px solid var(--sf-gray-700);
    color: var(--sf-gray-200);
}

.sf-footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 64px;
    padding-bottom: 48px;
}

/* ---- The logomark and tagline ---- */
.sf-footer-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--portfolio-white);
    font-family: 'bebas_neueregular';
    font-size: 45px;
    line-height: 1;
    letter-spacing: 1px;
    text-decoration: none;

    svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    span {
        margin-top: .08em;
    }

    &:hover,
    &:focus-visible {
        color: var(--portfolio-white);
        text-decoration: none;
    }
}

.sf-footer-tagline {
    margin: 12px 0 0;
    font-family: 'bebas_neueregular';
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--sf-gray-200);
}

/* ---- The link columns ---- */
.sf-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 72px;
}

.sf-footer-heading {
    margin: 0 0 12px;
    font-family: 'bebas_neueregular';
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--frontiers-green);
}

.sf-footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-footer-col li + li {
    margin-top: 8px;
}

.sf-footer-col a {
    color: var(--sf-gray-100);
    font-size: .95rem;
    text-decoration: none;

    &:hover,
    &:focus-visible {
        color: var(--frontiers-green);
        text-decoration: none;
    }
}

/* ---- The rights line ---- */
.sf-footer-legal {
    margin: 0;
    padding: 20px 0 28px;
    border-top: 1px solid var(--sf-gray-700);
    font-size: .7rem;
    line-height: 1.5;
    color: var(--sf-gray-300);
}

/* ---- Narrower windows: the header's sides ---- */
@media only screen and (max-width: 1399px) {
    .sf-footer {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media only screen and (max-width: 767px) {
    .sf-footer {
        padding: 40px 20px 0;
    }

    .sf-footer-main {
        flex-direction: column;
        padding-bottom: 36px;
    }

    .sf-footer-links {
        gap: 28px 48px;
    }
}
