.matrix-terminal {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    min-height: 1.4em;
    margin-top: 0.65em;
    color: green;
    background: black;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.matrix-terminal::before {
    content: none;
}

[data-matrix-output] {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
}

[data-matrix-cursor] {
    flex: none;
    color: green;
    animation: terminal-cursor 880ms steps(1, end) infinite;
}

.site-quote {
    min-width: 0;
    overflow: hidden;
    color: #89949d;
    font-size: 0.75em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-quote::before {
    color: #64717a;
    content: "// ";
}

.footer .site-quote {
    justify-self: center;
    max-width: 100%;
    padding: 0 1.25em;
}

.footer-contact,
.footer-mark {
    white-space: nowrap;
}

@keyframes terminal-cursor {
    50% {
        opacity: 0;
    }
}

@media (max-width: 620px) {
    .matrix-terminal {
        max-width: calc(100vw - 4em);
        font-size: 0.64rem;
    }

    .footer {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .footer .site-quote {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        padding: 0.45em 0 0;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-matrix-cursor] {
        animation: none;
    }
}
