/* ==========================================================
   ÉLAN Base Styles
   Version: 0.2.0
========================================================== */

/* ==========================================================
   RESET
========================================================== */

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

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

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

    background: var(--color-background);
    color: var(--color-text);

    font-family: var(--font-body);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================
   TYPOGRAPHY
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: var(--font-heading);

    font-weight: var(--font-weight-semibold);

    line-height: var(--line-height-tight);

    color: var(--color-text);

}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

p {

    color: var(--color-text-light);

}

strong {

    font-weight: var(--font-weight-semibold);

}

small {

    font-size: var(--font-size-sm);

}

/* ==========================================================
   LINKS
========================================================== */

a {

    color: inherit;

    text-decoration: none;

    transition: color var(--transition-fast);

}

a:hover {

    color: var(--color-primary);

}

/* ==========================================================
   LISTS
========================================================== */

ul,
ol {

    list-style: none;

}

/* ==========================================================
   MEDIA
========================================================== */

img,
picture {

    display: block;

    max-width: 100%;

}

img {

    height: auto;

}

svg {

    display: block;

    flex-shrink: 0;

}

/* ==========================================================
   FORM ELEMENTS
========================================================== */

button,
input,
textarea,
select {

    font: inherit;

}

button {

    border: none;

    background: none;

    cursor: pointer;

}

input,
textarea,
select {

    outline: none;

}

/* ==========================================================
   ACCESSIBILITY
========================================================== */

:focus-visible {

    outline: 2px solid var(--color-primary);

    outline-offset: 4px;

}

[hidden] {

    display: none !important;

}

/* ==========================================================
   SELECTION
========================================================== */

::selection {

    background: var(--color-primary);

    color: var(--color-white);

}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar {

    width: 10px;

}

::-webkit-scrollbar-track {

    background: var(--color-background);

}

::-webkit-scrollbar-thumb {

    background: var(--color-primary-light);

    border-radius: var(--radius-full);

}

::-webkit-scrollbar-thumb:hover {

    background: var(--color-primary);

}