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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5 {
    font-weight: normal;
}

html {
    --color: #79cbc9;
    --highlight-color: #9c8bdb;
    --bg-color: #0F0F0F;
    --serif: Georgia, serif;
    --sans-serif: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-weight: 200;
    --ui-font-size: clamp(0.8rem, 2vw, 1rem);
    --title-font-size: clamp(2rem, 4vw, 4rem);
    --caption-font-size: clamp(0.8rem, 1vw, 1rem);
}

body {
    font-family: var(--sans-serif);
    font-weight: var(--font-weight);
    background: var(--bg-color);
    color: var(--color);
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    padding: 20px;
    height: 100dvh;
}

header {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    width: calc(100% - 40px);
    z-index: 11;
    row-gap: 20px;
}

figcaption {
    margin-top: 10px;
    font-size: var(--caption-font-size);
}

.wordmark {
    grid-column: 1 / 4;
    font-family: var(--serif);
    letter-spacing: 2%;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.folio-website-link {
    grid-column: 1 / 9;
    font-size: 14px;
    grid-row-start: 2;
    a {
        text-decoration: underline;
    }
}

.instagram {
    grid-column-end: 10;
    grid-row-start: 2;
    justify-self: end;
}

.hamburger-menu {
    grid-column-end: 10;
    grid-row-start: 1;
    justify-self: end;
}


.essay-list /* mobile*/ {
    grid-column: 1 / 10;
}

.file-data /**/ {
    grid-column: 1 / 10;
}



.essay-list li {
    margin: 5px 0;
}

.essay-list li a {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    transition: color 0.5s, background-color 0.5s, padding 0.5s;
    &:hover {
        color: var(--highlight-color);
        /* background-color: var(--color); */
        padding: 8px 0;
    }
}

.essay-list-number {
    grid-column: 1 / 2;
}

.essay-list-title {
    grid-column: 2 / 5;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.files li {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-weight: 200;
    margin: 5px 0;
}

.file-name {
    grid-column: 1 / 3;
}

.file-size {
    grid-column: 3 / 4;
    grid-row-start: 1;
}

.files-description {
    padding-bottom: 10px;
    font-weight: 500;
}

.info-btn {
    display: flex;
    /* justify-content: flex-end; */
    margin-bottom: 10px;
    position: relative;
    img {
        height: 15px;
        align-self: flex-end;
    }
    &::after {
        opacity: 0;
        content: "Forest of the.Cloud is 267KB. How does this website compare? These are the files used on the current page.";
        font-size: clamp(0.6rem, 1.6vw, 0.7rem);
        transition: opacity 0.5s;
        margin-left: 10px;
        justify-self: flex-start;
        max-width: 350px;
    }
    &:hover::after {
        opacity: 1;
    }
}

.no-of-proj {
    grid-column: 3 / 4;
    grid-row-start: 1;
    justify-self: end;
}  

@property --gradient-color-1 {
  syntax: '<color>';
  inherits: false;
  initial-value: rgba(0, 255, 0, 0.3);
}

.mushroom {
    image-rendering: pixelated; 
    width: clamp(5vw, 50px, 15vw);
    position: relative;
    &::after {
        content: '';
        display: block;
        width: clamp(5vw, 50px, 10vw);
        aspect-ratio: 1 / 1;
        background: radial-gradient(circle, var(--gradient-color-1) 0%, rgba(0, 0, 0, 0) 40%);
        /* mix-blend-mode: screen; */
        animation: float 10s infinite ease-in-out;
        position: absolute;
        top: 50%;
        left: 50%;
        translate: -50% -50%;
        transition: --gradient-color-1 1s;
    }
    @media (hover:hover) {
        &:hover::after {
            --gradient-color-1: rgba(255, 85, 0, 0.9);
        }
    }
}

.m-right {
    align-self: end;
}

.m-center {
    align-self: center;
}

.full-iframe {
    width: 100%;
    aspect-ratio: 5 / 3;
    border: none;
}

.hidden {
    transform: translateY(-700px);
    transition: transform 0.6s;
}

.revealed {
    transform: translateY(0);
    transition: transform 0.6s;
    z-index: 10;
}

button {
    background: none;
    border: var(--color) 1px solid;
    color: var(--color);
    padding: 1em;
}

.two-up {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ai, .not-ai {
    font-weight: 600;
    color: rgb(8, 161, 102);
}

.flash {
    animation: flash 0.4s infinite alternate ease-in-out;
}

@media (min-width: 750px) {

    body {
        padding: 20px 40px 40px;
    }

    header {
        width: calc(100% - 80px);
    }

    .hamburger-menu {
        display: none;
    }

    .hidden {
        transform: translateY(0);
    }

    .folio-website-link {
        grid-column: 7 / 9;
        grid-row-start: 1;

    }

    .instagram {
        grid-row-start: 1;
    }

    .landing-main {
        gap: 0px;
    }

    .essay-list {
        grid-column: 1 / 6;
    }

    .file-data {
    grid-column: 7 /10;
    }


}




/* css animation keyframes */

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(-30%, 13%);
    }
    40% {
        transform: translate(35%, -15%);
    }
    60% {
        transform: translate(13%, 40%);
    }
    80% {
        transform: translate(-36%, 60%);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes flash {
    to {opacity: 0;}
}