:root {
    --primary: #80ccff;
    --secondary: #1850dd;
    --bg: #000720;
    --text: #effefe;
    --panel: #030f33;
    --line: rgba(128, 204, 255, .28);
    --soft: rgba(239, 254, 254, .82);
    --glow: 0 0 16px rgba(24, 80, 221, .45);
    color-scheme: dark;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

*,
*::before,
*::after {
    box-sizing: inherit
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 22px/1.35 "Jersey 10", monospace;
    letter-spacing: .02em
}

h1,h2,h3 {
    font-family: "Press Start 2P", sans-serif;
    font-weight: 400;
    line-height: 1.15;
    margin: 0;
    overflow-wrap: anywhere;
}

a {
    color: inherit;
    text-decoration: none
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    animation: slideDown .7s ease-out both
}

@keyframes slideDown {
    from {
        transform: translateY(-100%)
    }

    to {
        transform: translateY(0)
    }
}

.bar {
    max-width: 1100px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 26px "Press Start 2P", Impact, sans-serif;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(24, 80, 221, .9);
    flex-shrink: 0;          /* keeps the nav from squeezing the logo */
}

.logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.tile {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--secondary);
    color: var(--text);
    font: 16px "Press Start 2P", sans-serif;
    box-shadow: var(--glow)
}

nav {
    display: flex;
    gap: 8px
}

nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    box-shadow: var(--glow)
}

nav a b {
    color: var(--primary);
    font-weight: 400
}

nav a:hover {
    border-color: var(--primary)
}

.burger {
    display: none;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--primary);
    border-radius: 8px;
    padding: 4px 12px;
    font: 24px inherit;
    cursor: pointer
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px
}

section {
    padding: 60px 0
}

.head {
    text-align: center;
    margin-bottom: 36px
}

.badge {
    display: inline-block;
    padding: 1px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 12px
}

h2 {
    font-size: clamp(30px, 5vw, 44px);
    color: var(--primary);
    text-shadow: 0 0 12px rgba(24, 80, 221, .9)
}

.hero {
    text-align: center;
    padding: 100px 0 70px
}

.hero h1 {
    font-size: clamp(32px, 8vw, 72px);
    color: var(--primary);
    letter-spacing: .05em;
    text-shadow: 0 0 14px var(--secondary), 0 0 32px var(--secondary)
}

.hero p {
    max-width: 540px;
    margin: 16px auto 32px;
    font-size: 22px;
    color: var(--soft)
}

.btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap
}

.btn {
    display: inline-block;
    padding: 10px 32px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    font: inherit;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--glow)
}

.btn.fill {
    background: var(--primary);
    color: var(--bg)
}

.btn.fill:hover {
    background: var(--text)
}

.btn.line {
    background: var(--panel);
    color: var(--text);
    border-color: var(--secondary)
}

.btn.line:hover {
    border-color: var(--primary)
}

.copy-status {
    flex-basis: 100%;
    text-align: center;
    color: var(--soft)
}

.copy-status:empty {
    display: none
}

.card,
details,
.about {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--glow)
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.card {
    padding: 22px 18px;
    text-align: center
}

.card:hover {
    border-color: var(--primary)
}

.card .tile {
    margin: 0 auto 12px;
    width: 48px;
    height: 48px;
    font-size: 24px
}

.card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 6px
}

.card p {
    margin: 0;
    color: var(--soft)
}

.ph {
    display: grid;
    place-items: center;
    background: var(--bg);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    color: var(--primary);
    text-align: center
}

.about {
    display: grid;
    grid-template-columns: minmax(0, clamp(220px, 30vw, 340px)) 1fr;
    gap: clamp(20px, 3vw, 32px);
    align-items: center;
    padding: clamp(16px, 2.5vw, 24px);
}

.about .ph {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
}

.ph img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about p {
    margin: 0 0 12px;
    color: var(--soft)
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px
}

.tags span {
    padding: 0 12px;
    font-size: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(24, 80, 221, .25);
    color: var(--primary)
}

details {
    margin-bottom: 12px
}

details[open] {
    border-color: var(--primary)
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 24px
}

summary::-webkit-details-marker {
    display: none
}

summary::after {
    content: "\25BE";
    color: var(--primary);
    transition: transform .2s
}

details[open]>summary::after {
    transform: rotate(180deg)
}

.body {
    padding: 2px 20px 18px;
    color: var(--soft)
}

.body p {
    margin: 0
}

.step {
    display: grid;
    grid-template-columns: 44px 130px 1fr;
    gap: 18px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line)
}

.step:first-child {
    border-top: 0
}

.step .tile {
    width: 44px;
    height: 44px;
    font-size: 20px
}

.step .ph {
    height: 80px;
    font-size: 18px
}

footer {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    color: var(--soft)
}

footer .links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: wrap
}

footer a:hover {
    color: var(--primary)
}

@media (max-width:860px) {
    .cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .about {
        grid-template-columns: 1fr
    }

    .about .ph {
        max-width: 320px
    }
}

@media (max-width:720px) {
    .burger {
        display: block
    }

    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
        padding: 0 20px
    }

    nav.open {
        max-height: 340px;
        padding: 10px 20px 16px
    }

    .step {
        grid-template-columns: 44px 1fr
    }

    .step .ph {
        grid-column: 1/-1;
        order: 3;
        height: 100px
    }
}

@media (max-width:480px) {
    .cards {
        grid-template-columns: 1fr
    }
}

@media (prefers-reduced-motion:reduce) {
    header {
        animation: none
    }

    html {
        scroll-behavior: auto
    }
}