/* ============================================================
   Hudson Pay — base element styling & utility primitives.
   Lightweight: sets document defaults + a few brand helpers.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  color: var(--text-display);
  font-weight: var(--heading-weight);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin: 0;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--violet-100); color: var(--indigo-800); }

/* Numeric / tabular helper for money */
.hp-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* Eyebrow / overline */
.hp-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--blue-600);
}

/* The signature dashed brand ring (decorative).
   Wrap any element; renders a slowly rotating dotted circle. */
.hp-ring {
  position: relative;
  border-radius: var(--radius-circle);
}
.hp-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 2px dashed var(--border-brand);
  animation: hp-spin var(--spin-dur) linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hp-ring::before { animation: none; }
}

/* Gradient text in brand colors */
.hp-grad-text {
  background: var(--grad-brand-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
