@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&display=swap");

body>svg[aria-hidden] {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none
}

@font-face {
    font-family: cabinetGrotesk;
    src: url(https://cdn.fontshare.com/wf/J2PZYZURCR7HNQKXCZ4VXYA3K5FFCCLT/PZSZLWHMBCE7FFGOUYDEU33FAESUMA3X/JFDL5FBAQ2WMYL3LGKSCZKAIFCS2UQ63.woff2)format("woff2");
    font-weight: 100 900;
    font-display: swap
}

@font-face {
    font-family: "cabinetGrotesk Fallback";
    src: local(Arial);
    ascent-override: 84.24%;
    descent-override: 27.11%;
    line-gap-override: 8.71%;
    size-adjust: 103.28%
}

:root {
    color-scheme: light;
    --bg: #f8f4ea;
    --paper: #f8f4ea;
    --surface: #fdfbf6;
    --ink: #4a3608;
    --ink-soft: #6b4f14;
    --ink-faint: #85691e;
    --muted: #806f49;
    --gold: #8a5f0a;
    --gold-bright: #a8801f;
    --rule: #231b121c;
    --rule-strong: #231b1233;
    --green: #3f6f36;
    --red: #9c4436;
    --violet: #6b4fa8;
    --max: 652px;
    --sans: cabinetGrotesk, "cabinetGrotesk Fallback", Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace
}

* {
    box-sizing: border-box;
    border: 0;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

html,
body {
    overflow-x: clip
}

body {
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.625 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizelegibility
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E")
}

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

::selection {
    background: var(--gold-bright);
    color: var(--paper)
}

:where(a, button, [tabindex]):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 3px
}

.shell {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto
}

.skip {
    position: fixed;
    left: 14px;
    top: 14px;
    z-index: 30;
    transform: translateY(-160%);
    padding: 8px 11px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--paper)
}

.skip:focus {
    transform: none
}

.topbar {
    position: sticky;
    isolation: isolate;
    z-index: 50;
    top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(calc(100% - 48px), var(--max));
    height: 53px;
    margin: 56px auto 48px;
    padding: 8px;
    border: 1px solid rgba(35, 27, 18, .11);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff8c 0%, #ffffff3d 42%, #fdfbf657 100%);
    box-shadow: inset 0 1px 1px #ffffffe6, inset 0 2px 6px #ffffff73, inset 1px 0 #ffffff73, inset -1px 0 #ffffff73, inset 0 -1px 1px #ffffff52, inset 0 -6px 12px #231b120a, 0 2px 6px #231b120d, 0 12px 40px #231b121c;
    -webkit-backdrop-filter: url(#lg) blur(2px) saturate(210%) brightness(1.06);
    backdrop-filter: url(#lg) blur(2px) saturate(210%) brightness(1.06);
    transition: border-color .3s
}

.topbar:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(#ffffff9e 0%, #ffffff24 30%, #0000 58%), radial-gradient(120% 190% at 8% -30%, #ffffff8c 0%, #0000 55%)
}

.topbar:after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(145deg, #fffffff2 0%, #ffffff40 26%, #b08a2c2e 52%, #ffffff2e 74%, #ffffffb3 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0
}

.nav-link,
.resume {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    color: #85691e;
    font: 400 14px/21px var(--mono);
    letter-spacing: -.025em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, background-color .2s, border-color .2s
}

.nav-link:hover {
    color: var(--ink);
    background: #efe8d8b3
}

.nav-link:after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: #8a5f0a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s
}

.nav-link[aria-current="page"] {
    color: var(--ink)
}

.nav-link[aria-current="page"]:after {
    transform: scaleX(1)
}

.key {
    opacity: .35;
    transition: opacity .2s
}

.nav-link:hover .key,
.resume:hover .key {
    opacity: .7
}

.resume {
    margin-left: auto;
    border: 1px solid rgba(35, 27, 18, .11);
    border-radius: 8px;
    background: #f8f4ea99
}

.resume:hover {
    color: #8a5f0a;
    border-color: #8a5f0a66
}

.page {
    min-height: calc(100vh - 128px)
}

.page-head {
    margin-bottom: 32px
}

.page-head h1 {
    margin: 0 0 12px;
    font: 600 30px/1 var(--sans);
    letter-spacing: -.025em
}

.page-head p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.625
}

.title-rule {
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 2px;
    background: linear-gradient(to right, var(--gold), transparent)
}

.intro {
    padding: 0 0 40px
}

.identity {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px
}

.avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--rule-strong);
    object-fit: cover;
    background: linear-gradient(145deg, #5c4617, #2d2108);
    color: #f8f4ea;
    font: 600 24px/1 var(--mono);
    letter-spacing: -.08em
}

.identity h1 {
    margin: 0 0 6px;
    font: 600 38px/1 var(--sans);
    letter-spacing: -.025em
}

.handle {
    margin: 0;
    color: var(--ink-faint);
    font: 400 12.5px/1.5 var(--mono);
    letter-spacing: .025em
}

.intro-copy {
    max-width: 62ch;
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.625
}

.intro-copy:last-child {
    margin-bottom: 0
}

.intro-copy strong {
    color: var(--ink);
    font-weight: 500
}

.intro-copy a {
    text-decoration: underline;
    text-decoration-color: #8a5f0a4d;
    text-underline-offset: 4px;
    transition: text-decoration-color .2s
}

.intro-copy a:hover {
    text-decoration-color: var(--gold)
}

.list {
    margin: 0;
    padding: 0;
    list-style: none
}

.section {
    margin-top: 40px
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule)
}

.section-title h2 {
    margin: 0;
    color: var(--ink-faint);
    font: 400 12.5px/1.5 var(--mono);
    letter-spacing: .025em
}

.section-title a {
    color: var(--ink-faint);
    font: 400 12px/1.5 var(--mono);
    transition: color .15s;
    white-space: nowrap
}

.section-title a:hover {
    color: var(--gold)
}

.entry {
    border-bottom: 1px solid var(--rule)
}

.entry-link {
    display: block;
    padding: 14px 0;
    text-decoration: none
}

.entry-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 4px
}

.entry-name {
    color: var(--ink);
    font: 500 15px/1.5 var(--sans);
    transition: color .15s
}

.slashes {
    color: var(--ink-faint);
    font: 400 13px/1.5 var(--mono);
    font-weight: 400
}

.entry-meta {
    margin-left: auto;
    color: var(--ink-faint);
    font: 400 11px/1.45 var(--mono);
    text-align: right;
    white-space: nowrap
}

.entry p {
    max-width: 68ch;
    margin: 0;
    color: var(--ink-soft);
    font: 400 13.5px/1.625 var(--mono)
}

.entry-link:hover .entry-name {
    color: var(--gold)
}

.home-projects .entry-tagline {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400
}

.home-projects .entry p {
    font: 400 13px/1.625 var(--sans)
}

.project-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
    list-style: none
}

.project-list li {
    border-bottom: 1px solid var(--rule)
}

.project-list a {
    display: block;
    padding: 14px 0;
    text-decoration: none
}

.project-list .project-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 4px
}

.project-list strong {
    color: var(--ink);
    font: 500 15px/1.5 var(--sans);
    transition: color .15s
}

.project-list .meta {
    margin-left: auto;
    color: var(--ink-faint);
    font: 400 11px/1.5 var(--mono);
    white-space: nowrap
}

.project-list p {
    max-width: 68ch;
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.625
}

.project-list a:hover strong {
    color: var(--gold)
}

.work-list {
    display: grid;
    gap: 16px;
    margin-top: 32px
}

.work-card {
    padding: 20px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 1px 2px #231b120a;
    transition: border-color .22s, box-shadow .22s, transform .22s
}

.work-card:hover {
    border-color: var(--rule-strong);
    box-shadow: 0 4px 14px #231b1212
}

.work-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px
}

.work-top h2 {
    margin: 0;
    font: 500 18px/1.4 var(--sans);
    letter-spacing: -.025em
}

.work-top time {
    color: var(--ink-faint);
    font: 400 11.5px/1.5 var(--mono);
    letter-spacing: .025em;
    white-space: nowrap
}

.role-name {
    color: var(--ink-faint);
    font: 400 13.5px/1.5 var(--mono);
    grid-column: 1
}

.work-summary {
    max-width: 62ch;
    margin: 16px 0;
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.625
}

.impact-list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    max-width: 62ch
}

.impact-list li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 22px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.625
}

.impact-list li:before {
    content: counter(impact, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2px;
    color: #8a5f0a80;
    font: 400 10.5px/1.8 var(--mono);
    font-variant-numeric: tabular-nums;
    counter-increment: impact
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.tags span {
    padding: 3px 8px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: #efe8d8cc;
    color: var(--ink-faint);
    font: 400 10px/1.35 var(--mono);
    letter-spacing: .05em;
    text-transform: uppercase
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 24px 0 32px
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 0
}

.filter-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-faint);
    font: 400 12.5px/1.6 var(--mono);
    cursor: pointer;
    transition: color .15s
}

