:root {
    --spacing-unit: 8px;
    --xs: calc(var(--spacing-unit) / 2);
    --sm: var(--spacing-unit);
    --md: calc(var(--spacing-unit) * 2);
    --lg: calc(var(--spacing-unit) * 3);
    --xl: calc(var(--spacing-unit) * 4)
}

[data-theme=dark] {
    --color-canvas: #14182c;
    --color-well: #242b4f;
    --color-text: #fff
}

[data-theme=light] {
    --color-canvas: #fff;
    --color-well: #e6e6e6;
    --color-text: #161e40
}

.u-visually-hidden {
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    border: 0;
    white-space: nowrap;
    word-wrap: normal
}

.container {
    width: 100%;
    max-width: 640px;
    padding: 0 24px 32px;
    margin: 0 auto
}

@media screen and (min-width: 40em) {
    .container {
        padding:0 32px 32px
    }
}

.container img,.container video {
    max-width: 100%;
    border-radius: 4px
}

.post {
    padding-top: 64px
}

.title {
    margin-bottom: 4px
}

.meta {
    font-size: 1rem;
    margin-top: 0
}

@media screen and (min-width: 40em) {
    .meta {
        font-size:.9rem
    }
}

.project-featured-image {
    width: calc(100% + 48px);
    max-width: calc(100% + 48px)!important;
    margin-left: -24px;
    margin-top: 16px
}

@media screen and (min-width: 40em) {
    .project-featured-image {
        width:140%;
        max-width: 140%!important;
        margin-left: -20%;
        margin-top: 32px
    }
}

ol li,p,ul li {
    font-size: 1.3rem;
    line-height: 1.6
}

h1 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -.15rem;
    line-height: 1.15
}

h2,h3,h4 {
    font-weight: 500
}

a {
    color: var(--color-text);
    text-decoration: none
}

a[href^="https://twitter.com"] {
    color: #55acee
}

a[href^="https://github.com"] {
    color: #aaa
}

a[href^="https://dribbble.com"] {
    color: #ea4c89
}

.header {
    width: 100%;
    max-width: 640px;
    padding: 8px 24px;
    margin: 0 auto 24px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

@media screen and (min-width: 40em) {
    .header {
        padding:8px 32px
    }
}

.header a {
    color: inherit;
    text-decoration: none;
    font-size: 1.2rem
}

@media screen and (min-width: 40em) {
    .header a {
        font-size:1.1rem
    }
}

.header .logo {
    flex: 1
}

.header nav {
    display: flex;
    gap: 8px
}

.header #theme-toggle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--color-well);
    padding: var(--xs);
    border: 1px solid transparent;
    border-radius: 4px;
    color: inherit;
    width: calc(var(--lg) * 1.5);
    height: calc(var(--lg) * 1.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--sm);
    cursor: pointer
}

[data-theme=dark] .header #theme-toggle #theme-toggle-light {
    display: none
}

[data-theme=light] .header #theme-toggle #theme-toggle-dark {
    display: none
}

.selected-project {
    margin-bottom: 16px;
    display: flex;
    color: inherit;
    text-decoration: none;
    flex-direction: column;
    gap: 16px
}

@media screen and (min-width: 40em) {
    .selected-project {
        flex-direction:row
    }
}

.selected-project figure {
    margin: 0;
    flex: 1.5
}

.selected-project figure img {
    max-width: 100%;
    border-radius: 5px
}

.selected-project div {
    flex: 1
}

.selected-project p {
    font-size: 1.2rem
}

@media screen and (min-width: 40em) {
    .selected-project p {
        font-size:1rem
    }
}

.selected-project h3 {
    margin: 0
}

code[class*=language-],pre[class*=language-] {
    font-size: 14px;
    line-height: 1.375;
    direction: ltr;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    -moz-tab-size: 2;
    -o-tab-size: 2;
    tab-size: 2;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    background: #272822;
    color: #f8f8f2
}

pre[class*=language-] {
    padding: 1.5em 2em;
    margin: .5em 0;
    overflow: auto
}

:not(pre)>code[class*=language-] {
    padding: .1em;
    border-radius: .3em
}

.token.cdata,.token.comment,.token.doctype,.token.prolog {
    color: #75715e
}

.token.punctuation {
    color: #f8f8f2
}

.token.namespace {
    opacity: .7
}

.token.boolean,.token.number,.token.operator {
    color: #fd971f
}

.token.property {
    color: #f4bf75
}

.token.tag {
    color: #66d9ef
}

.token.string {
    color: #a1efe4
}

.token.selector {
    color: #ae81ff
}

.token.attr-name {
    color: #fd971f
}

.language-css .token.string,.style .token.string,.token.entity,.token.url {
    color: #a1efe4
}

.token.attr-value,.token.control,.token.directive,.token.keyword,.token.unit {
    color: #a6e22e
}

.token.atrule,.token.regex,.token.statement {
    color: #a1efe4
}

