/* Milligram Lightweight - Custom Enhancements */

/* Navigation Styling */
.navigation {
    background-color: #fff;
    border-bottom: 1px solid #e1e1e1;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation-list {
    margin-bottom: 0;
    margin-left: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.navigation-item {
    margin-bottom: 0;
    margin-right: 2rem;
}

.navigation-item:first-child {
    margin-right: auto;
}

.navigation-item:first-child .navigation-link {
    font-weight: 700;
    font-size: 1.8rem;
}

.navigation-link {
    color: #606c76;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.navigation-link:hover,
.navigation-link:focus {
    color: #9b4dca;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background-color: #f4f5f6;
    padding: 8rem 0;
    text-align: center;
}

.hero-section h1 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

.hero-section p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #606c76;
    line-height: 1.7;
}

.hero-section .button {
    margin: 0 1rem 1rem 0;
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
}

.content-section:nth-child(even) {
    background-color: #f4f5f6;
}

.content-section h2 {
    margin-bottom: 3rem;
    color: #2c3e50;
    text-align: center;
}

.content-section h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.content-section h4 {
    margin-bottom: 1rem;
    margin-top: 3rem;
    color: #2c3e50;
}

/* Code Blocks */
pre {
    background-color: #f1f1f1;
    border: 1px solid #d1d1d1;
    border-radius: 0.4rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 2rem;
}

code {
    background-color: #f1f1f1;
    border-radius: 0.3rem;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 1.4rem;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
}

pre code {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    white-space: pre;
}

/* Tables */
table {
    margin-bottom: 2rem;
}

th {
    background-color: #f4f5f6;
    font-weight: 700;
}

/* Buttons */
.button {
    transition: all 0.3s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(155, 77, 202, 0.2);
}

.button.button-outline:hover,
.button.button-outline:focus {
    box-shadow: 0 2px 4px rgba(155, 77, 202, 0.1);
}

/* Links */
a {
    transition: color 0.3s ease;
}

/* Footer */
.footer-section {
    background-color: #2c3e50;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.footer-section a {
    color: #9b4dca;
}

.footer-section a:hover,
.footer-section a:focus {
    color: #fff;
}

/* Responsive Enhancements */
@media (max-width: 40.0rem) {
    .navigation-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navigation-item {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .navigation-item:first-child {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 3.6rem;
    }
    
    .hero-section p {
        font-size: 1.6rem;
    }
    
    .content-section {
        padding: 4rem 0;
    }
    
    .button {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.navigation-link:focus,
.button:focus,
a:focus {
    outline: 2px solid #9b4dca;
    outline-offset: 2px;
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Minimal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .navigation,
    .footer-section {
        display: none;
    }
    
    .hero-section,
    .content-section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
}