/* base.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
        "Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1200px 800px at 15% 0%, rgba(255, 200, 221, 0.25), transparent 55%),
        radial-gradient(1200px 800px at 85% 10%, rgba(189, 224, 254, 0.28), transparent 55%),
        radial-gradient(900px 600px at 70% 90%, rgba(205, 180, 219, 0.20), transparent 55%),
        var(--bg);
}

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

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

p {
    margin: 0 0 14px;
    line-height: 1.6;
    color: rgba(31, 41, 55, 0.78);
}

h1,
h2,
h3 {
    margin: 0 0 10px;
    line-height: 1.1;
    color: var(--text);
}

h1 {
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(22px, 2.4vw, 32px);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 18px;
}

small {
    color: rgba(31, 41, 55, 0.65);
}

/* nice selection */
::selection {
    background: rgba(255, 200, 221, 0.7);
}

/* subtle global rounding for form elements */
input,
textarea,
button {
    font: inherit;
}