:root {
    --c-green-100: #D9E4DD;
    --c-green-200: hsl(142, 17%, 62%);
    --c-green-300: hsl(142, 17%, 37%);
    
    --c-beige-100: #FBF7F0;
    --c-beige-200: hsl(38, 58%, 71%);
    --c-beige-300: hsl(38, 58%, 46%);

    --c-dust-100: #CDC9C3;
    --c-dust-200: hsl(36, 9%, 53%);
    --c-dust-300: hsl(36, 9%, 28%);

    --c-gray-100: #555555;
    --c-gray-200: hsl(0, 0%, 8%);
}

:focus {
    outline-color: var(--c-beige-200);
    outline-offset: 0.4rem;
    outline-style: dashed;
    outline-width: medium;
}

div, nav {
    box-sizing: border-box;
}

::selection {
    color: var(--c-green-100);
    background: var(--c-beige-300);
}

body {
    margin: 0;
    padding: 0;
    background: var(--c-beige-100);
    font-family: Arial, sans-serif;
    font-family: 'Zilla Slab', serif;
    font-weight: 300;
}

.article {
}

.article a,
.error-404__link {
    color: var(--c-beige-300);
    text-decoration: none;
    position: relative;
}

.article a:after,
.error-404__link:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 40%;
    width: 0;
    height: 2px;
    background: var(--c-gray-100);
    transition: all 0.3s;
}

.article a:hover:after,
.error-404__link:hover:after {
    width: 100%;
    left: 0;
}

.article blockquote {
    border-left: 0.5rem solid var(--c-green-100);
    margin: 0 0 0 1rem;
    padding: 0 0 0 1rem;
}

.article img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.article p,
.article ul,
.article blockquote {
    line-height: 1.3rem;
    font-size: 1.1rem;
}

.article h1,
.article h2,
.article h3,
.article h4,
.article h5 {
    color: var(--c-green-300);
}

.article h1 {
    font-size: 2rem;
}

.article h2 {
    font-size: 1.8rem;
}

.article h3 {
    font-size: 1.6rem;
}

.article h4 {
    font-size: 1.4rem;
}

.article h5 {
    font-size: 1.2rem;
}

.article__text {}

.article__read-more {
    margin-top: 2rem;
    padding-top: 1rem;
    display: flex;
    align-items: start;
    justify-content: space-between;
    border-top: 1px solid var(--c-green-100);
}

.article-item {
    position: relative;
    text-align: left;
    display: block;
    white-space: nowrap;
    margin: 0.5rem 0;
}

.article-item__content {
    position: relative;
}

.article-item__links {
    display: flex;
    min-height: 2.5rem;
    margin: 0 0 0 4rem;
    align-items: center;
}

.article-item__content:before {
    position: absolute;
    width: 1rem;
    height: 1rem;
    content: "";
    display: block;
    background: var(--c-green-100);
    border-radius: 0.5rem;
    left: 1rem;
    transform: translate(-0.2rem, 0.8rem);
}

.article-item__content .label {
    opacity: 0;
    transition: opacity 0.4s;
}

.article-item__content:hover .label {
    opacity: 1;
}

.article-item__day {
    position: absolute;
    width: 2.5em;
    height: 2.5em;
    line-height: 2.5em;
    text-align: center;
    display: inline-block;
    background: var(--c-green-100);
    border-radius: 100vmax;
    padding: 0;
    color: var(--c-green-200);
    vertical-align: middle;
    box-sizing: border-box;
}

.article-item__link {
    position: relative;
    display: inline;
    margin-right: 1rem;
    padding: 0.1rem;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Zilla Slab', sans-serif;
    color: var(--c-gray-100);
    vertical-align: middle;
    white-space: break-spaces;
}

.article-item__link:after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    content: "";
    height: 2px;
    background: var(--c-beige-300);
    transition: all 0.2s;
}

.article-item__link:hover:after {
    width: 100%;
    left: 0;
}

