/* Variables */
:root {
    --sidebar-bg-color: #0058a3;
    --sidebar-text-color: rgba(255, 255, 255, 0.7);
    --sidebar-highlight-color: #ffffff;
    --content-bg-color: #ffffff;
    --text-color: #333;
    --heading-color: #111;
    --link-color: #007bff;
    --link-hover-color: #0056b3;
    --border-color: #eee;
    --inline-code-bg: #eef2f5; /* Light blue-grey for code background */
    --inline-code-text: #3d5a80; /* Darker blue for code text */
}

/* Basic styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--content-bg-color);
    margin: 0;
    padding: 0;
    font-size: 18px;
}

.container {
    max-width: 45rem;
    padding: 0 2rem;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Styling for inline code snippets */
:not(pre) > code {
  background-color: var(--inline-code-bg);
  color: var(--inline-code-text);
  padding: 0.2em 0.4em;
  margin: 0 0.1em;
  font-size: 85%;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    padding: 1.3rem;
    color: var(--sidebar-text-color);
    background-color: var(--sidebar-bg-color);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    margin: auto 2.5rem;
    border: 3px solid var(--sidebar-highlight-color);
    object-fit: cover;
}

.sidebar-about {
    text-align: left;
}

.sidebar-about h1 {
    color: var(--sidebar-highlight-color);
    margin-top: 0;
    font-size: 2.25rem;
}
.sidebar-about h1 a {
    color: inherit;
}

.sidebar-about .lead {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.sidebar-nav {
    margin-bottom: 2rem;
    text-align: left; /* Keep nav items left-aligned */
}

.sidebar-nav-item {
    display: block;
    padding: .25rem 0;
    color: var(--sidebar-highlight-color);
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}
.sidebar-nav-item:hover, .sidebar-nav-item:focus {
    color: var(--link-color);
    text-decoration: none;
}

.project-nav-item {
    font-weight: normal;
    color: var(--sidebar-text-color);
}

.sidebar-social {
    display: flex;
    justify-content: left;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.sidebar-social a svg {
    stroke: var(--sidebar-text-color);
    transition: stroke 0.2s ease-in-out;
}
.sidebar-social a:hover svg {
    stroke: var(--sidebar-highlight-color);
}


.sidebar-footer {
    margin-top: auto;
    font-size: 0.9rem;
    text-align: left;
}

/* Content Area */
.content {
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-left: 25rem; /* Increased margin to match new sidebar padding */
}

/* Post styles */
.post {
    margin-bottom: 4rem;
}
.post-title {
    font-size: 2.1rem;
    margin-top: 0;
    margin-bottom: .5rem;
}
.post-title a {
    color: inherit;
}

.post-date {
    display: block;
    margin-bottom: 1.5rem;
    color: #888;
    font-size: 0.9rem;
}

/* Project page styles */
.project-title {
    font-size: 3.5rem;
    margin-bottom: 0;
}
.project-tagline {
    font-size: 1.25rem;
    color: #888;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* Page styles (for About page, etc.) */
.page-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}
.pagination-item {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--link-color);
}
.pagination-item.older {
    margin-left: auto;
}
.pagination-item.newer {
    margin-right: auto;
}
.pagination-item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}
span.pagination-item {
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 992px) {
    .sidebar {
        width: 16rem;
        padding: 2rem;
    }
    .content {
        margin-left: 20rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: auto;
        text-align: center;
    }
    .content {
        margin-left: 2rem;
        margin-right: 2rem;
        padding-top: 2rem;
    }
}
