/* Basic reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f1f1f;
    background-color: #f5f5f5;
    line-height: 1.5;
}

/* Layout container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.header-inner {
    min-height: 108px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    display: block;
    width: auto;
    max-width: 240px;
    max-height: 64px;
}

.header-title-wrap {
    display: flex;
    align-items: center;
}

.page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
}

/* Main */
.site-main {
    padding: 42px 0 56px;
}

/* Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Tile */
.news-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border: 1px solid #dddddd;
}

.news-tile:hover,
.news-tile:focus,
.news-tile:active,
.news-tile:visited {
    text-decoration: none;
    color: inherit;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: #666666;
}

.news-extension {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #222222;
}

.news-date {
    white-space: nowrap;
    text-align: right;
}

.news-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #121212;
    word-break: break-word;
}

/* Empty state */
.empty-state {
    padding: 32px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-title {
        font-size: 1.7rem;
    }

    .site-logo {
        max-width: 210px;
    }
}

@media (max-width: 680px) {
    .header-inner {
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .news-date {
        text-align: left;
        white-space: normal;
    }

    .container {
        padding: 0 16px;
    }
}