/* ============================================
   Base — Global styles, typography defaults
   ============================================ */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: var(--theme-transition);
}

/* ---- Headings ---- */

h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-tight);
  color: var(--color-text-primary);
}

h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-tight);
  color: var(--color-text-primary);
}

/* ---- Links ---- */

a {
  transition: color 0.3s ease, opacity 0.3s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---- Selection ---- */

::selection {
  background-color: rgba(139, 126, 200, 0.3);
  color: var(--color-text-primary);
}

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