/* Explain: Base page styling, including background gradients, typography, and text justification. */
* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(177, 16, 27, 0.07), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(17, 17, 17, 0.05), 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%;
}

p,
li,
blockquote,
summary,
figcaption {
    text-wrap: pretty;
    hyphens: auto;
}

/* Long-form editorial copy keeps a justified rhythm with balanced spacing. */
.story-chapter p,
#about p,
.prose-nh p,
.prose-nh li,
.prose-nh blockquote,
.testimonial-section blockquote {
    text-align: justify;
    text-justify: inter-word;
}

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