.label {
    display: inline-block;
    height: 1rem;
    padding: 0.2rem 0.5rem;
    line-height: 1rem;
    font-size: 0.8rem;
    text-align: center;
    color: var(--c-dust-100);
    background: var(--c-gray-100);
    border-radius: 0.3rem;
    transition: color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.label--category {}

.label--reading-time {
    color: var(--c-gray-100);
    background: var(--c-dust-100);
}

.label--published-at {
    color: var(--c-dust-200);
    background: var(--c-green-100);
}

.label--edit {
    vertical-align: middle;
    color: var(--c-dark-100);
    background: var(--c-green-100);
    display: inline-block;
    border-radius: 0.2rem;
    padding: 0 0.2rem;
    text-decoration: none;
}

.label--edit:after {
    display: none;
}

.label--edit:hover {
    text-decoration: none;
}

a.label:hover {
    color: var(--c-beige-100);
}

.articles {
    animation: fadein 1s ease-in forwards;
}

.articles__list {
    margin-top: 1rem;
    text-align: center;
    padding: 0 1.5rem;
}

.articles__search {
    display: block;
    max-width: 90%;
    margin: 0 auto;
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 2vmax;
    background: var(--c-green-100);
    color: var(--c-green-200);
    box-sizing: border-box;
}

.articles__search::placeholder {
    color: var(--c-beige-100);
}

.category-labels {
    margin: 1rem auto;
    text-align: center;
}

.category-labels__item {
    display: inline-block;
    margin: 0.2rem;
    color: var(--c-dust-100);
    transition: 0.2s all;
}

.category-labels__item:hover {
    color: var(--c-gray-100);
}

.divider {
    font-size: 2rem;
    font-weight: bold;
    background: transparent;
    text-transform: capitalize;
    color: var(--c-gray-100);
}

.divider--year {
    margin: 0 0 1rem 0;
    text-align: center;
    font-size: 2.4rem;
    color: var(--c-green-200);
}

.divider--month {
    margin: 0 0 1rem 0;
}

.header {
    font-size: 6rem;
    font-weight: 100;
    text-align: center;
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    color: var(--c-dust-100);
}

.header__accent {
    color: var(--c-gray-100);
    background: var(--c-beige-200);
}

.info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-flow: row-reverse;
}



.loading {
    position: fixed;
    top: calc(50% - 2.5rem);
    left: calc(50% - 2.5rem);
    width: 5rem;
    height: 5rem;
    transition: transform 0.2s;
    animation: load 6s infinite linear;
    background: var(--c-beige-300);
    border-radius: 0.3rem;
}

.loading:before,
.loading:after {
    position: absolute;
    width: 5rem;
    height: 5rem;
    content: "";
    animation: load 1.5s infinite linear;
    background: var(--c-beige-100);
    border-radius: 0.3rem;
}

.loading:before {
    background: var(--c-beige-200);
    animation: load 3s infinite linear;
}

@keyframes fadein {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

@keyframes load {
    0% {transform: rotate(0);}
    100% {transform: rotate(360deg);}
}






.error-404 {
    text-align: center;
}

.error-404__header {
    font-size: 13rem;
    margin: 0;
    text-align: center;
    font-weight: bold;
    user-select: none;
    color: var(--c-green-100);
}

.error-404__text {
    font-size: 2rem;
}

.error-404__link {
    text-decoration: none;
    color: var(--c-beige-200);
    font-weight: 600;
}

.main {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-beige-100);
}

.material-symbols-outlined {
    vertical-align: middle;
}

.footer {
    height: 3.5rem;
    padding: 1rem;
    background: var(--c-gray-100);
    color: var(--c-dust-100);
    text-align: center;
}

.footer__link {
    float: right;
    color: var(--c-beige-200);
}

.footer__link:hover {
    float: right;
    color: var(--c-beige-100);
}

.wrapper {
    padding: 0 1rem;
    max-width: clamp(20rem, 50%, 40rem);
    min-height: calc(100% - 9.5rem);
    margin: 5rem auto 1rem;
}

.subheader {

}

.signature {
    text-align: right;
}

.portrait {
    width: 15rem;
    height: 15rem;
    margin: 0 auto;
    overflow: hidden;
    transform: rotate(-12deg);
    border-right-width: 0;
    border-top-width: 0;
}

.portrait__image {
    display: block;
    height: 120%;
    max-width: inherit !important;
    margin: 0;
    display: block;
    transform: rotate(12deg) translate(-1rem, 1rem);
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    top: 0;
    text-align: right;
    z-index: 3;
}

.menu__header {
    text-decoration: none;
    user-select: none;
    margin-left: 1rem;
    font-size: 1.5rem;
    font-weight: 100;
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    color: var(--c-dust-100);
}

.menu__navigation {}

.menu__link {
    display: block;
    text-decoration: none;
    font-size: 1.5rem;
    text-align: center;
    padding: 0.5rem 1rem;
    line-height: 1.5em;
    color: var(--c-gray-100);
    transition: background 0.2s;
    float: left;
}

.menu__link:hover {
    color: var(--c-gray-100);
    background: var(--c-green-100);
}

.menu__link:focus {
    outline-offset: -6px;
}

.menu__link--active {
    color: var(--c-green-200);
}

@media screen and (max-width: 1024px)
{
    .wrapper {
        max-width: 60%;
    }

    .menu {
        background: var(--c-beige-100);
        border-bottom: 1px solid var(--c-dust-100);
    }
}

@media screen and (max-width: 800px)
{
    .wrapper {
        max-width: 70%;
    }

    .header {
        font-size: 5rem;
    }
}

@media screen and (max-width: 480px)
{
    .wrapper {
        max-width: 100%;
    }

    .header {
        font-size: 4rem;
    }

    
}