/* ============================================================
   HRC Punjab Bar Council — Base element styles & primitives
   ============================================================ */

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

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

a { color: var(--text-link); text-underline-offset: 2px; }
a:hover { color: var(--green-700); }

small { font-size: var(--text-sm); }
strong { font-weight: var(--weight-semibold); }

/* ---- Reusable institutional helpers ----------------------- */

/* Eyebrow / kicker — small uppercase label above headings */
.hrc-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Gold rule used to dignify section headers */
.hrc-rule-gold {
  width: 56px;
  height: var(--rule-accent);
  background: var(--brand-accent);
  border-radius: var(--radius-pill);
  border: none;
  margin: var(--space-3) 0;
}

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

/* Subtle institutional watermark/pattern surface */
.hrc-surface-tint { background: var(--surface-page); }
.hrc-surface-brand {
  background: var(--surface-brand);
  color: var(--text-on-brand);
}
.hrc-surface-dark {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06)),
    var(--surface-inverse);
  color: var(--text-on-dark);
}
