/* ============================================================
   HardByte — Base element defaults
   Applies tokens to bare HTML so specimen cards and consuming
   pages get the brand voice without extra classes.
   ============================================================ */

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  font-weight: var(--fw-black);
  margin: 0 0 0.4em;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-md); }

p { margin: 0 0 1em; }

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

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
/* A block of code, a diff or a log is set in the code face; an identifier
   inline in prose (a path, a token name) stays in Inter. */
pre { font-family: var(--font-code); }

/* Eyebrow / overline label — the house label, a recurring brand device: the
   website's section overlines, card kickers, field labels and table heads are
   all this one rank. `.hb-tick` adds its short spectral bar in front. */
.hb-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
}
.hb-tick {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.hb-tick::before {
  content: "";
  width: 14px;
  height: var(--spectral-tick);
  flex: none;
  border-radius: 1px;
  background: var(--gradient-spectral);
}

/* Times, durations, counts: figures that sit in columns must not shift. */
.hb-num { font-variant-numeric: tabular-nums; }

/* Native controls — date pickers, selects, scrollbars, autofill — follow
   the theme they sit in. */
[data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

::selection { background: rgba(67,137,184,0.24); }
