/* ========================================================================
   BASE — Reset + typography + globals
   Load order: tokens → base → layout → components → woocommerce
   ======================================================================== */

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

* { margin: 0; }

html,
body { height: 100%; }

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

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Typography scale — display font for headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

.h-hero {
  font-size: var(--text-hero);
  letter-spacing: var(--tracking-tightest);
}
.h-display { font-size: var(--text-4xl); }

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease-out);
}
a:hover { color: var(--text-muted); }
a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Urdu accent — always inline, RTL */
.urdu,
[lang="ur"] {
  font-family: var(--font-urdu);
  line-height: 1.8;
  direction: rtl;
  display: inline-block;
}

/* Eyebrow labels */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-muted);
}
.eyebrow--ink { color: var(--text); }

/* Accessible skip link */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto !important;
  width: auto; height: auto;
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  color: var(--paper);
  z-index: var(--z-toast);
  top: 8px; left: 8px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--ink); }

/* Selection */
::selection {
  background: var(--ink);
  color: var(--paper);
}
