/* @import url() FONT IMPORTS MUST ALWAYS BE AT THE VERY TOP OF THIS FILE, ABOVE THE TAILWIND IMPORTS — DO NOT DELETE THIS COMMENT */ /* CRITICAL: THE FOLLOWING TAILWIND IMPORTS MUST NEVER BE DELETED OR REORDERED — DO NOT DELETE THIS COMMENT */ @import 'tailwindcss/base'; @import 'tailwindcss/components'; @import 'tailwindcss/utilities'; /* END TAILWIND IMPORTS — ALL OTHER CSS MUST GO BELOW THIS LINE */ /* فونت سایت سلف‌هاست است (public/fonts) — هیچ وابستگی خارجی وجود ندارد. Pinar فونت اصلی است (۵ وزن) و Vazirmatn به‌عنوان جایگزین پشتیبان می‌ماند. نسخه انگلیسی از پشته فونت سیستمی لاتین استفاده می‌کند (Inter در صورت نصب بودن). */ @font-face { font-family: 'Pinar'; src: url('/fonts/pinar/Pinar-Light.woff2') format('woff2'), url('/fonts/pinar/Pinar-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; } @font-face { font-family: 'Pinar'; src: url('/fonts/pinar/Pinar-Regular.woff2') format('woff2'), url('/fonts/pinar/Pinar-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; } @font-face { font-family: 'Pinar'; src: url('/fonts/pinar/Pinar-Bold.woff2') format('woff2'), url('/fonts/pinar/Pinar-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; } @font-face { font-family: 'Pinar'; src: url('/fonts/pinar/Pinar-ExtraBold.woff2') format('woff2'), url('/fonts/pinar/Pinar-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; } @font-face { font-family: 'Pinar'; src: url('/fonts/pinar/Pinar-Black.woff2') format('woff2'), url('/fonts/pinar/Pinar-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; } @font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; } @font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; } @font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; } html { scroll-behavior: smooth; } body { background-color: #27221c; color: #f5f3ef; font-family: 'Pinar', 'Vazirmatn', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; } /* نسخه انگلیسی — فونت لاتین و تنوع‌سنجی (tracking) مناسب خط لاتین */ html[lang='en'] body { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; letter-spacing: -0.01em; } html[lang='en'] .article-body { line-height: 1.8; } html[lang='en'] .article-body p { margin-top: 1.25rem; } html[lang='en'] .article-body h2, html[lang='en'] .article-body h3 { line-height: 1.4; } ::selection { background-color: #d5874c; color: #1e1a16; } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } } /* ---------- بدنه مقاله — رندر سند TipTap و ویرایشگر WYSIWYG ---------- */ .article-body { line-height: 2.4; word-wrap: break-word; } .article-body p { margin-top: 1.75rem; color: rgba(245, 243, 239, 0.7); } .article-body > :first-child { margin-top: 0; } .article-body h2, .article-body h3 { color: #f5f3ef; font-weight: 700; margin-top: 3rem; margin-bottom: 0.25rem; line-height: 1.9; } .article-body h2 { font-size: 1.6rem; padding-inline-start: 0.85rem; border-inline-start: 3px solid #d5874c; } .article-body h3 { font-size: 1.25rem; color: #e8c9a8; } .article-body ul, .article-body ol { margin-top: 1.5rem; padding-inline-start: 1.5rem; } .article-body ul { list-style: disc; } .article-body ol { list-style: decimal; } .article-body li { margin-top: 0.6rem; color: rgba(245, 243, 239, 0.7); } .article-body li p { margin-top: 0; display: inline; } .article-body blockquote { margin-top: 2rem; border-inline-start: 3px solid #d5874c; background: rgba(30, 26, 22, 0.5); padding: 1rem 1.25rem; font-style: normal; color: rgba(245, 243, 239, 0.85); } .article-body blockquote p { margin-top: 0; color: inherit; } .article-body a { color: #d5874c; text-decoration: underline; text-underline-offset: 4px; } .article-body img { width: 100%; margin-top: 2rem; border: 1px solid rgba(245, 243, 239, 0.1); object-fit: cover; } .article-body strong { color: #f5f3ef; font-weight: 700; } .article-body hr { margin-top: 2.5rem; border: 0; height: 1px; background: rgba(245, 243, 239, 0.12); } .article-body code { background: rgba(30, 26, 22, 0.7); padding: 0.15rem 0.45rem; font-size: 0.85em; } .article-body pre { background: rgba(30, 26, 22, 0.7); padding: 1rem 1.25rem; margin-top: 1.5rem; overflow-x: auto; direction: ltr; text-align: left; } .article-body pre code { background: transparent; padding: 0; }