/* Footer — gradient background, mono labels, big links, full-width wordmark
/* ---------------------------------------------------------- */

footer.gh-foot {
    position: relative;
    overflow: hidden;
    padding-top: 72px;
    padding-bottom: 0;
    border-top: 1px solid #000;
    color: #000;
    background: #fff;
    white-space: normal;
}

footer.gh-foot .nr-foot {
    position: relative;
}

.nr-foot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.7fr;
    gap: 48px;
    align-items: start;
}

.nr-foot-grid > * {
    min-width: 0;
}

.nr-foot-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.3rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #000;
}

.nr-foot-label::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: .85;
}

/* Links */
.nr-foot-links .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.nr-foot-links .nav li + li::before {
    content: none !important;
}

footer.gh-foot .nr-foot-links a {
    color: #000;
    font-size: clamp(2.6rem, 2.8vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.1;
    text-transform: none;
    text-decoration: none;
}

footer.gh-foot .nr-foot-links a:hover {
    color: #221FFF;
    opacity: 1;
    text-decoration: none;
    font-weight: 600;
    font-variation-settings: normal;
}

/* Sign up */
.nr-foot-pitch {
    max-width: 480px;
    margin: 16px 0 0;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: #000;
}

footer.gh-foot .gh-subscribe-input {
    margin-top: 26px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

/* Meta row */
.nr-foot-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    margin-top: 96px;
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.3rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #000;
}

footer.gh-foot .nr-foot-meta a {
    color: #000;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: underline;
}

footer.gh-foot .nr-foot-meta a:hover {
    color: #221FFF;
    opacity: 1;
    font-weight: inherit;
    font-variation-settings: normal;
    text-decoration: underline;
}

/* Wordmark */
.nr-foot-wordmark {
    margin-top: 20px;
    padding-bottom: 14px;
    overflow: hidden;
    white-space: nowrap;
    line-height: .8;
}

.nr-foot-wordmark span {
    display: inline-block;
    font-size: 13vw; /* replaced by the exact fit from app.js */
    font-weight: 700;
    letter-spacing: -.05em;
    margin-left: -.06em;
    line-height: .8;
    text-transform: uppercase;
    color: #000;
}

@media (max-width: 991px) {
    .nr-foot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nr-foot-signup {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    footer.gh-foot {
        padding-top: 48px;
    }

    .nr-foot-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .nr-foot-meta {
        margin-top: 56px;
    }
}

/* Space between the page/post content and the footer line
   (the theme removes the default bottom padding of .gh-main) */
.page-template .gh-main,
.post-template .gh-main {
    padding-bottom: 80px;
}

@media (max-width: 575px) {
    .page-template .gh-main,
    .post-template .gh-main {
        padding-bottom: 48px;
    }
}
