/* Basic styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    color: #333;
}

main {
    padding: 2rem 0;
}

h1 {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.content {
    margin-top: 2rem;
}

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

/* A preview slot, not the full page body — clamped to two lines regardless
   of how much text PlainTextSnippet's rune budget let through (#244). */
.article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Basic responsive design */
@media (max-width: 600px) {
    body {
        padding: 0.5rem;
    }
}

/* Content Grid for Homepage */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.content-card {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-card h3 {
    margin-top: 0;
}

.content-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.content-card h3 a:hover {
    color: #0066cc;
}

.content-excerpt {
    margin: 1rem 0;
    color: #666;
    line-height: 1.6;
}

.category-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.read-more {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.content-meta {
    margin-top: 1rem;
    color: #999;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.no-content {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

/* Blog Listing */
.blog-listing .content-list {
    margin: 2rem 0;
}

.blog-listing .content-item {
    border-bottom: 1px solid #eee;
    padding: 2rem 0;
}

.blog-listing .content-item:last-child {
    border-bottom: none;
}

.blog-listing .content-item h2 {
    margin-top: 0;
}

.blog-listing .content-item h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-listing .content-item h2 a:hover {
    color: #0066cc;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.button:hover {
    background: #0052a3;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* Navigation */
.main-navigation {
    margin-bottom: 2rem;
}


