:root {
    --bg: #14151a;
    --bg-soft: #1c1e26;
    --fg: #dfe3ee;
    --muted: #868da0;
    --dim: #565d73;
    --accent: #7aa2f7;
    --accent-soft: #a9b1d6;
    --cursor: #7aa2f7;
    --border: #3a4157;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    color-scheme: dark;
}

body {
    min-height: 100svh;
    background: var(--bg);
    color: var(--fg);
    font-family:
        "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    line-height: 1.4;
    overflow-x: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    container-type: inline-size;
}

pre {
    margin: 0;
    font: inherit;
}

/* ---------- name art ---------- */

.name {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 1.5ch;
    row-gap: 0.5rem;
    line-height: 1.15;
    font-weight: 500;
    color: var(--fg);
    text-align: center;
    user-select: none;
    font-size: clamp(0.7rem, calc((100cqw - 1rem) / 19.2), 1.6rem);
}

.name .word {
    white-space: pre;
    text-align: left;
}

/* ---------- role line ---------- */

.role {
    margin: 1.2rem 0 1.6rem;
    font-size: 1.05rem;
    color: var(--muted);
}

.role .prompt {
    color: var(--accent);
    margin-right: 0.6em;
}

.cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.15em;
    margin-left: 0.15em;
    vertical-align: text-bottom;
    background: var(--cursor);
    animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink {
    0%,
    60% {
        opacity: 1;
    }
    61%,
    100% {
        opacity: 0;
    }
}

/* ---------- links box ---------- */

.box {
    font-size: 1rem;
    color: var(--accent-soft);
}

.box .box-border {
    color: var(--border);
    user-select: none;
}

.box a.row {
    display: block;
    text-decoration: none;
    color: var(--accent-soft);
}

.box a.row pre {
    transition:
        color 0.12s ease,
        background-color 0.12s ease;
}

.box a.row:hover pre,
.box a.row:focus-visible pre {
    color: var(--accent);
    background: var(--bg-soft);
}

.box a.row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.box a.row:active pre {
    color: var(--fg);
}

/* ---------- responsive art ---------- */

@container (min-width: 900px) {
    .name {
        font-size: clamp(1rem, calc((100cqw - 2rem) / 38.7), 1.9rem);
    }
}

@media (max-width: 640px) {
    body {
        padding: 1.5rem 0.75rem;
    }

    .role {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor {
        animation: none;
    }
}

@media (max-width: 380px) {
    .box {
        font-size: 0.8rem;
    }
}
