/* ============================================================
   XPERTISE — BASE / RESET + ELEMENT DEFAULTS
   ============================================================ */

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

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

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

/* ---- Headings default to display font ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin: 0 0 0.5em;
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
}
h1 { font-size: var(--text-4xl); font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
h2 { font-size: var(--text-3xl); font-weight: var(--fw-semibold); }
h3 { font-size: var(--text-2xl); font-weight: var(--fw-semibold); }
h4 { font-size: var(--text-xl);  font-weight: var(--fw-semibold); }
h5 { font-size: var(--text-lg);  font-weight: var(--fw-semibold); }
h6 { font-size: var(--text-base);font-weight: var(--fw-semibold); }

p { margin: 0 0 1em; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

::selection { background: rgba(91, 155, 213, 0.28); color: var(--navy-deep); }

hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-8) 0;
}

/* ---- Reusable helper classes ---- */
.x-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-accent);
}
.x-eyebrow--gold { color: var(--text-premium); }
.x-eyebrow--muted { color: var(--text-muted); }

.x-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.x-container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Hairline rule used as a precision/engineering motif */
.x-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--steel-blue), transparent);
}
