/* مُرتقى — الأساس */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); letter-spacing: -0.5px; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

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

ul { margin: 0; padding: 0; list-style: none; }

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

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

button { font: inherit; color: inherit; }

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

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

.section { padding-block: var(--sp-7); }

.section-head {
  display: grid;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.section-head p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 58ch;
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--sp-4);
  top: -100px;
  z-index: 100;
  background: var(--surface);
  color: var(--brand);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  font-weight: 700;
}
.skip-link:focus { top: var(--sp-3); }

@media (min-width: 768px) {
  :root { --fs-3xl: 3rem; }
  .section { padding-block: var(--sp-8); }
  .container { padding-inline: var(--sp-5); }
}

@media (min-width: 1024px) {
  :root { --fs-3xl: var(--fs-4xl); }
  .section { padding-block: var(--sp-9); }
}

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