/* Basic reset and typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and navigation */
header {
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

nav h1 {
    margin-bottom: 10px;
}

nav h1 a {
    text-decoration: none;
    color: #333;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #0B7285;
    text-decoration: none;
}

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

/* Main content */
main {
    min-height: 60vh;
}

/* Home page */
.home-intro {
    margin-bottom: 60px;
}

.home-intro a {
    color: #0B7285;
}

/* Post styling */
.post-header, .page-header {
    margin-bottom: 30px;
}

.post-meta {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

.tags {
    margin-left: 10px;
}

.tag {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-left: 5px;
    text-decoration: none;
    color: #333 !important;
    display: inline-block;
}

.tag:hover {
    background: #0B7285;
    color: white !important;
}

.post-content, .page-content {
    line-height: 1.8;
}

.post-content p, .page-content p {
    margin-bottom: 1.2em;
}

.post-content p:last-child, .page-content p:last-child {
    margin-bottom: 0;
}

.post-content img, .page-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.post-content a, .page-content a {
    color: #0B7285;
}

.post-content h1, .post-content h2, .post-content h3,
.page-content h1, .page-content h2, .page-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.post-content ul, .post-content ol,
.page-content ul, .page-content ol {
    margin-bottom: 1.2em;
    margin-left: 1.5em;
}

.post-content li, .page-content li {
    margin-bottom: 0.5em;
}

/* Poetry formatting - preserve line breaks and add spacing */
.post-content h2 + p,
.post-content h2 ~ p {
    line-height: 1.6;
}

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

.post-list li {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-list h2 {
    margin-bottom: 5px;
}

.post-list h2 a {
    color: #333;
    text-decoration: none;
}

.post-list h2 a:hover {
    color: #0B7285;
}

.post-excerpt {
    margin-top: 10px;
    color: #666;
}

/* Tags page */
.tag-cloud {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.tag-cloud li a {
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

.tag-cloud li a:hover {
    background: #0B7285;
    color: white;
}

.tag-count {
    color: #666;
    font-size: 0.9em;
}

.tag-cloud li a:hover .tag-count {
    color: white;
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}
