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

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(25, 118, 210, 0.15), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(211, 47, 47, 0.1), 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 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: var(--font-heading);
}

.rich-text p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

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

.rich-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
