/* ============================================================
   Panterra Health — Base element styles & helpers
   Imported into the global closure. Keep minimal & token-driven.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display headings use the serif; tighten optical spacing at size */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--text-strong);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  margin: 0 0 var(--space-3);
}

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

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

img, svg, video { max-width: 100%; display: block; }

::selection { background: var(--accent-wash); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---------- Reusable helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.lede {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: var(--maxw-prose); }
.prose p { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--text-body); }
