/* Atlas Health — base element styling & shared utility classes.
   Uses tokens only. Not a framework — just sensible defaults + the
   handful of primitives (eyebrow, status dot) reused everywhere. */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-body-mobile);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) {
  body { font-size: var(--size-body); }
}

/* Headlines — Fraunces, sentence case, medium weight */
h1, h2 { font-family: var(--font-display); font-weight: var(--weight-medium); margin: 0; }
h3, h4 { font-family: var(--font-body); font-weight: var(--weight-semibold); margin: 0; }

h1 { font-size: var(--size-h1-mobile); line-height: var(--lh-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--size-h2-mobile); line-height: var(--lh-h2); }
h3 { font-size: var(--size-h3-mobile); line-height: var(--lh-h3); }
@media (min-width: 768px) {
  h1 { font-size: var(--size-h1); }
  h2 { font-size: var(--size-h2); }
  h3 { font-size: var(--size-h3); }
}

p { margin: 0; }
a { color: inherit; }

/* Eyebrow / label — mono, uppercase, tracked */
.ah-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  line-height: 1.4;
  color: var(--text-muted);
}

/* Mono data value */
.ah-data {
  font-family: var(--font-mono);
  font-size: var(--size-data-mobile);
  font-weight: var(--weight-medium);
  line-height: var(--lh-data);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .ah-data { font-size: var(--size-data); } }

/* Status dot — always paired with a text label, never color alone */
.ah-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  flex: none;
}
.ah-dot--optimal { background: var(--status-optimal); }
.ah-dot--monitor { background: var(--status-monitor); }

/* Visible focus for keyboard users */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
