@keyframes workLight {
    25% {
        background: #00c950;
        border: solid 3px #bee6ce;
    }
    50% {
        background: #00c95088;
        border: solid 1px #bee6ce;
    }
    75% {
        background: #00c950;
        border: solid 3px #bee6ce;
    }
}

:root {
  --bg-color: #00000011;
  --text-color: #000000dd;
  --sub-bg-color: #00000011;
  --sub-text-color: #000000aa;
}

html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.1rem;
}

body {
    margin: 1rem auto;
    padding: 0 1rem;
    max-width: 75ch;
    background-color: var(--bg-color);
    color: var(--text-color);
}

h2 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.4rem;
    margin: 1.6em 0 0.6em;
}

h3 {
    margin: 0.6em 0 0.1em;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: var(--sub-text-color) 2px solid;
}

/* Intro */

.little-guy {
    position: relative;
    font-size: 2rem;
}

.small-hand {
    position: absolute;
    font-size: 0.4em;
    bottom: 1em;
    left: -0.6em;
}

.my-name {
    font-weight: 800;
}

.work {
    display: flex;
    gap: 6px;
    align-items: center;
}

.work > div {
    width: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.work .work-light {
    position: absolute;
    background: #00c950;
    width: 6px;
    height: 6px;
    border: solid 4px #bee6ce;
    border-radius: 50%;
    animation-name: workLight;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.work > p {
    font-size: 0.8em;
    color: var(--sub-text-color);
}

.aside {
    position: relative;
    font-size: 0.80em;
    top: -0.06em;
    color: var(--sub-text-color);
}

.aside a {
    border-bottom: var(--sub-text-color) 1px dotted;
}

/* Stack */

#stack ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
}

#stack li {
    display: flex;
    background-color: var(--sub-bg-color);
    width: max-content;
    gap: 0.4em;
    align-items: center;
    padding: 0.2em 0.6em;
    border-radius: 6em;
    color: var(--sub-text-color);
}

/* Projects */

#all-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.project {
    padding: 0 0.8em;
    border-radius: 8px;
    border: solid 2px var(--sub-bg-color);
    transition: box-shadow 0.1s ease;
    position: relative;
    display: inline-block;
    height: 100%;
}

.project a {
    display: block;
}

.project p {
    margin: 0 0 0.2em;
    font-size: 0.8em;
}

.project p:first-of-type {
    color: var(--sub-text-color);
}

.project p:last-of-type {
    margin-bottom: 0.4em;
}

.project svg {
    position: absolute;
    top: 1rem;
    right: 1rem;
    fill: var(--sub-bg-color);
    opacity: 0;
    transition: opacity 0.1s ease;
}

.project:hover {
    box-shadow: 1px 1px var(--sub-bg-color);
}

.project:hover svg {
    display: block;
    opacity: 1;
}

/* Experience */

.all-experience {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job {
    padding: 0 1em;
    background-color: var(--sub-bg-color);
    border-radius: 8px;
}

.job p {
    margin: 0 0 0.2em;
    font-size: 0.8em;
    color: var(--sub-text-color);
}

.job ul {
    padding-left: 1em;
    margin-top: 0;
}

.job li {
    font-size: 0.8em;
}

/* Connect */

#connect ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
}

#connect li {
    width: max-content;
    gap: 0.2em;
}

#connect ul a {
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.2em 0.6em;
    border-radius: 6em;
    border: solid 2px var(--sub-bg-color);
    transition: box-shadow 0.1s ease;
}

#connect ul a:hover {
    box-shadow: 1px 1px var(--sub-bg-color);
}

/* Footer */

footer .little-guy {
    font-size: 0.6em;
    color: var(--sub-text-color);
    margin: 2rem auto;
    border: none;
}

/* Media */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (width <= 675px) {
    #all-projects {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
    }
}