main nav {
    display: grid;
    grid-template-columns: auto;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    width: 100%;
    gap: 2em;
}

@media (min-width: 1200px) {
    main nav {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

main nav section {
    display: flex;
    flex-direction: column;
    margin-top: 1em;
    margin-bottom: 1em;
}

h2 {
    font-size: x-large;
    line-height: normal;
    margin: 0 0 0.5em;
}

p {
    margin: 0;
}

section a {
    all: unset;
    padding: 1em 0;
    font: inherit;
}

section a:hover {
    cursor: pointer;
    background-color: unset;
}

section a p {
    color: var(--secondary-text-color);
}

@media (prefers-color-scheme: dark) {
    section a p {
        color: var(--primary-text-color-dark);
    }
}

section img {
    height: 140px;
    width: 100%;
    display: block;
    margin-bottom: 1em;
    object-fit: cover;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    section img {
        height: 170px;
    }
}

section img.light-bordered {
    border: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
    section img.light-bordered {
        border: none;
    }

    section img.dark-bordered {
        border: 1px solid var(--border-color-dark);
    }
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

header h1 {
    height: 0px;
    width: 0px;
    overflow: hidden;
    margin: unset;
}

.subscribe-panel {
    margin-top: 0.5em;
}
