:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --link-color: #0066cc;
    --link-hover-color: #004499;
    --border-color: #e0e0e0;
    --card-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

/* Home page styles */
.home {
    padding: 60px 20px 20px;
}

.profile {
    margin-bottom: 60px;
}

.greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.profile-pic {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile h1 {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

.location,
.profession,
.contact {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
    max-width: 350px;
    margin: auto auto 12px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 35px;
    justify-content: center;
}

.social-links a {
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--link-color);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Recent posts section */
.recent-posts {
    margin-top: 40px;
    list-style: none;
    padding: 0;
    text-align: center;
}

.recent-posts li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.recent-posts time {
    color: #666;
    font-size: 14px;
}

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

.recent-posts a:hover {
    text-decoration: underline;
}

/* Post page styles */
.post {
    padding: 40px 20px;
}

.post-header {
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    color: var(--link-color);
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-link:hover {
    color: var(--link-hover-color);
}

.post-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.post-header time {
    color: #666;
    font-size: 16px;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h1 { font-size: 32px; }
.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 24px; }
.post-content h4 { font-size: 20px; }

.post-content p {
    margin-bottom: 20px;
}

.post-content a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid var(--link-color);
}

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

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: 20px;
    margin: 30px 0;
    color: #555;
    font-style: italic;
}

.post-content code {
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 30px 0;
}

/* Image gallery styles */
.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.image-row img {
    width: 320px;
    height: 320px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0;
}

/* Responsive design */
@media (max-width: 600px) {
    .greeting {
        font-size: 18px;
    }

    .post-header h1 {
        font-size: 28px;
    }

    .post-content {
        font-size: 16px;
    }
}
