html {
    background-color: black;
    background-image:
            radial-gradient(
                rgba(0, 150, 0, 0.75), black 120%
            );
    background-attachment: fixed;
}

body {
    background: transparent;
    height: 100vh;
    color: white;
    font: 1.3rem Inconsolata, monospace;
    text-shadow: 0 0 5px #C8C8C8;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
            0deg,
            rgba(26,198,204,0.15),
            rgba(26,198,204,0.15) 1px,
            transparent 1px,
            transparent 2px
    );
    pointer-events: none;
}

::selection {
    background: #0080FF;
    text-shadow: none;
}

a {
    color: white;
    transition: text-shadow 0.2s ease, color 0.2s ease;
}

a:hover {
    text-shadow: 0 0 8px #00ff00;
    color: #aaffaa;
}

.section-title {
    font-size: 1.8rem;
}

.photo-caption {
    font-size: 0.85rem;
}

.headshot {
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 0 0 0 auto;
}

.top-text {
    margin-top: 30px;
}

.left-text {
    font-size: 0.75rem;
    line-height: 0.5;
    text-align: right;
    padding-right: 30px;
    position: relative;
    z-index: 100;
}

.middle-box {
    position: absolute;
    left: 20%;
    top: 160px;
    text-align: right;
    margin-right: 5%;
    width: 55%;
}

/* fade mask at top so content doesn't clash with fixed nav */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0, 60, 0, 1) 50%, transparent 100%);
    z-index: 99;
    pointer-events: none;
}

/* offset anchor scroll targets so they don't hide under fixed nav */
#bio, #journalism, #firstlast, #misc {
    scroll-margin-top: 50px;
}

/* desktop nav */
.desktop-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1rem;
    z-index: 100;
}

.desktop-nav a {
    margin-right: 1.2rem;
    text-decoration: none;
    color: white;
}

.desktop-nav a:hover {
    text-shadow: 0 0 8px #00ff00;
}

/* hamburger (hidden on desktop) */
.hamburger {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 600px) {
    body {
        font-size: 1rem;
        height: auto;
        min-height: 100vh;
    }

    body::after {
        height: 100%;
    }

    .left-text {
        display: none;
    }

    .middle-box {
        position: static;
        width: auto;
        margin: 20px 15px;
        text-align: left;
        padding: 0;
    }

    .headshot {
        max-width: 220px;
        margin: 0 auto;
    }

    .photo-caption,
    .divider,
    .contact {
        text-align: center;
    }

    .desktop-nav {
        display: none;
    }

    .middle-box {
        padding-top: 55px;
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        font-size: 1.6rem;
        cursor: pointer;
        z-index: 100;
        text-shadow: 0 0 8px #00ff00;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 45px;
        right: 15px;
        background: white !important;
        color: #007700;
        text-shadow: none;
        border: 1px solid rgba(0,150,0,0.6);
        border-radius: 8px;
        padding: 0.8rem 1.2rem;
        z-index: 1000;
        flex-direction: column;
        gap: 0.6rem;
        font-size: 1rem;
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-menu a {
        text-decoration: none;
        color: #007700;
        text-shadow: none;
    }

    .mobile-menu a:hover {
        color: #00aa00;
    }
}


