/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

nav a:hover {
    color: #333;
    border-bottom-color: #333;
    text-decoration: none;
}

nav a.active {
    color: #333;
    border-bottom-color: #333;
    font-weight: 600;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 1.875rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333;
}

p {
    margin-bottom: 1rem;
    color: #444;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.25rem;
    color: #444;
}

li strong {
    color: #333;
    font-weight: 600;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

section:last-child {
    margin-bottom: 0;
}

/* Project entries */
.project + .project {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.project h3 {
    margin-top: 0;
}

/* Page title */
.page-title {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.page-title h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #666;
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Date styling */
.date {
    font-weight: 400;
    color: #666;
    font-size: 0.9em;
    float: right;
}

/* Code and monospace */
code {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, Inconsolata, 'Fira Code', 'Fira Mono', 'Droid Sans Mono', 'Liberation Mono', Menlo, Consolas, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace;
    font-size: 0.875em;
    background-color: #f6f8fa;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

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

strong {
    font-weight: 600;
    color: #333;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

footer p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    nav {
        gap: 1.5rem;
    }
    
    .date {
        float: none;
        display: block;
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    nav {
        gap: 1rem;
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    a {
        color: #333;
        text-decoration: none;
    }
    
    header, section {
        page-break-inside: avoid;
    }
}