/* Colors (light + dark), fonts and base text styles */
/* Layout: a phone app. Full-screen on phones, inside a phone frame on larger screens.
   Home is a vertical feed of full-height screens that snap one by one; a bottom tab bar switches sections. */
:root{
  --purple:#7E578D; --lavender:#C7A8D0; --sand:#F3D7A5; --yellow:#FCC856; --green:#9AB678; --coral:#F78C7F; --sky:#AED7E5; --tan:#E8BE90;
  --bg:#FFF8EC; --surface:#FFFDF7; --s-sky:#AED7E5; --s-sand:#F3D7A5; --s-lav:#E7D8EE; --ink:#4B2E5A; --muted:#7A5F84; --line:#EAD9BE;
  --title:#C9523F; --cloud:#F4E6DF; --p1:#2F86B3; --p1-soft:#DCEFF7; --p1-ink:#2A7AA5; --ok:#4F7F33; --p2:#7E578D; --p2-soft:#EADDF0; --p2-ink:#7E578D; --p3-soft:#FDE1DC; --p3-ink:#B84A39; --p4-soft:#E3EED8; --p4-ink:#4C7631;
  --err:#C23B2A; --stage:#9FCDDE;
  --f-head:"Dosis","Arial Rounded MT Bold",system-ui,sans-serif; --f-body:"Fredoka",system-ui,sans-serif;
  --f-hand:"Caveat","Segoe Print",cursive; --f-ar:"Baloo Bhaijaan 2",Tahoma,sans-serif;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#211A31; --surface:#2C2441; --s-sky:#263257; --s-sand:#3A2D3F; --s-lav:#31274A; --ink:#FFF3DE; --muted:#CDB9D6; --line:#43375C;
  --title:#FFA294; --cloud:#3A3150; --p1-soft:#1F3448; --p1-ink:#8CCBEA; --ok:#A9D07F; --p2:#9F78B0; --p2-soft:#3D2F52; --p2-ink:#D4B6E2; --p3-soft:#4A2A2C; --p3-ink:#FFAA9C; --p4-soft:#2C3B25; --p4-ink:#B5D68F; --err:#FF8B7A; --stage:#171226; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#211A31; --surface:#2C2441; --s-sky:#263257; --s-sand:#3A2D3F; --s-lav:#31274A; --ink:#FFF3DE; --muted:#CDB9D6; --line:#43375C;
  --title:#FFA294; --cloud:#3A3150; --p1-soft:#1F3448; --p1-ink:#8CCBEA; --ok:#A9D07F; --p2:#9F78B0; --p2-soft:#3D2F52; --p2-ink:#D4B6E2; --p3-soft:#4A2A2C; --p3-ink:#FFAA9C; --p4-soft:#2C3B25; --p4-ink:#B5D68F; --err:#FF8B7A; --stage:#171226; color-scheme:dark}
html,body{height:100%}
h1,h2,h3{font-family:var(--f-head);font-weight:800;text-transform:uppercase;line-height:1.02;margin:0;text-wrap:balance}
[lang="ar"]{font-family:var(--f-ar);direction:rtl}
:focus-visible{outline:3px solid var(--purple);outline-offset:2px;border-radius:10px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
