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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    color: #000;
    background-color: #fff;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
    width: 100%;
}

/* Hero section */
.hero {
    display: block;
    width: 100%;
}

.name {
    font-size: clamp(2rem, 10vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #000;
    text-transform: lowercase;
    margin-bottom: 0.5rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    display: inline-block;
    width: auto;
}

.scramble {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.navigation {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(clamp(2rem, 10vw, 8rem)*0.9);
    align-items: flex-start;
    padding-top: 0;
    margin-top: 0;
}

/* Desktop: navigation is in grid, hide the one inside hero */
@media (min-width: 769px) {
    .hero .navigation {
        display: none;
    }
    
    .layout {
        grid-template-columns: 1fr auto;
    }
}

/* Mobile: show navigation inside hero, hide the grid one */
@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }
    
    .layout > .navigation {
        display: none;
    }
    
    .hero .navigation {
        display: flex;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        margin-top: 0;
        width: 100%;
        position: relative;
    }
}

.tagline {
    font-size: 1rem;
    color: #999;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.navigation a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0.2em 0.4em;
    margin: -0.2em -0.4em;
}

.navigation .nav-disabled {
    color: #000;
    font-weight: 500;
    font-size: 1rem;
    cursor: default;
    padding: 0.2em 0.4em;
    margin: -0.2em -0.4em;
    transition: all 0.2s ease;
}

.navigation .nav-disabled:hover {
    color: #000;
    background-color: #000;
}

.navigation a:hover {
    color: #fff;
    background-color: #000;
}

/* Now page specific */
.back-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e6e6e6;
}

.back-nav a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.2em 0.4em;
    margin: -0.2em -0.4em;
}

.back-nav a:hover {
    color: #fff;
    background-color: #000;
}

.now-content h1 {
    font-size: clamp(1rem, 4vw, 2rem);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.03em;
    line-height: 1;
}

.now-content h2 {
    font-size: clamp(1.5rem, 6vw, 3rem);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.03em;
    line-height: 1;
}

.now-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.updated {
    margin-top: 3rem !important;
    color: #666 !important;
    font-size: 0.9rem !important;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 3rem 1.5rem;
    }
    
    .layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .name {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .navigation {
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
        margin-top: 0;
        width: 100%;
    }
    
    .tagline {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Very narrow screens */
@media (max-width: 480px) {
    .navigation {
        gap: 1.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .tagline {
        margin-top: 0;
    }
}

/* Very narrow screens */
@media (max-width: 480px) {
    .hero {
        display: flex;
        flex-direction: column;
    }
    
    .name {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .navigation {
        order: 2;
        margin-top: 0;
        margin-bottom: 1rem;
        gap: 1.5rem;
    }
    
    .tagline {
        order: 3;
        margin-top: 0;
        margin-bottom: 0;
    }
}