/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 16px;
}

/* Navigation */
nav {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333333;
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* The clickable logo link */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* The icon itself */
.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 20%;
    object-fit: cover;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

nav a:hover, nav a:focus {
    background-color: #333333;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #333333;
    padding-bottom: 0.5rem;
    color: #ffffff;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

h3 {
    font-size: 1.17rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
}

p {
    margin-bottom: 1rem;
}

ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: #4da6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #80c1ff;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    nav ul {
        justify-content: center;
        width: 100%;
    }
    
    main {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
}
