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

body {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    background: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Option A: Small portrait in header (uncomment to use) */

.portrait-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #fff;
    flex-shrink: 0;
}

header h1 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 4px;
}

header h1 a {
    color: #000;
    text-decoration: none;
}

header h1 a:hover {
    background: none;
    color: #666;
}

header p {
    font-size: 14px;
    color: #666;
}

nav {
    margin-bottom: 60px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

nav a {
    color: #000;
    text-decoration: none;
    margin-right: 20px;
}

nav a:hover {
    text-decoration: underline;
}

main {
    margin-bottom: 60px;
}

section {
    margin-bottom: 60px;
}

/* Intro section */
#intro {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

/* Medium portrait in about section (optional) */

/*.portrait-medium {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid #fff;
    float: left;
    margin: 0 20px 20px 0;
}*/

/* About section - more paragraph spacing */
#about p {
    margin-bottom: 24px;
    line-height: 1.7;
}

h2 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 30px;
    text-transform: lowercase;
}

h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

article {
    margin-bottom: 40px;
}

article time {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

article p {
    margin-bottom: 10px;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 6px;
}

ul li::before {
    content: "- ";
}

a {
    color: #000;
    text-decoration: underline;
}

a:hover {
    background: #000;
    color: #fff;
}

footer {
    border-top: 1px solid #000;
    padding-top: 20px;
    font-size: 12px;
    color: #666;
}

/* Code styling */
code {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    background: #f5f5f5;
    padding: 2px 4px;
}

pre {
    background: #f5f5f5;
    padding: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

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

/* View all posts link */
.view-all {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.view-all:hover {
    color: #000;
    background: none;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }
}

/* Blog card styles */
.blog-card {
    border: 1px solid #000;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.blog-thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 1px solid #e0e0e0;
}

.blog-content {
    flex: 1;
}

.blog-content h3 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
}

.blog-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-link {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    display: inline-block;
}

.read-link:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 600px) {
    .blog-card {
        flex-direction: column;
    }

    .blog-thumbnail {
        width: 100%;
        height: 200px;
    }
}
