

@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 {
    background: #2a2a2a;
    color: #f5f5f5;
    font-family: "VCR", monospace;
}


/* nav */

.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: 100;
}

.logo {
    font-size: 18px;
    letter-spacing: -.5px;
    user-select: none;
}

.window-buttons {
    display: flex;
    gap: 22px;
}

.window-buttons button {
    background: none;
    border: none;
    color: #aaa;
    font-family: "VCR", monospace;
    font-size: 15px;
    cursor: pointer;
    transition: color .2s ease, transform .3s ease;
}

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


/* ? */

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


/* 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;
}

/* 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 {
    cursor: pointer;
}

.image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #333;
    border: 1px solid #444;
    transition: background .3s ease;
}

.card:hover .image {
    background: #555;
}

.card p {
    margin-top: 12px;
    font-size: 14px;
}


/* mneu */

.menu {
    position: fixed;
    top: 58px;
    left: 0;
    width: 100%;
    height: calc(100vh - 58px);
    background: #2a2a2a;
    border-bottom: 1px solid #444;
    transform: translateY(-110%);
    transition: transform .35s ease;
    z-index: 90;
}

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

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 50px 40px;
}

.menu-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: clamp(40px, 7vw, 80px);
    text-transform: lowercase;
    transition: opacity .2s ease;
}

.menu-links a:hover {
    opacity: .5;
}


/* footsr */

footer {
    border-top: 1px solid #444;
    padding: 25px 40px;
    color: #888;
    font-size: 12px;
}


/* mobile */

@media (max-width: 700px) {

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

    .grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .menu-links {
        padding: 40px 20px;
    }
}


/* images */

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

.image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--border);
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .3s ease;
}

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


.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(70%);
    opacity: .65;
    transition: .3s ease;
}

  .image2 img {
	display: block;
	width: 300px;
	height: auto;
}

.card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}


/* alersts? */

.site-alert {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 350px;
    background: #111;
    color: white;
    border: 1px solid #444;
    padding: 20px;
    z-index: 99999;
    box-shadow: 0 0 20px #000;
}

.site-alert button {
    margin-top: 15px;
    background: white;
    color: black;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
}