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

@font-face {
    font-family: 'Karasuma Gothic';
    src: url('KarasumaGothic-Regular.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Karasuma Gothic', 'Inter', sans-serif;
    background-color: #f8f5f0; /* off-white background */
    color: #000; /* pure black text */
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background keywords container */
.background-keywords {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
}

/* Keywords will be styled by JavaScript */
.keyword {
    position: absolute;
    font-weight: normal;
    opacity: 0;
    color: #000;
}

/* Container */
.container {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-areas: 
        "header header"
        "nav content";
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    gap: 2rem;
}

/* Header */
.header {
    grid-area: header;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.name {
    font-size: 3.5rem;
    font-weight: normal;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0;
    flex-shrink: 0;
}

/* Navigation */
.navigation {
    grid-area: nav;
    padding-right: 2rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.navigation ul {
    list-style: none;
    padding: 0;
}

.navigation li {
    margin-bottom: 1rem;
}

.navigation a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.navigation a:hover {
    opacity: 0.7;
}

/* Content */
.content {
    grid-area: content;
    padding-left: 2rem;
}

/* Sections */
section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
}

section:first-child {
    display: block;
    opacity: 1;
}

h2 {
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 700px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "nav"
            "content";
        padding: 1rem;
        gap: 1rem;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .navigation {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .content {
        padding-left: 0;
        padding-top: 1rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
}
