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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
    padding: 2rem 1rem;
}

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

header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #999;
    font-size: 1rem;
    font-weight: 300;
}

.posts-list {
    margin-bottom: 3rem;
}

.post-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.post-title a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #fff;
}

.post-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.post-excerpt {
    color: #bbb;
    line-height: 1.7;
}

footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

footer .quote {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: #888;
    font-style: italic;
}

/* Blog post page styles */
.post-content {
    max-width: 650px;
    margin: 0 auto;
}

.post-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.post-content .post-meta {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.post-content .post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.post-content .post-body p {
    margin-bottom: 1.5rem;
}

.post-content .post-body h2 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.post-content .post-body h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content .post-body code {
    background-color: #2a2a2a;
    color: #e0e0e0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content .post-body ul,
.post-content .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content .post-body li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #999;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

/* Letters page styles */
.letters-list {
    margin-bottom: 3rem;
}

.letter-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.letter-item:last-child {
    border-bottom: none;
}

.letter-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.letter-heading {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.letter-heading a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.letter-heading a:hover {
    color: #fff;
}

.letter-excerpt {
    color: #bbb;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Individual letter page */
.letter-content {
    max-width: 650px;
    margin: 0 auto;
}

.letter-content .letter-date {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.letter-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.letter-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 0.1rem;
    display: block;
    border: none;
    outline: none;
}

.image-caption {
    font-size: 0.7rem;
    color: #999;
    font-style: italic;
    margin-bottom: 2rem;
    margin-top: 0;
    text-align: center;
}

.letter-body {
    color: #d0d0d0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.letter-body p {
    margin-bottom: 1.5rem;
}

.letter-body p:last-child {
    margin-bottom: 0;
}

.signature-line {
    margin-bottom: 0.25rem !important;
}

.signature-line:last-child {
    margin-bottom: 0 !important;
}

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

    h1 {
        font-size: 2rem;
    }

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

    .post-content h1 {
        font-size: 1.75rem;
    }

    .letter-heading {
        font-size: 1.2rem;
    }

    .letter-content h1 {
        font-size: 1.5rem;
    }
}

