@font-face {
    font-family: "Ronzino";
    src: url("font/Ronzino-Regular.woff2") format("woff2");
}

html {
    padding: 0;
    margin: 0;
}
#preloader {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #faf7ef;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: all 1s ease-in-out;
}
#preloader_reveal {
    display: flex;
    padding: 0 .5rem;
    transition: all .5s ease-in-out;
    width: 0px;
    justify-content: center;
}
#preloader_name {
    transition: width 1s ease-in-out;
    overflow: hidden;
    text-align: center;
    word-wrap: normal; /* or use overflow-wrap: normal; */
    white-space: nowrap;
    margin: 0;
}
body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
    background-color: #faf7ef;
}

canvas {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

* {
    font-family: "Ronzino";
    font-optical-sizing: auto;
    font-style: normal;
    font-feature-settings: "ss03";
}

p {
    margin: 0;
    padding: 0;
}

#self_link {
    text-decoration: underline;
}

#self_link:hover {
    cursor: pointer;
}

.folio_content {
    height: calc(100vh / 3 * 2);
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 1rem;
    align-content: space-between;
    padding: 1rem;
    box-sizing: border-box;
}
.folio_cover {
    height: 100%;
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    background-position: center;
    background-size: auto 100%;
    position: relative;
}

.folio_cover .site_link {
    height: 2rem;
    width: 2rem;
    color: #faf7ef;
    border: 1px solid #faf7ef;
    text-align: center;
    text-decoration: none;
    line-height: 2rem;
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    transition: all .5s ease-in-out;
}

.folio_cover .site_link:hover {
    transform: scale(.9);
}

.folio_head {
    display: flex;
    height: fit-content;
    grid-column: 5 / 13;
    justify-content: space-between;
    align-items: center;
}

.folio_head > * {
    font-size: .75rem;
    letter-spacing: 0.2px;
}

.folio_head a {
    color: #000;
}

#contact:hover {
    cursor: pointer;
}

.folio_body {
    grid-column: 5 / 13;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: 1rem;
    align-items: end;
}

.folio_tags {
    display: flex;
    flex-direction: row;
    grid-column: 3 / 8;
    font-size: .75rem;
    letter-spacing: 0.2px;
    min-height: 28px;
}

.folio_tags p {
    width: fit-content;
    border: 1px solid #000;
    padding: 4px 8px;
    margin: 0;
    box-sizing: border-box;
}

.folio_tags p:not(:last-child) {
    margin-right: 8px;
}

.folio_text {
    grid-column: 2 / 9;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 1rem;
}

.folio_title {
    grid-column: 1 / 8;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 1rem;
    align-items: start;
}

.folio_desc {
    grid-column: 1 / 8;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 1rem;
    align-items: start;
}

.folio_subT {
    grid-column: 1;
    font-size: .5rem;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.folio_title_c {
    grid-column: 3 / 8;
    font-size: 2rem;
    letter-spacing: -1.2px;
    font-weight: 600;
    line-height: 1.75rem;
    min-height: 28px;
}

.folio_desc_c {
    grid-column: 3 / 8;
    line-height: 130%;
    font-size: .875rem;
    letter-spacing: 0.2px;
}

@media (max-width: 767px) {
    .folio_content {
        height: unset;
        grid-template-columns: repeat(6, 1fr);
        grid-gap: .5rem;
        row-gap: 1.5rem;
        align-content: unset;
        align-items: start;
    }
    .folio_cover {
        grid-column: 1 / 7;
        aspect-ratio: 16 / 9;
        background-size: cover;
        max-width: 100%;
        height: unset;
        grid-row: 1;
    }
    .folio_head {
        grid-column: 1 / 7;
        flex-direction: column;
    }
    .folio_head > * {
        text-align: left;
        width: 100%;
    }
    .folio_body {
        grid-column: 1 / 7;
        grid-template-columns: repeat(6, 1fr);
    }
    .folio_tags {
        grid-column: 1 / 7;
        grid-row: 2;
        flex-direction: row;
    }
    .folio_tags p:not(:first-child) {
        margin-left: .5rem;
    }
    .folio_tags p:not(:last-child) {
        margin-right: .5rem;
        border-right: 1px solid #000;
        margin-bottom: 0;
    }
    .folio_text {
        grid-column: 1 / 7;
    }

    .folio_title {
        display: flex;
        flex-direction: column;
        grid-gap: .5rem;
    }

    .folio_desc {
        display: flex;
        flex-direction: column;
        grid-gap: .5rem;
    }
    .folio_desc_c {
        font-size: .75rem;
        min-height: 80px;
    }
    .folio_title_c {
        min-height: 30px;
    }
}