:root {
    --background: #000000;
    --terminal-green: #33ff33;
    --terminal-glow: rgba(51, 255, 51, 0.45);
    --selection-background: #33ff33;
    --selection-text: #000000;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 2rem;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(51, 255, 51, 0.025) 0,
            rgba(51, 255, 51, 0.025) 1px,
            transparent 1px,
            transparent 4px
        ),
        var(--background);

    color: var(--terminal-green);

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 16px;
    font-weight: normal;
    line-height: 1.4;

    text-shadow:
        0 0 3px var(--terminal-glow);
}

::selection {
    color: var(--selection-text);
    background: var(--selection-background);
}

main,
header,
section,
nav,
footer,
p,
pre,
ul,
li,
a,
span,
strong {
    font: inherit;
}

p,
pre {
    margin-top: 0;
}

pre {
    margin-bottom: 0;
}

.terminal {
    width: min(100%, 64rem);
    margin: 0;
}

.hero {
    margin-bottom: 2rem;
}

.terminal-box {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0;

    color: inherit;
    font: inherit;
    line-height: inherit;
    white-space: pre;

    overflow: visible;
}

.workstation {
    width: min(100%, 64rem);
}

.workstation > p:first-child {
    margin-bottom: 1rem;
}

.menu {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.menu li {
    margin: 0 0 0.5rem;
}

.menu a {
    display: inline-block;
    padding: 0.1rem 0.35rem;

    color: var(--terminal-green);
    text-decoration: none;
}

.menu a:hover,
.menu a:focus-visible {
    color: var(--background);
    background: var(--terminal-green);
    outline: none;
    text-shadow: none;
}

.menu span {
    display: inline-block;
    min-width: 2.5rem;
}

.status-line {
    margin: 2rem 0 0;
}

.prompt-line {
    margin: 1rem 0 0;
}

.cursor {
    display: inline-block;
    margin-left: 0.15rem;
    animation: blink 1s steps(1) infinite;
}

footer {
    margin-top: 3rem;
}

footer p {
    margin: 0.25rem 0;
}

@keyframes blink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 700px) {
    body {
        padding: 1rem;
        font-size: 12px;
    }

    .terminal {
        width: 100%;
        overflow: hidden;
    }

    .hero {
        margin-bottom: 1.5rem;
    }

    .menu a {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 400px) {
    body {
        padding: 0.75rem;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor {
        animation: none;
    }
}