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

html,
body {
    background-color: #ffffff;
    color: #000000;
    font-family: "IBM Plex Serif", monospace;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

a {
    color: #000000;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    background-color: #000000;
    color: #ffffff;
}

nav {
    width: 100%;
    background-color: #000000;
    border-bottom: 3px solid #000000;
}

.nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.nav-logo {
    width: 176px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: invert(100%);
}

.nav-inner > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #ffffff;
    text-decoration: none;
    font-family: "Martian Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-links a:hover {
    background-color: #ffffff;
    color: #000000;
}

.section-label {
    font-family: "Martian Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 8px 24px;
    border-bottom: 3px solid #000000;
}

footer {
    padding: 16px 24px;
    border-top: 3px solid #000000;
}

.footer-text {
    font-family: "Martian Mono", monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Keep navigation usable on narrow screens. */
@media (max-width: 540px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nav-inner:has(.nav-links) {
        padding-bottom: 0;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 4px 8px;
    }

    .nav-links a {
        font-size: 11px;
        letter-spacing: 0.08em;
    }
}
