/* Global styles */

:root {
    --primary-color: #315c56;
    --text-color: #222222;
    --background-color: #ffffff;
    --light-background: #f5f6f4;
    --container-width: 1160px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--background-color);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */

.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* Header */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

.custom-logo {
    max-height: 64px;
    width: auto;
}

.primary-navigation ul,
.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation a {
    color: var(--text-color);
}

/* Main content */

.site-content {
    min-height: 60vh;
}

/* Homepage hero */

.hero {
    padding: 100px 0;
    background: var(--light-background);
    text-align: center;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.1;
    margin: 8px 0;
}

.hero p {
    max-width: 650px;
    margin: 12px auto 24px;
}

.eyebrow {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Content sections */

.content-area {
    padding-top: 64px;
    padding-bottom: 64px;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.post-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.post-card h2,
.post-card h3 {
    line-height: 1.3;
}

.post-meta {
    color: #666666;
    font-size: 14px;
}

/* Buttons */

.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 4px;
}

.button:hover {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
}

/* Single pages and posts */

.entry-content {
    max-width: 800px;
}

.featured-image {
    margin-bottom: 24px;
}

/* Footer */

.site-footer {
    padding: 36px 0;
    background: #202725;
    color: #ffffff;
    text-align: center;
}

.site-footer a {
    color: #ffffff;
}

.site-footer p {
    margin-bottom: 0;
}

/* Responsive design */

@media (max-width: 760px) {

    .header-inner {
        padding-top: 16px;
        padding-bottom: 16px;
        align-items: flex-start;
        flex-direction: column;
    }

    .primary-navigation ul {
        gap: 12px 18px;
    }

    .hero {
        padding: 68px 0;
    }

    .post-list {
        grid-template-columns: 1fr;
    }

    .content-area {
        padding-top: 40px;
        padding-bottom: 40px;
    }

}