/* Wishes design system — TOKENS. The only place where raw values are chosen.
   Everything else reads var(--…). Two complete themes: light ("papier") and dark ("nuit prune"). */
@layer vendor, tokens, base, layout, components, plugins, pages, legacy, bridge;

@font-face{font-family:"Fraunces Variable";font-style:normal;font-display:swap;font-weight:300 900;src:url("../../../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations")}
@font-face{font-family:"Inter Variable";font-style:normal;font-display:swap;font-weight:100 900;src:url("../../../fonts/inter-latin-wght-normal.woff2") format("woff2-variations")}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-display:swap;font-weight:400;src:url("../../../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-display:swap;font-weight:600 700;src:url("../../../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2")}

@layer tokens{
:root{
  /* type */
  --font-ui:"Inter Variable","IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-display:"Fraunces Variable","IBM Plex Sans Arabic",Georgia,"Times New Roman",serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --fs-xs:.75rem;--fs-s:.8125rem;--fs-m:.9375rem;--fs-l:1.0625rem;--fs-h3:1.25rem;--fs-h2:clamp(1.375rem,1.1rem + .9vw,1.75rem);--fs-h1:clamp(1.75rem,1.3rem + 1.6vw,2.375rem);
  --lh-tight:1.2;--lh-base:1.55;
  /* space (4px scale) */
  --s-1:.25rem;--s-2:.5rem;--s-3:.75rem;--s-4:1rem;--s-5:1.5rem;--s-6:2rem;--s-7:3rem;--s-8:4rem;
  /* shape */
  --r-s:8px;--r-m:14px;--r-pill:999px;
  --control-h:2.5rem;--control-h-sm:2rem;
  --border:1px solid var(--line);
  /* motion */
  --ease:cubic-bezier(.2,.7,.2,1);--t-fast:.12s;--t-base:.2s;
  /* layers */
  --z-sticky:20;--z-sidebar:40;--z-topbar:30;--z-menu:60;--z-modal:80;--z-toast:90;--z-loader:100;
  /* breakpoints (documentation; media queries use the literal values) */
  --bp-sm:640px;--bp-md:900px;--bp-lg:1180px;--bp-xl:1440px;
  --sidebar-w:16.5rem;--sidebar-w-rail:4.5rem;--topbar-h:3.75rem;
  color-scheme:light;
}
/* LIGHT — "papier": warm ivory, plum ink, one rose accent, brass for precious signals */
:root,[data-theme="light"]{
  --bg:#F6F1EA;--surface:#FFFDFB;--raised:#FFFFFF;--sunken:#EFE7DD;--overlay:rgba(42,33,38,.48);
  --text:#2A2126;--text-soft:#5B4F56;--text-mute:#766A71;--text-inverse:#FFFFFF;
  --line:#E2D8CC;--line-strong:#CDBFB1;
  --primary:#A03A5B;--primary-hover:#8A2F4D;--primary-soft:#F7E6EC;--primary-ink:#FFFFFF;
  --brass:#8C6220;--brass-soft:#F5EAD3;
  --success:#2A7350;--success-soft:#E0F1E8;--warning:#8A5F0E;--warning-soft:#FBEDCF;--danger:#B03430;--danger-soft:#FBE3E0;--info:#28648A;--info-soft:#E0EEF6;
  --focus:#A03A5B;--focus-ring:0 0 0 3px rgba(160,58,91,.28);
  --shadow-1:0 1px 2px rgba(60,40,30,.06),0 1px 1px rgba(60,40,30,.04);
  --shadow-2:0 8px 24px -6px rgba(60,40,30,.18),0 2px 6px rgba(60,40,30,.06);
  --shadow-3:0 24px 60px -12px rgba(42,33,38,.35);
  --skeleton-a:#EFE7DD;--skeleton-b:#F8F3EC;
  color-scheme:light;
}
/* DARK — "nuit prune" */
[data-theme="dark"]{
  --bg:#17121A;--surface:#211A25;--raised:#2A2230;--sunken:#120E15;--overlay:rgba(8,5,10,.66);
  --text:#F2EAEF;--text-soft:#CFC2CA;--text-mute:#A99CA5;--text-inverse:#2A0F1A;
  --line:#3B3041;--line-strong:#54465C;
  --primary:#E58AA6;--primary-hover:#F0A3BA;--primary-soft:#3A2230;--primary-ink:#2A0F1A;
  --brass:#D9AE62;--brass-soft:#3A2F1C;
  --success:#66C08F;--success-soft:#1C3328;--warning:#E2B04E;--warning-soft:#3A2F14;--danger:#F08A83;--danger-soft:#3D1F1F;--info:#7FB8DE;--info-soft:#1B2E3C;
  --focus:#F0A3BA;--focus-ring:0 0 0 3px rgba(240,163,186,.35);
  --shadow-1:0 1px 2px rgba(0,0,0,.4);
  --shadow-2:0 10px 28px -6px rgba(0,0,0,.6),0 2px 6px rgba(0,0,0,.4);
  --shadow-3:0 28px 70px -12px rgba(0,0,0,.75);
  --skeleton-a:#2A2230;--skeleton-b:#352B3C;
  color-scheme:dark;
}
/* Arabic: a single coherent family for titles and UI */
:root[lang="ar"],:root[dir="rtl"]{--font-display:"IBM Plex Sans Arabic","Inter Variable",system-ui,sans-serif;--font-ui:"IBM Plex Sans Arabic","Inter Variable",system-ui,sans-serif}
@media (pointer:coarse){:root{--control-h:2.75rem;--control-h-sm:2.5rem}}
@media (prefers-reduced-motion:reduce){:root{--t-fast:0s;--t-base:0s}}
}
