/* ==========================================================================
   ARAL — design tokens  ·  "workshop catalogue"
   One place to change the identity: colour, type, space, grid, motion.
   Every other stylesheet reads these variables only.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---- colour ---------------------------------------------------------- */
  --paper: #F7F5F0;
  --paper-2: #EFEBE2;
  --paper-3: #E7E2D7;
  --ink: #15130F;
  --ink-2: #3A3732;
  --steel: #6B7076;
  --line: #D9D4C8;
  --line-strong: #C4BDAC;
  --accent: #E8501C;
  --accent-deep: #C33F12;
  --accent-soft: #FBE6DC;
  --accent-ink: #FFFFFF;
  --ok: #2F7D4F;
  --warn: #B7791F;
  --danger: #B3261E;
  --white: #FFFFFF;
  --surface: var(--paper-2);

  /* legacy aliases still referenced by older rules and inline styles */
  --muted: var(--steel);
  --ink-soft: var(--ink-2);
  --deep: var(--ink);
  --success: var(--ok);
  --error: var(--danger);
  --deal: var(--danger);
  --gold: var(--warn);

  /* ---- type ------------------------------------------------------------ */
  --font-sans: 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fs-h1: clamp(2rem, 5.2vw, 3.5rem);      /* 32 → 56 */
  --fs-h2: clamp(1.5rem, 3.4vw, 2.25rem);   /* 24 → 36 */
  --fs-h3: clamp(1.125rem, 1.8vw, 1.375rem);/* 18 → 22 */
  --fs-base: 1rem;
  --fs-sm: 0.8125rem;
  --fs-xs: 0.75rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.5rem, 3.4vw, 2.25rem);
  --fs-3xl: clamp(1.75rem, 4.4vw, 2.75rem);

  --lh-body: 1.7;
  --lh-tight: 1.25;
  --tracking-tight: 0;

  /* ---- space (4px scale) ----------------------------------------------- */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;
  --s9: 96px;

  /* ---- layout ---------------------------------------------------------- */
  --container: 1240px;
  --gutter: 16px;
  --header-h: 60px;
  --announce-h: 32px;

  /* ---- surface --------------------------------------------------------- */
  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --border: 1px solid var(--line);
  --border-strong: 1px solid var(--ink);
  --shadow-1: 0 1px 0 rgba(21, 19, 15, .06);
  --shadow-2: 0 8px 24px rgba(21, 19, 15, .10);

  /* ---- motion ---------------------------------------------------------- */
  --dur: 200ms;
  --dur-fast: 150ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}


/* ==========================================================================
   dark theme — same tokens, different values. Set on <html data-theme="dark">.
   Accent is lifted one step (#FF6A35) so text and icons keep AA on #15130F.
   ========================================================================== */
html[data-theme='dark'] {
  color-scheme: dark;

  --paper: #15130F;
  --paper-2: #1D1A15;
  --paper-3: #272319;
  --ink: #F3F1EC;
  --ink-2: #CFCABD;
  --steel: #A29D91;
  --line: #2E2A22;
  --line-strong: #443E32;
  --accent: #FF6A35;
  --accent-deep: #E8501C;
  --accent-soft: #2B1A12;
  --accent-ink: #15130F;
  --ok: #6BC894;
  --warn: #E3B457;
  --danger: #F08A80;
  --white: #FFFFFF;
  --surface: var(--paper-2);

  --shadow-1: 0 1px 0 rgba(0, 0, 0, .5);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .55);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0ms;
    --dur-fast: 0ms;
  }
}
