/* ============================================================
   CryptoCalcy — Base element defaults
   Applies the token system to raw HTML so cards/kits inherit
   sensible typography and link styling out of the box.
   ============================================================ */

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--weight-bold);
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* Links — brand violet, no underline by default */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-colors);
}
a:hover { color: var(--color-primary-hover); }

/* Every number/price/figure renders mono + tabular */
.ccy-num,
[data-num] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

::selection {
  background: color-mix(in srgb, var(--violet-500) 32%, transparent);
  color: var(--text-strong);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
