* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background: #0d0d0d;
    color: #999;
    font-family: monospace;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background: repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.015),
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px,
            transparent 3px
    );

    animation: flicker 6s infinite steps(60);
}


@keyframes flicker {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    52% {
        opacity: 0.7;
    }

    54% {
        opacity: 1;
    }
}


@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}


.container {
    position: relative;
    z-index: 1;

    padding: 3rem;
    max-width: 760px;
    margin: 0 auto;
}


header {
    margin-bottom: 4rem;
}


.logo {
    font-size: 13px;
    letter-spacing: 0.2em;
    color: #666;
}


.logo::after {
    content: "_";
    color: #00FF99;
    animation: blink 1s step-end infinite;
}


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


nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 1.5rem;
}


nav a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.15s;
}


nav a:hover,
nav a.active {
    color: #00FF99;
}


#view-content {
    margin-top: 3rem;
}


.prompt {
    font-size: 12px;
    color: #555;
    margin-bottom: 1.5rem;
}


.prompt::before {
    content: "$ cat ";
}


.prompt::after {
    content: ".txt";
}


h1 {
    font-size: 1.8rem;
    color: #ddd;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
}


.role {
    color: #00FF99;
    font-size: 14px;
    margin-bottom: 1.5rem;
}


.body-text {
    max-width: 60ch;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 14px;
}


.body-text.dim {
    color: #666;
    font-size: 13px;
}


.project {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #1a1a1a;
}


.project:last-child {
    border-bottom: none;
}


.project-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-bottom: 0.6rem;
}


.project h2 {
    font-size: 15px;
    color: #ddd;
    font-weight: normal;
}


.stack {
    font-size: 11px;
    color: #00FF99;
    opacity: 0.75;
}


.project p {
    font-size: 13px;
    line-height: 1.7;
    max-width: 62ch;
    margin-bottom: 1rem;
}



.media-slot {
    width: 100%;
    max-width: 420px;

    border: 1px dashed #2a2a2a;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #444;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    margin-bottom: 1rem;
}


.media-slot img {
    width: 100%;
    height: auto;
    display: block;

    cursor: zoom-in;
    transition: opacity 0.15s;
}


.media-slot img:hover {
    opacity: 0.8;
}


.media-slot span {
    opacity: 0.8;
}


.media-pdf {
    min-height: 70px;
    max-width: 420px;
}


.pdf-link {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 0.8rem;
    padding: 1rem;

    color: #666;
    text-decoration: none;

    font-size: 12px;

    transition:
            color 0.15s,
            background 0.15s;
}


.pdf-link:hover {
    color: #00FF99;
    background: #111;
}


.pdf-icon {
    color: #00FF99;
    font-size: 18px;
    flex-shrink: 0;
}

.links {
    font-size: 12px;

    display: flex;
    gap: 1rem;
}


.links a {
    color: #666;
    text-decoration: underline;
}


.links a:hover {
    color: #00FF99;
}


.links .closed {
    color: #444;
    font-style: italic;
}


.kv-list {
    list-style: none;
    font-size: 14px;
    line-height: 2.4;
}


.key {
    display: inline-block;
    min-width: 90px;
    color: #00FF99;
}


.kv-list a {
    color: #999;
    text-decoration: none;
    border-bottom: 1px solid #333;
}


.kv-list a:hover {
    color: #00FF99;
    border-bottom-color: #00FF99;
}



.lightbox {
    position: fixed;
    inset: 0;

    z-index: 100;

    background: rgba(0, 0, 0, 0.92);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    cursor: zoom-out;
}


.lightbox img {
    max-width: 95vw;
    max-height: 95vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border: 1px solid #2a2a2a;
}


.lightbox-close {
    position: fixed;

    top: 1.5rem;
    right: 2rem;

    color: #666;

    font-family: monospace;
    font-size: 14px;

    cursor: pointer;
}


.lightbox-close:hover {
    color: #00FF99;
}


@media (max-width: 500px) {

    .container {
        padding: 1.5rem;
    }

    nav {
        gap: 1.2rem;
    }

    .project-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }
}