/* ==========================================================================
   Hay Espacio — Base
   Element-level defaults. No classes here — components.css handles those.
   ========================================================================== */

body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  color: var(--color-fg);
  background: var(--color-bg);
}

h1,
h2,
h3,
h4 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h1 {
  font-size: var(--fs-3xl);
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-lg);
}

p {
  color: var(--color-fg);
}

small {
  font-size: var(--fs-sm);
  color: var(--color-mist);
}

a {
  transition: opacity var(--dur-fast) var(--ease-standard);
}

a:hover {
  opacity: 0.65;
}

/* Keyboard focus only — never suppressed, never shown on mouse click */
:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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