/* ============================================================
   Hevta Design System — Global Base Styles
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-size-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--surface-page);
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  text-wrap: balance;
}
h1 { font-size: var(--text-size-h1); }
h2 { font-size: var(--text-size-h2); }
h3 { font-size: var(--text-size-h3); }
h4 { font-size: var(--text-size-h4); }
h5 { font-size: var(--text-size-h5); }
h6 { font-size: var(--text-size-h6); }

/* ── Body text ── */
p { line-height: var(--leading-relaxed); text-wrap: pretty; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Tables (reset) ── */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; }

/* ── Form elements ── */
input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}
button { cursor: pointer; }

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
