@import "../variables/variables";
@import "../mixins/private/token-mixins";

body {
    @include background-color-token(color-background-primary);
    @include color-token(color-foreground-primary);

    font-family: $font-family-default;
    font-size: var(--font-size-default);
    line-height: var(--font-line-height-default);
    /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
    -webkit-text-size-adjust: 100%;
}

fieldset {
    border: 0;
    padding: 0;
}

legend {
    margin-bottom: var(--spacing-100);
}

a {
    @include color-token(
        link-foreground-color-default,
        color-foreground-link-primary
    );

    &:visited {
        @include color-token(
            link-foreground-color-visited,
            color-foreground-link-visited
        );
    }

    &:hover {
        @include color-token(
            link-foreground-color-hover,
            color-foreground-secondary
        );
    }

    &:not([href]),
    &[aria-disabled="true"] {
        @include color-token(
            link-forground-color-disabled,
            color-foreground-disabled
        );
    }
}
