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

body {
    color: #171717;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

a {
    color: #171717;
    text-decoration: none;
}

/* Page container */
.page-container {
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header styles */
.header {
    background-color: white;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.5rem 3.5rem;
    width: 100%;
}

.logo-section {
    color: #0c0a09;
    display: flex;
    font-size: 1.25rem;
    font-weight: 700;
    gap: 0.375rem;
    letter-spacing: -0.025em;
    line-height: 1;
}

.logo-image {
    aspect-ratio: 1;
    flex-shrink: 0;
    object-fit: contain;
    width: 34px;
}

.logo-text {
    flex-basis: auto;
    margin: auto 0;
}

.navigation {
    color: #171717;
    display: flex;
    font-size: 1rem;
    font-weight: 600;
    gap: 2rem;
    margin: auto 0;
    text-align: right;
}

.navigation a {
    text-wrap: nowrap;
}

/* Main content styles */
.main-content {
    color: #171717;
    display: flex;
    flex-direction: column;
    margin-top: 4rem;
    padding: 0 3.5rem;
    width: 100%;
}

.post-date {
    align-self: flex-start;
    font-size: 1rem;
    line-height: 1.5;
    margin-left: 5rem;
}

.post-title {
    align-self: flex-start;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-left: 4rem;
    margin-top: 1.5rem;
}

.post-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-left: 4rem;
    margin-top: 1.75rem;
    max-width: 100%;
    padding: 0;
}

.post-image {
    aspect-ratio: 2.01;
    border-radius: 0.375rem;
    object-fit: contain;
    width: 100%;
}

.post-content {
    align-self: center;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-inline: 4rem;
    margin-top: 2.25rem;
    max-width: 100%;
}

.content-heading {
    font-size: 1.5rem;
    font-weight: 700;
}

.recent-posts-title {
    align-self: center;
    color: #171717;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 5rem;
    text-align: center;
}

/* Recent posts section */
.recent-posts {
    align-self: center;
    margin-top: 1.75rem;
    max-width: 979px;
    padding: 0 1.25rem;
    width: 100%;
}

.posts-grid {
    display: flex;
    gap: 1.25rem;
}

.post-card {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.post-card-image {
    aspect-ratio: 1.33;
    border-radius: 0.375rem;
    object-fit: contain;
    width: 100%;
}

.post-card-date {
    align-self: flex-start;
    color: black;
    font-size: 0.875rem;
    margin-top: 0.875rem;
}

.post-card-title {
    align-self: flex-start;
    color: #171717;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0.875rem;
}

.post-card-preview {
    color: #525252;
    font-size: 1rem;
    line-height: 1.25;
    margin-top: 0.625rem;
}

/* Footer styles */
.footer {
    align-items: center;
    background-color: #262626;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    justify-content: center;
    margin-top: 3rem;
    overflow: hidden;
    padding: 2.25rem 5rem;
    text-align: center;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 150px;
}

.footer-title {
    color: #e5e7eb;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
}

.footer-copyright {
    align-self: center;
    color: #d4d4d8;
    line-height: 1;
}

/* Tablet Screen */
@media (max-width: 768px) {
    .header-content {
        padding: 1.5rem 1.25rem;
    }

    .main-content {
        margin-top: 2.5rem;
        padding: 0 1.25rem;
    }

    .post-date {
        margin-left: 0.625rem;
    }

    .post-title {
        margin-left: 0;
        max-width: 100%;
    }

    .post-description {
        margin-left: 0;
        max-width: 100%;
    }

    .post-content {
        max-width: 100%;
    }

    .recent-posts-title {
        margin-top: 2.5rem;
    }

    .recent-posts {
        padding: 0 1.25rem;
    }

    .posts-grid {
        flex-direction: column;
        gap: 0;
    }

    .post-card {
        margin-top: 1.75rem;
    }

    .post-card:first-child {
        margin-top: 0;
    }

    .footer {
        margin-top: 2.5rem;
        max-width: 100%;
        padding: 2.25rem 1.25rem;
    }
}

/* Mobile Screen */
@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .navigation {
        justify-content: center;
    }

    .post-title {
        font-size: 1.875rem;
    }

    .recent-posts {
        max-width: 100%;
        padding: 0 1.25rem;
    }
}
