/* =========================================================================
   Saddler's Ridge — Base element defaults
   Light, opinionated resets that wire the tokens to bare HTML. Consumers get
   sensible typography and color the moment they link styles.css.
   ========================================================================= */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-regular);
  color: var(--text-body);
  background-color: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-md); }

/* Italic serif is the brand emphasis device */
em, .em { font-style: italic; color: var(--text-accent); }

p { margin: 0 0 var(--space-4); max-width: var(--measure); }

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

small { font-size: var(--text-sm); }
strong, b { font-weight: var(--weight-bold); }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

hr {
  border: 0;
  border-top: var(--border-hair) solid var(--hairline);
  margin: var(--space-8) 0;
}

::selection { background: var(--gold-200); color: var(--bark-800); }

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

/* ---- A couple of reusable brand utilities ---- */
.sr-eyebrow {
  font-family: var(--eyebrow-font);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: var(--eyebrow-transform);
  color: var(--text-accent);
}
.sr-rule {
  width: 48px; height: 2px;
  background: var(--brand-accent);
  border: 0;
}
