@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 800;
    font-display: optional;
    src: url("/assets/fonts/inter-variable-latin.woff2") format("woff2");
}

:root {
    color-scheme: dark;
    --background: #0c0d10;
    --background-raised: #13151a;
    --section-raised: #111318;
    --panel: #15181e;
    --panel-raised: #191d24;
    --text: #f4f6fa;
    --text-secondary: #9da3ae;
    --text-muted: #858b96;
    --text-subtle: #7b818c;
    --edge: rgba(255, 255, 255, 0.09);
    --edge-strong: rgba(255, 255, 255, 0.18);
    --accent: #1866dd;
    --accent-hover: oklch(0.490 0.210 255);
    --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
    --link: oklch(0.780 0.145 255);
    --focus: var(--link);
    --success: #47c978;
    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 24px;
    --shadow-preview: 0 12px 24px rgba(0, 0, 0, 0.24);
    --shell: 1180px;
    --transition: 150ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.035em;
    line-height: 1.08;
}

h1 {
    margin-bottom: 26px;
    font-size: clamp(3rem, 5.3vw, 4.25rem);
    font-weight: 700;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 4.4vw, 4.25rem);
    font-weight: 680;
}

h3 {
    margin-bottom: 14px;
    font-size: 1.45rem;
    font-weight: 650;
}

.site-shell {
    overflow: clip;
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: var(--radius-small);
    background: #fff;
    color: #111;
    text-decoration: none;
    transform: translateY(-160%);
}

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

@media (max-width: 640px) {
    .shell {
        width: min(calc(100% - 32px), var(--shell));
    }

    h1 {
        font-size: clamp(2.4rem, 11.2vw, 3.6rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
