*, *::before, *::after { box-sizing: border-box; }

h1, h2, h3, h4 { margin: 0 0 0.4em; color: var(--rh-text); text-wrap: balance; }
h1 { font: var(--rh-text-h1); letter-spacing: var(--rh-tracking-snug); }
h2 { font: var(--rh-text-h2); letter-spacing: var(--rh-tracking-snug); }
h3 { font: var(--rh-text-h3); }
h4 { font: var(--rh-text-h4); }
p  { margin: 0 0 1em; }
a  { color: var(--rh-text-accent); }
a:hover { color: var(--rh-accent-hover); }

:focus-visible {
  outline: 2px solid var(--rh-accent);
  outline-offset: 2px;
  box-shadow: var(--rh-shadow-focus);
}

.rh-eyebrow {
  font-family: var(--rh-font-mono);
  font-size: var(--rh-text-xs);
  font-weight: var(--rh-weight-medium);
  letter-spacing: var(--rh-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rh-text-accent);
}

.rh-mono   { font-family: var(--rh-font-mono); }
.rh-muted  { color: var(--rh-text-muted); }
.rh-subtle { color: var(--rh-text-subtle); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.rh-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rh-sr-only--focusable:focus {
  position: static;
  width: auto; height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
