@font-face {
    font-family: "departure_mono";
    src: url("DepartureMono-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: #0d0700;
    --amber: #ffb000;
    --amber_darker: #a87400;
    --glow: rgba(255, 176, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    height: 100%;
    background: var(--background);
    color: var(--amber);
    font-family: "departure_mono", "Courier New", monospace;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-shadow: 0 0 2px var(--glow);
    padding: 3vmin;
    min-height: 100%;
    display: flex;
}

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

.screen {
    flex: 1;
    display: flex;
    margin: auto;
    max-width: 1100px;
    min-height: 80vh;
    border: 1px solid var(--amber);
    border-radius: 4px;
    box-shadow: 0 0 12px var(--glow);
}

.sidebar {
    flex: 0 0 220px;
    padding: 30px 24px;
    border-right: 1px solid var(--amber_darker);
    display: flex;
    flex-direction: column;
}

.brand {
    display: block;
    font-size: 1.1rem;
    line-height: 1;
    padding-top: 5px;
    margin-bottom: 26px;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.brand::before {
    content: "> ";
    color: var(--amber_darker);
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav a {
    text-transform: lowercase;
    padding: 10px 0;
    line-height: 1;
}

.nav a::before {
    content: "[ ] ";
    color: var(--amber_darker);
}

.nav a:hover::before,
.nav a[aria-current="page"]::before {
    content: "[*] ";
    color: var(--amber);
}

.content {
    flex: 1;
    padding: 30px 34px;
    overflow-wrap: break-word;
}

.home h1,
.page_title,
.article h1,
.article h2 {
    display: inline-block;
    background: var(--amber);
    color: var(--background);
    font-weight: normal;
    text-shadow: none;
    padding: 0.1em 0.4em;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home h1 {
    font-size: clamp(2.5rem, 9vw, 6rem);
    letter-spacing: 0.06em;
    text-align: center;
}

.page_title {
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: 0.1em;
}

.article_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}

.article_list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    margin: 0 -12px;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: border-color 0.15s ease;
}

.article_list a:hover {
    border-color: var(--amber);
}

.article_meta {
    color: var(--amber_darker);
    white-space: nowrap;
}

.article {
    max-width: 70ch;
}

.article h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
    letter-spacing: 0.06em;
}

.article .byline {
    color: var(--amber_darker);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.article h2 {
    font-size: 1.2rem;
    margin: 22px 0 8px;
}

.article p {
    text-align: left;
    margin-bottom: 14px;
}

.article p a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.back_link {
    display: inline-block;
    margin-top: 24px;
    color: var(--amber_darker);
}

.back_link::before {
    content: "< ";
}

.back_link:hover {
    color: var(--amber);
}

@media (max-width: 680px) {
    body {
        padding: 2vmin;
    }

    .screen {
        flex-direction: column;
        min-height: 0;
    }

    .sidebar {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        border-right: none;
        border-bottom: 1px solid var(--amber_darker);
        padding: 18px 20px;
    }

    .brand {
        margin-bottom: 0;
    }

    .nav {
        flex-direction: row;
        gap: 16px;
    }

    .content {
        padding: 28px 22px;
    }
}
