html, body {
    margin: 0;
    height: 100%;
    background: #white;
    font-family: sans-serif;
    color-scheme: light dark;
}

img {
    max-width: 100%;
    height: auto;
}



body {
    display: flex;
    flex-direction: column;
    article {
        display: flex;
        flex: 1 0 auto;
        min-height: 100vh;
        section {
            flex: 1;
            display: flex;
            flex-direction: column;
            &.intro {
                margin: 2rem;
                justify-content: safe center;
                nav {
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    img {
                        max-height: 50vh;
                        cursor: zoom-in;
                    }
                }
            }
            &.jack {
                align-items: center;
                justify-content: center;
                svg {
                    max-width: 500px;
                    display: block;
                    width: 100%;
                    height: auto;
                    aspect-ratio: 320 / 360;
                    touch-action: none;
                    user-select: none;
                }
                aside {
                    margin-top: 0px;
                    h2, p {
                        text-align: right;
                        margin-top: 1px;
                        margin-bottom: 1px;
                        padding: 2px;
                    }
                }
            }
        }

        @media (max-width: 900px) {
            flex-direction: column;
        }

        @media (max-width: 700px) {
            flex-direction: column;
            h1:has(.stamp) { padding-right: 6.5rem; }
            .stamp { width: 9rem; }
        }
    }
}


body.gitsink {
            
    h1 {
        margin: 3rem 2rem 0;
        font-size: 2.2rem;
        line-height: 1.1;
    }

    article {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-content: start;
        flex: 1 0 auto;
        min-height: 100vh;
        
        section.intro, section.about {
            margin: 1.25rem 2rem 3rem;
            justify-content: flex-start;
        }
        
        section.intro nav a { align-self: stretch; }
        section.intro nav img { width: 100%; max-height: none; }
        section.intro nav p:first-child { margin-top: 0; }    
        
        .about .copy { max-width: 34rem; line-height: 1.6; font-size: 1.05rem; }
        .about h3 { margin: 1.6rem 0 .3rem; font-size: 1.05rem; }
        .about p { margin: 0 0 .9rem; }
        .about .terms {
            color: #9a9996;
            font-size: .95rem;
            margin-bottom: 1.6rem;
        }
        .about .lead { font-size: 1.35rem; line-height: 1.4; }
        .sales { margin: 0 0 1.4rem; }
        .about .sales .terms { margin: 0 0 .2rem; }
        .about pre {
            padding: .75rem 1rem;
            overflow-x: auto;
        }
        
        @media (max-width: 900px) {
            grid-template-columns: minmax(0,1fr);
        }
    }
}


h1:has(.stamp) {
    position: relative;
    padding-right: 10rem;
    display: flex;
    justify-content: space-between;
    align-self: stretch;
    align-items: baseline;
    gap: 1rem;
    .stamp {
        position: absolute;
        right: 0;
        bottom: -1.6rem;
        width: 13rem;
        transform: rotate(7deg);
        mix-blend-mode: multiply;
        opacity: .88;
        pointer-events: none;
        svg { display: block; }
    }
}

.part { cursor: grab; }
.part.dragging { cursor: grabbing; }
.part.fixed { cursor: default; }
.paper { stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.pin { pointer-events: none; }

footer {
    flex: none;
    margin: 1rem 2rem 0;
    padding: 1rem 0 4rem;
    border-top: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.75rem;
    font-size: .95rem;
    @media (prefers-color-scheme: light) {
        color: #853;
    }
    @media (prefers-color-scheme: daek) {
        color: #895;
    }
    a { color: inherit; }
}

/* End */
