/* 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%; }

/* Series nav — rendered from `series:` front-matter by the template; sits
   between the header rule and the article title. */
.series-nav {
    font-size: 0.85rem;
    padding: 0.4rem 0 0;
    border-bottom: 1px dashed var(--accentColor);
    color: #7a8291; /* label dimmer than body text; links carry the strip */
}
.series-nav strong { color: var(--txtColor); } /* current page: "you are here" */

/* Infobox — rendered by filters/infobox.lua from `infobox:` front-matter.
   Default look; restyle freely, nothing live depends on it yet. */
.infobox {
  float: right;
  max-width: 18rem;
  margin: 0 0 1rem 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9em;
}
.infobox-title { font-weight: 700; margin-bottom: 0.5rem; }
.infobox-image { display: block; margin: 0 auto 0.5rem; }
.infobox-fields { margin: 0; }
.infobox-fields dt { font-weight: 600; }
.infobox-fields dd { margin: 0 0 0.4rem; }

/* Afterlife section additions (appended to the wiki sheet at build time). */
figure { margin: 1.2rem 0; }
figure img { display: block; width: 100%; height: auto; }
figcaption { font-size: 0.85rem; color: #7a8291; padding-top: 0.3rem; }
