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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

header {
    margin-bottom: 48px;
}

.lang-switch {
    display: flex;
    gap: 2px;
    margin-bottom: 32px;
}

.lang-switch button {
    padding: 8px 20px;
    background: none;
    color: #555;
    border: 1px solid #222;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-switch button:first-child {
    border-radius: 6px 0 0 6px;
}

.lang-switch button:last-child {
    border-radius: 0 6px 6px 0;
}

.lang-switch button.active {
    color: #e0e0e0;
    border-color: #444;
    background: #1a1a1a;
}

.lang-switch button:not(.active):hover {
    color: #aaa;
    border-color: #333;
}

main {
    flex: 1;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.md-body h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 36px;
    letter-spacing: -0.3px;
}

.md-body h2 {
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 40px 0 16px;
}

.md-body p {
    font-size: 0.875rem;
    font-weight: 300;
    color: #bbb;
    margin-bottom: 10px;
    padding-left: 0;
}

.md-body strong {
    font-weight: 500;
    color: #e0e0e0;
}

.md-body code {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.88em;
    color: #bbb;
}

footer {
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

#animated-text {
    font-size: 0.85rem;
    color: #333;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .container {
        padding: 40px 16px 32px;
    }

    .md-body h1 {
        font-size: 1.3rem;
    }
}
