:root {
    --default-hero-background: #eee;
    --navigation-background: #222;
    --navigation-foreground: #dedede;
    --footer-background: #222;
    --footer-foreground: #dedede;
}

/* 
.atkinson-hyperlegible-next-<uniquifier> {
font-family: "Atkinson Hyperlegible Next", sans-serif;
font-optical-sizing: auto;
font-weight: <weight>;
font-style: normal;
} 
*/

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

html, body {
    font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-optical-sizing: auto;
    font-size: 21px;
    font-style: normal;
    font-weight: 420;
    line-height: 1.25rem;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

h1 {
    line-height: 1.8rem;
}

main {
    min-height: calc(100vh - 9.5rem);
}

nav {
    background-color: var(--navigation-background);
    color: var(--navigation-foreground);
    padding: 1rem;

    div.logo {
        line-height: 1rem;
        margin: 0;
        padding: 0;

        img {
            height: 26px;
        }
    }
}




section {
    div.content {
        padding: 2rem 1rem;
    }
}

section.hero {
    background-color: var(--default-hero-background);
    
    div.content {
        padding: 3rem 1rem;
    }
}

section.small-hero {
    background-color: var(--default-hero-background);
    
    div.content {
        padding: 2rem 1rem;
        
        h1 {
            margin-bottom: 0.5rem;
        }

        p {
            color: #444;
        }
    }
}

footer {
    background-color: var(--footer-background);
    color: var(--footer-foreground);
    padding: 2rem 1rem;
    text-align: center;
}

p, ul {
    margin-bottom: 1rem;
}

p:last-child,
ul:last-child {
    margin-bottom: 0;
}

ul {
    margin-left: 1rem;

    li {
        margin: 0.25rem 0rem;
    }
}



@media (min-width: 720px) {
    section {
        div.content {
            margin: 0 auto;
            max-width: 40rem;
        }
    }
}



/* ------------------------------------------- */

/* Navbar Container; Adds to initial <nav> CSS above */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Nav Links - Desktop Default */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--navigation-foreground);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffea00;
}

/* Hide Checkbox and Hamburger Icon on Desktop */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--navigation-foreground);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Responsive Styles */
@media (max-width: 720px) {
    .hamburger {
        display: flex;
        z-index: 10;
    }
    
    /* Transform links into a mobile slide-out menu */
    .nav-links {
        position: absolute;
        top: 0;
        right: -100vw;
        background-color: var(--navigation-background);
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        padding-top: 4rem;
        gap: 2rem;
        
        /* Initially hide the menu off-screen */
        transition: right 0.3s ease-in-out;
    }
    
    /* TRIGGER 1: When checkbox is checked, slide the menu into view */
    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }
    
    /* TRIGGER 2: Turn the hamburger icon into an "X" when checked */
    .menu-toggle:checked ~ .hamburger .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle:checked ~ .hamburger .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .hamburger .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
