/*
 * Mustafa WP — reset, typography, accessibility primitives.
 */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

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

h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 800; color: var(--text-primary); text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { max-width: 68ch; }

a { color: var(--primary); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--primary-hover); }

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

ul, ol { padding-inline-start: 1.4em; }

code, pre { font-family: var(--font-mono); }
pre {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}
:not(pre) > code {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .12em .4em;
  font-size: .9em;
  direction: ltr;
  unicode-bidi: isolate;
}

button { font: inherit; cursor: pointer; color: inherit; }

/* Accessibility */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
.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;
}
/* Skip link: collapsed to a 1px box (no layout/overflow) until focused. */
.mwp-skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.mwp-skip-link:focus {
  position: fixed;
  inset-inline-start: 8px;
  top: 8px;
  width: auto; height: auto;
  padding: 10px 18px; margin: 0;
  overflow: visible;
  clip: auto;
  color: var(--on-primary);
}

::selection { background: var(--primary-soft); color: var(--text-primary); }
