/* Reset and base styles */
* {
    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: #2c3e50;
    background-color: #f8f9fa;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #374151;
}

/* Date styling */
p:first-of-type {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

a:hover {
    border-bottom-color: #2563eb;
}

/* Permalink styling */
a.permalink {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

a.permalink:hover {
    color: inherit;
    border-bottom-color: currentColor;
}

/* Lists */
ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1.1rem;
}

/* Emphasis */
em {
    font-style: italic;
    color: #1f2937;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.footer a {
    color: #6b7280;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.footer a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.footer a:not(:last-child) {
    margin-right: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    p, li {
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
