/* Explain: Base reset and global typography styles. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
}

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

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

button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

::selection {
    background: rgba(200, 162, 74, 0.35);
}

.rich-text p {
    margin-bottom: 1.1rem;
}

.rich-text h2,
.rich-text h3 {
    margin: 2rem 0 0.75rem;
}

.rich-text ul,
.rich-text ol {
    margin: 0 0 1.1rem 1.25rem;
    padding: 0;
}

.rich-text ul {
    list-style: disc;
}

.rich-text a {
    color: var(--primary-color);
    text-decoration: underline;
}