/* ========================================
   FOOTER — an ink band that closes every page
   ======================================== */
.site-footer {
    --f-bg: #16232f;
    --f-text: #f4f7fa;
    --f-muted: rgba(244, 247, 250, 0.62);
    --f-rule: rgba(244, 247, 250, 0.14);
    background: var(--f-bg);
    color: var(--f-text);
    padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
    font-size: 0.95rem;
}

[data-theme="dark"] .site-footer {
    --f-bg: #0f1826;
    border-top: 1px solid var(--f-rule);
}

.site-footer a {
    color: var(--f-text);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--f-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-footer :focus-visible {
    outline-color: var(--f-text);
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
    gap: 2.5rem 2rem;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.9rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-footer__logo:hover {
    text-decoration: none;
}

.site-footer__brand p {
    color: var(--f-muted);
    max-width: 28ch;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.site-footer__coffee {
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 0.2em;
}

.site-footer__col h2 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--f-muted);
    margin-bottom: 0.9rem;
}

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

.site-footer__col li {
    margin-bottom: 0.5rem;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--f-rule);
    color: var(--f-muted);
    font-size: 0.875rem;
}

.site-footer__bottom p {
    margin: 0;
    color: inherit;
}

.site-footer__bottom ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.site-footer__bottom a {
    color: var(--f-muted);
}

@media (max-width: 992px) {
    .site-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}
