:root {
    --light-color: #e2cee0;
    --dark-color: #670067;
    --light-color-complementary: #cee2d0;
    --subtle-color: #d9d7d9;
    --subtle-color-darker: #6c6b6c;
}
html {
    font-family: Arial, Helvetica, sans-serif;
    * {
        margin: 0;
    }
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: auto;
    &:has(.lock-scroll:hover) {
        overflow: hidden;
    }
}
header, footer {
    min-height: 2rem;
    padding: 1rem 0;
    z-index: 4;
    h1 {
        color: var(--dark-color);
    }
}
header {
    background-color: var(--light-color);
    display: flex;
    justify-content: space-between;
}
h1 {
    margin-left: 1rem;
}
footer {
    width: 100%;
    flex: auto;
    text-align: center;
    background-color: var(--light-color-complementary);
    p {
        margin-inline: 1rem;
    }
}
main {
    margin-bottom: 6rem;
}
h1,
h2,
h3 {
    color: var(--dark-color);
}
a:link {
    text-decoration: none !important;
}
/*article preview*/
.article-preview {
    box-shadow: 0 0 0.75rem var(--subtle-color);
    border-radius: 1rem;
    margin: 2rem auto;
    width: 90%;
    min-height: 25%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    h2 {
        padding: 1rem;
        height: fit-content;
    }
    time {
        padding: 1rem;
        height: fit-content;
        text-align: right;
        color: black;
    }
    p {
        grid-column: 1 / 3;
        padding: 0 1rem;
        color: black;
    }
    address {
        grid-column: 1 / 3;
        padding: 0.5rem 1rem;
        text-align: right;
        color: black;
    }
    &:hover {
        box-shadow: 0 0rem 1rem var(--subtle-color-darker);
    }
}
.login-button {
    margin-right: 1rem;
    padding: 0.5rem;
    background-color: white;
    border: none;
    border-radius: 5px;
    color: var(--dark-color);
    &:hover {
        transition: transform 150ms ease;
        transform: scale(1.125);
    }
}
.menu-check, .menu-img {
    display: none;
}
.collapsable {
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    float: right;
    a {
        color: white;
    }
}
.collapsable-item {
    margin-block: auto;
}
@media screen and (max-width: 992px) and (max-height: 576px) {
    footer {
        position: static;
    }
}
@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.9rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .menu-check:checked ~ .collapsable {
        max-height:300px;
    }
    .menu-img {
        display: block;
        height: 2rem;
        margin-right: 1rem;
    }
    .collapsable {
        max-height: 0;
        margin-top: 1rem;
        position: absolute;
        right: 0;
        overflow: hidden;
        flex-direction: column;
        gap: 0;
        height: auto;
        background-color: var(--light-color);
    }
    .login-button {
        background-color: var(--light-color);
        padding: 0;
        margin-right: 0;
        font-size: x-large;
    }
    .collapsable-item {
        margin: 0.25rem 1rem;
        font-size: x-large;
        &:last-child{
            margin-bottom: 1rem;
        }
    }
    .article-preview {
        h2 {
            grid-column: 1 / 3;
        }
        time {
            display: none;
        }
    }
    p, address, time {
        font-size: x-large;
    }
}
