/* Palette and fonts for the whole site. Change colors here, nowhere else. */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@900&family=IBM+Plex+Sans+Arabic:wght@400;500;700&family=Inter:wght@400;500;700;900&family=JetBrains+Mono:wght@400;700&display=swap");

:root {
  --sky-top: #F5EFE6;
  --sky-bottom: #EFE6D7;
  --green: #15392D;
  --box: #0D2A21;
  --light: #F4F0E6;
  --lime: #C7EC59;
  --lime-dark: #9BC33B;
  --cloud: #FCFAF8;
  --muted: #7F9C8E; /* inactive menu choice */

  /* Each list starts with the Latin font; Arabic letters are not in it,
     so the browser takes them from the Arabic font that follows. */
  --font-sans: "Inter", "IBM Plex Sans Arabic", system-ui, "Segoe UI", sans-serif;
  --font-display: "Inter", "Cairo", "IBM Plex Sans Arabic", system-ui, "Segoe UI", sans-serif; /* heavy headlines */
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace; /* code and dates */
  --font-label: var(--font-mono); /* name tags, menus, badges */
}

/* Arabic has no monospace look worth using, and a monospace space is too wide
   between Arabic words, so on Arabic pages the labels use the Arabic font. */
:root:lang(ar) { --font-label: "IBM Plex Sans Arabic", "JetBrains Mono", "Cascadia Mono", Consolas, sans-serif; }

time { font-family: var(--font-mono); }

/* Arabic letters join up, so extra space between letters breaks the words. */
:lang(ar) { letter-spacing: normal !important; }

/* The menu cursor points at its text: mirrored on right-to-left pages. */
[dir="rtl"] .cursor { display: inline-block; transform: scaleX(-1); }
