/* main.css */
@import "variables.css";
/*────────────────────────────────────────────────
    0) RESET
────────────────────────────────────────────────*/
*, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
    border: 0;
    margin: 0;
}
/*────────────────────────────────────────────────
    1) BASE TYPOGRAPHY
────────────────────────────────────────────────*/
html {
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    font-weight: normal;
    font-size: 16px;
    line-height: 1.5;
    tab-size: 4.0;
} body {
    background-color: var(--body-bg);
    color: var(--body-text);
    width: 100%;
    height: 100%;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    tab-size: inherit;
}
/*────────────────────────────────────────────────
    2) LINKS & BUTTONS
────────────────────────────────────────────────*/
a {
    color: var(--a-text);
    transition: color .15s ease-in-out;
    text-decoration: none;
} a:hover {
    color: var(--a-text-hover);
} button {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.5rem 1.0rem;
    border: none;
    cursor: pointer;
} button:hover {
    background-color: var(--btn-bg-hover);
    color: var(--btn-text-hover);
}
/*────────────────────────────────────────────────
    3) HEADINGS & TEXT
────────────────────────────────────────────────*/
h1, h2, h3, h4, h5, h6 {
    color: var(--h-text);
    font-weight: inherit;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
h1  { font-size: 1.5rem; }
h2  { font-size: 1.3rem; margin-top: 2.0rem; }
h3, h4, h5, h6  { font-size: 1.2rem; margin-top: 2.0rem; }
p, ul, ol, pre  { margin-top: 1.0rem; }
li      { margin-left: 1.5rem; }
li + li { margin-top: 0.3rem; }
blockquote {
    font-style: italic;
    border-left: 0.5rem solid var(--bq-border);
    padding-left: 1.0rem;
    margin: 2.0rem 0;
}
/*────────────────────────────────────────────────
    4) PROSE CONTENT
────────────────────────────────────────────────*/
.prose {
    line-height: 1.7;
} .prose a {
    text-decoration: underline;
} .prose code {
    background-color: var(--code-bg);
} .prose pre {
    background-color: var(--pre-bg);
    box-sizing: border-box;
    border: .3rem solid var(--pre-border);
    border-radius: .0rem;
    padding: .8rem 1.2rem;
    overflow-x: auto;
    white-space: pre-wrap;
    max-width: 100%;
}
/*────────────────────────────────────────────────
    5) COMMON UTILITIES
────────────────────────────────────────────────*/
.hidden  { display: none; }
.flex  { display: flex; }
.block  { display: block; }
.inline-block  { display: inline-block; }
.items-center  { align-items: center; }
.justify-between  { justify-content: space-between; }
.transition  { transition: all .15s cubic-bezier(.4,0,.2,1); }
/*────────────────────────────────────────────────
    6) RESPONSIVITY
────────────────────────────────────────────────*/
.blueprint {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
} @media (min-width: 768px) {
    .blueprint {
        flex-direction: row;
        align-items: flex-start;
    }
}
.aether {
    background-color: var(--aether-bg);
    position: static;
    flex-shrink: 0;
    padding: 1rem;
} @media (min-width: 768px) {
    .aether {
        position: sticky;
        align-self: flex-start;
        overflow-y: auto;
        width: 250px;
        height: auto;
        min-height: 100vh;
        padding: 0;
        top: 0;
    }
}
.dotslash {
    background-color: var(--dotslash-bg);
    color: var(--dotslash-text);
    display: flex;
    flex-direction: row;
    margin-bottom: 1.0rem;
} @media (min-width: 768px) {
    .dotslash {
        justify-content:center;
        padding: 1.5rem 0;
        margin-bottom: 0;
    }
} .dotslash:hover {
    background-color: var(--dotslash-bg-hover);
    color: var(--dotslash-text-hover);
}
.dotslash-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
} @media (min-width: 768px) {
    .dotslash-inner {
        margin-right: 0;
    }
}
.astronomy {
    background-color: var(--astronomy-bg);
    color: var(--astronomy-text);
    flex: 1 1 auto;
    text-transform: uppercase;
    font-size: x-large;
    margin: 0;
} @media (min-width: 768px) {
    .astronomy {
        flex: 0 1 auto;
        font-size: x-large;
        padding: 1.5rem 0 1.5rem 1.5rem;
        margin-bottom: 3rem;
    }
} .astronomy:hover {
    background-color: var(--astronomy-bg-hover);
    color: var(--astronomy-text-hover);
} .dotslash:hover .astronomy {
    background-color: var(--astronomy-bg-hover);
    color: var(--astronomy-text-hover);
}
.overworld {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    font-size: 1.125rem;
    margin: 1rem;
} @media (min-width: 768px) {
    .overworld {
        font-size: 1rem;
        margin: 0;
    }
}
.book {
    display: flex;
    flex-direction: row;
    justify-content: center;
} @media (min-width: 768px) {
    .book {
        justify-content:space-between;
        margin-left: 4rem;
    }
}
.paper {
    max-width: var(--content-width);
    flex: 1 1 auto;
} @media (min-width: 768px) {
    .paper {
        margin-right: 4rem;
    }
}
.binder {
    display: none;
    flex: 1 1 0;
    max-width: 400px;
} @media (min-width: 1536px) {
    .binder {
        display: block;
    }
}
.nether {
    color: var(--nether-text);
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    max-width: var(--content-width);
    margin-top: 3rem;
    padding-bottom: 4rem;
} @media (min-width: 768px) {
    .nether {
        margin-left: 4rem;
        margin-right: 4rem;
    }
}
.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width: 768px) {
    .mobile-only { display: none; }
    .desktop-only { display: block; }
}
/*────────────────────────────────────────────────
    NAVIGATION
────────────────────────────────────────────────*/
.compass {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
} @media (min-width: 768px) {
    .compass {
        flex-direction: column;
        overflow: auto;
    }
}
.compass-dot {
    background-color: var(--arrow-dot);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: .5rem;
    transform: scale(0);
    transition: transform .15s ease-in-out,
                        background-color .15s ease-in-out;
}
.compass-link {
    color: var(--compass-text);
    font-size: large;
    text-decoration: none;
}
.compass-arrow {
    background-color: var(--compass-bg);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1.5rem 0;
    padding-left: 3rem;
} .compass-arrow:hover {
    background-color: var(--compass-bg-hover);
} .compass-arrow:hover .compass-dot {
    background-color: var(--arrow-dot-hover);
    transform: scale(1);
} .compass-arrow:hover .compass-link {
    color: var(--compass-text-hover);
} .compass-arrow.active {
    background-color: var(--compass-bg-active);
} .compass-arrow.active .compass-dot {
    background-color: var(--arrow-dot-active);
    transform: scale(1);
} .compass-arrow.active .compass-link {
    color: var(--compass-text-active);
}
@media (max-width: 768px) {
    .compass-arrow {
        flex-direction: column-reverse;
        padding: 1rem 1rem 1rem 1rem;
        margin: 0 1rem 0 0;
    }
}
/*────────────────────────────────────────────────
    POST LIST
────────────────────────────────────────────────*/
.post-list {
    list-style: none;
} .post-list li {
    margin-left: 0;
} .post-list li + li {
    margin-top: .5rem;
} .post-list a {
    color: var(--a-text-postlist);
    transition: color .15s ease-in-out;
    text-decoration: none;
} .post-list a:hover {
    color: var(--a-text-postlist-hover);
}
