* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e5e5e5;
    --link-color: #2563eb;
    --link-hover: #1d4ed8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

/* Main layout */
main {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.container {
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left column */
.left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 3rem;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--link-color);
}

/* Right column */
.right-column {
    padding-top: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.role {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.bio {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Education */
.education {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.education ul {
    list-style: none;
}

.education li {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    gap: 0.25rem;
}

.education .degree-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.degree {
    font-weight: 500;
}

.education .year {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.institution {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Writing */
.writing {
    margin-bottom: 2rem;
}

.writing ul {
    list-style: none;
}

.writing li {
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.writing .title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.writing .authors {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.writing .date {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.more-link {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact */
.contact p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.contact-email {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 700px) {
    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .left-column {
        position: static;
    }

    .right-column {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    .avatar {
        width: 160px;
        height: 160px;
    }
}
