/* Explain: Base reset and typography defaults for the studio site */
* {
    box-sizing: border-box;
}

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

/* Confort de lecture sur ordinateur : toute la typographie et les
   espacements suivent l'unité de base, agrandie dès les grands écrans.
   Le rendu mobile reste inchangé. */
@media (min-width: 1024px) {
    html {
        font-size: 112.5%;
        scroll-padding-top: 104px;
    }
}

@media (min-width: 1440px) {
    html {
        font-size: 118.75%;
        scroll-padding-top: 110px;
    }
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, var(--glow-one), transparent 26rem),
        radial-gradient(circle at 88% 8%, var(--glow-two), transparent 24rem),
        var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 0.35vw + 0.88rem, 1rem);
    line-height: 1.7;
    overflow-wrap: break-word;
    text-rendering: optimizeLegibility;
}

button,
a,
select {
    cursor: pointer;
}

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

h1,
h2,
h3,
h4 {
    overflow-wrap: break-word;
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

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