:root {
    color-scheme: light dark;
    
    font-family: "Cantarell", "Inter", "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont;

    --text0: light-dark(#45453c, #b5b5ac);
    --text1: light-dark(#90908a, #99998a);
    --background0: light-dark(#cdcdc9, #2a2a24);
    --background1: light-dark(#efefe9, #2f2f28);
    --border: light-dark(#ddddd8, #40403c);
    --outline: light-dark(#afaf9f, #12120a);
    --link: light-dark(#006a80, #3090a0);
    --visited: light-dark(#8950a0, #9b70ae);
    --shadow: #22222280;

    color: var(--text0);
    font-size: 16pt;
}

* {
    box-sizing: border-box;
}

@media screen and (max-width: 1000px) {
    html, body {
        overflow: auto !important;
    }

    #main-container {
        flex-direction: column !important;
    }

    #main {
        max-width: 100vw !important;
        min-width: 100vw !important;
        height: 90vh !important;
        border-radius: 0 0 16px 16px !important;
    }
}

html, body {
    margin: 0;
    padding: 0;
}

#index-body {
    overflow: hidden;
}

body {
    background-image: light-dark(
        url("./res/papertile.webp"),
        url("./res/papertile-dark.webp")
    );
}

h1 {
    line-height: 1;
}

a {
    text-decoration: none;
    color: var(--link);
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: var(--visited);
}

#main-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#article-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#main, article {
    background-image: radial-gradient(ellipse 100% 100vh at top, var(--background1), var(--background0));
    padding: 2em;

    outline: 2px solid var(--outline);
}

#main {
    box-shadow: 24px 0 64px 0 var(--shadow);
    border-right: 2px solid var(--border);
    border-radius: 0 16px 16px 0;
    
    height: 100vh;
    max-width: 33%;
    min-width: 504pt;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

article {
    border: 2px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 64px 0 var(--shadow);
    
    max-width: 80ch;
    margin: 10vh 0;
}

#title {
    font-size: 3em;
    margin: 0;
}

#links {
    list-style-type: none;
    padding-left: 0;

}

#third-padding {
    flex-basis: 33vh;
}

#doodlebox {
    max-height: 100vh;
    vertical-align: bottom;
    width: auto;
    align-content: flex-end;
    position: relative;
}

#dotw {
    width: 100%;
    object-fit: contain;
}

#doodlename {
    padding: 8px;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 4;

    font-style: italic;
    color: var(--text1);
    opacity: 0.8;
}

.note {
    color: var(--text1);
    font-size: 0.8em;
}
