/* Explain: Base reset and typography defaults with fluid, viewport-scaled display typography. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--background-color);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-color);
}

p {
    margin: 0;
}

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

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

button {
    font: inherit;
}

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

/* ------------------------------------------------------------------ */
/* Fluid, viewport-scaled display typography                          */
/* The section ids give these rules enough weight to win over the     */
/* utility classes already sitting on each heading, so every section  */
/* scales its titles proportionally from phone to wide desktop.       */
/* ------------------------------------------------------------------ */

:is(#hero, #founder, #about, #collections, #gallery, #team, #bespoke, #pricing, #measure, #contact) h1,
.hero-title {
    font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3.1rem);
    line-height: 1.18;
}

:is(#hero, #founder, #about, #collections, #gallery, #team, #bespoke, #pricing, #measure, #contact) h2 {
    font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.6rem);
    line-height: 1.22;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}