:root {
    --ink: #171717;
    --paper: #f1eee8;
    --muted: #77736c;
    --line: #cbc7be;
    --orange: #f15b35;
    --lime: #d8f34d;
    --blue: #345c83
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    transition: background .25s, color .25s
}

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

.site-header {
    height: 83px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 5vw;
    gap: 40px;
    position: relative;
    z-index: 3
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    line-height: .92;
    font-weight: 700;
    letter-spacing: .08em
}

.wordmark i {
    font-style: normal;
    color: var(--muted);
    font-weight: 500
}

.mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    font-size: 19px;
    font-weight: 500
}

.nav-links {
    display: flex;
    gap: 32px;
    margin: auto;
    font: 11px 'DM Mono', monospace;
    text-transform: uppercase
}

.nav-links a:hover,
.contact-link:hover {
    color: var(--orange)
}

.controls {
    display: flex;
    align-items: center;
    gap: 18px;
    font: 11px 'DM Mono', monospace
}

.select-wrap {
    display: flex;
    gap: 6px;
    align-items: center
}

.select-wrap select {
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer
}

.theme-toggle {
    width: 48px;
    height: 25px;
    border-radius: 20px;
    border: 1px solid var(--ink);
    background: transparent;
    display: flex;
    justify-content: space-around;
    align-items: center;
    cursor: pointer
}

.theme-toggle span {
    font-size: 16px;
    line-height: 1
}

.moon {
    opacity: .4
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7vw;
    padding: 100px 10vw;
    max-width: 1500px;
    margin: auto
}

.hero {
    min-height: 650px;
    align-items: center;
    padding-top: 90px
}

.eyebrow {
    font: 10px 'DM Mono', monospace;
    letter-spacing: .06em;
    color: var(--muted);
    margin: 0 0 24px
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5ab150;
    margin-right: 8px
}

.hero h1 {
    font-size: clamp(54px, 7.5vw, 112px);
    line-height: .88;
    letter-spacing: -.08em;
    margin: 0 0 34px;
    font-weight: 600
}

.hero h1 em,
h2 em {
    font-style: normal;
    color: var(--orange)
}

.hero-intro {
    max-width: 340px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    margin-top: 35px;
    text-transform: uppercase;
    font: 11px 'DM Mono', monospace;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 8px
}

.text-link b,
.button b,
.contact-link b {
    font-size: 18px;
    font-weight: 400
}

.hero-art {
    height: 480px;
    background: var(--orange);
    position: relative;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 15px 16px 0 var(--ink)
}

.sun-disc {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--lime);
    border-radius: 50%;
    top: 75px;
    left: 24%;
    box-shadow: 0 0 0 1px var(--ink)
}

.orbit {
    position: absolute;
    border: 1px solid var(--ink);
    border-radius: 50%;
    width: 610px;
    height: 210px;
    left: -12%;
    top: 165px;
    transform: rotate(-20deg)
}

.orbit-b {
    top: 140px;
    left: -7%;
    transform: rotate(-31deg);
    width: 570px
}

.road {
    position: absolute;
    background: var(--ink);
    height: 11px;
    width: 120%;
    bottom: 123px;
    left: -10%;
    transform: rotate(-7deg)
}

.road-two {
    bottom: 70px;
    height: 4px;
    background: var(--lime);
    transform: rotate(-7deg)
}

.car {
    position: absolute;
    width: 205px;
    height: 55px;
    background: var(--ink);
    bottom: 112px;
    left: 42%;
    transform: skew(-18deg)
}

.car:before {
    content: '';
    position: absolute;
    left: 40px;
    top: -28px;
    border-bottom: 30px solid var(--ink);
    border-left: 28px solid transparent;
    border-right: 40px solid transparent;
    width: 75px
}

.car-window {
    position: absolute;
    left: 74px;
    top: -21px;
    background: var(--orange);
    width: 55px;
    height: 19px;
    z-index: 1
}

