

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

:root {
    --bg: #fefefe;
    --text: #111;
    --text-secondary: #555;
    --text-muted: #888;
    --border: #e8e6e3;
    --sidebar-width: 35%;
    --font-serif: Newsreader, Georgia, "Times New Roman", serif;
    --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 400;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 5rem 3rem 5rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    display: block;
}

.sidebar-heading {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 1.4rem;
}

.sidebar-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.sidebar-text a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-decoration-color: #ccc;
    transition: text-decoration-color 0.15s ease;
}

.sidebar-text a:hover {
    text-decoration-color: var(--text);
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 5rem 5rem 5rem 3rem;
    border-left: 1px solid var(--border);
}

.section {
    padding: 0 0 5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 2.2rem;
    color: var(--text);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.8rem;
    margin-bottom: 2rem;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.project-card:hover {
    opacity: 0.75;
}

.project-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f3f1;
    margin-bottom: 1.1rem;
}

.project-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image-wrap img {
    transform: scale(1.03);
}

.project-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.see-all {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.see-all:hover {
    color: var(--text);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.skill-label {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 0.9rem;
    color: var(--text);
}

.skill-group ul {
    list-style: none;
    padding: 0;
}

.skill-group li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.18rem 0;
}



.cv-entry {
    margin-bottom: 2rem;
}

.cv-role {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.cv-place {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.cv-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
}

.site-footer {
    padding-top: 1rem;
}

.site-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        padding: 3rem 1.5rem 2rem;
        justify-content: flex-start;
    }

    .sidebar-heading {
        font-size: 1.6rem;
    }

    .main-content {
        padding: 2rem 1.5rem 4rem;
        border-left: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 0 0 3.5rem;
    }
}
