/* START global styling */
header {
    /* flex for positioning */
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: space-between;
}

 body {
    /* colors */
    background-color: black;
    color: #d3d3e2;

    /* fonts */
    font-family: "Lekton", monospace;
    /* <weight>: Use a value from 400 to 700 */
    font-weight: 500;
    font-style: bold;
    font-size: 1.75rem;
 }

 a {
    color: #d3d3e2;
    text-decoration: none;
 }

 a:hover {
    color: aliceblue;
 }
/* END global styling */


/* START masthead styling */
h1.masthead {
    /* Use Google fonts for Kode Mono */
    font-family: "Kode Mono", monospace;
    /* Sets whether text rendering is optimized for viewing at different sizes */
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 1px;
}

h2.masthead {
    /* Use Google fonts for Kode Mono */
    font-family: "Kode Mono", monospace;
    /* Sets whether text rendering is optimized for viewing at different sizes */
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 2rem;
    margin-top: 1px;
    margin-bottom: 3px;
}

nav.masthead {
    font-size: 2.5rem;
    margin-top: 60px;
    margin-right: 30px;
}

div.masthead {
    background-color: black;
    position: sticky;
    top: -1px;
}

/* mobile nav toggle */
#nav-toggle {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    cursor: pointer;
    font-size: 2.5rem;
    color: #d3d3e2;
}

#nav-toggle input {
    display: none;
}

#nav-toggle span {
    display: block;
    width: 32px;
    height: 4px;
    margin: 6px;
    background: #d3d3e2;
    transition: 0.4s;
}

/* styling for mobile devices */
#nav-btn {
    display: none;
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10001;
    cursor: pointer;
}

#nav-btn span {
    display: block;
    width: 32px;
    height: 3px;
    margin: 6px;
    background: #d3d3e2;
    transition: 0.3s;
}

#nav-check {
    display: none;
}

@media (max-width: 768px) {
    header {
        position: relative;
        z-index: 10002;
    }

    nav.masthead {
        display: none;
        position: fixed;
        top: 72px;
        right: 12px;
        width: min(80vw, 360px);
        background: black;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        z-index: 10000;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
        border: 1px solid rgba(255, 255, 255, .08);
        pointer-events: auto;
    }

    #nav-btn {
        display: block;
    }

    #nav-check:checked ~ nav.masthead {
        display: flex;
    }

    #nav-check:checked + #nav-btn span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #nav-check:checked + #nav-btn span:nth-child(2) {
        opacity: 0;
    }

    #nav-check:checked + #nav-btn span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* END masthead styling */

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

    .media > div {
        width: 100% !important;
        height: auto !important;
    }

    body > p {
        max-width: 92vw;
        text-align: left;
        margin: 1rem auto 0;
    }
}

@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    iframe {
        max-width: 100%;
    }
}