@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: light;
    --background: #f7f7f8;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-soft: #f0f0f2;
    --control-hover: #e4e4e9;
    --control-active: #d3d3db;
    --control-edge: #b3b3bd;
    --text: #202024;
    --text-secondary: #62626c;
    --text-muted: #6a6a73;
    --edge: #e7e7eb;
    --edge-strong: #d3d3db;
    --accent: #242428;
    --accent-hover: #505058;
    --accent-soft: #f0f0f2;
    --highlight: #f0f0f2;
    --success: #227347;
    --primary: #242428;
    --primary-hover: #505058;
    --on-primary: #ffffff;
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --shadow-small: 0 8px 24px rgba(32, 32, 36, 0.08);
    --shadow-large: 0 30px 80px rgba(32, 32, 36, 0.14);
    --shell: 1220px;
    --transition: 120ms ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --background: #141416;
        --surface: #18181b;
        --surface-raised: #202023;
        --surface-soft: #29292e;
        --control-hover: #3b3b44;
        --control-active: #4b4b56;
        --control-edge: #777783;
        --text: #ededf0;
        --text-secondary: #aaaab4;
        --text-muted: #9696a1;
        --edge: #303036;
        --edge-strong: #4b4b56;
        --accent: #ededf0;
        --accent-hover: #bdbdc7;
        --accent-soft: #29292e;
        --highlight: #29292e;
        --success: #82cca3;
        --primary: #ededf0;
        --primary-hover: #bdbdc7;
        --on-primary: #202024;
        --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.24);
        --shadow-large: 0 30px 80px rgba(0, 0, 0, 0.34);
    }
}

*,
*::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;
}

button {
    color: inherit;
}

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

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

h1,
h2,
h3,
h4 {
    letter-spacing: -0.04em;
    line-height: 1.02;
}

h1 {
    margin-bottom: 26px;
    font-size: clamp(3.7rem, 8vw, 7.5rem);
    font-weight: 640;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 5.2vw, 5rem);
    font-weight: 620;
}

h3 {
    margin-bottom: 13px;
    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: var(--primary);
    color: var(--on-primary);
    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.9rem, 15vw, 4.5rem);
    }

    h2 {
        font-size: clamp(2.2rem, 11vw, 3.2rem);
    }
}

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

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