:root {
    --bg: #0e0e10;
    --bg-elevated: #16161a;
    --fg: #ededed;
    --fg-dim: #b4b4b8;
    --muted: #6e6e76;
    --border: #232328;
    --accent: #e8c168;
    --accent-dim: #b89548;
}

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

html {
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    background-image:
        radial-gradient(circle at 15% 0%, rgba(232, 193, 104, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 100%, rgba(232, 193, 104, 0.03) 0%, transparent 40%);
}

.lang-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;

    font-size: 0.8125rem;
    color: var(--muted);

    user-select: none;
    z-index: 10;

    background: rgba(14, 14, 16, 0.7);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    padding: 0.25rem 0.5rem;

    border-radius: 6px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: none;
    border: none;

    color: var(--muted);

    cursor: pointer;

    font-size: inherit;
    font-family: inherit;

    padding: 0.25rem 0.5rem;

    transition: color 0.2s ease;

    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: var(--fg-dim);
}

.lang-btn.active {
    color: var(--accent);
    font-weight: 600;
}

.lang-divider {
    color: var(--border);
}

main {
    max-width: 620px;
    width: 100%;

    margin-top: auto;
    margin-bottom: auto;

    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signature {
    display: flex;
    align-items: center;
    gap: 1rem;

    margin-bottom: 2rem;
}

.signature::after {
    content: '';
    flex: 1;
    height: 1px;

    background: linear-gradient(to right, var(--accent-dim), transparent);

    opacity: 0.5;
}

.signature-mark {
    font-family: 'JetBrains Mono', monospace;

    font-size: 0.75rem;
    letter-spacing: 0.15em;

    color: var(--accent);

    font-weight: 500;
}

header {
    margin-bottom: 3.5rem;
}

.greeting {
    color: var(--fg-dim);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;

    letter-spacing: -0.025em;

    margin-bottom: 0.75rem;

    line-height: 1.1;
}

.role {
    color: var(--accent);

    font-size: 1rem;
    font-weight: 500;

    letter-spacing: 0.01em;
}

.about {
    margin-bottom: 3rem;
    padding-bottom: 3rem;

    border-bottom: 1px solid var(--border);
}

.about p {
    color: var(--fg);

    font-size: 1.0625rem;

    margin-bottom: 1rem;

    line-height: 1.7;
}

.about p:last-child {
    margin-bottom: 0;
    color: var(--fg-dim);
}

.stack {
    margin-bottom: 3rem;
    padding-bottom: 3rem;

    border-bottom: 1px solid var(--border);
}

.stack-list {
    list-style: none;

    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack-list li {
    font-family: 'JetBrains Mono', monospace;

    font-size: 0.8125rem;

    color: var(--fg-dim);

    padding: 0.375rem 0.75rem;

    border: 1px solid var(--border);
    border-radius: 4px;

    background: var(--bg-elevated);

    transition: all 0.2s ease;
}

.stack-list li:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
}

.contacts {
    margin-bottom: 3rem;
}

h2 {
    font-size: 0.6875rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.15em;

    color: var(--muted);

    margin-bottom: 1.25rem;
}

.contacts-list {
    list-style: none;
}

.contacts-list li {
    margin-bottom: 0.625rem;
}

.contacts-list a {
    color: var(--fg);

    text-decoration: none;

    border-bottom: 1px solid var(--border);

    padding-bottom: 2px;

    transition: all 0.2s ease;

    display: inline-block;
}

.contacts-list a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

footer {
    color: var(--muted);

    font-size: 0.8125rem;

    margin-top: 4rem;

    font-family: 'JetBrains Mono', monospace;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

@media (max-width: 480px) {

    body {
        padding: 1.5rem 1rem;
    }

    .lang-switcher {
        top: 1rem;
        right: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    header {
        margin-bottom: 2.5rem;
    }

    .about,
    .stack {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .about p {
        font-size: 1rem;
    }
}