@font-face {
    font-family: "VCR";
    src: url("./fonts/VCR_OSD_MONO_1.001.ttf") format("truetype");
    font-display: swap;
}


/* ================================
   RESET
   ================================ */

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


/* ================================
   BODY
   ================================ */

body {
    background: #2a2a2a;
    color: #f5f5f5;
    font-family: "VCR", monospace;
}


/* ================================
   NAVBAR
   ================================ */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 58px;

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

    padding: 0 18px;

    background: #2a2a2a;

    border-bottom: 1px solid #444;

    z-index: 1000;
}


/* LOGO */

.logo {
    color: #f5f5f5;

    font-size: 18px;
    font-weight: normal;

    letter-spacing: -.5px;

    user-select: none;
}


/* WINDOW BUTTONS */

.window-buttons {
    display: flex;
    align-items: center;

    gap: 22px;
}


/* BUTTONS */

.window-buttons button {
    width: 18px;
    height: 28px;

    padding: 0;

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

    background: none;
    border: none;

    color: #aaa;

    font-family: "VCR", monospace;
    font-size: 15px;
    line-height: 1;

    cursor: pointer;

    transition:
        color .2s ease,
        transform .3s ease;
}


/* HOVER */

.window-buttons button:hover {
    color: #fff;
}


/* MENU TOGGLE */

.menu-toggle {
    color: #aaa;
}


/* OPEN MENU BUTTON */

.menu-toggle.open {
    transform: rotate(180deg);
    color: #fff;
}


/* ================================
   MAIN
   ================================ */

main {
    padding: 58px 40px 0;
}


/* ================================
   HERO
   ================================ */

.hero {
    height: 80vh;

    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: clamp(60px, 12vw, 160px);

    font-weight: normal;

    line-height: .85;

    letter-spacing: -5px;

    text-transform: lowercase;
}


/* ================================
   MENU
   ================================ */

.menu {
    position: fixed;

    top: 58px;
    right: 0;

    width: 260px;
    max-width: 85vw;

    background: rgba(42, 42, 42, .98);

    border-left: 1px solid #444;
    border-bottom: 1px solid #444;

    transform: translateY(-110%);

    opacity: 0;

    pointer-events: none;

    transition:
        transform .3s ease,
        opacity .3s ease;

    z-index: 900;
}


/* OPEN */

.menu.active {
    transform: translateY(0);

    opacity: 1;

    pointer-events: auto;
}


/* PANEL */

.menu-panel {
    display: flex;

    flex-direction: column;
}


/* LINKS */

.menu a {
    display: block;

    padding: 18px 20px;

    color: #f5f5f5;

    text-decoration: none;

    font-size: 14px;

    border-bottom: 1px solid #444;

    transition:
        background .2s ease,
        color .2s ease,
        padding-left .2s ease;
}


/* REMOVE BORDER FROM LAST LINK */

.menu a:last-child {
    border-bottom: none;
}


/* HOVER */

.menu a:hover {
    background: #f5f5f5;

    color: #000;

    padding-left: 26px;
}


/* ================================
   PROJECTS
   ================================ */

.projects {
    padding-bottom: 80px;
}

.projects h2 {
    margin-bottom: 25px;

    color: #aaa;

    font-size: 14px;

    font-weight: normal;

    text-transform: uppercase;
}


.grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


/* CARD */

.card {
    cursor: pointer;
}

.card a {
    text-decoration: none;
    color: inherit;
}


/* IMAGE */

.image {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #333;

    border: 1px solid #444;
}


.card .image {
    background: #555;
}


.image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    filter: grayscale(70%);

    opacity: .65;

    transition:
        transform .3s ease,
        filter .3s ease,
        opacity .3s ease;
}


/* IMAGE HOVER */

.card:hover img {
    transform: scale(1.05);

    filter: grayscale(0%);

    opacity: 1;
}


.card p {
    margin-top: 12px;

    font-size: 14px;
}


/* SPECIAL IMAGE */

.image2 img {
    display: block;

    width: 300px;

    height: auto;
}


/* ================================
   ALERTS
   ================================ */

.site-alert {
    position: fixed;

    top: 30px;
    right: 30px;

    width: 350px;

    padding: 20px;

    background: #111;

    color: #fff;

    border: 1px solid #444;

    box-shadow: 0 0 20px #000;

    z-index: 99999;
}


.site-alert button {
    margin-top: 15px;

    padding: 8px 20px;

    background: #fff;

    color: #000;

    border: none;

    cursor: pointer;
}


/* ================================
   FOOTER
   ================================ */

footer {
    padding: 25px 40px;

    color: #888;

    font-size: 12px;

    border-top: 1px solid #444;
}


/* ================================
   ARCHIVE
   ================================ */

.archive {
    position: relative;

    width: 100%;

    min-height: 1900px;

    overflow: hidden;

    font-size: 14px;
}


/* ARCHIVE TITLE */

.archive-title {
    position: absolute;

    top: 150px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 10;
}


.archive-title h1 {
    margin: 0;

    font-size: clamp(38px, 6vw, 80px);

    font-weight: normal;

    letter-spacing: -3px;

    line-height: 1;

    text-align: center;
}


/* ARCHIVE FILE */

