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

:root {
    --accent-blue: #5B7C99;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #6a6a6a;
    --border-color: #e0e0e0;
}

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: var(--text-primary);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 80px 0 40px;
    border-bottom: 1px solid var(--border-color);
}

nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 20px 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    justify-content: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-blue);
}

h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Work page styles */
.work-intro {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.experience-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.experience-header {
    margin-bottom: 12px;
}

.role-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.company {
    font-size: 16px;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.duration {
    font-size: 14px;
    color: var(--text-light);
}

.experience-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.services {
    background: #fafafa;
    padding: 32px;
    border-radius: 8px;
    margin-top: 32px;
}

.services h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.services p {
    font-size: 15px;
    line-height: 1.7;
}

/* Writing page styles */
.section-intro {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.essay-list,
.post-list {
    list-style: none;
}

.essay-item,
.post-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
}

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

.essay-title,
.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.essay-title a,
.post-title a {
    color: var(--text-primary);
}

.essay-date,
.post-date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.essay-excerpt,
.post-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Projects page styles */
.project-item {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #f0f0f0;
}

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

.project-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-title a {
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-blue);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.project-link:hover {
    opacity: 0.9;
}

/* Blog post page styles */
.post-header {
    margin-bottom: 48px;
}

.post-header h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.post-meta {
    color: var(--text-light);
    font-size: 14px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 24px;
}

.post-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.back-link {
    display: inline-block;
    margin-top: 48px;
    color: var(--accent-blue);
    font-size: 15px;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

footer p {
    color: var(--text-light);
    font-size: 14px;
}

/* Mobile styles */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    section {
        padding: 60px 0;
    }

    header {
        padding: 60px 0 32px;
    }

    nav ul {
        gap: 20px;
        font-size: 13px;
    }

    .post-header h1 {
        font-size: 32px;
    }
}
