@font-face {
    font-family: "Data70";
    src: url("Data70.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Sysfont";
    src: url("sysfont.otf") format("opentype");
    font-display: swap;
}

:root {
    --bg-color: #050505;
    --text-color: #e8f1ea;
    --muted-color: #9aa89f;
    --command-color: #52ff8f;
    --selection-color: rgba(82, 255, 143, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-color);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "Sysfont", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 16px;
    line-height: 1.45;
}

::selection {
    background: var(--selection-color);
}

.terminal-shell {
    min-height: 100vh;
    padding: clamp(12px, 2.4vw, 24px);
}

.terminal {
    width: 100%;
    min-height: calc(100vh - clamp(24px, 4.8vw, 48px));
    padding: 0;
    overflow: hidden;
    cursor: text;
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.line {
    min-height: 1.45em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.line.muted {
    color: var(--muted-color);
}

.prompt,
.command,
.command-link {
    color: var(--command-color);
}

.terminal-input-line {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    width: 100%;
    min-height: 1.45em;
    margin-top: 0.5rem;
}

.prompt {
    flex: 0 1 auto;
    white-space: nowrap;
}

.command-input {
    flex: 1 1 auto;
    min-width: 4rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-color);
    caret-color: var(--command-color);
    font: inherit;
}

.command-input:disabled {
    opacity: 1;
}

.command-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin: 0.15rem 0 0.45rem;
}

.command-link {
    min-height: 1.45em;
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.command-link:hover,
.command-link:focus-visible {
    border-color: var(--command-color);
    outline: 0;
}

.profile {
    display: grid;
    grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: start;
    margin: 0.5rem 0;
}

.profile-media {
    margin: 0;
}

.profile-image {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.profile-media figcaption {
    margin-top: 0.3rem;
    color: var(--muted-color);
    font-size: 0.9em;
}

.profile-name {
    margin: 0 0 0.1rem;
    color: var(--text-color);
    font-family: "Data70", "Sysfont", ui-monospace, monospace;
    font-size: clamp(2rem, 8vw, 4.7rem);
    font-weight: 400;
    line-height: 0.95;
}

.profile-pronouns {
    margin-bottom: 0.75rem;
    color: var(--muted-color);
}

.profile-copy {
    max-width: 72ch;
}

.cursor::after {
    content: "";
    display: inline-block;
    width: 0.56em;
    height: 1em;
    margin-left: 0.12em;
    transform: translateY(0.16em);
    background: var(--command-color);
    animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px;
    }

    .terminal-shell {
        padding: 12px;
    }

    .terminal {
        min-height: 100vh;
    }

    .terminal-input-line {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.15rem 0.45rem;
    }

    .prompt {
        width: 100%;
    }

    .profile {
        grid-template-columns: 1fr;
    }

    .profile-image {
        max-width: 230px;
    }
}
