/* ==========================================================================
   Jolly Panda Studio — Design tokens
   Colors are sampled from the official mascot artwork:
     Panda Orange #f0852e (hoodie) · Ember #be5a29 (hoodie shadow)
     Bamboo Yellow #fcdd4e (badge backdrop) · Blush #ebbeb1 (cheeks)
     Panda Ink #2b1d1b (fur outline) · Warm Cream (fur)
   Breakpoints (use in media queries — custom properties can't be used there):
     --bp-sm 640px · --bp-md 768px · --bp-lg 1024px · --bp-xl 1280px
   ========================================================================== */

@font-face { font-family: "Inter"; src: url(../assets/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(../assets/fonts/bricolage-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
/* Mikhak (Amin Abedi, SIL OFL 1.1) — Persian text face. Variable: wght 100–900. */
@font-face { font-family: "Mikhak"; src: url(../assets/fonts/mikhak-vf.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* Rooyin (SIL OFL 1.1, Fontiran) — display face for large decorative Persian words. */
@font-face { font-family: "Rooyin"; src: url(../assets/fonts/rooyin-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* Supplied CS Genista Semipixel — English decorative lettering. */
@font-face { font-family: "CS Genista Semipixel"; src: url(../assets/fonts/cs-genista-semipixel-regular-demo.otf) format("opentype"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  /* Color — surfaces */
  --c-bg: #fffaf3;
  --c-bg-alt: #fbf0e2;
  --c-surface: #ffffff;
  --c-surface-2: #f7ecdf;
  --c-line: rgba(43, 29, 27, 0.1);
  --c-line-strong: rgba(43, 29, 27, 0.2);

  /* Color — ink */
  --c-ink: #2b1d1b;
  --c-ink-2: #5a4642;
  --c-ink-3: #75605a;
  --c-on-dark: #fff7ee;

  /* Color — brand */
  --c-orange: #f0852e;
  --c-orange-600: #e3701b;
  --c-orange-700: #b04a14; /* accessible orange for text on light */
  --c-orange-100: #fde7d2;
  --c-orange-50: #fff3e6;
  --c-yellow: #fcdd4e;
  --c-yellow-100: #fff4c7;
  --c-blush: #ebbeb1;
  --c-blush-100: #fbe9e3;
  --c-green: #2f9e5b;
  --c-focus: #1f6feb;

  /* Typography */
  --font-deco-en: "CS Genista Semipixel", "Bricolage", "Inter", sans-serif;
  --font-display: "Bricolage", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);
  --fs-h1: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem);
  --fs-h2: clamp(1.8rem, 1.25rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;
  --lh-tight: 1.04;
  --lh-snug: 1.25;
  --lh-body: 1.65;
  --tracking-display: -0.035em;
  --fw-display: 800;

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* Radius */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-full: 999px;

  /* Shadows (warm-tinted) */
  --sh-1: 0 1px 2px rgba(43, 29, 27, 0.06), 0 2px 8px rgba(43, 29, 27, 0.05);
  --sh-2: 0 10px 30px -8px rgba(43, 29, 27, 0.16);
  --sh-3: 0 28px 60px -18px rgba(43, 29, 27, 0.28);
  --sh-orange: 0 14px 30px -10px rgba(227, 112, 27, 0.55);
  --sh-pop: 6px 6px 0 var(--c-ink);

  /* Layout */
  --container: 1240px;
  --container-narrow: 800px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 160ms;
  --dur-2: 260ms;
  --dur-3: 520ms;
  --dur-4: 800ms;
  --stagger: 80ms;

  /* Z-index */
  --z-header: 100;
  --z-menu: 110;
}

/* Persian: Mikhak everywhere (Rooyin for decorative words), looser display metrics. */
:root:lang(fa) {
  --font-display: "Mikhak", Tahoma, sans-serif;
  --font-body: "Mikhak", Tahoma, sans-serif;
  --font-deco: "Rooyin", "Mikhak", Tahoma, sans-serif;
  --tracking-display: 0;
  --lh-tight: 1.35;
  --lh-snug: 1.5;
  --lh-body: 1.95;
  --fw-display: 900;
  --fs-hero: clamp(2.3rem, 1.3rem + 4.4vw, 4.8rem);
  --fs-h1: clamp(2rem, 1.3rem + 3vw, 3.6rem);
}
