/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography and colors */
:root {
    --text-color: #2c2c2c;
    --bg-color: #ffffff;
    --accent-color: #4a4a4a;
    --border-color: #e0e0e0;
    --code-bg: #f5f5f5;
    --link-color: #1a5490;
    --nav-accent: #6b9d94;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

main {
    max-width: 70ch;
    margin: 0 auto;
}

/* Navigation */
nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--nav-accent);
    gap: 1rem;
}

.site-title {
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--text-color);
    line-height: 1.1;
    text-decoration: none;
}

.site-title:hover {
    color: var(--nav-accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--nav-accent);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
}

.intro-panel {
    background: #f7f8f6;
    border: 1px solid var(--border-color);
    padding: 1.5rem 1.5rem 0.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.15rem;
    margin-top: 2rem;
}

/* Paragraphs and spacing */
p {
    margin-bottom: 1.5rem;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code */
code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background-color: var(--code-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre {
    background-color: var(--code-bg);
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

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

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
}

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--border-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--accent-color);
}

/* Blog post meta */
.post-meta {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Blog post list */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 2.5rem;
}

.post-list h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.post-list .post-meta {
    margin-bottom: 0.5rem;
}

.post-list .post-excerpt {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    .site-title {
        font-size: 1.3rem;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }
}
