/* Self-hosted Arabic fonts, subset with fontTools (command: docs/superpowers/perf-budget.md, Fonts).
   "?v=3" is a manual cache-buster: the same URL is preloaded in the layouts. Bump BOTH when a font file changes. */
@font-face{font-family:"Amiri";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/amiri-700.woff2?v=3") format("woff2");unicode-range:U+0020-007E,U+00A0,U+00A9,U+00AB,U+00B7,U+00BB,U+00D7,U+060C,U+061B,U+061F,U+0621-063A,U+0640-0652,U+0660-066D,U+0670,U+0679,U+067E,U+0686,U+0698,U+06A9,U+06AF,U+06CC,U+06F0-06F9,U+200C-200F,U+2010-2014,U+2018-201D,U+2022,U+2026,U+2039-203A,U+FD3E-FD3F,U+FEFF;}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/ibmplexsansarabic-400.woff2?v=3") format("woff2");unicode-range:U+0020-007E,U+00A0,U+00A9,U+00AB,U+00B7,U+00BB,U+00D7,U+060C,U+061B,U+061F,U+0621-063A,U+0640-0652,U+0660-066D,U+0670,U+0679,U+067E,U+0686,U+0698,U+06A9,U+06AF,U+06CC,U+06F0-06F9,U+200C-200F,U+2010-2014,U+2018-201D,U+2022,U+2026,U+2039-203A,U+FD3E-FD3F,U+FEFF;}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/ibmplexsansarabic-600.woff2?v=3") format("woff2");unicode-range:U+0020-007E,U+00A0,U+00A9,U+00AB,U+00B7,U+00BB,U+00D7,U+060C,U+061B,U+061F,U+0621-063A,U+0640-0652,U+0660-066D,U+0670,U+0679,U+067E,U+0686,U+0698,U+06A9,U+06AF,U+06CC,U+06F0-06F9,U+200C-200F,U+2010-2014,U+2018-201D,U+2022,U+2026,U+2039-203A,U+FD3E-FD3F,U+FEFF;}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/ibmplexsansarabic-700.woff2?v=3") format("woff2");unicode-range:U+0020-007E,U+00A0,U+00A9,U+00AB,U+00B7,U+00BB,U+00D7,U+060C,U+061B,U+061F,U+0621-063A,U+0640-0652,U+0660-066D,U+0670,U+0679,U+067E,U+0686,U+0698,U+06A9,U+06AF,U+06CC,U+06F0-06F9,U+200C-200F,U+2010-2014,U+2018-201D,U+2022,U+2026,U+2039-203A,U+FD3E-FD3F,U+FEFF;}

/* Al Bassam — design tokens (single source of truth). Every colour on every surface
   comes from here; tints use color-mix(in srgb,var(--token) N%,transparent).
   Sampled from the logo: Bassam Blue #382F89 + Bassam Red #DF0024. */
:root{
  /* brand */
  --blue:#382f89;           /* royal indigo: structure, trust, headings */
  --blue-deep:#2a2068;      /* hover, footer, deep bands */
  --blue-700:#322a7e;
  --red:#df0024;            /* the scarce spark: fills and CTAs only (<=10% of a screen) */
  --red-deep:#b8001d;       /* red hover */
  --red-text:#b8001d;       /* red for SMALL text: 6.3:1 on paper, 5.8:1 on raised (WCAG AA) */
  --on-dark-accent:#ff8a9c; /* the only red tint allowed on blue/night (plain red fails there): 4.8:1 on blue */

  /* neutrals (warm paper field, never pure white/gray) */
  --paper:#f7f5f0;          /* page background */
  --raised:#efece5;         /* raised sections, alternating bands */
  --surface:#fbfaf6;        /* raised-white panels and cards, still warm (roadmap D12) */
  --row-hover:#f3f0e8;      /* table row hover */
  --hairline:#e3ddd0;       /* dividers, card borders */
  --field-border:#8f8674;   /* input/select/textarea strokes: 3.3:1 on paper (WCAG 1.4.11) */
  --placeholder:#857d6f;    /* placeholder hints: 3.7:1 on paper */
  --ink:#1b1830;            /* primary text (blue-tinted near-black) */
  --muted:#6a6680;          /* secondary text: 4.6:1 on raised */
  --on-color:#fdfcf9;       /* text/icons on blue, red and night (replaces #fff) */
  --night:#14112a;          /* the single dark: hero stage behind photos */

  /* status */
  --green:#1f7a4d;          /* accepted / active / success */
  --amber:#7d5c22;          /* in-review TEXT: 5.6:1 on paper */
  --amber-fill:#a9803f;     /* in-review tint source (backgrounds only) */

  /* elevation (DESIGN.md §4) */
  --focus-ring:2px solid var(--blue);          /* one focus ring for site + admin */
  --focus-halo:0 0 0 4px var(--paper);
  --focus-ring-on-dark:2px solid var(--on-color);  /* the same ring on blue/night surfaces, where blue vanishes */
  --focus-halo-on-dark:0 0 0 4px var(--blue-deep);
  --shadow-lift:0 6px 24px color-mix(in srgb,var(--ink) 10%,transparent);
  --shadow-overlay:0 12px 40px color-mix(in srgb,var(--ink) 18%,transparent);

  /* shape */
  --r-btn:8px;
  --r-field:9px;
  --r-card:14px;

  /* type */
  --fd:"Amiri", Georgia, serif;                        /* display: Arabic Naskh (headings only) */
  --fb:"IBM Plex Sans Arabic", system-ui, sans-serif; /* body: Arabic sans */

  --maxw:1180px;
  --ticker-h:44px;          /* announcement strip above the masthead (its 44px pause button sets the floor) */
  --bar-h:78px;             /* sticky public masthead height: anchor jumps and the mobile sheet offset by it */
}
