/* Icons website: the Arabic version. Loaded after site.css (and pages.css) by the pages under /ar/ only.
   The layout is not here: site.css and pages.css place things by the reading direction (inline-start / inline-end,
   --dir, --arrow), so one layout serves both languages. This file is the Arabic letter itself: the brand's Arabic
   fonts (the approved profile's: itf Asal Arabic for headings, Almarai for text, Poppins for Latin and figures),
   no tracking, no italics, more air between lines, and the few pieces that read differently in Arabic. */

@font-face { font-family: "itf Asal Arabic"; src: url("../assets/fonts/itfAsalArabic-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "itf Asal Arabic"; src: url("../assets/fonts/itfAsalArabic-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }

/* the mono, for figures only: taken whole, its wide space would stand between Arabic words too */
@font-face { font-family: "Plex Figures"; src: url("../assets/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0030-0039, U+00B7; }
@font-face { font-family: "Plex Figures"; src: url("../assets/fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0030-0039, U+00B7; }

html[lang="ar"] {
  --mono: "Plex Figures", "Almarai", ui-monospace, monospace;          /* figures stay in the mono; Arabic words beside them, and the space between them, in Almarai */
  --head: "Poppins", "itf Asal Arabic", "Almarai", system-ui, sans-serif;
}
html[lang="ar"] body { font-family: "Poppins", "Almarai", system-ui, sans-serif; }

/* Arabic letters join: no tracking anywhere, and no capitals to set */
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] * { font-style: normal !important; }                      /* no slanted Arabic: the accent is the colour alone (agreed 14/11/2026) */

/* headings and every large line: Asal, with room for the marks over and under the letters */
html[lang="ar"] :is(h1, h2, h3, .word, .menu nav a, .p-next b, .go .t, .say, .who b, .trio b, .notes .t, .rows.big p, .reach a, .reach b, .plain-note b, .fmm b, .disc-t, .big-c) { font-family: var(--head); }
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.2; }
html[lang="ar"] .ln { padding-block: .16em .3em; margin-block: -.16em -.3em; }
html[lang="ar"] .hero-h { line-height: 1.24; }
html[lang="ar"] .hero-h .row { padding-block: .12em .3em; margin-block: -.12em -.3em; }
html[lang="ar"] .menu nav a { font-size: clamp(28px, min(7.6vw, calc(var(--vh) * 9.4)), 110px); line-height: 1.34; }      /* Asal stands larger than Poppins at the same size */
html[lang="ar"] .word { line-height: 1.4; }
html[lang="ar"] .say { line-height: 1.6; }
html[lang="ar"] .close-h { line-height: 1.24; }
html[lang="ar"] .p-next b { line-height: 1.4; }

/* small lines: a size up, Almarai reads smaller than the mono did */
html[lang="ar"] :is(.label, .end-t, .q-kind, .cue, .soon) { font-size: 13px; font-weight: 400; text-transform: none; }
html[lang="ar"] .rail { font-size: 12px; }
html[lang="ar"] .nav-lang { font-family: "Poppins", sans-serif; font-size: 14px; }      /* "English", in the Latin face */

/* the top bar's button says "تواصل عبر واتساب"; on a narrow window its last word alone, so the bar still holds everything */
@media (max-width: 520px) { html[lang="ar"] .nav .pill-line i { display: none; } }

/* figures read left to right inside an Arabic line */
html[lang="ar"] :is(.big-n, .stats b[dir="ltr"]) { unicode-bidi: isolate; }
html[lang="ar"] .stats b[dir="ltr"] { text-align: end; }                  /* a figure written left to right still stands on the line's own side */
