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

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

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-family, system-ui, sans-serif);
    font-size: var(--text-md);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-normal);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-tight);
    text-wrap: balance;
}

[hidden] {
    display: none !important;
}

.is-planking,
.is-planking body {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration-thickness: var(--border-width);
    text-underline-offset: 0.2em;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