.archive-file {
    position: absolute;

    top: 300px;
    left: 50%;

    display: flex;

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

    width: 230px;
    height: 65px;

    transform: translateX(-50%);

    color: #f5f5f5;

    border: 1px solid #555;

    background: #2a2a2a;

    text-decoration: none;

    z-index: 10;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


/* ARCHIVE FILE HOVER */

.archive-file:hover {
    color: #000;

    background: #f5f5f5;

    transform:
        translateX(-50%)
        rotate(-2deg)
        scale(1.05);
}


/* ARCHIVE LABELS */

.archive-video-label,
.archive-music-label,
.archive-unknown-label {
    position: absolute;

    z-index: 10;

    font-size: 13px;

    color: #aaa;
}


.archive-video-label {
    top: 455px;
    left: 15%;
}


.archive-music-label {
    top: 815px;
    left: 16%;
}


.archive-unknown-label {
    top: 1175px;
    left: 15%;
}


/* ARCHIVE IMAGES */

.archive-video {
    position: absolute;

    z-index: 10;
}


.archive-video-one {
    top: 430px;
    left: 52%;
}


.archive-video-two {
    top: 790px;
    left: 52%;
}


.archive-video-three {
    top: 1150px;
    left: 52%;
}


.archive-image {
    width: 330px;
    height: 190px;

    overflow: hidden;

    border: 1px solid #555;

    background: #333;
}


.archive-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter: grayscale(0%);

    opacity: .7;

    transition:
        filter .2s ease,
        opacity .2s ease,
        transform .3s ease;
}


/* ARCHIVE IMAGE HOVER */

.archive-image:hover img {
    filter: grayscale(0%);

    opacity: 1;

    transform: scale(1.04);
}


/* OPEN */

.archive-open {
    display: block;

    width: max-content;

    margin-top: 14px;

    margin-left: 270px;

    color: #f5f5f5;

    text-decoration: none;

    font-size: 12px;

    transition:
        color .2s ease,
        transform .2s ease;
}


.archive-open:hover {
    color: #aaa;

    transform: translateX(5px);
}


/* DIVIDER */

.archive-divider {
    position: absolute;

    left: 12%;

    width: 76%;

    height: 1px;

    background: #444;

    z-index: 5;
}


.archive-divider-one {
    top: 750px;
}


.archive-divider-two {
    top: 1520px;
}


/* COUNTER */

.archive-counter {
    position: absolute;

    top: 1370px;
    left: 50%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    color: #aaa;

    font-size: 12px;

    line-height: 1.3;

    transform: translateX(-50%);

    z-index: 10;
}


.archive-counter span {
    color: #777;

    transform: rotate(-3deg);
}


/* SMALL INFORMATION */

.archive-small {
    position: absolute;

    color: #666;

    font-size: 10px;

    z-index: 5;

    user-select: none;
}


.archive-small-one {
    top: 270px;

    left: 15%;
}


.archive-small-two {
    top: 620px;

    right: 13%;
}


.archive-small-three {
    top: 1450px;

    left: 17%;
}


.archive-small-four {
    top: 1480px;

    right: 23%;
}


/* RETURN */

.archive-return {
    position: absolute;

    top: 1620px;
    left: 50%;

    color: #f5f5f5;

    text-decoration: none;

    font-size: 13px;

    transform: translateX(-50%);

    z-index: 10;

    transition:
        color .2s ease,
        letter-spacing .2s ease;
}


.archive-return:hover {
    color: #aaa;

    letter-spacing: 1px;
}


/* ================================
   MOBILE
   ================================ */

@media (max-width: 700px) {

    main {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* NAV */

    .navbar {
        height: 54px;

        padding: 0 15px;
    }


    .window-buttons {
        gap: 15px;
    }


    .menu {
        top: 54px;

        width: 240px;

        max-width: 85vw;
    }


    /* ARCHIVE */

    .archive {
        min-height: 1850px;
    }


    .archive-title {
        top: 120px;
    }


    .archive-title h1 {
        font-size: 42px;

        letter-spacing: -2px;
    }


    .archive-file {
        top: 240px;

        width: 190px;
        height: 58px;
    }


    /* LABELS */

    .archive-video-label {
        top: 370px;

        left: 8%;
    }


    .archive-music-label {
        top: 720px;

        left: 8%;
    }


    .archive-unknown-label {
        top: 1070px;

        left: 8%;
    }


    /* ARCHIVE ENTRIES */

    .archive-video {
        width: 76%;
    }


    .archive-video-one {
        top: 405px;

        left: 12%;
    }


    .archive-video-two {
        top: 755px;

        left: 12%;
    }


    .archive-video-three {
        top: 1105px;

        left: 12%;
    }


    .archive-image {
        width: 100%;

        height: auto;

        aspect-ratio: 16 / 9;
    }


    .archive-open {
        margin-left: auto;

        margin-right: 0;

        margin-top: 10px;
    }


    /* DIVIDERS */

    .archive-divider {
        left: 8%;

        width: 84%;
    }


    .archive-divider-one {
        top: 690px;
    }


    .archive-divider-two {
        top: 1460px;
    }


    /* COUNTER */

    .archive-counter {
        top: 1330px;
    }


    /* SMALL INFORMATION */

    .archive-small-one {
        top: 215px;

        left: 8%;
    }


    .archive-small-two {
        top: 650px;

        right: 8%;
    }


    .archive-small-three {
        top: 1390px;

        left: 8%;
    }


    .archive-small-four {
        top: 1430px;

        right: 10%;
    }


    /* RETURN */

    .archive-return {
        top: 1560px;
    }

}