/* Fonts, reset and element defaults. Colors come only from tokens.css. */

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

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

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

@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/ReadexPro.woff2") format("woff2");
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  min-block-size: 100vh;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-regular);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

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

h1 {
  font-size: var(--font-size-title);
  line-height: var(--line-height-title);
}

h2,
h3 {
  font-size: var(--font-size-heading);
  line-height: var(--line-height-heading);
}

p {
  margin: 0;
}

a {
  color: var(--color-brand-action);
  text-underline-offset: 3px;
}

img,
svg {
  display: block;
  max-inline-size: 100%;
}

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

button {
  cursor: pointer;
}

/* Amounts and counts line up in columns; digits are always Latin 0-9. */
.tabular-numbers {
  font-variant-numeric: tabular-nums;
}

/* One focus ring for every interactive element, in brand-action. */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-ring);
}

[tabindex="-1"]:focus {
  outline: none;
}

.icon {
  inline-size: 24px;
  block-size: 24px;
  flex: none;
}

[dir="rtl"] .icon-directional {
  transform: scaleX(-1);
}

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

.skip-link {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--color-brand-action);
  color: var(--color-on-brand);
  font-weight: var(--font-weight-semibold);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
