/* MAJUBAH Consulting — Base layer & lightweight helpers.
   Minimal resets + a few brand utility classes used across specimens, components and kits. */

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

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

/* Headings default to display family, navy, tight */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--text-strong); line-height: var(--leading-tight); margin: 0; font-weight: var(--fw-700, 700); letter-spacing: var(--tracking-tight); }

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

:where(button, [role="button"], input, textarea, select):focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* ---- Helpers ---- */
.mjb-container { width: 100%; max-width: var(--container-xl); margin-inline: auto; padding-inline: var(--gutter); }

.mjb-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
/* eyebrow with a short corail rule before the text */
.mjb-eyebrow--ruled::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.mjb-display { font-family: var(--font-display); color: var(--text-strong); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.mjb-title-caps { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-caps-lg); }

.mjb-lead { font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--text-muted); }

/* corail accent rule */
.mjb-rule { width: 48px; height: 3px; background: var(--accent); border: 0; border-radius: var(--radius-pill); }

/* surface helpers */
.mjb-on-navy { background: var(--surface-navy); color: var(--text-on-navy); }
.mjb-on-navy h1, .mjb-on-navy h2, .mjb-on-navy h3 { color: #fff; }
