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

.space-mono-regular {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

.space-mono-bold {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-style: normal;
}

.ubuntu-bold {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
}

html {
    min-height: 100vh;
    overscroll-behavior: none;
}

body {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0 auto;
    overscroll-behavior: none;
}

img {
    max-width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
    color: black;
    align-items: center;
}

.logo-text a {
    font-size: 1.2rem;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    color: black;
}

.nav-bar ul {
    list-style-type: none;
    display: flex;
    gap: 5px;
}

.nav-bar ul li {
    padding: 5px;
}

.nav-bar ul li a {
    font-size: 1.15rem;
    color: #3c3c3c;
    text-decoration: none;
}

main {
    width: 90%;
    max-width: 760px;
    margin: 0 auto;
    margin-top: 30px;
    min-height: 70vh;
}

.back-link {
    display: inline-block;
    font-size: 0.9rem;
    color: #3c3c3c;
    text-decoration: none;
    margin-bottom: 22px;
}

.back-link:hover {
    color: black;
}

.article-full h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.article-date {
    font-size: 0.85rem;
    color: #3c3c3c;
    margin-bottom: 22px;
}

.article-hero {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border: black 3px solid;
    border-radius: 8px;
    margin-bottom: 26px;
}

.article-full h2 {
    font-size: 1.3rem;
    margin-top: 28px;
    margin-bottom: 10px;
}

.article-full p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-full ul {
    margin: 0 0 16px 22px;
}

.article-full li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 6px;
}

.article-full pre {
    background-color: #f4f4f2;
    border: 1px solid #e2e2df;
    border-radius: 6px;
    padding: 14px 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.article-full code {
    font-family: "Space Mono", monospace;
    font-size: 0.95rem;
}

.article-full p code {
    background-color: #f4f4f2;
    padding: 1px 5px;
    border-radius: 4px;
}

.bolden {
    font-weight: bolder;
}

@media (max-width: 576px) {
    html {
        font-size: 0.9rem;
    }

    main {
        width: 100%;
        padding-left: 26px;
        padding-right: 26px;
    }

    .logo-text a {
        font-size: 1.05rem;
    }

    .nav-bar ul li a {
        font-size: 1rem;
    }

    .article-full h1 {
        font-size: 1.6rem;
    }

    .article-hero {
        height: 200px;
    }
}

footer {
    width: 100%;
    margin-top: 3vh;
    background-color: #ffffff;
    border-top: 2px solid black;
    color: black;
    font-family: "Space Mono", monospace;
}

.footer-inner {
    max-width: none;
    margin: 0 auto;
    padding: 34px 48px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    text-align: left;
}

.footer-path {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.footer-path a {
    color: black;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.footer-path a:hover {
    border-bottom-color: #303841;
}

.footer-path a:focus-visible {
    outline: 2px solid #303841;
    outline-offset: 3px;
}

.footer-path .sep {
    color: #3c3c3c;
}

.footer-legal {
    font-size: 16px;
    color: #3c3c3c;
    line-height: 1.7;
    white-space: nowrap;
}

.copy {
    font-family: 'Courier New', Courier, monospace;
}

.attr-short {
    display: none;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-path {
        justify-content: center;
    }

    .footer-legal {
        white-space: normal;
    }

    .attr-full {
        display: none;
    }

    .attr-short {
        display: inline;
    }
}

@media (max-width: 576px) {
    .footer-inner {
        padding-left: 23px;
        padding-right: 23px;
    }

    .footer-path {
        font-size: 14px;
    }

    .footer-legal {
        font-size: 14px;
    }
}

header {
    position: relative;
}

.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 8px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #303841;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-bar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #303841;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s ease;
        z-index: 40;
    }

    header.nav-open .nav-bar {
        max-height: 260px;
    }

    .nav-bar ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-bar ul li {
        padding: 0;
    }

    .nav-bar ul li a {
        display: block;
        padding: 15px 22px;
        border-top: 1px solid #ececec;
        font-size: 1.05rem;
    }

    .nav-bar ul li:first-child a {
        border-top: none;
    }
}
