/* ============================================================
   JMR — BASE LAYER
   Light reset + element defaults wired to brand tokens.
   Opt-in: consumers link styles.css which pulls this in.
   ============================================================ */

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

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

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

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--text-primary); }
p { margin: 0; }

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

button { font-family: inherit; }

::selection { background: color-mix(in srgb, var(--jmr-gold) 38%, transparent); }

:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: 2px;
}

/* Headings default to the brand voice */
h1 { font-family: var(--font-display); font-weight: var(--fw-bold);     font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-family: var(--font-body);    font-weight: var(--fw-semibold); font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-family: var(--font-body);    font-weight: var(--fw-semibold); font-size: var(--fs-h4); line-height: var(--lh-snug); }
