/* ============================================
   Base Typography & Global Styles
   ============================================ */

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: var(--lh-tight);
}

h1 { font-size: var(--fs-h1); font-weight: var(--fw-light); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-light); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-regular); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-regular); }

p {
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  transition: color var(--transition-fast);
}

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

/* Selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-text-white);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Images */
img {
  object-fit: cover;
}

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

/* Section spacing */
.section {
  padding: var(--space-3xl) 0;
}

.section--compact {
  padding: var(--space-2xl) 0;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.section--gray {
  background-color: var(--color-bg-secondary);
}

/* Section headings */
.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  max-width: 600px;
  line-height: var(--lh-relaxed);
}

.section__header {
  margin-bottom: var(--space-2xl);
}

/* Text utilities */
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--fs-small);
}

/* Spacing utilities */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
