:root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    --bg: #050b16;
    --ink: #e9edf3;
    --mute: #a3adba;
    --line: rgba(255, 255, 255, .16);
    --acc: #7db8ff;
    color-scheme: dark
}


html {
    scroll-padding-top: env(safe-area-inset-top, 0px)
}

* {
    box-sizing: inherit
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 17px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif
}

.atmos {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background: #091a35
}

.atmos canvas {
    display: block;
    width: 100%;
    height: 100%;
    filter: blur(15px) saturate(1.1);
    transform: scale(1.055)
}

.atmos::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
    mix-blend-mode: screen
}

@media(prefers-reduced-motion:reduce) {
    .atmos canvas {
        filter: blur(15px)
    }
}

main {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 14vh 24px 10vh
}

h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(42px, 9vw, 76px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.035em;
    margin: 0 0 28px
}

.lede {
    font-size: clamp(20px, 3.2vw, 27px);
    line-height: 1.35;
    max-width: 28ch;
    margin: 0
}

.about {
    margin: 72px 0 80px;
    max-width: 58ch;
    color: var(--mute)
}

h2 {
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 500;
    color: var(--mute);
    margin: 0 0 36px
}

.work {
    position: relative;
    padding-left: 32px;
    margin-bottom: 88px
}

.work::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 44px;
    width: 1px;
    background: var(--line)
}

.proj {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 10px 32px;
    align-items: center;
    padding-bottom: 48px
}

.proj:last-child {
    padding-bottom: 0
}

.proj::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 9px;
    width: 9px;
    height: 9px;
    border: 1px solid var(--ink);
    background: var(--bg);
    transition: background .2s, border-color .2s
}

.proj:hover::before,
.proj:focus-within::before {
    background: var(--acc);
    border-color: var(--acc)
}

h3 {
    font-family: "Manrope", sans-serif;
    margin: 0;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -.01em
}

.proj p {
    margin: 4px 0 0;
    color: var(--mute);
    font-size: 16px;
    max-width: 44ch
}

.proj .meta {
    font-size: 14px;
    margin-top: 8px
}

canvas {
    width: 180px;
    height: 56px;
    display: block
}

a {
    color: inherit;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px
}

a:hover {
    color: var(--acc)
}

a:focus-visible {
    outline: 2px solid var(--acc);
    outline-offset: 3px;
    border-radius: 2px
}

footer p {
    margin: 0 0 6px;
    color: var(--mute)
}

footer a {
    margin-right: 20px;
    color: var(--ink)
}

@media(max-width:560px) {
    .proj {
        grid-template-columns: 1fr
    }

    canvas {
        margin-top: 6px
    }
}


.projects-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 34px
}

.projects-heading h2 {
    margin: 0
}

.project-tabs {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    border: 0;
    background: none
}

.project-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    font: 500 17px/1.4 "Manrope", sans-serif;
    color: #94abc7;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0 0 9px;
    cursor: pointer;
    transition: color .2s, border-color .2s
}

.project-tab svg {
    width: 19px;
    height: 19px;
    flex: none;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round
}

.project-tab:hover {
    color: #e5f0ff
}

.project-tab[aria-selected="true"] {
    color: #f3f8ff;
    border-bottom-color: #8dbbfa
}

.project-tab:focus-visible {
    outline: 2px solid #a6d0ff;
    outline-offset: 4px
}

@media(max-width:560px) {
    .project-tabs {
        gap: 18px
    }

    .project-tab {
        font-size: 15px
    }
}

.project-panel[hidden] {
    display: none !important
}

#panel-web .proj,
#panel-game .proj {
    grid-template-columns: 1fr
}

.project-panel {
    animation: project-in .3s ease both
}

@keyframes project-in {
    from {
        opacity: 0;
        transform: translateY(7px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(prefers-reduced-motion:reduce) {
    .project-panel {
        animation: none
    }

    .project-tab {
        transition: none
    }
}