body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

::selection {
  background: var(--gray-700);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--gray-400);
  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;
}
