/*
Theme Name: Develogger Child
Template: generatepress
Version: 1.0.0
*/

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/themes/develogger-child/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/themes/develogger-child/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/themes/develogger-child/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/wp-content/themes/develogger-child/assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/wp-content/themes/develogger-child/assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/wp-content/themes/develogger-child/assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Base typography
========================= */

html[lang="fa"],
html[lang="fa-IR"],
html[lang="en"],
html[lang="en-GB"],
html[lang="en-US"] {
  font-size: 16px;
}

html[lang="fa"] body,
html[lang="fa-IR"] body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.95;
  font-weight: 400;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body,
html[lang="en-GB"] body,
html[lang="en-US"] body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

/* =========================
   Headings
========================= */

html[lang="fa"] body h1,
html[lang="fa"] body h2,
html[lang="fa"] body h3,
html[lang="fa"] body h4,
html[lang="fa"] body h5,
html[lang="fa"] body h6,
html[lang="fa-IR"] body h1,
html[lang="fa-IR"] body h2,
html[lang="fa-IR"] body h3,
html[lang="fa-IR"] body h4,
html[lang="fa-IR"] body h5,
html[lang="fa-IR"] body h6 {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
}

html[lang="en"] body h1,
html[lang="en"] body h2,
html[lang="en"] body h3,
html[lang="en"] body h4,
html[lang="en"] body h5,
html[lang="en"] body h6,
html[lang="en-GB"] body h1,
html[lang="en-GB"] body h2,
html[lang="en-GB"] body h3,
html[lang="en-GB"] body h4,
html[lang="en-GB"] body h5,
html[lang="en-GB"] body h6,
html[lang="en-US"] body h1,
html[lang="en-US"] body h2,
html[lang="en-US"] body h3,
html[lang="en-US"] body h4,
html[lang="en-US"] body h5,
html[lang="en-US"] body h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
}

body h1 {
  font-size: 2.2rem;
}

body h2 {
  font-size: 1.7rem;
}

body h3 {
  font-size: 1.35rem;
}

body h4 {
  font-size: 1.15rem;
}

/* =========================
   Paragraphs & lists
========================= */

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin-bottom: 1.2em;
}

.entry-content ul,
.entry-content ol {
  padding-inline-start: 1.2rem;
}

/* =========================
   Single post readability
========================= */

.single-post .entry-content {
  font-size: 1rem;
}

.single-post .entry-title {
  line-height: 1.3;
}

html[lang="fa"] .single-post .entry-title,
html[lang="fa-IR"] .single-post .entry-title {
  font-size: 2.2rem;
  font-weight: 700;
}

html[lang="en"] .single-post .entry-title,
html[lang="en-GB"] .single-post .entry-title,
html[lang="en-US"] .single-post .entry-title {
  font-size: 2.1rem;
  font-weight: 600;
}

.single-post .entry-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.2rem;
}

/* =========================
   Links
========================= */

.entry-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

/* =========================
   Code
========================= */

pre,
code,
pre[class*="language-"],
code[class*="language-"] {
  direction: ltr;
  text-align: left;
}

:not(pre) > code {
  font-size: 0.92em;
  padding: 0.18em 0.4em;
  border-radius: 6px;
}

pre[class*="language-"] {
  font-size: 0.95rem;
  line-height: 1.8;
  border-radius: 12px;
  margin: 1.4em 0;
}
/* =========================
   Reading rhythm & spacing
========================= */

/* عرض مناسب متن در پست‌ها */
.single-post .inside-article {
  max-width: 760px;
  margin-inline: auto;
}

/* عرض مناسب برای صفحات معمولی */
.page .inside-article {
  max-width: 760px;
  margin-inline: auto;
}

/* متن اصلی مقاله */
.single-post .entry-content {
  line-height: 1.95;
}

/* فاصله پاراگراف‌ها */
.single-post .entry-content p {
  margin-bottom: 1.35em;
}

/* فاصله لیست‌ها */
.single-post .entry-content ul,
.single-post .entry-content ol {
  margin-bottom: 1.35em;
}

/* فاصله بلاک‌کوت */
.single-post .entry-content blockquote {
  margin: 1.5em 0;
  padding: 0.8em 1.1em;
  border-inline-start: 4px solid #d9d9d9;
}

/* فاصله تیترها در متن */
.single-post .entry-content h2 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.single-post .entry-content h3 {
  margin-top: 1.7em;
  margin-bottom: 0.7em;
}

.single-post .entry-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

/* عنوان پست */
.single-post .entry-header {
  margin-bottom: 1.2rem;
}

.single-post .entry-title {
  margin-bottom: 0.5rem;
}

/* فاصله متادیتا */
.single-post .entry-meta {
  margin-bottom: 1.4rem;
}

/* کدبلاک */
.single-post pre[class*="language-"] {
  margin: 1.6em 0;
  padding: 1.1em 1.2em;
}

/* اینلاین‌کد */
.single-post :not(pre) > code {
  margin-inline: 0.1em;
}

/* تصاویر داخل پست */
.single-post .entry-content img {
  margin: 1.6em 0;
  display: block;
  max-width: 100%;
  height: auto;
}

/* فاصله آخر مقاله تا فوتر/بخش بعد */
.single-post .entry-content > *:last-child {
  margin-bottom: 0;
}