/* PrintFire — Base reset & document defaults
   Built on CSS logical properties so the same rules work LTR (English) and
   RTL (Arabic) by flipping a single dir attribute on <html>. */

*, *::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-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);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0;
  font-weight: var(--fw-extrabold);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--text-accent); text-decoration: none; }

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

button { font-family: inherit; }

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

/* Arabic body copy benefits from a touch more leading */
[dir="rtl"] body { line-height: var(--lh-relaxed); }

/* Layout helpers */
.pf-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.pf-section { padding-block: var(--section-y); }

/* Visually hidden (a11y) */
.pf-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
