:root {
    color-scheme: dark;
    font-family: "Courier New", Courier, monospace;
    background: #111111;
}

* {
    box-sizing: border-box;
}

::selection {
    color: #111111;
    background: #fafafa;
}

html,
body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    overflow-y: hidden;
    background: #111111;
}

.terminal {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: #111111;
}

.content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100svh;
    min-width: 0;
    padding: clamp(12px, 3vw, 20px);
    overflow-x: hidden;
    overflow-y: auto;
    color: #fafafa;
    overflow-wrap: anywhere;
}

.output,
.typing,
.input {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.status-bar,
.footer {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
}

.status-bar {
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    gap: 1rem;
}

.login,
.nav-hint {
    margin: 0;
}

.nav-hint {
    min-width: 0;
    text-align: right;
}

.footer {
    flex: 0 0 auto;
    margin: 0;
}

.page-content {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
    max-width: 1440px;
    min-width: 0;
    margin: 0 auto;
}

.hero {
    display: flex;
    flex: 0 0 clamp(240px, 36svh, 324px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.page-content--main .hero {
    justify-content: flex-end;
}

.wordmark {
    display: block;
    width: 100%;
    max-width: 1024px;
    height: auto;
    margin: 0 0 1rem;
}

.hero .output,
.menu-area .input {
    margin-bottom: 0;
}

.menu-area {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.menu-area--projects {
    justify-content: flex-start;
    padding-top: clamp(1.5rem, 3svh, 2rem);
}

a {
    color: #fafafa;
    text-decoration: none;
    border-bottom: 1px dashed #fafafa;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

a:hover,
a:focus-visible {
    background: #282828;
    border-bottom-style: solid;
}

span[onclick] {
    display: inline-block;
}

span[onclick]:hover,
span[onclick]:focus-visible {
    cursor: pointer;
    background: rgb(250 250 250 / 12%);
}

.page-nav__item,
.page-nav__label {
    display: inline-block;
    margin-right: clamp(0.75rem, 2vw, 1.5rem);
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
}

.page-nav__label {
    margin-right: 0;
}

.typing--dispersing {
    pointer-events: none;
    animation: text-disperse 60ms linear forwards;
}

.typing--fade-out {
    opacity: 0;
    transition: opacity 90ms linear;
}

.dust-layer {
    position: fixed;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.dust-particle {
    position: absolute;
    width: var(--dust-size);
    height: var(--dust-size);
    background: rgb(250 250 250 / var(--dust-opacity));
    opacity: 0;
    will-change: transform, opacity;
    animation: dust-disperse var(--dust-duration) cubic-bezier(0.2, 0.65, 0.3, 1) var(--dust-delay) forwards;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    vertical-align: -0.15em;
    background: #fafafa;
    animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes text-disperse {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes dust-disperse {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }

    12% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(var(--dust-x), var(--dust-y)) scale(0.35) rotate(var(--dust-rotation));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
