/* ============================================================
   ScaleRetain — Base element defaults
   Applied globally so cards & kits inherit canvas + type.
   ============================================================ */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  color: var(--text-primary);
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-soft); color: var(--sr-blue-100); }

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

/* Utility: the brand canvas with its top glow — used by kit/card shells */
.sr-canvas {
  background:
    var(--grad-page-glow),
    var(--surface-canvas);
  background-repeat: no-repeat;
  color: var(--text-primary);
}

/* Utility: accent word inside a headline */
.sr-accent { color: var(--text-accent); }
