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

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


/* ==================================================
   BASE
================================================== */

html {
    scroll-behavior: smooth;
}

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

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

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

p {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}


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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}


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

ul,
ol {
    list-style: none;
}


/* ==================================================
   IMAGES
================================================== */

img {
    display: block;
    max-width: 100%;
    height: auto;
}


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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}


/* ==================================================
   LAYOUT
================================================== */

section {
    padding: var(--space-3xl) 0;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}


/* ==================================================
   UTILITIES
================================================== */

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}