/* =============================================================================
   @elements/style — reset

   Minimal. The goal is to give consumer classes a clean slate — no element
   selectors compete with class-based component rules.

   In particular, NO decoration is applied to input[type=...], pre, or code
   from this file. All visual treatment is class-based (see form.css,
   terminal.css, code.css). This avoids the (0,0,1,1) specificity trap
   where a consumer .foo class silently loses to a default attribute rule.
============================================================================= */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  min-height: 100dvh;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
}

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

p { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

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

ul, ol {
  padding-left: var(--space-6);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Hidden helper — also a utility class */
[hidden] { display: none !important; }
