:root {
    --site-ink: #f4f7ff;
    --site-paper: #06070a;
    --site-focus: #8a96ff;
    --site-selection: rgba(138, 150, 255, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--site-ink);
    background: var(--site-paper);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

::selection {
    background: var(--site-selection);
}

:focus-visible {
    outline: 3px solid var(--site-focus);
    outline-offset: 4px;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 120;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(8, 10, 14, 0.92);
    color: #f4f7ff;
    transform: translateY(-140%);
    transition: transform 0.18s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.92rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button.secondary {
    background: transparent;
}

@media (max-width: 900px) {
    .header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .container {
        width: min(1180px, calc(100% - 1.5rem));
    }
}
