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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--bg-subtle);
    margin: 0;
    line-height: 1.4;
}

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

.stack > * + * { margin-top: var(--stack-gap, var(--space-16)); }
.stack--sm > * + * { --stack-gap: var(--space-8); }
.stack--md > * + * { --stack-gap: var(--space-16); }
.stack--lg > * + * { --stack-gap: var(--space-24); }
.stack--xl > * + * { --stack-gap: var(--space-48); }

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--cluster-gap, var(--space-16));
    align-items: var(--cluster-align, center);
}

.grid {
    display: grid;
    gap: var(--grid-gap, var(--space-24));
}

.grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto-fit { grid-template-columns: repeat(auto-fit, minmax(var(--min-col, 280px), 1fr)); }

@media (max-width: 991px) {
    .grid--cols-3,
    .grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .grid--cols-2,
    .grid--cols-3,
    .grid--cols-4 { grid-template-columns: 1fr; }
}

.section { padding-block: var(--section-pad, var(--space-72)); }
.section--sm { --section-pad: var(--space-48); }
.section--lg { --section-pad: var(--space-120); }
.section--xl { --section-pad: var(--space-144); }

@media (max-width: 767px) {
    .section { --section-pad: var(--space-48); }
    .section--lg { --section-pad: var(--space-72); }
    .section--xl { --section-pad: var(--space-96); }
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
