/*
 * Pure-UAST canonical typography authority.
 *
 * Exact-six Anjoman files are protected release assets verified in Issue #104.
 * They are intentionally referenced here but never committed as binaries.
 *
 * Vazirmatn is the open-source self-hosted fallback. Its immutable upstream
 * version, commit, license, byte sizes, SHA-256 hashes, static paths and
 * provisioning contract are pinned in pure-uast-authority.json. The WOFF2
 * binaries are materialized only by the verified provisioning step and are
 * never loaded from a CDN at runtime.
 */

@font-face {
  font-family: "PureUAST Anjoman FA";
  src: url("../../fonts/anjoman/fa/AnjomanMaxFN-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PureUAST Anjoman FA";
  src: url("../../fonts/anjoman/fa/AnjomanMaxFN-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "PureUAST Anjoman FA";
  src: url("../../fonts/anjoman/fa/AnjomanMaxFN-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "PureUAST Anjoman EN";
  src: url("../../fonts/anjoman/en/AnjomanMax-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PureUAST Anjoman EN";
  src: url("../../fonts/anjoman/en/AnjomanMax-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "PureUAST Anjoman EN";
  src: url("../../fonts/anjoman/en/AnjomanMax-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

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

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

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

@layer pu.typography {
  :root {
    --pu-font-fa: "PureUAST Anjoman FA", "PureUAST Vazirmatn", Tahoma, sans-serif;
    --pu-font-latin: "PureUAST Anjoman EN", "PureUAST Vazirmatn", Tahoma, sans-serif;
    --pu-font-ui: var(--pu-font-fa);
    --pu-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --pu-line-body: 1.8;
    --pu-line-heading: 1.45;
  }

  html:lang(fa),
  html:lang(ar) {
    --pu-font-ui: var(--pu-font-fa);
    --pu-line-body: 1.8;
    --pu-line-heading: 1.5;
  }

  html:lang(en),
  html:lang(fr),
  html:lang(de) {
    --pu-font-ui: var(--pu-font-latin);
    --pu-line-body: 1.55;
    --pu-line-heading: 1.3;
  }

  html {
    font-family: var(--pu-font-ui);
    font-synthesis: none;
  }

  body,
  button,
  input,
  select,
  textarea {
    font-family: inherit;
  }

  body {
    font-size: var(--pu-type-16);
    font-weight: var(--pu-weight-regular);
    line-height: var(--pu-line-body);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  strong,
  b {
    font-weight: var(--pu-weight-bold);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: var(--pu-line-heading);
  }

  code,
  kbd,
  samp,
  pre,
  [data-pu-monospace] {
    font-family: var(--pu-font-mono);
  }
}
