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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #1a1a1a;
    background: #ffffff;
    font-size: 16px;
}

header {
    border-bottom: 1px solid #e5e5e5;
    padding: 2rem 0 1rem;
    background: #ffffff;
    text-align: center;
    position: relative;
}



.header-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-section {
    justify-content: center;
    text-align: center;
}



/* Center the intro/welcome section */
.intro {
    text-align: center;
}

.intro h2 {
    text-align: center;
}

.intro p {
    margin-left: auto;
    margin-right: auto;
}


.iico {
    width: 35px;
    height: 35px;
}


.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;  /* Add this */
    border: 1px solid #e5e5e5;
}

.profile-info h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.profile-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: bold;
    font-size: 0.75rem;
}

.social-links a:hover {
    background: #666;
}

nav {
    position: absolute;  /* ADD THIS */
    top: 2rem;          /* ADD THIS */
    right: 17%;        /* ADD THIS */
    display: flex;
    gap: 2rem;     /*try 2.5*/
    /*padding-top: 1rem;*/
    /*border-top: 1px solid #f0f0f0;*/
}

nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #1a1a1a;
}

.intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.intro h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.intro p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

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

.post-item {
    padding: 2.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.post-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.post-title:hover {
    color: #667eea;
}

.post-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #999;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag {
    background: #e0e7ff;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

footer {
    border-top: 1px solid #e5e5e5;
    padding: 2rem 0;
    text-align: center;
    color: #999;
    font-size: 0.875rem;
}

footer a {
    color: #999;
    text-decoration: none;
}

footer a:hover {
    color: #667eea;
}

@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-info h1 {
        font-size: 1.75rem;
    }

    .intro h2 {
        font-size: 1.25rem;
    }

    nav {
        position: static;     /* ADD THIS - removes absolute positioning on mobile */
        justify-content: center;  /* ADD THIS - centers nav on mobile */
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-top: 1rem;    /* ADD THIS - gives space below profile */
    }

    .post-title {
        font-size: 1.25rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
