/* ══════════════════════════════════════════════════
   VALOR MEDICAL REVIEWS — Typography
   Reset, heading hierarchy, accent rules, utilities
   ══════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--color-body);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ── Heading Hierarchy ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  letter-spacing: var(--tracking-normal);
}

h1 {
  font-size: clamp(2.75rem, 5vw, var(--text-hero));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  font-weight: var(--weight-regular);
}

h2 {
  font-size: clamp(2rem, 3.5vw, var(--text-4xl));
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-normal);
}

h3 {
  font-size: clamp(1.25rem, 2vw, var(--text-2xl));
  line-height: var(--leading-heading);
}

h4 {
  font-size: clamp(1.125rem, 1.5vw, var(--text-md));
  line-height: var(--leading-snug);
}

/* ── Brand Signature: Accent Rule ── */
.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--color-burgundy);
  margin: var(--space-4) auto 0;
}

.section-title--left::after {
  margin-left: 0;
}

.has-rule::after {
  content: '';
  display: block;
  width: 4rem;
  height: 2px;
  background: var(--color-burgundy);
  margin-top: var(--space-3);
}

.has-rule--center::after {
  margin-left: auto;
  margin-right: auto;
}

/* ── Utility Classes ── */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--color-burgundy);
}

.text-lead {
  font-size: var(--text-xl);
  line-height: var(--leading-loose);
  font-weight: var(--weight-regular);
}

.text-muted {
  color: var(--color-muted);
}

.text-center {
  text-align: center;
}

.text-navy {
  color: var(--color-navy);
}

.text-burgundy {
  color: var(--color-burgundy);
}

.text-white {
  color: var(--color-white);
}

.font-heading {
  font-family: var(--font-heading);
}

/* ── On-Dark Wrapper ── */
.on-dark {
  color: var(--color-white);
}

.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 {
  color: var(--color-white);
}

.on-dark p {
  color: rgba(255, 255, 255, 0.88);
}

.on-dark .text-muted {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
}
