/* ============================================================
   Phronesis — Base element styles & utility primitives
   ============================================================ */

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

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

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

/* ---- Headings ---- */
h1, h2, h3, h4 {
  color: var(--text-strong);
  font-weight: var(--fw-bold);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); font-weight: var(--fw-semibold); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); font-weight: var(--fw-semibold); }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--azul-escuro); text-decoration: underline; text-underline-offset: 2px; }

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

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

::selection { background: var(--ouro-suave); color: var(--azul-escuro); }

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

/* ---- Overline / eyebrow label (recorrente na marca) ---- */
.ph-overline {
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--text-accent);
}

/* ---- Gold rule (divisória de distinção) ---- */
.ph-rule-gold {
  width: 48px;
  height: 2px;
  background: var(--ouro);
  border: 0;
  margin: 0 0 var(--space-5);
}
