:root {
    --accent: #1f8e17;
    --whiteish: #f9f9f9;
    --blackish: #333;
    --greyish: #676;
    --highlight: #cdd0a6;
    --main-dark: #0a3d2c;
    --main-light: #b1d0a6;
    --translucent: #6a8d5e80;
    --text-shadow: 0px 0px 0.2em var(--main-dark);
}

/* Basic Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

:link {
    color: var(--accent);
    text-decoration: none;
}

body {
    width: 100vw;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: var(--blackish);
    background: var(--whiteish);
}

object {
    pointer-events: none;
}

nav {
    position: relative;
}

h1, h2, h3, h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

h4 {
    color: var(--greyish);
    font-style: italic;
}

p {
    margin-bottom: 0.5rem;
}

#logo {
    max-width: 100%;
    max-height: 40vh;
}

.site-header,
.site-footer {
    color: white;
    text-align: left;
    padding: 1rem;
    background: linear-gradient(
        120deg,
        var(--main-dark) 0%,
        var(--highlight) 30%,
        var(--main-dark) 100%
    );
}

.site-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100vw;
    box-shadow: inset 0px 0px 4rem 0.7rem var(--main-light);
}

.site-footer {
    margin-top: 2rem;
    box-shadow: inset 0em -0.5rem 2rem 0.3rem var(--main-light);
}

.site-footer p {
    margin: 0;
    text-shadow: 1px 1px 2px black, var(--text-shadow);
}

#nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    text-shadow: var(--text-shadow);
}
.nav-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    max-width: 100%;
}
.nav-list a {
    color: white;
    text-align: left;
    text-shadow: var(--text-shadow);
    font-size: 1.5rem;
}

.section {
    padding: 2rem 1rem 0rem 1rem;
    max-width: 50rem;
    margin: 0rem auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    list-style-position: inside;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.project-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 0.8rem;
}

@media (max-width: 50rem) {
    .site-header,
    .site-footer {
        text-align: center;
        display: block;
    }

    #nav-toggle {
        display: block;
    }
    .nav-list {
        position: absolute;
        top: 100%;
        left: 10%;
        padding: 1rem;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        background-color: transparent;
        border-radius: 0.3rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        opacity: 0%;
        text-shadow: var(--text-shadow);
        backdrop-filter: blur(0.4em);

        transition:
            all 0.3s,
            background-color 1.2s;
    }
    .nav-list.show {
        background-color: var(--translucent);
        opacity: 100%;
    }
}
