/*
 Theme Name:   Lexend Child
 Theme URI:    https://example.com/lexend-child
 Description:  Child theme for the Lexend theme with IRANYekanX Regular & Bold only
 Author:       You
 Author URI:   https://example.com
 Template:     lexend
 Version:      1.2.0
 Text Domain:  lexend-child
*/

/* === IRANYekanX Regular & Bold only === */

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

@font-face {
  font-family: IRANYekanX;
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/IRANYekanX/woff2/IRANYekanX-UltraLight.woff2') format('woff2'),
       url('../fonts/IRANYekanX/woff/IRANYekanX-UltraLight.woff') format('woff');
}

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


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

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

@font-face {
  font-family: IRANYekanX;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/IRANYekanX/woff2/IRANYekanX-DemiBold.woff2') format('woff2'),
       url('../fonts/IRANYekanX/woff/IRANYekanX-DemiBold.woff') format('woff');
}

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

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

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

@font-face {
  font-family: IRANYekanX;
  font-style: normal;
  font-weight: 950;
  font-display: swap;
  src: url('../fonts/IRANYekanX/woff2/IRANYekanX-ExtraBlack.woff2') format('woff2'),
       url('../fonts/IRANYekanX/woff/IRANYekanX-ExtraBlack.woff') format('woff');
}

@font-face {
  font-family: IRANYekanX;
  font-style: normal;
  font-weight: 1000;
  font-display: swap;
  src: url('../fonts/IRANYekanX/woff2/IRANYekanX-Heavy.woff2') format('woff2'),
       url('../fonts/IRANYekanX/woff/IRANYekanX-Heavy.woff') format('woff');
}


:root {
  --font-family-primary: "IRANYekanX", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", "Tahoma", sans-serif;
  --font-family-secondary: "IRANYekanX", "IBM Plex Sans Arabic", serif;
  --font-family-tertiary: "IRANYekanX", "IBM Plex Sans Arabic", serif;
  --body-font-size-min: 0.95rem;
  --body-font-size-max: 1.05rem;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family-primary);
  font-weight: 400;
  line-height: 1.8;
  font-size: clamp(var(--body-font-size-min), 0.9rem + 0.2vw, var(--body-font-size-max));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-weight: 700; }
h4 { font-weight: 600; }
h5, h6 { font-weight: 500; }

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  line-height: 1.35;
  margin-top: 0.6em;
  margin-bottom: 0.35em;
}

:root {
  --h1-min: 2.2rem;
  --h1-max: 2.5rem;
  --h2-min: 1.4rem;
  --h2-max: 1.9rem;
  --h3-min: 1.1rem;
  --h3-max: 1.3rem;
  --h4-min: 0.95rem;
  --h4-max: 1.1rem;
  --h5-min: 0.85rem;
  --h5-max: 0.95rem;
  --h6-min: 0.75rem;
  --h6-max: 0.85rem;
}

h1 { font-size: clamp(var(--h1-min), 1.8rem + 1.5vw, var(--h1-max)); }
h2 { font-size: clamp(var(--h2-min), 1.2rem + 1.2vw, var(--h2-max)); }
h3 { font-size: clamp(var(--h3-min), 1.0rem + 0.7vw, var(--h3-max)); }
h4 { font-size: clamp(var(--h4-min), 0.9rem + 0.5vw, var(--h4-max)); }
h5 { font-size: clamp(var(--h5-min), 0.8rem + 0.35vw, var(--h5-max)); }
h6 { font-size: clamp(var(--h6-min), 0.7rem + 0.3vw, var(--h6-max)); }

button, .button, input, select, textarea {
  font-family: inherit;
  font-weight: 500;
}
