/* Explain: Base styles, typography defaults, and rich text formatting for the site. */
* {
    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%;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

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

/* Restore rich text formatting (Tailwind preflight overrides) */
.prose p {
    margin-bottom: 1.25em;
}
.prose p:last-child {
    margin-bottom: 0;
}
.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}
.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}
.prose ol ol, .prose ul ul, .prose ol ul, .prose ul ol {
    margin-top: 0.5em;
    margin-bottom: 0;
}
.prose li {
    margin-bottom: 0.5em;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}
.prose strong, .prose b {
    font-weight: 700;
    color: var(--text-color);
}
.prose a {
    text-decoration: underline;
    color: var(--accent-color);
}
.prose blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1em;
    font-style: italic;
    margin: 1.5em 0;
}
