:root {
    --text: #1f2937;
    --secondary-text: #4b5563;
    --bg: #fff0f0;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5em;
    color: var(--text);
    max-width: 768px;
    margin: 0 auto;
    padding: 2rem;
}

nav {
    margin-bottom: 2.5rem;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}
nav a:hover {
    border-bottom: 0.15em solid var(--secondary-text);
}

hr {
    border: 0 none;
    background: #d38305;
    margin-top: 8px;
    height: 1px;
}

.avatar {
    max-width: 125px;
    float: left;
    transition: transform 0.2s ease;
    border-radius: 6px;
    margin-bottom: 1em;
    margin-right: 2em;
}

p {
    display: block;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    }

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #d38305;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    /* Adjust project grid for smaller screens */
    .projects {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Adjust project card image height */
    .project-card img {
        height: 180px;
    }

    /* Reduce padding in project cards */
    .project-content {
        padding: 1rem;
    }
}