/*!
   * kubosho/foundation.css • v2.0.0
   * Licensed under CC0
   * https://creativecommons.org/publicdomain/zero/1.0/
   */

/* General elements
  ========================================================================== */

/**
   * (opinionated) Prevent padding and border from affecting element width.
   *   - https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
   *   - in all browsers
   */
*,
*::before,
*::after {
  box-sizing: inherit;
}

/**
   * 1. (opinionated) Prevent padding and border from affecting element width.
   *   - https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
   *   - in all browsers
   * 2. (opinionated) Change the default font family.
   *   - in all browsers
   */
:where(html) {
  box-sizing: border-box; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  text-size-adjust: 100%; /* 2 */
}

/* Body element
  ========================================================================== */

/**
   * (opinionated) Remove the margin.
   *   - in all browsers
   */
:where(body) {
  margin: 0;
}

/* Form elements
  ========================================================================== */

/**
   * 1. (opinionated) Change font properties to 'inherit'.
   *   - in all browsers
   * 2. Remove the margin.
   *   - in Firefox and Safari
   */
:where(button),
:where(input),
:where(select),
:where(textarea) {
  font: inherit; /* 1 */
  margin: 0; /* 2 */
}

/**
   * Remove the inheritance of text transform.
   *   - in Firefox 40+, and Edge
   */
:where(button),
:where(select) {
  text-transform: none;
}

/**
   * (opinionated) Change the cursor to button elements.
   *   - in all browsers
   */
:where(button),
:where([type='button']),
:where([type='submit']) {
  cursor: pointer;
}

/**
   * Restore the default cursor to disabled elements unset by the previous rule.
   *   - in all browsers
   */
:where([disabled]) {
  cursor: default;
}
