/* Reset & Basics */
:root {
    --bg-color: #ffffff;
    --text-color: #0f172a; /* Slate 900 */
    --link-color: #1e3a8a; /* Navy Blue */
    --hover-color: #2563eb; /* Royal Blue */
    --meta-color: #64748b;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 18px;
}

/* Layout */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header.site-header {
    margin-bottom: 50px;
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 20px;
}

header.site-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

header.site-header h1 a {
    color: var(--link-color);
    text-decoration: none;
}

header.site-header p {
    margin-top: 5px;
    color: var(--meta-color);
    font-size: 0.9rem;
}

/* Date Headers */
.date-header {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-top: 50px; 
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0; 
    padding-bottom: 5px;
}

/* Remove huge top margin from the first article of the day */
.date-header + article {
    margin-top: 0;
}

/* Posts */
article {
    margin-bottom: 50px;
}

/* Headlines */
h2.post-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

h2.post-title a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

h2.post-title a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

/* Link Post Styling */
.link-arrow {
    color: var(--link-color);
    font-weight: bold;
}

/* Content */
.post-content {
    margin-top: 10px;
}

.post-content a {
    color: var(--link-color);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--hover-color);
}

.post-content p {
    margin-bottom: 1.2em;
}

.post-content blockquote {
    border-left: 3px solid var(--link-color);
    margin-left: 0;
    padding-left: 15px;
    color: var(--meta-color);
    font-style: italic;
}

/* The Permalink Hash (#) */
.permalink-star {
    display: block;
    text-align: left; /* Left Aligned */
    margin-top: 15px;
    font-size: 1.3rem;
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}

.permalink-star:hover {
    color: var(--hover-color);
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
.pagination a {
    color: var(--link-color);
    margin: 0 10px;
    text-decoration: none;
}

/* ==========================================================================
   GHOST EDITOR / KOENIG STYLES (REQUIRED FOR VALIDATION)
   ========================================================================== */
.kg-image-card img { width: 100%; height: auto; border-radius: 4px; }
.kg-image-card figcaption { font-size: 0.8rem; color: var(--meta-color); text-align: center; margin-top: 8px; }
.kg-width-wide { width: 100%; }
.kg-width-full { width: 100%; }
.kg-gallery-card { width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; }
.kg-bookmark-card { width: 100%; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; }
.kg-bookmark-container { display: flex; text-decoration: none; color: var(--text-color); padding: 20px; }
.kg-bookmark-content { display: flex; flex-direction: column; flex-grow: 1; }
.kg-bookmark-title { font-weight: 700; margin-bottom: 5px; }
.kg-bookmark-description { font-size: 0.9rem; color: var(--meta-color); }
.kg-bookmark-thumbnail img { width: 100px; height: 100px; object-fit: cover; margin-left: 20px; border-radius: 4px; }