:root {
    --main-bg-color: #282a36;
    --main-text-color: #f4e7ce;
    --header-text-color: #d58a00;
    --accent-color: orange;
    --accent-color-secondary: #ffcb6b;
    --link-color: rgb(249, 195, 94);
}

/* general styles */
html,
body {
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
}

body {
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
}

a {
    color: var(--link-color);
    font-weight: 600;
}

a:hover,
a:active,
a:focus {
    color: var(--accent-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--header-text-color);
}

p {
    margin: 1rem 0;
}

/* application header group  */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    padding: 1rem;
    padding-bottom: 1.4rem;
    margin: auto;
    max-width: 900px;
}

.header .logo {
    width: 40px;
    height: 40px;
}

.header .menu {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}

main {
    padding: 1rem;
    padding-top: 0;
    margin: auto;
    max-width: 900px;
}

/* Main page */
.intro-group {
    border-color: var(--accent-color);
    border-style: solid;
    border-width: 0 0 5px 10px;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;

    h1 {
        margin-bottom: 0;
    }

    & p {
        margin: 0;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .intro-group--info {
        display: inline-flex;
        justify-content: center;
        font-size: 0.9rem;
    }
    .intro-group--meta {
        display: flex;
        flex-direction: column;
        align-items: end;
        margin-bottom: 0.5rem;

        p {
            margin: 0;
        }
    }
}

.intro-group--subsection {
    padding: 0.8rem;

    text-align: end;
    border-color: var(--accent-color);
    border-style: solid;
    border-width: 5px 10px 0 0;

    p {
        margin: 0;
    }
}

.contact {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    .button {
        margin-top: 1rem;
        padding: 10px 15px;
        border: 1px solid var(--accent-color);
        text-decoration: none;
        text-transform: uppercase;

        &:hover,
        &:focus {
            background-color: var(--accent-color);
            border-color: var(--accent-color-secondary);
            color: var(--accent-color-secondary);
        }
    }
}

/* Recent posts page */
.post-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    gap: 1rem;
}

.post-item {
    border: 1px solid var(--accent-color-secondary);
    border-radius: 4px;
    padding: 1rem;
}

.post-item a {
    font-size: 1.3rem;
}

.post-item--meta {
    display: flex;
    justify-content: space-between;
}

.post-item--date {
    font-size: 0.9rem;
}

.post-item--read-time {
    display: inline-flex;
    justify-content: center;
    font-size: 0.9rem;
}

.material-symbols-outlined {
    font-size: inherit;
    line-height: inherit;
    margin-right: 0.2rem;
}
