* {
    box-sizing: border-box;
}


@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/Inter-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/Inter-Italic.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/Inter-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/Inter-MediumItalic.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/Inter-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/Inter-SemiBoldItalic.woff2") format("woff2");
}

@font-face {
    font-family: "InterDisplay";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/InterDisplay-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "InterDisplay";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/InterDisplay-Italic.woff2") format("woff2");
}

@font-face {
    font-family: "InterDisplay";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/InterDisplay-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "InterDisplay";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/InterDisplay-MediumItalic.woff2") format("woff2");
}

@font-face {
    font-family: "InterDisplay";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/InterDisplay-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "InterDisplay";
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/Inter-4.1/web/InterDisplay-SemiBoldItalic.woff2") format("woff2");
}



html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    overflow: hidden;
}

main {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100vw;
    --mid-w: 58vw;
}

.maincol {
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
}

.left-col {
    flex: 1 0 12vw;
    min-width: 150px;
    max-width: 250px;
    overflow: hidden;
}

.mid-col {
    flex: 0 0 var(--mid-w);
    border-left: 2px solid #000;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.mid-col::-webkit-scrollbar {
    display: none;
}




.right-col {
    flex: 0 1 auto;
    min-width: 0;
}

.col-divider {
    cursor: col-resize;
    position: relative;
    touch-action: none;
    flex: 0 0 2px;
    background-color: black;

}

/* .col-divider {
    cursor: col-resize;
    position: relative;
    touch-action: none;
    flex: 0 0 3px;
    border-width: 0 1px;
    border-style: solid;
    border-color: black;

} */

.col-divider-handle {
    position: absolute;
    top: 90%;
    left: -2px;
    width: 6px;
    height: 20px;
    border-width: 0 2px;
    border-style: solid;
    border-color: black;
    background-color: white;

}

.transition {
    transition: all 0.2s ease;
}

body.is-dragging {
    cursor: col-resize;
    user-select: none;
}


/* site title and hello */

h1 {
    font-family: "InterDisplay", sans-serif;
    font-weight: 500;
    margin: 0;
    font-size: 6em;
    letter-spacing: -.03em;
    line-height: 1;
    transition: all 0.2s ease;
}

h1 a {
    text-decoration: none;
    color: black;
}

#sitetitle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#sitetitle.shrinked {
    max-width: calc(12vw - 20px);
}

#sitetitle.shrinked h1 {
    font-size: 2.75em;
}

section:first-child {
    border-top: none;
    min-height: 0;
    margin-top: 11em;
}


/* nav */

nav {
    padding: 10em 0 2em 1em;
    height: 100vh;
    width: calc(12vw - 20px);
    z-index: 1000;
    display: flex;
    /* justify-content: flex; */
    flex-direction: column;
    gap: 2em;

}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75em;
    font-size: .8rem;
}

nav a {
    text-decoration: none;
    color: black;
}

nav li {
    width: fit-content;
}

ul.categories {
    gap: .3em;
    flex-direction: row;
    flex-wrap: wrap;
}

ul.categories li {
    cursor: pointer;
    border-radius: 20px;
    border: black 1px solid;
    padding: 2px 10px;
    display: inline-block;
    flex: 0 1 auto;
    width: fit-content;
    font-size: .6rem;
}

ul.categories li:hover,
ul.categories li.active {
    background-color: black;
    color: white;
}

ul.projects {
    justify-content: flex-end;
    flex: 1 1 100%;
}

ul.projects li {
    transition: all 0.2s ease;
}

.projects li:hover,
.legals li:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}


/* text */

p {
    margin: 0 0 1em 0;
    line-height: 1.3;
}

h2,
h3 {
    margin: 0;
}

.right-col section:not(.hello) *:first-child {
    margin-top: .5em;
}



/* col content / sections */

section {
    display: flex;
    flex-direction: column;
    border-top: 2px solid #000;
    padding: 2em 1em;
    gap: 2em;
    min-height: 100vh;
}


/* images */

figure {
    margin: 0;
}

figure img {
    width: 100%;
    height: auto;
    display: block;
}

figcaption {
    font-size: .9em;
    margin-top: .25em;
    display: flex;
    justify-content: space-between;
}

.caption {
    flex: 0 1 70%
}

.copyright {
    color: #555;
    text-align: right;
}