.filter-button:hover {
    color: var(--gold)
}

.filter-button.is-active {
    color: var(--ink);
    font-weight: 600
}

.legend {
    margin: 6px 0 24px;
    color: var(--ink-faint);
    font: 400 12px/1.6 var(--mono)
}

.status-merged {
    color: var(--violet)
}

.status-open {
    color: var(--green)
}

.status-closed {
    color: var(--red)
}

.repo-group {
    margin-bottom: 36px
}

.repo-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    font: 400 12.5px/1.5 var(--mono)
}

.repo-title a {
    color: var(--ink-faint);
    text-decoration: none;
    transition: color .15s
}

.repo-title a:hover {
    color: var(--gold)
}

.repo-title span {
    color: var(--ink-faint);
    font-size: 11px;
    font-variant-numeric: tabular-nums
}

.contribution-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule)
}

.contribution {
    border-bottom: 1px solid var(--rule)
}

.contribution.is-hidden {
    display: none
}

.contribution a {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 10px;
    padding: 12px 0;
    text-decoration: none
}

.contribution .mark {
    flex: 0 0 auto;
    width: 12px;
    color: var(--violet);
    font: 400 12px/24px var(--mono)
}

.contribution strong {
    color: var(--ink);
    font: 400 14.5px/1.6 var(--sans);
    transition: color .15s
}

.contribution .number {
    color: var(--ink-faint);
    font: 400 11.5px/1.8 var(--mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

.contribution a:hover strong {
    color: var(--gold)
}

.contribution p {
    grid-column: 2/4;
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.625
}

.empty-filter {
    display: none;
    color: var(--muted);
    font-size: 13px
}

.empty-filter.is-visible {
    display: block
}

.footer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px 20px;
    padding: 20px 0 0;
    color: var(--ink-faint);
    font: 400 13px/1.6 var(--mono)
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px
}

.footer-links a {
    color: var(--ink-soft);
    font-weight: 500;
    text-decoration: none;
    transition: color .15s
}

.footer-links a:hover {
    color: var(--gold)
}

.clock {
    margin-left: auto;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    white-space: nowrap
}

.footer-skyline {
    grid-column: 1/-1;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    aspect-ratio: 1568/523;
    pointer-events: none;
    user-select: none
}

.footer-skyline img {
    display: block;
    width: 100%;
    height: auto
}

@media(max-width:640px) {
    .shell {
        width: min(calc(100% - 32px), var(--max))
    }

    .topbar {
        top: 8px;
        width: calc(100% - 32px);
        height: auto;
        margin: 16px auto 24px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-radius: 16px
    }

    .topbar::-webkit-scrollbar {
        display: none
    }

    .topbar nav {
        gap: 2px;
        min-width: max-content
    }

    .nav-link {
        padding: 5px 8px;
        font-size: 13px
    }

    .nav-link .key {
        display: none
    }

    .resume {
        padding: 5px 8px;
        font-size: 13px;
        flex-shrink: 0
    }

    .resume .key {
        display: none
    }

    .identity {
        gap: 16px
    }

    .avatar {
        width: 68px;
        height: 68px;
        font-size: 20px
    }

    .identity h1 {
        font-size: 30px
    }

    .handle {
        font-size: 12px
    }

    .intro-copy {
        font-size: 15.5px
    }

    .page-head h1 {
        font-size: 26px
    }

    .entry-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px
    }

    .entry-meta {
        margin-left: 0;
        text-align: left
    }

    .project-list .project-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px
    }

    .project-list .meta {
        margin-left: 0;
        text-align: left
    }

    .work-card {
        padding: 16px
    }

    .work-top {
        grid-template-columns: 1fr
    }

    .work-top time {
        grid-row: 1;
        grid-column: 2;
        justify-self: end
    }

    .role-name {
        grid-column: 1;
        grid-row: 2
    }

    .contribution a {
        grid-template-columns: 14px 1fr
    }

    .contribution .number {
        grid-column: 2
    }

    .contribution p {
        grid-column: 2
    }

    .footer {
        gap: 8px
    }

    .footer-skyline {
        margin-top: 16px
    }
}

/* Offset the skyline's transparent top (253 of 2172 pixels wide) on desktop only. */
@media(min-width:641px) {
    .footer-skyline {
        margin-top: calc(16px - 11.6vw)
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important
    }
}