/**
 * WaMax Design System — Base Typography & Reset
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  transition: background-color 200ms ease, color 200ms ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
}

h2 {
  font-size: clamp(20px, 3vw, 28px);
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 16px;
}

p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

a:hover {
  color: var(--brand-hover);
}

code, pre, .code, .mono {
  font-family: var(--font-code);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Accessibility 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-width: 0;
}
