/* Alwafaa School Academy · base layer: fonts, colour tokens, motifs, reset.
   Shared by the main site, the Holy Quran reader, Qaida and the two Tajweed lessons.
   Fonts (SIL Open Font License) are served from /fonts. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/fraunces.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(../fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/atkinson.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/atkinson-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF; }
@font-face { font-family: "Reem Kufi"; font-weight: 700; font-display: swap; src: url(../fonts/reem-kufi-700.woff2) format("woff2"); }
@font-face { font-family: "Aref Ruqaa"; font-weight: 700; font-display: swap; src: url(../fonts/ruqaa-700.woff2) format("woff2"); }
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap; src: url(../fonts/amiri.woff2?v=2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url(../fonts/plex-ar-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600 700; font-display: swap; src: url(../fonts/plex-ar-600.woff2) format("woff2"); }

:root {
  /* Paper & ink: a warm unbleached page and an iron-gall black */
  --paper: #EFE6D0; --paper-2: #E6DBBF; --panel: #F8F2E2; --ink: #17161D; --ink-2: #3D3B46; --mute: #655F50;
  --hair: rgb(23 22 29 / .2); --rule: #17161D;
  /* The tajweed palette: each subject carries one colour of the colour-coded Mushaf */
  --green: #1D6B49; --green-soft: #D5E3CC;   /* Quran: ghunnah */
  --madder: #A23623; --madder-soft: #F0D5C3; /* Islamic Studies: madd */
  --blue: #2A5CA8; --blue-soft: #D2DDEC;     /* Arabic: qalqalah */
  --gold: #A9791A; --gold-soft: #EBD9A4; --gold-ink: #6B4A07;
  --night: #17161D; --night-2: #23212D; --on-night: #EFE6D0; --on-night-2: #BDB5A0; --night-gold: #E2B85B;
  --on-madder: #FFF9EE;
  --f-hand: "Aref Ruqaa", "Noto Naskh Arabic", serif;
  --f-naskh: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --f-kufi: "Reem Kufi", "Noto Kufi Arabic", sans-serif;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-quran: "KFGQPC Hafs", "Amiri", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
  --m-rosette: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M97.2%2050.0L95.6%2053.0L91.6%2055.5L87.6%2057.5L85.5%2059.5L86.3%2062.3L88.8%2066.1L91.0%2070.2L90.9%2073.6L88.0%2075.4L83.3%2075.6L78.8%2075.3L76.0%2076.0L75.3%2078.8L75.6%2083.3L75.4%2088.0L73.6%2090.9L70.2%2091.0L66.1%2088.8L62.3%2086.3L59.5%2085.5L57.5%2087.6L55.5%2091.6L53.0%2095.6L50.0%2097.2L47.0%2095.6L44.5%2091.6L42.5%2087.6L40.5%2085.5L37.7%2086.3L33.9%2088.8L29.8%2091.0L26.4%2090.9L24.6%2088.0L24.4%2083.3L24.7%2078.8L24.0%2076.0L21.2%2075.3L16.7%2075.6L12.0%2075.4L9.1%2073.6L9.0%2070.2L11.2%2066.1L13.7%2062.3L14.5%2059.5L12.4%2057.5L8.4%2055.5L4.4%2053.0L2.8%2050.0L4.4%2047.0L8.4%2044.5L12.4%2042.5L14.5%2040.5L13.7%2037.7L11.2%2033.9L9.0%2029.8L9.1%2026.4L12.0%2024.6L16.7%2024.4L21.2%2024.7L24.0%2024.0L24.7%2021.2L24.4%2016.7L24.6%2012.0L26.4%209.1L29.8%209.0L33.9%2011.2L37.7%2013.7L40.5%2014.5L42.5%2012.4L44.5%208.4L47.0%204.4L50.0%202.8L53.0%204.4L55.5%208.4L57.5%2012.4L59.5%2014.5L62.3%2013.7L66.1%2011.2L70.2%209.0L73.6%209.1L75.4%2012.0L75.6%2016.7L75.3%2021.2L76.0%2024.0L78.8%2024.7L83.3%2024.4L88.0%2024.6L90.9%2026.4L91.0%2029.8L88.8%2033.9L86.3%2037.7L85.5%2040.5L87.6%2042.5L91.6%2044.5L95.6%2047.0L97.2%2050.0Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
  --m-rosette-ring: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M97.2%2050.0L95.6%2053.0L91.6%2055.5L87.6%2057.5L85.5%2059.5L86.3%2062.3L88.8%2066.1L91.0%2070.2L90.9%2073.6L88.0%2075.4L83.3%2075.6L78.8%2075.3L76.0%2076.0L75.3%2078.8L75.6%2083.3L75.4%2088.0L73.6%2090.9L70.2%2091.0L66.1%2088.8L62.3%2086.3L59.5%2085.5L57.5%2087.6L55.5%2091.6L53.0%2095.6L50.0%2097.2L47.0%2095.6L44.5%2091.6L42.5%2087.6L40.5%2085.5L37.7%2086.3L33.9%2088.8L29.8%2091.0L26.4%2090.9L24.6%2088.0L24.4%2083.3L24.7%2078.8L24.0%2076.0L21.2%2075.3L16.7%2075.6L12.0%2075.4L9.1%2073.6L9.0%2070.2L11.2%2066.1L13.7%2062.3L14.5%2059.5L12.4%2057.5L8.4%2055.5L4.4%2053.0L2.8%2050.0L4.4%2047.0L8.4%2044.5L12.4%2042.5L14.5%2040.5L13.7%2037.7L11.2%2033.9L9.0%2029.8L9.1%2026.4L12.0%2024.6L16.7%2024.4L21.2%2024.7L24.0%2024.0L24.7%2021.2L24.4%2016.7L24.6%2012.0L26.4%209.1L29.8%209.0L33.9%2011.2L37.7%2013.7L40.5%2014.5L42.5%2012.4L44.5%208.4L47.0%204.4L50.0%202.8L53.0%204.4L55.5%208.4L57.5%2012.4L59.5%2014.5L62.3%2013.7L66.1%2011.2L70.2%209.0L73.6%209.1L75.4%2012.0L75.6%2016.7L75.3%2021.2L76.0%2024.0L78.8%2024.7L83.3%2024.4L88.0%2024.6L90.9%2026.4L91.0%2029.8L88.8%2033.9L86.3%2037.7L85.5%2040.5L87.6%2042.5L91.6%2044.5L95.6%2047.0L97.2%2050.0Z%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2230%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E");
  --m-star: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M50.0%202.0L61.5%2022.3L83.9%2016.1L77.7%2038.5L98.0%2050.0L77.7%2061.5L83.9%2083.9L61.5%2077.7L50.0%2098.0L38.5%2077.7L16.1%2083.9L22.3%2061.5L2.0%2050.0L22.3%2038.5L16.1%2016.1L38.5%2022.3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
  --m-lattice: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M32.0%2012.8L36.4%2021.4L45.6%2018.4L42.6%2027.6L51.2%2032.0L42.6%2036.4L45.6%2045.6L36.4%2042.6L32.0%2051.2L27.6%2042.6L18.4%2045.6L21.4%2036.4L12.8%2032.0L21.4%2027.6L18.4%2018.4L27.6%2021.4Z%22%2F%3E%3Cpath%20d%3D%22M32%200V8M32%2056V64M0%2032H8M56%2032H64%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%229%22%2F%3E%3Ccircle%20cx%3D%2264%22%20cy%3D%220%22%20r%3D%229%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%2264%22%20r%3D%229%22%2F%3E%3Ccircle%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%229%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --m-arch: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20150%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%20150V62C0%2036%2030%2014%2050%200C70%2014%20100%2036%20100%2062V150Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
  --m-arch-line: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20150%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M1%20150V62C1%2036%2031%2014%2050%201.5C69%2014%2099%2036%2099%2062V150%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20vector-effect%3D%22non-scaling-stroke%22%2F%3E%3C%2Fsvg%3E");
}
:root[lang="ar"] {
  --f-display: "Reem Kufi", "Noto Kufi Arabic", "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Atkinson Hyperlegible Next", "Segoe UI", Tahoma, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15141B; --paper-2: #1D1C26; --panel: #1F1E29; --ink: #EDE5D0; --ink-2: #CFC7B2; --mute: #A29B86;
    --hair: rgb(237 229 208 / .18); --rule: #EDE5D0;
    --green: #5FBB8C; --green-soft: #1C3328; --madder: #E57B5D; --madder-soft: #3D2119; --blue: #7BA3E6; --blue-soft: #1C2A44;
    --gold: #DDB451; --gold-soft: #3A2F13; --gold-ink: #EBCB7E;
    --night: #0D0C12; --night-2: #17161F; --on-madder: #1B0C07;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15141B; --paper-2: #1D1C26; --panel: #1F1E29; --ink: #EDE5D0; --ink-2: #CFC7B2; --mute: #A29B86;
  --hair: rgb(237 229 208 / .18); --rule: #EDE5D0;
  --green: #5FBB8C; --green-soft: #1C3328; --madder: #E57B5D; --madder-soft: #3D2119; --blue: #7BA3E6; --blue-soft: #1C2A44;
  --gold: #DDB451; --gold-soft: #3A2F13; --gold-ink: #EBCB7E;
  --night: #0D0C12; --night-2: #17161F; --on-madder: #1B0C07;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video, canvas { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--madder); outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; inset-block-start: 8px; inset-inline-start: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