.token.placeholder,.token.variable {
    color: #66d9ef
}

.token.deleted {
    text-decoration: line-through
}

.token.inserted {
    border-bottom: 1px dotted #f9f8f5;
    text-decoration: none
}

.token.italic {
    font-style: italic
}

.token.bold,.token.important {
    font-weight: 700
}

.token.important {
    color: #f92672
}

.token.entity {
    cursor: help
}

pre>code.highlight {
    outline: .4em solid #f92672;
    outline-offset: .4em
}

@-webkit-keyframes fadeInDown {
    from {
        transform: translateY(-10px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes fadeInDown {
    from {
        transform: translateY(-10px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

@-webkit-keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.home-hero {
    position: relative
}

@media screen and (min-width: 40em) {
    .home-hero {
        padding-top:64px;
        margin-top: 64px
    }
}

.home-hero h1 {
    margin-top: 0
}

@media (prefers-reduced-motion:no-preference) {
    .home-hero h1 {
        opacity: 0;
        transform: translateY(20px);
        -webkit-animation: fadeInUp .5s cubic-bezier(.4,0,.2,1);
        animation: fadeInUp .5s cubic-bezier(.4,0,.2,1);
        -webkit-animation-fill-mode: forwards;
        animation-fill-mode: forwards
    }
}

@media (prefers-reduced-motion:no-preference) {
    .home-hero p {
        opacity: 0;
        transform: translateY(20px);
        -webkit-animation: fadeInUp .5s .1s cubic-bezier(.4,0,.2,1);
        animation: fadeInUp .5s .1s cubic-bezier(.4,0,.2,1);
        -webkit-animation-fill-mode: forwards;
        animation-fill-mode: forwards
    }
}

.orbs {
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    opacity: .4;
    top: 0
}

.orbs #orb1,.orbs #orb2,.orbs #orb3,.orbs #orb4 {
    border-radius: 9999px;
    flex-shrink: 0;
    flex-grow: 0;
    aspect-ratio: 1/1;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height:fit-content;
    position: relative;
    -webkit-animation: orbFloat 10s ease infinite;
    animation: orbFloat 10s ease infinite;
    box-shadow: 0 1px 0 rgba(17,17,26,.1),0 8px 24px rgba(17,17,26,.1),0 16px 48px rgba(17,17,26,.1)
}

.orbs #orb1:before,.orbs #orb2:before,.orbs #orb3:before,.orbs #orb4:before {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: orbGradient 40s ease infinite;
    animation: orbGradient 40s ease infinite;
    background-size: 100% 1000%;
    background-image: linear-gradient(to bottom,#f437cd,#162aef,#f34033,#17cfaf,#d8a9c1,#f437cd,#162aef,#f34033,#17cfaf,#d8a9c1,#f437cd,#162aef,#f34033,#17cfaf,#d8a9c1)
}

.orbs #orb1 {
    width: 25%;
    z-index: 4;
    align-self: flex-start
}

.orbs #orb2 {
    margin-left: -10%;
    -webkit-animation-duration: 20s;
    animation-duration: 20s;
    width: 55%;
    z-index: 3
}

.orbs #orb2:before {
    animation-direction: reverse
}

.orbs #orb3 {
    width: 40%;
    z-index: 2;
    margin-left: -10%;
    margin-top: 10%;
    align-self: flex-end;
    -webkit-animation-duration: 15s;
    animation-duration: 15s
}

.orbs #orb4 {
    background-color: #00f;
    width: 50%;
    z-index: 1;
    animation-direction: reverse;
    margin-left: -30%
}

@-webkit-keyframes orbGradient {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 0 100%
    }
}

@keyframes orbGradient {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 0 100%
    }
}

@-webkit-keyframes orbFloat {
    0% {
        transform: translatey(-20px)
    }

    50% {
        transform: translatey(20px)
    }

    100% {
        transform: translatey(-20px)
    }
}

@keyframes orbFloat {
    0% {
        transform: translatey(-20px)
    }

    50% {
        transform: translatey(20px)
    }

    100% {
        transform: translatey(-20px)
    }
}

@font-face {
    font-family: 'Neue Haas Unica';
    src: url(/static/fonts/NeueHaasUnica-Medium.woff2) format("woff2"),url(/static/fonts/NeueHaasUnica-Medium.woff) format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: 'Neue Haas Unica';
    src: url(/static/fonts/NeueHaasUnica-Regular.woff2) format("woff2"),url(/static/fonts/NeueHaasUnica-Regular.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased
}

body,html {
    margin: 0;
    padding: 0;
    background: var(--color-canvas)
}

html {
    font-size: .9rem
}

@media screen and (min-width: 40em) {
    html {
        font-size:1rem
    }
}

body {
    color: var(--color-text);
    min-width: 100vw;
    min-height: 100vh;
    font-family: 'Neue Haas Unica',sans-serif
}
