/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set up fluid layout and dark theme */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #b0b0b0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Header styling */
header {
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
}

.header-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    flex: 0 0 96px;
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-image {
    width: 96px;
    height: 96px;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-link:hover .logo-image {
    content: url('/images/ignis_website_hover.png');
}

header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #b0b0b0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
}

.logo-spacer {
    flex: 0 0 96px;
}

/* Site title link styling */
.site-title {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: #f0c420;
    text-decoration: none;
}

/* Main content area */
main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Footer styling */
footer {
    padding: 2rem 1rem;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.875rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Link styling */
a {
    color: #d4a017;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f0c420;
    text-decoration: underline;
}

/* Byline styling */
.byline {
    font-style: italic;
    font-size: 0.85rem;
    color: #888;
    margin: 0.5rem 0 1rem 0;
}
.email {
    unicode-bidi: bidi-override;
    direction: rtl;
    color: #b8941f;
}

/* Blog list styling */
.blog-list {
    margin: 2rem 0;
}

.blog-entry {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid #333;
}

.blog-entry:last-child {
    border-bottom: none;
}

.blog-entry h3 {
    margin: 0 0 0.75rem 0;
}

.blog-entry h3 a {
    color: #d4a017;
    text-decoration: none;
}

.blog-entry h3 a:hover {
    color: #f0c420;
}

/* Preview text with fade-out effect */
.preview {
    margin: 0.75rem 0;
    color: #999;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    mask: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #d4a017;
    text-decoration: none;
}

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

/* Pagination styling */
.pagination {
    margin: 3rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination a {
    color: #d4a017;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    color: #f0c420;
    border-color: #d4a017;
    background-color: rgba(212, 160, 23, 0.1);
}

.newer-link {
    margin-right: auto;
}

.older-link {
    margin-left: auto;
}

/* Article styling */
article {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

article h1 {
    color: #d4a017;
    margin: 2rem 0 1rem 0;
}

article h2, article h3, article h4, article h5, article h6 {
    color: #b0b0b0;
    margin: 1.5rem 0 0.75rem 0;
}

article p {
    margin: 1rem 0;
}

/* Article image styling */
.article-image {
    margin: 2rem 0;
    text-align: center;
    display: block;
    width: 100%;
}

.article-image img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border: 1px solid #333;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 1rem;
    }
    
    footer {
        padding: 1rem;
        font-size: 0.75rem;
    }
}