/* arthr.ca — built from Figma file "Untitled" (7gu0FDnXoitHRaQCsVgPVt) */

:root {
    --red: #ed1212;
    --black: #000000;
    --white: #ffffff;
    --sidebar-left: 12px;
    --list-width: 239px;
    /* content column starts 1em after the project-list column */
    --content-left: calc(var(--sidebar-left) + var(--list-width) + 1em);
    --content-width: 823px;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--white);
    color: var(--black);
    font-family: "Fragment Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    word-break: break-word;
}

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

a:hover {
    color: var(--red);
}

p {
    margin: 0;
}

/* ---------- Nav ---------- */

.navbar {
    position: fixed;
    top: 12px;
    left: var(--sidebar-left);
    display: flex;
    gap: 16px;
    z-index: 10;
    background: var(--white);
}

.navbar a.current {
    text-decoration: underline;
}

/* ---------- Project list (left column) ---------- */

.project-list {
    position: fixed;
    top: 60px;
    left: var(--sidebar-left);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: var(--list-width);
}

.project-list a.current {
    color: var(--red);
}

/* ---------- Main content column ---------- */

main {
    margin-left: var(--content-left);
    max-width: var(--content-width);
    padding: 60px 26px 120px 0;
}

.project-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-text .body-text p + p {
    margin-top: 1em;
}

a.external {
    color: var(--red);
}

a.external:hover {
    text-decoration: underline;
}

/* ---------- Gallery ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 37px;
    row-gap: 28px;
    margin-top: 36px;
}

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

.site-screenshot {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 36px;
}

/* ---------- Info page ---------- */

/* Fixed left text column, like the project-list on case study pages.
   Only the photo column is in the page flow, so it is the only thing that scrolls. */

.info-text {
    position: fixed;
    top: 60px;
    left: var(--sidebar-left);
    width: 432px;
}

.info-text .bio p + p {
    margin-top: 1em;
}

.info-contact {
    margin-top: 2em; /* double the inter-paragraph spacing */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-contact .contact-pair {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-photo {
    margin-left: calc(var(--sidebar-left) + 432px + 1em);
    display: flex;
    justify-content: center;
    padding: 60px 26px;
}

.info-photo img {
    display: block;
    width: auto;
    max-width: 100%;
    /* fit within the viewport: 100vh minus top and bottom padding */
    max-height: calc(100vh - 120px);
}

/* ---------- Copyright ---------- */

.copyright {
    position: fixed;
    bottom: 8px;
    left: var(--sidebar-left);
    font-size: 10px;
    background: var(--white);
    z-index: 10;
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
    .navbar {
        position: static;
        padding: 12px 0 0 var(--sidebar-left);
    }

    .project-list {
        position: static;
        padding: 32px 0 0 var(--sidebar-left);
        width: auto;
    }

    main {
        margin-left: var(--sidebar-left);
        padding: 32px 26px 120px 0;
        max-width: none;
    }

    .info-text {
        position: static;
        width: auto;
        max-width: 432px;
        padding: 32px 0 0 var(--sidebar-left);
    }

    .info-photo {
        margin-left: 0;
        justify-content: center;
        padding: 32px 26px 120px 26px;
    }

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