@layer tokens, base, layout, components, pages, utilities;

/* IBM Plex Sans Arabic (SIL OFL 1.1, see app/assets/fonts), self-hosted so the
   installed PWA works offline and no third party is contacted. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/IBMPlexSansArabic-Regular-c01be570.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/IBMPlexSansArabic-SemiBold-de050cf3.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/IBMPlexSansArabic-Bold-6900fa6b.woff2") format("woff2");
}

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

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-md);
    line-height: 1.6;
  }

  h1,
  h2,
  h3 {
    margin-block: 0 var(--space-3);
    line-height: 1.3;
  }

  h1 {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
  }

  h2 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
  }

  h3 {
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
  }

  p {
    margin-block: 0 var(--space-3);
  }

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

  :focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
  }

  .icon {
    flex: none;
    vertical-align: middle;
  }
}
