html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 14px;
    color: #111;
}

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@latest/latin-wght-normal.woff2)
        format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


.layout {
    display: flex;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 25vw;
    height: 93vh;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    background: white;
    transform: rotate(-2deg);
}

.sidebar a {
    font-family: 'Inter Variable', sans-serif;
    font-weight: 545;
    color: gray;
    text-decoration: none;
    display: inline-block;
}

/*
.menu a {
    color: white;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: gray;
}
*/

a:hover {
    color: black;
    -webkit-text-stroke-width: 0;
    -webkit-text-stroke-color: none;
}

.menu-toggle,
.about mobile-about {
    display: none;
}

.menu {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.legend {
    margin-top: 40px;
    font-size: 0.8rem;
    line-height: 0.5;
}

.about {
    margin-top: auto;
    color: gray;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    font-size: 1.2rem;
}

.mobile-header {
    display: none;
}

.mobile-about {
    display: none;
}

#intro-spacer {
    height: 68vh;
}

.content {
    margin-left: 39vw;
    margin-right: 5vw;
    margin-top: 0;
    box-sizing: border-box;
}

.about-section {
    scroll-margin-top: 35px;
    margin-top: 35px;
    width: 80%;
}

.about-links {
    gap: 0;
    display: grid;
}

.about-links a {
    font-family: "Inter Variable", sans-serif;
    color: gray;
    font-weight: 545;
    text-decoration: none;
    line-height: 1.8;
}

.about-links a:hover {
    color: black;
}

.about-name {
    font-size: 16px;
    font-weight: 700;
}

.project {
    padding-top: 10px;
    padding-bottom: 100px;
    scroll-margin-top: 10px;
}

.project-meta-block p,
.project-extra p {
    margin: 0;
}

.project-name {
    font-size: 16px;
    width: 83%;
    font-weight: bold;
    font-style: italic;
}

.project-extra {
    margin-top: 18px;
}

.project-collab {
    width: 83%;
}

.link-pdf {
    color: black;
}

.link-pdf:hover {
    font-weight: 500;
}

.project-info {
    margin-top: 18px;
    width: 80%;
    line-height: 1.2;
    font-weight: lighter;
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.small {
    grid-column: span 1;
}

.large {
    grid-column: span 2;
}

.project img {
    width: 100%;
    height: auto;
    display: block;
    padding-bottom: 3px;
}

figure {
    margin: 0;
}

figcaption {
    margin-bottom: 8px;
}

.photo-credit {
    margin-top: 4px;
    text-align: left;
    margin-left: 0;
    font-size: 13px;
}

.image-with-credit {
    display: flex;
    align-items: left;
    gap: 8px;
}

.photo-credit-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
}

@media (max-width: 768px) {
    .menu {
        font-size: 11px;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        font-size: 1.2rem;
        transform: rotate(-2deg);
        color: gray;
    }

    .legend {
        display: block;
        margin-top: 15px;
        line-height: 1.2;
    }

    .sidebar > .about {
        display: none;
    }

    .legend {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding-left: 10px;
        padding-top: 10px;
        padding-bottom: 0;
        margin: 0;
        transform: none;
        z-index: 100;
    }

    .mobile-header {
        display: flex;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .menu-wrapper {
        display: flex;
        flex-direction: column;
        margin-top: 18px;
        transform: rotate(-2deg);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    .menu-wrapper.open {
        max-height: 1000px;
    }

    .mobile-about {
        display: block;
        white-space: nowrap;
        font-size: 16px;
        transform: rotate(-2deg);
        margin-left: 20px;
        margin-top: 0;
    }

    .menu-wrapper.open {
        display: flex;
    }

    .content {
        margin-left: 0;
        margin-right: 0;
        margin-top: 80px;
    }

    .about-section,
    .project {
        margin-top: 45px;
        scroll-margin-top: 45px;
    }

    .about-section,
    .project-meta-block,
    .project-extra,
    .project-name,
    .project-collab,
    .project-info,
    figcaption,
    .photo-credit {
        width: auto;
        margin-left: 5px;
        margin-right: 5px;
        padding: 0;
    }
    .project-gallery {
        grid-template-columns: 2fr;
    }

    .small {
        grid-column: span 2;
    }

    #intro-spacer {
        height: 42vh;
    }

    .desktop-about {
        display: none;
    }
}
