/* ==========================================================================
   Base Reset, Typography & Accessibility
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }

p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.num {
  font-variant-numeric: tabular-nums;
}

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

:focus-visible {
  outline: 2.5px solid var(--accent-teal);
  outline-offset: 2px;
}

.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;
}
