/* Ryan Nelson's Blog - Minimal Technical Blog Style */

:root {
    --text-color: #333;
    --bg-color: #fff;
    --link-color: #0066cc;
    --link-hover: #004499;
    --border-color: #ddd;
    --code-bg: #f5f5f5;
    --max-width: 720px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2em;
    padding-bottom: 1em;
}

header h1 {
    margin: 0 0 0.5em 0;
    font-size: 1.8em;
}

header nav {
    font-size: 0.9em;
}

header nav a {
    margin-right: 1em;
}

/* Blog intro section */
.blog-intro {
    margin-bottom: 2.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid var(--border-color);
}

.blog-intro .tagline {
    font-size: 1.1em;
    color: #666;
    font-style: italic;
    margin: 0 0 1em 0;
}

.blog-intro .about {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Unix username styling */
.blog-intro .username {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    background: var(--code-bg);
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.95em;
}

/* TED logo styling */
.ted-logo, .ted-logo-t {
    color: #E62B1E;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
}

.post-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--border-color);
}

.post-meta time {
    font-weight: bold;
}

h1, h2, h3, h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

h1 {
    font-size: 2em;
    margin-top: 0;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.2em;
}

p {
    margin: 1em 0;
}

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

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

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

pre {
    background: var(--code-bg);
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

pre code {
    background: none;
    padding: 0;
}

ul, ol {
    margin: 1em 0;
    padding-left: 2em;
}

li {
    margin: 0.5em 0;
}

blockquote {
    margin: 1.5em 0;
    padding-left: 1.5em;
    border-left: 4px solid var(--border-color);
    color: #666;
    font-style: italic;
}

footer {
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid var(--border-color);
    font-size: 0.85em;
    color: #666;
}

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

.post-list li {
    margin: 2em 0;
    padding-bottom: 1.5em;
    border-bottom: 1px solid var(--border-color);
}

.post-list h2 {
    margin-top: 0;
    margin-bottom: 0.3em;
}

.post-list .post-date {
    color: #666;
    font-size: 0.9em;
}

.post-list .post-excerpt {
    margin-top: 0.5em;
    margin-bottom: 0.8em;
    color: #555;
}

.post-list .read-more {
    display: inline-block;
    font-size: 0.9em;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.post-list .read-more:hover {
    color: var(--link-hover);
    text-decoration: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.3em;
    }
}
