/**
 * Nečiūnas NT global styles.
 */


/* ==================================================
   Fonts
   ================================================== */

@font-face {
    font-family: "TT Firs Neue";
    src: url("../fonts/tt-firs-neue-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TT Firs Neue";
    src: url("../fonts/tt-firs-neue-medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TT Firs Neue";
    src: url("../fonts/tt-firs-neue-demibold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TT Firs Neue";
    src: url("../fonts/tt-firs-neue-bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ==================================================
   Design tokens
   ================================================== */

:root {
    /*
     * Tikros projekto reikšmės bus pildomos
     * pagal patvirtintą Figma dizainą.
     */

    /* Layout */
    --container-width: 1280px;
    --container-padding: 24px;

    /* Colors */
    --color-background: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #707070;

    /* Figma colors */
    --color-cream: #f2eee3;
    --color-taupe: #c4bdb5;

    /* Typography */
    --font-primary: "TT Firs Neue", Arial, sans-serif;
    --font-body: var(--font-primary);
    --font-heading: var(--font-primary);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Motion */
    --transition-base: 250ms ease;
}


/* ==================================================
   Base
   ================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background-color: var(--color-background);
    font-family: var(--font-body);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ==================================================
   Typography
   ================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--font-heading);
    font-weight: 700;
}

p {
    margin-top: 0;
}


/* ==================================================
   Global container
   ================================================== */

.neciunasnt-container {
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );
    margin-inline: auto;
}


/* ==================================================
   Accessibility
   ================================================== */

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/* ==================================================
   Responsive
   ================================================== */

@media (max-width: 767px) {
    :root {
        --container-padding: 20px;
    }
}

@media (max-width: 374px) {
    :root {
        --container-padding: 16px;
    }
}