/* Minimalist design for Vladimir Kiselev's personal website */
/* Updated 2026-03-30 - Lucida Grande font */

:root {
    --color-text: #333;
    --color-background: #fff;
    --color-link: #0066cc;
    --color-link-hover: #004499;
    --color-border: #e0e0e0;
    --font-family-sans: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    --font-family-mono: 'SF Mono', 'Roboto Mono', 'Courier New', monospace;
    --max-content-width: 800px;
    --spacing-unit: 1rem;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family-sans);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* Language switcher */
.languages {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit) calc(var(--spacing-unit) * 1);
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.languages * {
    white-space: nowrap;
    margin: 0 var(--spacing-unit);
}

.languages .active {
    font-weight: 600;
    color: var(--color-text);
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit) calc(var(--spacing-unit) * 2);
    text-align: center;
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

header .whatido {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: calc(var(--spacing-unit) * 0.5);
    color: #666;
}

.profile-photo {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.profile-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Navigation links */
.links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.links .link {
    margin: 0 calc(var(--spacing-unit) * 1.5);
    font-size: 1.1rem;
}

.links a {
    padding-bottom: 0.2em;
    border-bottom: 2px solid transparent;
}

.links a:hover {
    border-bottom-color: var(--color-link);
    text-decoration: none;
}

.links .link .active {
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 0.2em;
}

/* Content */
.content {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit) calc(var(--spacing-unit) * 4);
}

.content h1, .content h2, .content h3 {
    font-weight: 600;
    line-height: 1.3;
}

.content h2 {
    font-size: 1.8rem;
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.content p, .content ul, .content ol {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.content ul {
    padding-left: calc(var(--spacing-unit) * 2);
}

.content li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* Error page (keep existing) */
.error-code {
    width: 50vw;
    height: 50vh;
    background: #000;
    color: #fff;
    text-align: center;
    margin: 0 auto;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
}

.error-code h1 {
    font-size: 1.5em;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header h1 {
        font-size: 2rem;
    }

    header .whatido {
        font-size: 1rem;
    }

    .profile-photo {
        margin-bottom: var(--spacing-unit);
    }

    .profile-photo img {
        max-width: 300px;
    }

    .links .link {
        margin: 0 var(--spacing-unit);
        font-size: 1rem;
    }

    .content {
        padding: 0 calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 480px) {
    .languages, .links {
        flex-direction: column;
        align-items: center;
    }

    .languages * {
        margin: 0.25rem;
    }

    .links .link {
        margin: 0.5rem;
    }

    .profile-photo img {
        max-width: 250px;
    }
}