* {
    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: #333;
    background: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

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

header nav {
    margin-top: 1rem;
}

header nav a {
    color: #666;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.9rem;
}

header nav a:hover {
    color: #333;
}

main {
    min-height: 60vh;
}

.post-preview {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.post-preview h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

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

.post-preview h2 a:hover {
    color: #000;
}

.post-preview time {
    color: #999;
    font-size: 0.9rem;
}

.post {
    margin-bottom: 3rem;
}

.post h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.post time {
    color: #999;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2rem;
}

.post .content {
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.post .content.markdown {
    white-space: normal;
}

.post .content.markdown h1,
.post .content.markdown h2,
.post .content.markdown h3,
.post .content.markdown h4,
.post .content.markdown h5,
.post .content.markdown h6 {
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

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

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

.post .content.markdown h3 {
    font-size: 1.5rem;
}

.post .content.markdown h4 {
    font-size: 1.25rem;
}

.post .content.markdown p {
    margin-bottom: 1em;
}

.post .content.markdown ul,
.post .content.markdown ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

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

.post .content.markdown code {
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.post .content.markdown pre {
    background: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1em;
}

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

.post .content.markdown blockquote {
    border-left: 4px solid #ddd;
    padding-left: 1em;
    margin-left: 0;
    color: #666;
    font-style: italic;
}

.post .content.markdown a {
    color: #333;
    text-decoration: underline;
}

.post .content.markdown a:hover {
    color: #000;
}

.post .content.markdown strong {
    font-weight: 600;
}

.post .content.markdown em {
    font-style: italic;
}

.empty {
    color: #999;
    text-align: center;
    padding: 3rem 0;
}

/* Admin styles */
.admin-login {
    max-width: 400px;
    margin: 4rem auto;
}

.admin-login h1 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.admin-login form div {
    margin-bottom: 1.5rem;
}

.admin-login label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.admin-login input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.admin-login input:focus {
    outline: none;
    border-color: #333;
}

.admin-login button {
    width: 100%;
    padding: 0.75rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}

.admin-login button:hover {
    background: #000;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td a {
    color: #333;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.9rem;
}

table td a:hover {
    text-decoration: underline;
}

form {
    max-width: 600px;
}

form div {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

form textarea {
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.6;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #333;
}

form button {
    padding: 0.75rem 1.5rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    margin-right: 1rem;
}

form button:hover {
    background: #000;
}

form a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

form a:hover {
    color: #333;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .post h2 {
        font-size: 1.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }
}

