/* =====================================================
   Portfolio shell
   The frame every case study sits in: the left column with
   the name, the way back, the project description and tools.
   It matches the index (Oswald for labels, Inter for reading,
   the same ink and ground) so moving between pages feels like
   one site. Each project keeps its own look inside .shell-main.
   ===================================================== */

:root {
    --shell-ink: rgb(4, 32, 59);
    --shell-muted: rgba(4, 32, 59, 0.6);
    --shell-rule: rgba(4, 32, 59, 0.15);
    --shell-ground: rgb(245, 245, 245);

    --shell-label: "Oswald", sans-serif;
    --shell-text: "Inter", sans-serif;
}

.shell-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
    padding: 2.5rem 2rem;
    box-sizing: border-box;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 2.25rem;

    background-color: var(--shell-ground);
    border-right: 1px solid var(--shell-rule);
    color: var(--shell-ink);
    font-family: var(--shell-text);
}

/* The name is the way back, set like the top of the index. */
.shell-name {
    display: block;
    width: fit-content;
    font-family: var(--shell-label);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.shell-name:hover {
    opacity: 0.6;
}

.shell-description {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.75;
}

/* Small uppercase label above a list, like a column heading. */
.shell-label {
    margin: 0 0 0.75rem;
    font-family: var(--shell-label);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--shell-muted);
}

.shell-tools {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.shell-tools li {
    font-weight: inherit; /* some project sheets bold every li */
}

.shell-tools li + li {
    margin-top: 0.5rem;
}

/* =====================
   Tablet and mobile (<=1024px)
   On a narrow screen the project comes first. The column dissolves:
   the name becomes a slim bar at the top (still the way back), and
   the description and tools move below the project as a footer, so
   the first screen is the work, not the tool list.
   ===================== */
@media (max-width: 1024px) {

    body {
        display: flex;
        flex-direction: column;
    }

    .shell-sidebar {
        display: contents;
    }

    .shell-main {
        order: 1;
        width: 100%;
    }

    .shell-name {
        order: 0;
        position: sticky;
        top: 0;
        z-index: 10;
        width: auto;
        padding: 0.875rem 1.5rem;
        border-bottom: 1px solid var(--shell-rule);
        background-color: var(--shell-ground);
        color: var(--shell-ink);
        font-size: 1.125rem;
    }

    .shell-sidebar > :not(.shell-name) {
        order: 2;
        margin: 0;
        padding: 1.75rem 1.5rem 0;
        background-color: var(--shell-ground);
        color: var(--shell-ink);
        font-family: var(--shell-text);
    }

    .shell-name + * {
        padding-top: 2.5rem;
        border-top: 1px solid var(--shell-rule);
    }

    .shell-sidebar > :last-child {
        padding-bottom: 2.5rem;
    }
}

@media (max-width: 600px) {

    .shell-name,
    .shell-sidebar > :not(.shell-name) {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
