@font-face {
	font-family: infprofont;
	src: url('../font/MerriweatherSans-Regular.ttf');
}

@font-face {
	font-family: infprofontbold;
	src: url('../font/MerriweatherSans-Bold.ttf');
}

@font-face {
	font-family: infprofontlight;
	src: url('../font/MerriweatherSans-Light.ttf');
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: infprofontlight, "lucida grande", tahoma, verdana, arial, sans-serif;
    letter-spacing: 0.12ex;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #222;
}

/* Header */
.page-header {
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.page-header h1 {
    font-size: 2em;
    margin-bottom: 0.5rem;
}

.page-header h1 a img{
    height: 2.5em;
    transform: rotate(-10deg);
}

/* Layout */
main {
    padding: 2rem 1rem;
}

.articles-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Card */
.article-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.article-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.1)
    );
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.article-overlay p {
    color: white;
    font-size: 1rem;
    line-height: 1.4;
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 1rem;
    color: #666;
}
