/* stylelint-disable property-no-vendor-prefix */

/* -------------------- RESETS -------------------- *
   Resets: The base for the resets are normalize.css and sanitize.css */

/**
 * Add border box sizing in all browsers (opinionated).
 */
*,
::before,
::after {
    box-sizing: border-box;
}

html,
body {
    height: auto;
    min-height: 100%;
    position: relative;
}

/**
 * 1. Use the default cursor in all browsers (opinionated).
 * 2. Change the line height in all browsers (opinionated).
 * 3. Use a 4-space tab width in all browsers (opinionated).
 * 4. Remove the grey highlight on links in iOS (opinionated).
 * 5. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 * 6. Breaks words to prevent overflow in all browsers (opinionated).
 */

html {
    cursor: default; /* 1 */
    line-height: var(--line-height-base); /* 2 */
    -moz-tab-size: 4; /* 3 */
    tab-size: 4; /* 3 */
    -webkit-tap-highlight-color: transparent /* 4 */;
    -ms-text-size-adjust: 100%; /* 5 */
    -webkit-text-size-adjust: 100%; /* 5 */
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-flow: column;
    overflow-y: scroll;
    margin: 0;
    min-height: 100vh;
    color: var(--color-content-1);
    font-weight: 400;
    text-align: left;
    font-size: var(--font-size-text);
    line-height: var(--line-height-text);
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 0.75rem;
}

/**
 * Add the correct display in IE 10-.
 */

[hidden] {
    display: none;
}

/**
 * Change the cursor on busy elements in all browsers (opinionated).
 */

[aria-busy="true"] {
    cursor: progress;
}

/*
 * Change the cursor on control elements in all browsers (opinionated).
 */

[aria-controls] {
    cursor: pointer;
}

/*
 * Change the cursor on disabled, not-editable, or otherwise
 * inoperable elements in all browsers (opinionated).
 */

[aria-disabled="true"],
[disabled] {
    cursor: not-allowed;
}

/*
 * Change the display on visually hidden accessible elements
 * in all browsers (opinionated).
 */

[aria-hidden="false"][hidden] {
    display: initial;
}

[aria-hidden="false"][hidden]:not(:focus) {
    clip: rect(0, 0, 0, 0);
    position: absolute;
}
