@use 'utils/minireset';
@use '@splidejs/splide/dist/css/splide-core.min';
@use 'partials/variables' as *;
@use 'partials/animations';

// ----------------------------------------------------------------------------
// GENERALITIES
// ----------------------------------------------------------------------------

// Fonts and colors

body {
    font-family: var(--text-font-family);
    font-size: var(--text-font-size);
    line-height: var(--text-line-height);
    color: var(--black);
}

strong {
    font-weight: var(--bold-font-weight);
}

em {
    font-style: italic;
}

// Link style

a {
    color: var(--black);
    text-decoration: none;
    transition: text-decoration 200ms ease-in-out;

    &:hover,
    &:focus,
    &:active {
        text-decoration: underline;
    }

    &:focus-visible {
        outline: 1px dashed var(--black);
        outline-offset: 2px;
        animation: expand-outline 200ms ease-in-out;
    }
}

// General layout

body {
    min-height: 100vh;
    overflow-x: hidden;
}

// ----------------------------------------------------------------------------
// MAIN
// ----------------------------------------------------------------------------

// Home section

.home-section {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    padding: var(--sidebar-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.social {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.8rem 0 0 0;
    
    &__link {
        width: var(--icon-size);
        height: var(--icon-size);
        display: flex;
        justify-content: center;
        align-items: center;

        + .social__link {
            margin: 0 0 0 0.8rem;
        }

        svg {
            width: 100%;
            height: 100%;
        }

        &--white {

            &:focus-visible {
                outline: 1px dashed var(--white);
            }
        }
    }
}

@media screen and (min-width: $tablet-media-query) {

    .social {
        justify-content: flex-start;
    }
}

@media screen and (min-width: $desktop-media-query) {}

// Slider section

.slider-section {
    position: fixed;
    top: 0;
    left: 0;
}

.splide {
    
    &__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
