@charset "UTF-8";

@layer reset, tokens, base, layout, patterns, components, pages, utilities;

/* Reset */
@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
    a { color: inherit; text-decoration: none; }
    ul, ol { list-style: none; }
    img, svg, video { max-width: 100%; height: auto; display: block; }
    button, input, textarea, select { font: inherit; color: inherit; }
    button { background-color: transparent; border: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: center; }
    table { border-collapse: collapse; }
}

/* Tokens */
@layer tokens {
    :root {
        --body-max-width: 2400px;
        --container-max-width: 1440px;
        --container-padding-inline: clamp(1rem, 2vw, 2rem);
        --color-primary: oklch(0.6117 0.1488 244.9);
        --color-secondary: oklch(32.278% 0.07007 246.57);
        --color-darkgreen: oklch(0.28 0.05 229);
        --color-lightgreen: oklch(0.67 0.1 204);
        --color-white: oklch(0.9811 0.0093 286.23);
        --color-white-featured: oklch(0.9862 0.0142 84.58);
        --color-lightblue: oklch(0.93 0.03 240.7);
        --color-text: oklch(0.2598 0.0175 244.95);
        --color-text-muted: color-mix(in oklch, var(--color-text), oklch(84.52% 0 0) 45%);
        --color-text-dark: color-mix(in oklch, var(--color-secondary), var(--color-text) 35%);
        --color-border: oklch(0.9219 0 0);
        --color-background-footer: linear-gradient(
            135deg,
            oklch(95.4% 0.022 232) 0%,
            oklch(88.8% 0.062 232) 52%,
            oklch(82.3% 0.101 232) 100%
        );
        --radius: 12px;
        --radius-large: calc(var(--radius) * 2.5);
        --radius-scope: calc(var(--radius) * 3.5);
        --radius-small: calc(var(--radius) / 2);
        --shadow: 0 0 12px color-mix(in oklch, var(--color-text), transparent 40%);
        --shadow-primary: 0 0 12px var(--color-primary);
        --gap: clamp(1rem, 1vw, 2.5rem);
        --section-margin-bottom: clamp(1.8rem, 20vh, 8rem);
        --transition-base: .75s cubic-bezier(.4, 0, .2, 1);
    }
}

/* Base */
@layer base {
    html {
        font-size: 16px;
        scrollbar-gutter: stable;
    }

    body {
        font-family: 'Onest', 'Segoe UI', sans-serif;
        font-weight: 400;
        font-size: 1rem;
        color: #1a1a1a;
        background: var(--color-white);
    }

    @font-face {
        font-family: "Onest";
        font-style: normal;
        font-weight: 100 900;
        font-display: swap;
        src: url("/assets/fonts/Onest/Onest-cyrillic-ext-wght-normal.woff2") format("woff2");
        unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
    }

    @font-face {
        font-family: "Onest";
        font-style: normal;
        font-weight: 100 900;
        font-display: swap;
        src: url("/assets/fonts/Onest/Onest-cyrillic-wght-normal.woff2") format("woff2");
        unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
    }

    @font-face {
        font-family: "Onest";
        font-style: normal;
        font-weight: 100 900;
        font-display: swap;
        src: url("/assets/fonts/Onest/Onest-latin-ext-wght-normal.woff2") format("woff2");
        unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
    }

    @font-face {
        font-family: "Onest";
        font-style: normal;
        font-weight: 100 900;
        font-display: swap;
        src: url("/assets/fonts/Onest/Onest-latin-wght-normal.woff2") format("woff2");
        unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }

    .section-title {
        width: min(100%, 700px);
        &:has(.subtitle) h2 {
            margin-bottom: 1rem;
        }
    }

    .section-title h2 {
        font-weight: 500;
        font-size: clamp(1.4rem, 2.2vw, 2.8rem);
        line-height: 1;
    }

    .section-title h2 span {
        display: block;
        color: var(--color-primary);   
    }

    .section-title h2 span.nowrap {
        display: inline-block; 
    }

    .section-title .subtitle {
        color: var(--color-text-muted);
        font-size: 1.1rem;
        font-weight: 300;
    }
}

/* Layout */
@layer layout {
    .page {
        max-width: var(--body-max-width);
        margin-inline: auto;
    }

    .page__main {
        position: relative;
        z-index: 1;
        background: var(--color-white);
        box-shadow: 0 3px 10px -3px #00000077;
        padding-bottom: calc(var(--section-margin-bottom) / 2);
    }

    .page__footer {
        position: sticky;
        bottom: 0;
        z-index: 0;
    }
    
    .main {
        display: block;
    }

    .container {
        width: min(100% - var(--container-padding-inline) * 2, var(--container-max-width));
        margin-inline: auto;
        padding-inline: var(--container-padding-inline);
    }
}
