:root {
    /* Typography */
    --font-primary: 'lato', sans-serif;
    --font-heading: 'oxanium', sans-serif;

    /* Background colors */
    --background-primary: #010713;
    --background-secondary: #010b17;

    /* Text colors */
    --paragraph: #ffffff;
    --text-muted: #a5aec2;

    /* Accent colors */
    --accent-primary: #8b5cf6;
    --accent-secondary: #a855f7;

    /* Border colors */
    --border-primary: #233047;
}

@font-face {
    font-family: 'oxanium';
    src: url('../fonts/Oxanium-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: 'lato';
    src: url('../fonts/Lato-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;

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

body {
    min-height: 100svh;
    background-color: var(--background-primary);
    color: var(--paragraph);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    h1, h2, h3, h4, h5, h6 {
        font-family: var(--font-heading);
        line-height: 1.2;
        font-weight: 600;
    }

    p {
        line-height: 1.7;
    }

    /* Links */
    a {
        color: inherit;
        text-decoration: none;

        &:hover {
            color: var(--accent-primary);
        }
    }

    /* Media */
    img, picture, video, svg {
        max-width: 100%;
    }

    img, video {
        height: auto;
    }

    /* Form elements */
    button, input, textarea, select {
        font: inherit;
    }

    button {
        cursor: pointer;
    }

    /* Accessibility */
    :focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 3px;
    }

    span.accent {
        color: var(--accent-primary);
    }
}

/* For screen reader only html tags */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
