/* ==========================================================================
   Flexopack — Modern Reset
   --------------------------------------------------------------------------
   Minimal, opinionated. Inspired by Josh Comeau's & Andy Bell's resets but
   trimmed to what we use. Predictable defaults; typography lives in base.css.
   ========================================================================== */

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

  /* 10px = 1rem base. Tokens expect this — e.g. --text-m: 1.6rem = 16px. */
  html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html, body, h1, h2, h3, h4, h5, h6, p, blockquote, dl, dd,
  figure, hr, fieldset, legend {
    margin: 0;
  }

  ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body {
    min-height: 100svh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  img, picture, video, canvas {
    display: block;
    max-width: 100%;
    height: auto;
  }

  /* Inline SVG icons stay inline with text by default; .img-* utilities
     restore block behavior for figure/cover images. */
  svg {
    max-width: 100%;
  }

  input, button, textarea, select {
    font: inherit;
    color: inherit;
  }

  button {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
  }

  p, h1, h2, h3, h4, h5, h6, li, dt, dd, blockquote {
    overflow-wrap: break-word;
  }

  table {
    border-collapse: collapse;
    border-spacing: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}
