html, body {
    margin: 0;
}

html {
    font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
    font-size: 1em;
    line-height: 1.2em;
}

body {
    height: 100vh;
    font-size: 1.25rem;
    line-height: 1.2em;
}

*::selection {
    color: #FCFCFC;
}

h1, h2, h3, h4, h5, h6, p, a {
    margin-block-start: 0;
    margin-block-end: 0;
    padding-block-start: 0;
    padding-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 0;
    padding-inline-end: 0;
    text-decoration: none;
    font-size: inherit;
    color: inherit;
    font-weight: normal;
    white-space: pre-wrap;
    /* line-break: anywhere; */
}

a {
    cursor: pointer;
    white-space: nowrap;
}

main {
    box-sizing: border-box;
    padding: 1.2em 1ch;
    width: 100%;
    max-width: 60ch;
    height: fit-content;
    min-height: max-content;
    margin: auto;
}

#introduction-wrapper {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    padding: 1.2em 0;
}

#introduction-wrapper * {
    padding: 0 1ch;
    max-width: 58ch;
}

#introduction-wrapper span:not(span[data-active]) {
    margin-bottom: 1.2em;
}

#introduction-wrapper span[data-active] {
    cursor: pointer;
}

#introduction-wrapper svg {
    height: 2.4em;
    width: auto;
    margin-bottom: 2.4em;
}

#introduction-wrapper h2 {
    flex-basis: auto;
}

#introduction-wrapper h2 br:not(:last-child) {
    display: none;
}

#introduction-wrapper.entered {
    pointer-events: none;
}

#introduction-wrapper.entered svg {
    opacity: 0;
}

#nav-wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

#user-input {
    margin-top: 1.2em;
    text-align: left;
}

#user-input:focus,
#user-input:focus-within {
    outline: none;;
}

#to-publish {
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    flex-basis: 100%;
    text-align: center;
    /* margin: 0 0 1.2em; */
}

#menu-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    /* text-align: center; */
}

#proceed-print-button {
    margin-right: 4ch;
    transition: margin 200ms linear;
}

.manifesto-shown #proceed-print-button {
    margin: 0;
}

#abyss-wrapper {
    display: none;
}

#memory {
    line-break: normal;
    pointer-events: none;
    user-select: none;
}

#top-shadow {
    width: 100vw;
    height: 2.4em;
    position: fixed;
    top: 0;
    left: 0;
    background-image: linear-gradient(#FFFF 5%, #FFF0);
    z-index: 99;
    pointer-events: none;
}

@media screen and (max-width: 460px) {
    body {
        font-size: 1rem;
        line-height: 1.2em;
    }
}

@media print {
    main {display: none;}
    #abyss-wrapper {
        display: block;
        box-sizing: border-box;
        margin: auto;
        max-width: 60ch;
        padding: 1.2em 1ch;
    }
    
    #abyss-wrapper h1,
    #abyss-wrapper h2 {
        width: 100%;
        text-align: center;
        position: running(header);
    }

    #abyss-wrapper h1 {
        margin-bottom: 1.2em;
    }

    #abyss-wrapper h2 {
        margin: 1.2em 0 1.2em;
    }
    
    #abyss-wrapper p {
        margin-bottom: 1.2em;
    }
}

