/* Base styles - resets and typography */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bb-bg);
    color: var(--bb-fg);
    font-size: var(--bb-body);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:where(a, button, input):focus-visible {
    outline: 2px solid rgba(17, 17, 17, .55);
    outline-offset: 2px;
}

:where(h1, h2, h3) {
    line-height: 1.2;
    margin: 0 0 .6em;
}

:where(p) {
    margin: 0 0 1em;
}

:where(body) {
    letter-spacing: 0.01em;
}

:where(.site-content) {
    font-size: 14px;
}

/* Headings “puliti” */
:where(h1) {
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 500;
}

:where(h2) {
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 500;
}

:where(p) {
    color: rgba(17, 17, 17, .78);
}