:root {
    color-scheme: dark;

    --background: #000000;
    --text: #9a9a9a;
    --heading: #d8d8d8;
    --link: #00ff00;
    --link-hover: #8aff8a;
    --border: #2b2b2b;
    --panel: #0d0d0d;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
}

body {
    margin: 0;
    padding: 1rem;

    background: var(--background);
    color: var(--text);

    font-family: Verdana, Geneva, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: var(--link);
}

a:visited {
    color: var(--link);
}

a:hover,
a:focus-visible {
    color: var(--link-hover);
}


/* =========================================================
   IMAGES
   ========================================================= */

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   PAGE
   ========================================================= */

.page-shell {
    width: min(100%, 1000px);
    margin: 0 auto;
}

.content-area {
    width: min(100%, 900px);
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    margin: 0 0 0.75rem;
    text-align: center;
}

.site-header img {
    display: block;
    margin: 0 auto;
}

.directory-title {
    margin-top: 0.75rem;
}


/* =========================================================
   ARCHIVE NAVIGATION
   ========================================================= */

.archive-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0;

    font-size: 0.9rem;
}

.archive-breadcrumbs {
    min-width: 0;
}

.archive-breadcrumbs span {
    color: #666666;
    padding: 0 0.25rem;
}

.archive-search {
    flex: 0 0 auto;
}

.archive-search a {
    display: inline-block;

    padding: 2px 7px;

    border: 1px solid #008800;

    background: #050505;
    color: var(--link);

    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    font-weight: bold;

    text-decoration: none;
}

.archive-search a::before {
    content: "[ ";
    color: #777777;
}

.archive-search a::after {
    content: " ]";
    color: #777777;
}

.archive-search a:hover,
.archive-search a:focus-visible {
    border-color: var(--link);
    background: #0d0d0d;
    color: var(--link-hover);
}


/* =========================================================
   ARCHIVE CONTENT
   ========================================================= */

.archive-content {
    width: 100%;
    margin: 0;
}

.archive-content h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.archive-content p {
    margin-top: 0;
    margin-bottom: 1rem;
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.intro {
    width: min(100%, 780px);
    margin: 0 auto 1rem;

    text-align: center;
    font-style: italic;
}

.intro p {
    margin: 0;
}


/* =========================================================
   ROOT ARCHIVE SEARCH LINK
   ========================================================= */

.archive-search-link {
    margin: 1.25rem auto 1.5rem;
    text-align: center;
}

.archive-search-link a {
    display: inline-block;

    padding: 5px 12px;

    border: 1px solid #008800;

    color: var(--link);
    background: #050505;

    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    font-weight: bold;

    text-decoration: none;
    text-transform: uppercase;

    letter-spacing: 0.03em;
}

.archive-search-link a::before {
    content: "[ ";
    color: #777777;
}

.archive-search-link a::after {
    content: " ]";
    color: #777777;
}

.archive-search-link a:hover,
.archive-search-link a:focus-visible {
    border-color: var(--link);

    background: #0d0d0d;
    color: var(--link-hover);
}

.archive-search-link a:hover::before,
.archive-search-link a:hover::after,
.archive-search-link a:focus-visible::before,
.archive-search-link a:focus-visible::after {
    color: var(--link);
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3 {
    color: var(--heading);
}


/* =========================================================
   TABLES
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
}

td,
th {
    vertical-align: top;
}


/* =========================================================
   ROOT DIRECTORY TABLE
   ========================================================= */

.directory-table {
    width: 100%;
    margin: 0 auto;

    border-collapse: collapse;
    table-layout: fixed;
}

.directory-table td {
    width: 50%;
    padding: 7px 18px;
}

.directory-table td a {
    font-weight: bold;
}

.directory-table tr:hover {
    background: rgba(0, 255, 0, 0.04);
}


/* =========================================================
   ARCHIVE FILE TABLES
   ========================================================= */

.archive-content table {
    margin-top: 1.5rem;
}

.archive-content table td {
    padding: 1px 3px;
}

.archive-content table td:first-child {
    white-space: nowrap;
}

.archive-content table td:nth-child(2) {
    white-space: nowrap;
}

.archive-content table tr:hover td {
    background: rgba(0, 255, 0, 0.04);
}


/* =========================================================
   PRE / ASCII CONTENT
   ========================================================= */

pre {
    max-width: 100%;
    overflow-x: auto;

    font-family: "Courier New", Courier, monospace;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: min(100%, 900px);

    margin: 2.5rem auto 0;
    padding-top: 1rem;

    border-top: 1px solid var(--border);

    color: #777777;

    font-size: 0.8rem;
    text-align: center;
}

.site-footer p {
    margin: 0.35rem 0 0;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}


/* =========================================================
   SMALL TEXT
   ========================================================= */

small {
    color: #777777;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 0.75rem;
        font-size: 14px;
    }

    .site-header {
        margin-bottom: 0.5rem;
    }

    .directory-title {
        margin-top: 0.5rem;
    }

    .intro {
        margin-bottom: 0.75rem;
        text-align: left;
    }

    .archive-search-link {
        margin: 1rem auto 1.25rem;
    }

    .archive-search-link a {
        width: 100%;
        max-width: 360px;

        padding: 7px 10px;
    }

    .directory-table,
    .directory-table tbody,
    .directory-table tr,
    .directory-table td {
        display: block;
        width: 100%;
    }

    .directory-table td {
        padding: 7px 4px;
    }

    .directory-table tr:hover {
        background: transparent;
    }

    .archive-nav {
        display: block;
        margin-bottom: 1rem;
    }

    .archive-search {
        margin-top: 0.65rem;
    }

    .archive-content {
        overflow-x: auto;
    }

    .archive-content table {
        min-width: 650px;
    }

    .site-footer {
        margin-top: 2rem;
    }
}