:root {
    color-scheme: dark;
    --bg: #101319;
    --panel: #171c24;
    --border: #303946;
    --text: #eef2ed;
    --muted: #aab5bc;
    --green: #b4ef9b;
    --purple: #c3b5ff
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit
}

.skip {
    position: absolute;
    left: -9999px
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 5;
    padding: 1rem;
    background: var(--green);
    color: var(--bg)
}

a:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 5px
}

.top {
    max-width: 1500px;
    margin: auto;
    height: 82px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border)
}

.brand {
    font: bold 16px/1.2 Consolas, monospace;
    text-decoration: none;
    letter-spacing: -.05em
}

.brand span {
    color: var(--green)
}

nav {
    display: flex;
    align-items: center;
    gap: 32px
}

nav a, footer a {
    font: 12px/1.4 Consolas, monospace;
    text-decoration: none;
    color: #c8d1d1
}

nav a:hover, footer a:hover, .inline-link:hover, .text-link:hover, .facebook-link:hover {
    color: var(--green)
}

.hero {
    max-width: 1500px;
    min-height: 680px;
    margin: auto;
    position: relative;
    display: grid;
    grid-template-columns:1.08fr .92fr;
    align-items: center;
    gap: 6%;
    padding: 95px 6% 110px
}

.hero:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 82% 38%, #293b303d, transparent 43%)
}

.eyebrow, .section-label, .small-label, .source-note, .side-note, .window-bar, .window-footer, footer p {
    font: 11px/1.5 Consolas, monospace;
    letter-spacing: .08em
}

.eyebrow {
    color: var(--green)
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 14px #a5f09680
}

h1, h2, h3, p {
    margin-top: 0
}

h1, h2 {
    letter-spacing: -.06em;
    line-height: 1.02
}

h1 {
    font-size: clamp(62px, 7vw, 106px);
    margin: 28px 0;
    font-weight: 700
}

h1 em, h2 em {
    font-style: normal;
    color: var(--green)
}

.intro, .lead {
    font-size: 19px;
    line-height: 1.6;
    max-width: 540px;
    color: #d2dcd8
}

.actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 36px
}

.button {
    display: inline-flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    background: var(--green);
    color: #101913;
    text-decoration: none;
    padding: 17px 20px;
    font: bold 12px Consolas, monospace;
    border: 1px solid var(--green)
}

.button:hover {
    background: #d3ffc1
}

.text-link, .inline-link, .facebook-link {
    font: bold 12px Consolas, monospace;
    text-underline-offset: 5px
}

.hero-art {
    min-width: 0;
    background: #171c24;
    border: 1px solid #414b55;
    box-shadow: 0 28px 80px #0007;
    transform: rotate(1deg)
}

.window-bar, .window-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    color: #aab9ba;
    background: #202731
}

.window-bar {
    border-bottom: 1px solid var(--border)
}

.window-footer {
    border-top: 1px solid var(--border);
    color: var(--green)
}

.window-dots {
    display: flex;
    gap: 6px
}

.window-dots i {
    display: block;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    background: #63736c
}

.window-dots i:first-child {
    background: #e28b7f
}

.window-dots i:nth-child(2) {
    background: #e7c579
}

.code-panel {
    overflow: auto;
    padding: 35px 18px 40px;
    font: clamp(11px, 1.05vw, 14px)/2.15 Consolas, monospace;
    white-space: nowrap;
    color: #dce5e3
}

.line-number {
    display: inline-block;
    width: 43px;
    color: #697981;
    user-select: none
}

.code-comment {
    color: #81928d
}

.code-purple {
    color: var(--purple)
}

.code-green {
    color: var(--green)
}

.cursor {
    color: var(--green);
    margin-left: 2px
}

.side-note {
    position: absolute;
    left: 6%;
    bottom: 20px;
    color: #91a29c
}

.section {
    padding: 120px 6%;
    display: grid;
    grid-template-columns:1fr 2fr;
    gap: 5%;
    border-top: 1px solid var(--border);
    max-width: 1500px;
    margin: auto
}

.section-label {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    white-space: nowrap;
    color: var(--green)
}

.line {
    height: 1px;
    background: #4a5c56;
    width: 50px;
    margin-top: 7px
}

.section h2 {
    font-size: clamp(44px, 5.2vw, 76px);
    margin-bottom: 32px
}

.body-copy, .detail, .credentials p {
    max-width: 650px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px
}

.inline-link {
    display: inline-block;
    color: var(--green);
    margin-top: 18px
}

.experience {
    background: #151a20
}

.experience-row {
    display: grid;
    grid-template-columns:1fr 1fr auto;
    align-items: end;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding: 30px 0 0;
    margin-top: 55px
}

.small-label {
    color: #aebcb5
}

h3 {
    font-size: 29px;
    letter-spacing: -.04em;
    margin: 14px 0 0
}

.experience-row p {
    margin: 0;
    color: var(--muted)
}

.row-arrow {
    font-size: 24px;
    color: var(--green)
}

.detail {
    margin: 20px 0 0
}

.credentials {
    margin-top: 65px;
    padding: 28px;
    border: 1px solid var(--border);
    background: #1a2027
}

.credentials h3 {
    font-size: 22px;
    margin: 0 0 20px
}

.credentials p:last-child {
    margin-bottom: 0
}

.source-note {
    margin-top: 25px;
    letter-spacing: .02em;
    color: var(--muted)
}

.source-note a {
    color: var(--green)
}

.project-list {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 16px;
    margin: 55px 0 35px
}

.project-list article {
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 235px
}

.project-list h3 {
    font-size: 23px;
    line-height: 1.15
}

.project-list p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px
}

.project-list .inline-link {
    margin-top: auto
}

.contact {
    background: #202b24
}

.contact .section-label {
    color: var(--green)
}

.contact .lead {
    color: #cbdad0
}

.light {
    margin-top: 20px
}

.facebook-link {
    display: inline-block;
    margin: 30px 0 0 24px
}

footer {
    max-width: 1500px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 35px 6%
}

footer p {
    margin: 0;
    color: var(--muted)
}

@media (max-width: 850px) {
    .hero {
        grid-template-columns:1fr;
        gap: 55px;
        padding-top: 75px
    }

    .hero-art {
        max-width: 640px;
        width: 100%;
        transform: none
    }

    .section {
        grid-template-columns:1fr;
        padding: 80px 6%;
        gap: 35px
    }

    .project-list {
        grid-template-columns:1fr
    }

    .project-list article {
        min-height: 180px
    }

    .code-panel {
        font-size: 13px
    }

    .project-list p {
        min-height: 0
    }
}

@media (max-width: 520px) {
    .top {
        height: auto;
        min-height: 80px;
        align-items: flex-start;
        flex-direction: column;
        padding-top: 22px;
        padding-bottom: 18px;
        gap: 18px
    }

    nav {
        gap: 20px;
        flex-wrap: wrap
    }

    .hero {
        padding-top: 60px
    }

    h1 {
        font-size: 58px
    }

    .hero-art {
        margin-bottom: 15px
    }

    .code-panel {
        font-size: 11px;
        padding-left: 10px
    }

    .line-number {
        width: 31px
    }

    .experience-row {
        grid-template-columns:1fr auto
    }

    .experience-row p {
        grid-row: 2
    }

    .row-arrow {
        grid-column: 2;
        grid-row: 1
    }

    .facebook-link {
        margin-left: 12px
    }

    footer {
        flex-wrap: wrap
    }

    footer p {
        order: 3;
        width: 100%
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }
}
