@font-face {
    font-family: "Inter Local";
    src: url("../fonts/inter-latin-400-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bg-solid: #ffffff;
    --ink: #171717;
    --muted: #5d5d5d;
    --faint: #8b8b8b;
    --status-ink: #444444;
    --sans: "Inter Local", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", ui-monospace, monospace;
    --max-width: 1440px;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --header-height: 56px;
    --row-height: clamp(40px, 6.55vh, 47px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background-color: var(--bg-solid);
}

body {
    min-width: 320px;
    margin: 0;
    background-color: var(--bg-solid);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.site {
    height: 100svh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

body.site main {
    min-height: 0;
    display: flex;
}

img {
    display: block;
    max-width: 100%;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

::selection {
    background: #171717;
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 4px;
}

.page-width {
    width: min(100%, var(--max-width));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: .65rem .85rem;
    background: #171717;
    color: #ffffff;
    font-family: var(--mono);
    font-size: .72rem;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    background: transparent;
}

.nav-wrap {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    color: #171717;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -.085em;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 3.5rem);
    color: #626262;
    font-size: .84rem;
}

.nav-links a {
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #171717;
}

.projects {
    min-height: 0;
    display: grid;
    place-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.project-list {
    min-height: 0;
    width: 100%;
    max-width: 760px;
    height: calc(var(--row-height) * 14);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(14, var(--row-height));
}

.project-row {
    display: grid;
    grid-template-columns: clamp(36px, 3.3vw, 42px) minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    grid-template-areas: "logo copy status";
    gap: .18rem clamp(.75rem, 1.5vw, 1.25rem);
    align-items: center;
    min-width: 0;
    min-height: 0;
    padding: .2rem 0;
}

.project-row:hover .project-copy strong,
.project-row:focus-visible .project-copy strong {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.project-logo {
    grid-area: logo;
    width: clamp(36px, 3.1vw, 40px);
    height: clamp(36px, 3.1vw, 40px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-copy {
    grid-area: copy;
    min-width: 0;
    align-self: center;
}

.project-copy strong {
    display: block;
    overflow: hidden;
    color: #171717;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-status {
    grid-area: status;
    align-self: center;
    overflow: hidden;
    color: var(--status-ink);
    font-family: var(--sans);
    font-size: clamp(.76rem, 1vw, .84rem);
    letter-spacing: .01em;
    font-weight: 600;
    line-height: 1.1;
    text-align: right;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.project-status::before {
    content: "•";
    display: inline-block;
    margin-right: .38rem;
    color: currentColor;
    font-size: 1.15em;
    transform: translateY(-.02em);
}

.project-status--live {
    color: #7c2d1f;
}

.project-status--live::before {
    color: #c15a3d;
}

.project-status--dev {
    color: #505050;
}

.project-status--soon {
    color: #777777;
}

.project-row .project-copy strong {
    color: #171717;
}

.project-row .project-status {
    color: #444444;
}

.project-row .project-status--live {
    color: #7c2d1f;
}

.project-row .project-status--live::before {
    color: #c15a3d;
}

.project-row .project-status--dev {
    color: #505050;
}

.project-row .project-status--soon {
    color: #777777;
}

.project-arrow {
    display: none;
}

@media (min-width: 681px) {
    .project-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }
}

@media (min-width: 681px) and (max-height: 680px) {
    :root {
        --header-height: 48px;
        --row-height: clamp(38px, 6.55vh, 42px);
    }
}

@media (max-width: 680px) {
    :root {
        --header-height: 62px;
        --row-height: clamp(38px, 6.35vh, 44px);
    }

    html {
        height: auto;
        overflow-y: auto;
    }

    body.site {
        height: auto;
        min-height: 100svh;
        overflow: visible;
        -webkit-overflow-scrolling: touch;
    }

    body.site main {
        min-height: auto;
        display: block;
    }

    .projects {
        display: block;
        min-height: 0;
        padding-block: .25rem max(1.5rem, env(safe-area-inset-bottom));
    }

    .project-list {
        height: auto;
    }

    .nav-wrap {
        min-height: var(--header-height);
    }

    .nav-links {
        gap: 1rem;
        font-size: .76rem;
    }

    .nav-links a:first-child {
        display: none;
    }

    .project-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        grid-template-rows: 1fr;
        grid-template-areas: "logo copy status";
        gap: 0 .7rem;
        padding: .15rem 0;
    }

    .project-logo {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .project-copy strong {
        padding-top: 0;
        font-size: .98rem;
    }

    .project-status {
        margin-top: 0;
        text-align: right;
        font-size: .7rem;
        letter-spacing: 0;
    }

}

@media (max-width: 420px) {
    .nav-links {
        gap: .75rem;
    }
}

@media (max-width: 360px) {
    :root {
        --gutter: .75rem;
        --row-height: clamp(35px, 6.15vh, 38px);
    }

    .brand {
        font-size: 1.08rem;
    }

    .nav-links {
        font-size: .7rem;
    }

    .nav-links a:first-child {
        display: none;
    }

    .project-row {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 0 .5rem;
        padding: .1rem 0;
    }

    .project-logo {
        width: 34px;
        height: 34px;
        border-radius: 7px;
    }

    .project-copy strong {
        padding-top: 0;
        font-size: .9rem;
        letter-spacing: -.04em;
    }

    .project-status {
        margin-top: 0;
        font-size: .66rem;
        letter-spacing: 0;
        line-height: 1.05;
    }

}
