/* NetherWiki stylesheet */
/* Based on the ~vern wiki aesthetic — dark, monospace, minimal */

:root {
    --casualFonts: DejaVu Sans Mono, monospace;
    --bgColor: #282c34;
    --txtColor: #bbc2cf;
    --linkColor: #ff6c6b;
    --headerColor: #51afef;
    --accentColor: #c678dd;
}

/* Responsiveness */
@media screen and (min-width: 820px) {
    :root { --mainSize: 65vw; }
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        white-space: nowrap;
        flex-wrap: wrap;
    }
    nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 1rem;
    }
}
@media screen and (max-width: 820px) { :root { --mainSize: 85vw; } }
@media screen and (max-width: 620px) { :root { --mainSize: 95vw; } }
@media screen and (max-width: 560px) {
    :root { --mainSize: 100vw; }
    header { display: initial; text-align: center; }
}

body {
    font-family: var(--casualFonts);
    background: var(--bgColor);
    color: var(--txtColor);
    line-height: 1.6;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
}

header, main, footer {
    margin: auto;
    width: var(--mainSize);
}

/* Header */
header {
    border-bottom: 2px solid var(--linkColor);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

#logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accentColor);
}

/* Footer */
footer {
    border-top: 2px solid var(--linkColor);
    border-radius: 0.5rem;
    padding-top: 0.5rem;
    margin-top: 3rem !important;
    font-size: 0.85rem;
}
footer p { margin: 0.2em 0; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--headerColor);
    line-height: 1.2;
}
h1 { font-size: 1.95rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

/* Code */
pre, code { font-size: 0.85rem; }

/* Links */
a {
    color: var(--linkColor);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Tables */
table, td {
    border: 1px outset;
    padding: 5px;
}
table { border-collapse: collapse; }

/* Images */
img { max-width: 100%; }
