:root {
    font-family: sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0 auto;
    max-width: 990px;
    transition: background-color 300ms linear;
    background-color: #fff;
    color: #1a1a1a;
}
.body--dark {
    background-color: #1a1a1a;
    color: #fff;
}
a {
    text-decoration: none;
    color: inherit;
}
a, button {
    outline-color: #def6c5;
}
.body--dark a, button {
    outline-color: #a6b893;
}

.header {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.3;
    font-weight: 600;
    font-size: 32px;
    margin: 0 10px;
}
.avatar {
    border-radius: 50%;
}
.title {
    position: relative;
    display: inline-block;
    z-index: 1;
}
.title::after {
    content: '';
    width: 100%;
    height: 40%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: #def6c5;
    z-index: -1;
}
.body--dark .title::after {
    background-color: #a6b893;
}
#dark-mode-button {
    cursor: pointer;
    background: none;
    border: none;
    height: 30px;
    padding: 0;
    margin-top: 4px;
}
.body--dark #dark-mode-button {
    color: #fff;
}

.projects {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 60px 0;
}
.project {
    min-height: 120px;
    padding: 40px 30px;
    border-radius: 6px;
    border: 1px solid transparent;
    box-shadow: 0 10px 20px rgb(0 0 0 / 5%), 0 6px 6px rgb(0 0 0 / 5%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    flex: 1 1 0;
    min-width: 220px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.project--disabled {
    opacity: .7;
    cursor: default;
}
.body--dark .project {
    border-color: #2e2e2e;
}
.project:not(.project--disabled):hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 10px 15px -3px rgb(0 0 0 / 10%),0 4px 6px -2px rgb(0 0 0 / 5%);
}
.project-content {
    display: flex;
    align-items: center;
    max-width: 300px;
}

.project__title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 500;
    position: relative;
}
.project__description {
    font-size: 16px;
    line-height: 1.4;
    color: #868686;
    font-weight: 400;
    margin-top: 4px;
}
.body--dark .project__description {
    color: #c1c1c1;
}
.project__stack {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 10px;
    color: #b4b4b4;
}
.project__icon {
    background-color: #f1f1f1;
    border-radius: 50%;
    font-size: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}.body--dark .project__icon {
    background-color: #333333;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 60px 10px;
    line-height: 1.6;
    color: #bababa;
}
.footer__link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    margin: 0 5px;
    padding: 2px 0;
}
.footer__link:hover {
    box-shadow: 0 2px 0 0 #def6c5;
}
.body--dark .footer__link:hover {
    box-shadow: 0 2px 0 0 #a6b893;
}
.divider {
    font-size: 12px;
    padding-top: 2px;
}

@media (max-width: 380px) {
    body {
        margin: 0;
    }
    .project {
        min-width: 120px;
        padding: 30px;
    }
}

@media (max-width: 320px) {
    #dark-mode-button, .avatar {
        display: none;
    }
    .header {
        justify-content: center;
    }
}