/* Hamed's World v2 · design tokens (round 8). Source: Umm Hamed's request 2026-10-31 §6–§7 and her blueprint «مقاسات الموقع النهائية» /
   «ألوان الموقع النهائية». Values are hers and fixed; when the creative director's 03_drafts/v2/tokens-v2.json lands, it is mapped here
   (same names). Fluid sizes run linearly from her phone value at 390 px to her desktop value at 1440 px, in rem so browser zoom works. */

/* Cairo (OFL 1.1, Fontsource 5.3.0 woff2, licence fonts/v2/OFL-cairo.txt). Two files per weight split by unicode-range:
   the Arabic file holds only Arabic ranges; digits, spaces and Latin come from the Latin file. */
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/v2/cairo-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/v2/cairo-arabic-600-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/v2/cairo-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/v2/cairo-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/v2/cairo-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/v2/cairo-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* colours (§7, exact) */
  --c-ivory: #FAF7F0;      /* main background */
  --c-sand: #F1EADD;       /* secondary background */
  --c-card: #FFFFFF;       /* cards */
  --c-navy: #17263E;       /* headings, primary buttons */
  --c-body: #374151;       /* paragraphs */
  --c-muted: #5D6673;      /* secondary text */
  --c-night: #101C30;      /* night sky, footer */
  --c-gold: #B48A43;       /* small gold details only, never text on light */
  --c-line: #E4DCCD;       /* borders, dividers */
  --c-silver: #C6CCD4;     /* silver details, the feather; never text on light */
  --c-hover: #243B5A;      /* hover / focus of the primary */

  /* type (§6): Cairo 400 text · 600 menu, buttons, children's instructions · 700 headings */
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;   /* CD tokens-v2 font.family */
  --w-text: 400; --w-ui: 600; --w-head: 700;
  /* the nine sizes, phone → desktop: clamp(phone, linear 390→1440, desktop) */
  --fs-hero: clamp(2.25rem, 1.786rem + 1.905vw, 3.5rem);       /* 36 → 56 */
  --fs-page: clamp(1.875rem, 1.643rem + 0.952vw, 2.5rem);      /* 30 → 40 */
  --fs-section: clamp(1.625rem, 1.486rem + 0.571vw, 2rem);     /* 26 → 32 */
  --fs-card: clamp(1.375rem, 1.329rem + 0.190vw, 1.5rem);      /* 22 → 24 */
  --fs-lead: clamp(1.25rem, 1.204rem + 0.190vw, 1.375rem);     /* 20 → 22 */
  --fs-body: 1.125rem;     /* 18 everywhere */
  --fs-kid: 1.25rem;       /* 20: children's instructions and vocabulary */
  --fs-ui: 1.125rem;       /* 18: menu and buttons */
  --fs-small: 1rem;        /* 16: dates, captions, secondary text */
  --lh-ar: 1.8; --lh-en: 1.65; --lh-head: 1.35; --lh-hero: 1.3; --lh-card: 1.4; --lh-ui: 1.3;   /* headings 1.3–1.4 (CD: hero 1.3, page/section 1.35, card 1.4) */
  --measure: 680px;        /* paragraph width cap */

  /* space and shape */
  --gutter: clamp(20px, 5.5vw, 24px);   /* phone 20–24; tablet 40, wide 56–80 below (CD layout.gutter) */
  --wrap: 1200px;
  --sec-y: clamp(56px, 2.3rem + 3.8vw, 96px);   /* CD section_padding_block */
  --radius-btn: 12px;      /* §7 */
  --radius-card: 16px; --radius-img: 12px; --radius-cover: 6px;
  --btn-h: 48px;           /* minimum */
  --shadow: 0 1px 2px rgba(16, 28, 48, .06), 0 8px 24px -14px rgba(16, 28, 48, .18);   /* "ظلال خفيفة" (CD shadow.card) */
  --shadow-hover: 0 2px 4px rgba(16, 28, 48, .06), 0 14px 32px -16px rgba(16, 28, 48, .22);
  --focus: 3px solid var(--c-hover);
  --ease-out: cubic-bezier(.2, .7, .2, 1);   /* CD motion.easing.standard */
  --fs-slogan: var(--fs-section);   /* CD derived: «يكبر الحلم…» at section size, 600 */

  /* book world (overridden per book from content: theme.accent / theme.tint) */
  --book-accent: var(--c-silver);
  --book-tint: var(--c-sand);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }
@media (min-width: 1440px) { :root { --gutter: 80px; } }
