.site-footer {
    margin-top: 5rem;
    background: #070707;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #b8b8b8;
}

.footer-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 3rem 2rem;

    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 2rem 5rem;
    align-items: start;
}

.footer-brand {
    max-width: 420px;
}

.footer-logo {
    display: inline-flex;
    color: #f5f5f5;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.85rem;
}

.footer-logo:hover {
    color: #ffffff;
}

.footer-brand p {
    margin: 0;
    color: #9f9f9f;
    font-size: 1rem;
    line-height: 1.65;
}

.footer-section h2 {
    margin: 0 0 0.85rem;
    color: #f0f0f0;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-section a {
    color: #9d9d9d;
    text-decoration: none;
    font-size: 0.98rem;
    line-height: 1.35;
    transition: color 150ms ease;
}

.footer-section a:hover {
    color: #f5f5f5;
}

.footer-section a:focus-visible,
.footer-logo:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 4px;
    border-radius: 6px;
}

.footer-bottom {
    max-width: 1480px;
    margin: 0 auto;
    padding: 1.15rem 2rem 1.35rem;

    display: flex;
    justify-content: space-between;
    gap: 1rem;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
    color: #7f7f7f;
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-note {
    text-align: right;
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 640px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-note {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .site-footer {
        margin-top: 3.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        padding: 2.5rem 1.25rem;
        gap: 2.25rem 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-section h2 {
        margin-bottom: 0.7rem;
    }

    .footer-section ul {
        gap: 0.5rem;
    }

    .footer-section a {
        font-size: 0.95rem;
    }

    .footer-bottom {
        padding: 1rem 1.25rem 1.2rem;
    }
}

.site-footer {
    margin-top: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    color: var(--muted)
}

.footer-inner {
    width: min(var(--page), 100%);
    max-width: none;
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter);
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) repeat(2, minmax(140px, .5fr));
    gap: 3rem;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line)
}

.footer-brand {
    max-width: 520px
}

.footer-logo {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 4.2rem);
    font-weight: 520;
    letter-spacing: -.065em;
    line-height: .9
}

.footer-brand p {
    max-width: 440px;
    margin: 1.5rem 0 0;
    color: var(--muted)
}

.footer-section {
    padding-left: 1.25rem;
    border-left: 1px solid var(--line)
}

.footer-section h2 {
    margin: 0 0 1.5rem;
    color: var(--quiet);
    font: 400 .65rem "IBM Plex Mono", monospace;
    letter-spacing: .1em
}

.footer-section ul {
    gap: .25rem
}

.footer-section a {
    position: relative;
    display: inline-block;
    padding: .18rem 0;
    color: var(--muted);
    font-size: 1rem;
    transition: color .18s
}

.footer-section a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--ease)
}

.footer-section a:hover {
    color: var(--ink)
}

.footer-section a:hover::after {
    transform: scaleX(1);
    transform-origin: left
}

/* Shared treatment for links that refer visitors to another page or resource. */
.referral-arrow {
    display: inline-block;
    margin-left: .3em;
    font: 400 .75em "IBM Plex Mono", monospace;
    transition: transform 180ms var(--ease);
}

a:hover .referral-arrow {
    transform: translate(2px, -2px);
}

.footer-bottom {
    width: min(var(--page), 100%);
    max-width: none;
    margin: 0 auto;
    padding: 1.1rem var(--gutter);
    border-top: 1px solid var(--line);
    color: var(--quiet);
    font: 400 .65rem "IBM Plex Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase
}

.footer-bottom p {
    color: inherit;
    font-size: inherit
}

@media(max-width:760px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr
    }

    .footer-brand {
        grid-column: 1/-1
    }

    .footer-section {
        padding: 1.25rem 0 0;
        border-top: 1px solid var(--line);
        border-left: 0
    }
}

@media(max-width:440px) {
    .footer-inner {
        grid-template-columns: 1fr
    }

    .footer-brand {
        grid-column: 1
    }

    .footer-section {
        padding-top: 1rem
    }
}

@media(prefers-reduced-motion:reduce) {
    .referral-arrow {
        transition: none
    }
}
