@font-face {
	font-family: Geist;
	src: url('/assets/fonts/Geist-VariableFont_wght.ttf');
	font-display: swap;
}

body {
    background-color: #EFF1F3;
    font-family: "Geist";
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 4.25rem;
}

nav > a {
    text-decoration: none;
    color: inherit;
}

nav > a:hover {
    opacity: 0.7;
}

nav > ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav > ul > li:not(:first-child) {
    padding-left: 20px;
}

nav > ul > li > a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

nav > ul > li > a:hover {
    opacity: 0.7;
}

main {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 8em;
}

.featured-article {
    margin-bottom: 5rem;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.featured-article h1 {
    line-height: 1;
    font-size: 4.5rem;
    margin: 0;
}

article h1 {
    font-size: 4.5rem;
    font-weight: 500;
    margin-top: 1.5rem;
    line-height: 1;
}

.featured-article p {
    font-size: 1.75rem;
}

.featured-article p {
    max-width: 920px;
}

.section-title {
    color: #333;
    text-transform: uppercase;
    align-items: center;
    display: flex;
    margin-bottom: 2.4rem;
    max-width: 720px;
    font-size: 0.8rem;
}

.section-title:after {
    background-color: #333;
    content: "";
    flex-grow: 1;
    height: 1px;
    margin-left: 1.3rem;
}

.featured-article h6,
.regular-article h6 {
    font-size: 1rem;
    line-height: 0;
    font-weight: normal;
    color: #333;
}

.regular-article {
    font-size: 1.25em;
    margin-bottom: 4em;
    max-width: 720px;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.regular-article:hover,
.featured-article:hover {
    opacity: 0.85;
}

.meta {
    color: gray;
    text-transform: uppercase;
}

.meta > span{
    color: black;
}

main img,
main picture {
    margin: 0 auto;
    display: block;
    max-width: 100%;
    height: auto;
}

main picture img {
    width: 100%;
    max-width: 920px;
    margin-bottom: 2rem;
}

article {
    font-size: 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

article h3 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

article h5 {
    font-size: 1.25rem;
    /*margin-top: 3rem;*/
    margin-bottom: 0;
}

article > div.meta {
    font-size: 1rem;
    align-self: flex-start;
}

article > div.content {
    line-height: 1.7;
    max-width: 720px;
}

article > div.content > p {
    margin-top: 0.75rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    /*align-items: center;*/
    /*margin-top: 3rem;*/
}

.pagination > .older-btn {
    margin-left: auto;
}

.pagination > a {
    border: 1px solid black;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.pagination > a:hover {
    background-color: lightgray;
    color: inherit;
}

footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}
