/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
}


/* Global elements */

a {
    color: inherit;
    text-decoration: none;
}

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

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

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

ul,
ol {
    list-style: none;
}


/* Sections */

section {
    width: 100%;
    padding-inline: var(--page-padding);
    padding-block: var(--space-xl);
    scroll-margin-top: var(--header-height);
}


/* Shared heading */

.heading {
    position: relative;
    margin-bottom: var(--space-xl);
    text-align: center;
    font-size: var(--font-size-heading);
    line-height: 1.1;
}

.heading span {
    color: var(--main-color);
}


/* Text selection */

::selection {
    color: var(--second-bg-color);
    background: var(--main-color);
}