/**
 * Local @font-face declarations — replaces the previous external links to
 * fonts.googleapis.com (Google Sans, which never actually loaded on
 * non-Google domains and silently fell back to system fonts) and
 * cdn.jsdelivr.net (Vazirmatn). All weights live under /public/fonts/.
 *
 * "Google Sans" is aliased onto Inter so existing `font-family` stacks
 * across the codebase (globals.css, landing/layout.tsx, etc.) keep
 * working without a global find-and-replace. Inter is the most-used
 * free stand-in for Google Sans / Product Sans and matches it visually.
 *
 * `font-display: swap` everywhere so the page renders immediately with
 * the system fallback and re-paints once the local file arrives — better
 * LCP than the default `auto`/`block`.
 */

/* ───── Inter (English / Latin) — also exposed as "Google Sans" so the
       existing font-family stacks keep resolving. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter/Inter-Bold.woff2') format('woff2');
}

/* Alias the same files under the legacy "Google Sans" family name so we
   don't have to edit every component that hardcodes 'Google Sans'. */

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter/Inter-Bold.woff2') format('woff2');
}

/* ───── Vazirmatn (Persian / Arabic) — all 9 weights mirror the
       vazirmatn@33.0.3 npm package layout that the jsdelivr <link>
       previously served. */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('/fonts/vazirmatn/Vazirmatn-Thin.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('/fonts/vazirmatn/Vazirmatn-ExtraLight.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/vazirmatn/Vazirmatn-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/vazirmatn/Vazirmatn-Black.woff2') format('woff2');
}
