/* ============================================
   Base Typography & Body Styles
   ============================================ */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--gray-800);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--gray-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: 600; }

p {
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

p + p {
  margin-top: var(--space-4);
}

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

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--text-sm);
}

::selection {
  background-color: rgba(var(--primary-rgb), 0.15);
  color: var(--gray-900);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  z-index: var(--z-modal);
  font-size: var(--text-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Screen reader only */
.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;
}
