/* ===========================================================
   ملف: app/www/css/base.css
   القسم: 8 — الصفحة الرئيسية
   الغرض: الأساس والصفحة المتمركزة واتجاه التركيز
   يرتبط بـ: tokens.css · كل الصفحات
   =========================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--blue);
}

img {
  max-width: 100%;
}

.app {
  width: min(100%, var(--app-max));
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-bottom: 110px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  margin: 0;
}

.muted {
  color: var(--muted);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}