*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --text-color: #333;
    --bg-color: #fff;
    --link-color: #0366d6;
}

[data-bs-theme="dark"] {
    --text-color: #eee;
    --bg-color: #222;
    --link-color: #58a6ff;
}

body {
    font-family: "Times New Roman", Georgia, Times, serif;
    font-size: 12pt;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    padding: 0 0.75rem;
    margin: 0 auto;
}

h1 {
    font-size: 16pt;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: normal;
}

h2 {
    font-size: 14pt;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

p,
ul {
    margin-top: 0;
    margin-bottom: 1rem;
}

.nav-links {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    display: inline;
    margin-right: 1.5rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    padding-left: 1.5rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    margin: 0 0.5rem;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
}

.theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
    fill: currentColor;
}

/* Blog styles */
.blog-list {
    margin-top: 2rem;
}

.blog-preview {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

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

.blog-preview h2,
.blog-preview h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: rgba(128, 128, 128, 0.8);
    margin-bottom: 1rem;
}

.reading-time {
    margin-left: 1rem;
}

.summary {
    margin: 1rem 0;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.blog-post {
    margin-top: 1rem;
}

.blog-post h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content {
    margin: 2rem 0;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 13pt;
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.recent-posts {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

blockquote {
    border-left: 3px solid rgba(128, 128, 128, 0.3);
    padding-left: 1rem;
    margin-left: 0;
    color: rgba(128, 128, 128, 0.9);
    font-style: italic;
}

code {
    background-color: rgba(128, 128, 128, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

pre {
    background-color: rgba(128, 128, 128, 0.1);
    padding: 1rem;
    overflow-x: auto;
    border-radius: 3px;
}

pre code {
    padding: 0;
    background-color: transparent;
}