.car i {
    display: block;
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--ink);
    border: 7px solid var(--orange);
    border-radius: 50%;
    bottom: -15px
}

.car i:first-of-type {
    left: 27px
}

.car i:last-of-type {
    right: 22px
}

.art-label {
    position: absolute;
    font: 10px 'DM Mono', monospace
}

.label-top {
    top: 25px;
    left: 25px
}

.label-bottom {
    bottom: 25px;
    right: 25px
}

.spark {
    position: absolute;
    font-size: 40px
}

.spark-one {
    right: 38px;
    top: 70px
}

.spark-two {
    left: 45px;
    bottom: 125px
}

.ticker {
    overflow: hidden;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    padding: 15px 0;
    white-space: nowrap;
    font: 13px 'DM Mono', monospace
}

.ticker div {
    animation: slide 25s linear infinite
}

.ticker b {
    color: var(--orange);
    margin: 0 24px
}

@keyframes slide {
    to {
        transform: translateX(-25%)
    }
}

.game {
    padding-top: 140px
}

.game h2,
.about h2,
.contact h2 {
    font-size: clamp(52px, 6vw, 84px);
    line-height: .86;
    letter-spacing: -.08em;
    margin: 0 0 28px
}

.game h2 span {
    color: var(--blue)
}

.section-intro>p:not(.eyebrow) {
    color: var(--muted);
    max-width: 315px;
    line-height: 1.55
}

.button {
    display: inline-flex;
    gap: 38px;
    align-items: center;
    padding: 16px 18px;
    text-transform: uppercase;
    font: 11px 'DM Mono', monospace;
    margin-top: 20px
}

.button-primary {
    background: var(--lime);
    border: 1px solid var(--ink)
}

.button-primary:hover {
    background: var(--orange);
    color: #fff
}

.game-visuals {
    position: relative;
    min-height: 500px
}

.screenshot {
    position: absolute;
    overflow: hidden;
    border: 1px solid var(--ink);
    box-shadow: 10px 10px 0 var(--ink)
}

.main-shot {
    background: #204766;
    width: 82%;
    height: 395px;
    right: 0;
    top: 0;
    transform: rotate(-2deg)
}

.shot-sky {
    height: 64%;
    background: linear-gradient(#1c3859 10%, #dc724c 75%, #efac5e)
}

.shot-moon {
    position: absolute;
    background: var(--lime);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    top: 55px;
    right: 70px
}

.shot-road {
    position: absolute;
    background: #252b38;
    width: 130%;
    height: 190px;
    bottom: -80px;
    left: -15%;
    transform: rotate(-8deg);
    border-top: 2px solid #d77950
}

.palm {
    position: absolute;
    width: 8px;
    height: 205px;
    background: #172630;
    bottom: 82px;
    left: 22%
}

.palm:before {
    content: '〽';
    position: absolute;
    font-size: 120px;
    top: -75px;
    left: -62px;
    color: #172630
}

.palm-b {
    left: auto;
    right: 16%;
    height: 140px;
    bottom: 92px
}

.palm-b:before {
    font-size: 85px;
    left: -46px;
    top: -55px
}

.shot-car {
    position: absolute;
    bottom: 72px;
    left: 43%;
    height: 28px;
    width: 105px;
    background: var(--orange);
    transform: skew(-20deg)
}

.shot-caption {
    position: absolute;
    left: 17px;
    bottom: 17px;
    color: #fff;
    font: 10px 'DM Mono', monospace
}

.detail-shot {
    width: 39%;
    height: 210px;
    left: 0;
    bottom: 5px;
    background: var(--lime);
    transform: rotate(5deg)
}

.detail-sun {
    width: 150px;
    height: 150px;
    background: var(--orange);
    border-radius: 50%;
    margin: 25px
}

.detail-wave {
    height: 42px;
    background: var(--blue);
    position: absolute;
    width: 130%;
    bottom: 35px;
    transform: rotate(-7deg)
}

.detail-shot span {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font: 10px 'DM Mono', monospace
}

.trailer-card {
    position: absolute;
    right: 3%;
    bottom: 28px;
    background: var(--paper);
    border: 1px solid var(--ink);
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 5px 5px 0 var(--ink)
}

.trailer-card:hover {
    background: var(--orange);
    color: #fff
}

.play-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
    display: grid;
    place-items: center;
    font-size: 11px
}

