/* ==========================================================================
   Parsa AHM — design tokens (single source of truth)
   Loaded before style.css. style.css keeps its legacy aliases; new work must
   read from these variables and never hard-code a colour or distance.
   Mobile-first: base values target small screens, min-width blocks add depth.
   ========================================================================== */

:root{
  /* ---------------------------------------------------------- brand colour */
  --c-bg:#111612;
  --c-bg-deep:#0b0f0d;
  --c-surface:#19211c;
  --c-surface-2:#1b2620;
  --c-line:#39443a;
  --c-line-soft:#2a352c;
  --c-line-strong:#3c4a3d;
  --c-text:#f4ede0;
  --c-muted:#c8c2b4;
  --c-dim:#9aa39a;
  --c-accent:#e7c89d;
  --c-accent-bright:#f3d9b0;
  --c-accent-deep:#c8a273;
  --c-hot:#f2ca89;
  --c-action:#deb782;
  --c-ink-on-accent:#271d13;

  /* semantic */
  --c-ok:#8fce9a;
  --c-ok-bg:#1d2b21;
  --c-warn:#f2e2b6;
  --c-warn-bg:#2b2718;
  --c-danger:#ffd7cf;
  --c-danger-bg:#2b1d1a;
  --c-info:#cfe6ef;
  --c-info-bg:#1b2429;

  /* ---------------------------------------------------------- typography */
  --font-ui:Vazirmatn,Tahoma,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  --fs-xs:.78rem;
  --fs-sm:.88rem;
  --fs-base:1rem;
  --fs-md:1.12rem;
  --fs-lg:clamp(1.3rem,3.4vw,1.7rem);
  --fs-xl:clamp(1.7rem,5vw,2.6rem);
  --fs-2xl:clamp(2.1rem,6.4vw,3.6rem);
  --lh-tight:1.35;
  --lh-body:1.9;
  --lh-loose:2.1;
  --tracking-tight:-.02em;
  --tracking-wide:.045em;

  /* ---------------------------------------------------------- space (4px step) */
  --s-1:.25rem;
  --s-2:.5rem;
  --s-3:.75rem;
  --s-4:1rem;
  --s-5:1.25rem;
  --s-6:1.5rem;
  --s-7:2rem;
  --s-8:2.5rem;
  --s-9:3.4rem;
  --s-10:4.6rem;
  --section-pad:clamp(2.1rem,6vw,3.4rem);

  /* ---------------------------------------------------------- radius */
  --r-xs:.35rem;
  --r-sm:.55rem;
  --r-md:.7rem;
  --r-lg:1.1rem;
  --r-xl:1.5rem;
  --r-pill:999px;

  /* ---------------------------------------------------------- elevation */
  --shadow-1:0 1px 0 #ffffff0a inset, 0 18px 40px -32px #000;
  --shadow-2:0 1px 0 #ffffff12 inset, 0 28px 60px -40px #000;
  --shadow-3:0 1px 0 #ffffff18 inset, 0 40px 80px -48px #000;
  --ring:0 0 0 3px #e7c89d55;

  /* ---------------------------------------------------------- motion */
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --dur-fast:.16s;
  --dur:.24s;
  --dur-slow:.5s;

  /* ---------------------------------------------------------- layering */
  --z-base:0;
  --z-sticky:4;
  --z-dropdown:20;
  --z-overlay:40;
  --z-modal:60;
  --z-toast:80;

  /* ---------------------------------------------------------- layout */
  --shell-max:76rem;
  --shell-pad:1.1rem;
  --header-h:4.4rem;
  --tap-min:2.75rem; /* 44px touch target */
}

/* Wider screens get more breathing room, never a different structure. */
@media (min-width:40rem){
  :root{--shell-pad:2rem;--header-h:4.6rem}
}
@media (min-width:64rem){
  :root{--shell-pad:2.5rem}
}

/* Respect the OS setting: no ambient motion, instant state changes. */
@media (prefers-reduced-motion: reduce){
  :root{--dur-fast:1ms;--dur:1ms;--dur-slow:1ms}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}

/* Windows high-contrast / forced colours. */
@media (forced-colors: active){
  .btn,.card,.panel-card{border:1px solid CanvasText}
}
