/* ============================================================
   theautomatedfirm — Base element defaults & helpers
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: var(--surface-ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display headings default to forest, tight + heavy, sentence case */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-display);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--type-h1); font-weight: var(--weight-extra); letter-spacing: var(--tracking-snug); line-height: var(--leading-snug); }
h2 { font-size: var(--type-h2); font-weight: var(--weight-bold); letter-spacing: var(--tracking-snug); line-height: var(--leading-snug); }
h3 { font-size: var(--type-h3); font-weight: var(--weight-bold); letter-spacing: var(--tracking-snug); line-height: var(--leading-snug); }

p { margin: 0; text-wrap: pretty; }

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

/* ---- Utility primitives reused by cards ---- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
}

/* Ember rule — the brand's signature accent line */
.ember-rule {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-ember-500);
  border: 0;
  border-radius: 2px;
}
