/* Explain: Base styles, typography, and global element styling. */
[x-cloak] {
    display: none !important;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(163, 177, 138, 0.25), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(88, 129, 87, 0.15), transparent 24rem),
        var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
}

button,
a,
select {
    cursor: pointer;
}

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

::selection {
    background: var(--accent-color);
    color: #ffffff;
}

.rich-text h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
}

.rich-text h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.rich-text p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.rich-text ul {
    margin-bottom: 1.25rem;
    margin-left: 1.5rem;
    color: var(--text-muted);
    list-style-type: disc;
    line-height: 1.8;
}

.rich-text li {
    margin-bottom: 0.5rem;
}

.rich-text strong {
    color: var(--text-color);
    font-weight: 600;
}