.trailer-card small,
.trailer-card strong {
    display: block;
    font: 10px 'DM Mono', monospace
}

.trailer-card strong {
    font-size: 15px;
    margin-top: 3px
}

.about,
.contact {
    border-top: 1px solid var(--line);
    padding-top: 90px;
    padding-bottom: 90px
}

.about-copy,
.contact-copy {
    align-self: end
}

.large-copy {
    font-size: clamp(22px, 2.6vw, 35px);
    letter-spacing: -.04em;
    line-height: 1.1;
    max-width: 520px
}

.facts {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 15px;
    margin-top: 65px;
    font: 10px 'DM Mono', monospace;
    color: var(--muted)
}

.contact {
    background: var(--blue);
    color: #fff;
    max-width: none;
    padding-left: 20%;
    padding-right: 20%;
    border: 0
}

.contact .eyebrow {
    color: #b8cede
}

.contact h2 em {
    color: var(--lime)
}

.contact-copy p {
    max-width: 300px;
    color: #d8e3e8;
    line-height: 1.5
}

.contact-link {
    display: inline-block;
    border-bottom: 1px solid #fff;
    padding-bottom: 7px;
    margin-top: 25px;
    font: 13px 'DM Mono', monospace
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5vw;
    font: 10px 'DM Mono', monospace;
    color: var(--muted)
}

footer .wordmark {
    color: var(--ink)
}

body.light {
    --ink: #171717;
    --paper: #f1eee8;
    --muted: #77736c;
    --line: #cbc7be
}

body.dark {
    --ink: #eeeae1;
    --paper: #17191a;
    --muted: #9a9992;
    --line: #3c3d3a
}

.dark .hero-art {
    box-shadow: 15px 16px 0 #000
}

.dark .screenshot {
    box-shadow: 10px 10px 0 #000
}

.dark .trailer-card {
    background: #202221;
    box-shadow: 5px 5px 0 #000
}

.dark .ticker,
.dark .about,
.dark .contact {
    border-color: #555
}

.dark .button-primary {
    color: #171717
}

.dark .theme-toggle {
    border-color: var(--ink)
}

@media(max-width:760px) {
    .site-header {
        height: 70px;
        padding: 0 20px;
        gap: 0
    }

    .nav-links {
        display: none
    }

    .controls {
        margin-left: auto
    }

    .section-grid {
        display: block;
        padding: 75px 7vw
    }

    .hero {
        padding-top: 60px
    }

    .hero-art {
        height: 340px;
        margin-top: 65px
    }

    .sun-disc {
        width: 170px;
        height: 170px
    }

    .car {
        left: 36%;
        bottom: 90px
    }

    .hero {
        min-height: 0
    }

    .game {
        padding-top: 100px
    }

    .game-visuals {
        margin-top: 65px;
        min-height: 430px
    }

    .main-shot {
        height: 320px;
        width: 89%
    }

    .detail-shot {
        bottom: 0
    }

    .trailer-card {
        right: 0;
        bottom: 20px
    }

    .about-copy,
    .contact-copy {
        margin-top: 45px
    }

    .facts {
        gap: 9px;
        font-size: 8px;
        justify-content: space-between
    }

    .contact {
        padding-left: 7vw;
        padding-right: 7vw
    }

    footer {
        padding: 25px 7vw;
        gap: 15px;
        flex-wrap: wrap
    }

    footer>span:last-child {
        display: none
    }
}