/* Expert OPTIC — Base element styles & a few brand utilities.
   Kept light: resets, sensible defaults, and reusable text roles. */

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

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

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

/* Headings — bold grotesque, tight (echo the heavy "expert" sign) */
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--text-strong);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); line-height: var(--lh-tight); font-weight: var(--fw-extrabold); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); font-weight: var(--fw-semibold); }
h4 { font-size: var(--text-lg); font-weight: var(--fw-semibold); }

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

a { color: var(--text-brand); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--brand-press); }

strong { font-weight: var(--fw-semibold); color: var(--text-strong); }

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

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---- Brand text utilities ---- */

/* Eyebrow / micro-label: spaced-out sans caps */
.eyebrow {
  font-family: var(--eyebrow-font);
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-brand);
  margin: 0;
}

/* Technical spec text (prescriptions, prices, hours) */
.spec {
  font-family: var(--spec-font);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-normal);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Lead paragraph */
.lead {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}

/* Display heading helper — for hero scale beyond h1 */
.display {
  font-family: var(--display-font);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
  margin: 0;
}

/* Brand script accent — the "optic" flourish. Use sparingly, large. */
.script {
  font-family: var(--script-font);
  font-weight: 400;
  color: var(--blue-500);
  letter-spacing: 0;
}

/* A thin hairline rule used as a section marker */
.rule { border: 0; border-top: var(--hairline); margin: var(--space-6) 0; }
