/* ===========================================================================
   Ommpo Healthcare — Base element styles & helpers
   Light-touch resets + brand defaults. Not a utility framework.
   =========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

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;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); font-weight: var(--display-weight); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

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

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

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

::selection { background: var(--sage-300); color: var(--green-900); }

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

hr { border: none; border-top: var(--border-w) solid var(--border-subtle); margin: var(--space-6) 0; }

/* --- Brand helper classes ---------------------------------------------- */
.om-eyebrow {
  font-family: var(--font-body);
  font-size: var(--eyebrow-size);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--eyebrow-spacing);
  text-transform: uppercase;
  color: var(--color-accent);
}

.om-display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}

.om-surface-inverse {
  background: var(--surface-inverse);
  color: var(--text-on-brand);
}
