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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: grid;
}

nav.header {
    background-color: #f3f4f6;
    padding: 0.75rem;
}

.header .flex {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header .h-card {
    flex: 1;
}

.header .h-card a {
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: #333;
    margin: 0.75rem;
}

.header .h-card a:hover {
    color: #0066cc;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    background-color: white;
    border: 1px solid #64748b;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.nav-link a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.nav-link a:hover {
    color: #0066cc;
}

div.body {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;

}

.h-feed {
    max-width: 100%;
}

.post {
    background-color: oklch(92.9% 0.013 255.508);
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px;
}

.post:last-child {
    border-bottom: none;
}


a.no-underline {
    text-decoration: none;
}

.posted_on {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #0066cc;
    text-decoration: none;
}

.posted_on:hover {
    text-decoration: underline;
}

.posted_on time {
    color: inherit;
}

.post_body {
    font-size: 1rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.post_body p {
    margin-bottom: 1rem;
}

.post_body p:last-child {
    margin-bottom: 0;
}

.post_body code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.post_body pre {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
    border-left: 3px solid #ddd;
}

.post_body pre code {
    background: none;
    padding: 0;
}

.post_body a {
    color: #0066cc;
    text-decoration: none;

}

.post_body a:hover {
    text-decoration: underline;
}

.post_body strong {
    font-weight: 600;
}

.post_body img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    div.body {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    div.body div {
        width: 100%;
        max-width: 100vw;

    }
    .header .flex {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header .h-card a {
        font-size: 1.25rem;
        margin: 0.5rem;
    }
}
