/* ===========================================================================
   Sugarcane — Base / reset and global element styles.
   Applies the token system to raw HTML so specimens, cards, and kits share
   a consistent baseline. Consuming projects get this for free via styles.css.
   =========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--bg);
  letter-spacing: var(--ls-normal);
}

::selection { background: var(--selection-bg); color: var(--selection-fg); }

/* Headings default to the display family, tight tracking */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-snug);
  font-weight: var(--fw-semibold);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--primary-hover); }

/* Numeric / code / IDs */
code, kbd, samp, .mono { font-family: var(--font-mono); }

/* Tabular numerals for any table cell by default */
table { font-variant-numeric: tabular-nums lining-nums; }

/* Focus visibility — keyboard only */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

button { font: inherit; color: inherit; }

img, svg, video { display: block; max-width: 100%; }

hr { border: none; border-top: var(--border-width) solid var(--border); }

/* ---- Utility text roles (optional, used by cards/specimens) ----------- */
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
