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

/* System font stack for optimal performance */
html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body {
    background-color: #1a1a1a;
    color: #e8e8e8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

/* Main container - centered single column */
main {
    max-width: 600px;
    width: 100%;
}

/* Header section */
header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.125rem;
    color: #a0a0a0;
    font-weight: 400;
}

/* Section spacing */
section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e8e8e8;
}

/* About section */
.about p {
    color: #c0c0c0;
    line-height: 1.7;
}

/* Projects section */
.project-list {
    list-style: none;
}

.project-list li {
    margin-bottom: 1.5rem;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.project-link:hover,
.project-link:focus {
    background-color: #2a2a2a;
    transform: translateX(4px);
    outline: none;
}

.project-link:focus-visible {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

.project-link strong {
    display: block;
    font-size: 1.125rem;
    color: #4a9eff;
    margin-bottom: 0.25rem;
}

.project-description {
    display: block;
    color: #a0a0a0;
    font-size: 0.9375rem;
}

/* Support section */
.support p {
    color: #c0c0c0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.coffee-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #4a9eff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.coffee-button:hover,
.coffee-button:focus {
    background-color: #5eaaff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.coffee-button:focus-visible {
    outline: 2px solid #e8e8e8;
    outline-offset: 2px;
}

.coffee-button:active {
    transform: translateY(0);
}

.coffee-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* Footer section */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #a0a0a0;
    font-size: 0.9375rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

footer a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover,
footer a:focus {
    color: #5eaaff;
    text-decoration: underline;
}

footer a:focus-visible {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    section {
        margin-bottom: 2.5rem;
    }

    .coffee-button {
        width: 100%;
        justify-content: center;
    }
}
