.home {
    max-width: 80em;
    margin: auto;
    padding: 0em 5em;

    margin-top: 60px;
    margin-bottom: 2em;
}

@media screen and (max-width: 900px) {
    .home {
        padding: 0em 1em;
    }
}

#home-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title text */
.title-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
}


.title-text img {
    width: 3em;
    height: 3em;
}

@media screen and (max-width: 25em) {
    .title-text {
        flex-direction: column;
    }

    .title-text h1 {
        text-align: center;
    }
}

#home-title-container > p {
    text-align: center;
    margin: 0;
    color: var(--text-secondary)
}

/* Article cards */
#articles {
    margin-top: 2em;

    background-color: var(--box-color);
    border: 1px solid var(--box-border-color);
    border-radius: var(--border-radius);
    width: 100%;
    min-height: 75vh;

    padding: 1em;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
    grid-auto-rows: max-content;
    align-items: start;
    justify-content: start;

    gap: 1em;
}

#articles a {
    text-decoration: none;
}

.card {
    background-color: var(--background);
    border: 1px solid var(--box-border-color);
    border-radius: var(--border-radius);

    height: auto;
    min-height: 16em;
    overflow: hidden;
}

/* Card Contents */
.card > img {
    display: block;
    width: 100%;
    height: 10em;
    object-fit: cover;
    border-bottom: 1px solid var(--box-border-color);
    margin: 0;
}

/* Card Info */
.article-card-info * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .article-card-info {
    margin-top: 0.3em;
    padding: 0.1em 0.3em;
    height: calc(100% - 8em);
}



.card .article-card-info .article-card-title {
    margin: 0;
    font-family: "Satoshi-Medium",
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;;
}

.article-publishing-info {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-publishing-info > * {
    color: var(--text-secondary);
}