/* ==========================================================================
   CHKEY.ch — Base element styles & utilities
   Applied on top of the token layer. Safe global resets + brand defaults.
   ========================================================================== */

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin: 0 0 0.5em;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-snug); }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

small { font-size: var(--fs-sm); }
strong, b { font-weight: var(--fw-bold); }
code, kbd, samp { font-family: var(--font-mono); }

img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

/* ---- Reusable helpers ---------------------------------------------------- */
.chk-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-primary);
}

.chk-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* License-key text motif */
.chk-keycode {
  font-family: var(--font-mono);
  letter-spacing: var(--ls-key);
  font-weight: var(--fw-medium);
}
