/* Reading styles for the static blog; the shared theme supplies colors and borders. */
@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
.blog-content {
    --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-persian: "Vazirmatn", Tahoma, sans-serif;
    font-family: var(--font-body);
    font-weight: 400;
}
.blog-content * { font-family: inherit; }
.blog-content:lang(fa), .blog-content :lang(fa) { font-family: var(--font-persian); }
.blog-content:lang(en), .blog-content :lang(en) { font-family: var(--font-body); }
.blog-page .page .blog-content {
    max-width: 780px;
    padding: clamp(22px, 5vw, 52px);
    text-align: start;
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow-small);
}
.blog-content h1, .blog-content h2 {
    font-family: inherit;
    letter-spacing: normal;
    text-wrap: pretty;
}
.blog-content h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.35; }
.blog-content h2 { font-size: 25px; line-height: 1.5; margin: 2em 0 .65em; }
.blog-header, .post-header { margin-block: 28px 32px; }
.blog-content a { color: var(--main-dark); }
.blog-content a:hover { color: var(--ink); }
.language-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px 24px; }
.language-switch a { padding: 5px 12px; border: 1px solid var(--main-dark); text-decoration: none; }
.language-switch a[aria-current] { background: var(--main-dark); color: var(--paper); }
.post-body { font-size: 19px; line-height: 1.85; overflow-wrap: break-word; }
.post-body:lang(fa) { line-height: 2; }
.blog-page .post-body p { margin-block: 0 1.25em; letter-spacing: normal; }
.blog-page .post-body strong { font-weight: 700; }
.post-body .lead { font-size: 1.08em; }
.post-meta, .post-list time { color: var(--muted-color); font-size: 14px; }
.post-meta { margin-top: 16px; }
.post-list { list-style: none; }
.post-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid var(--light-gray); }
.post-list a { font-size: 19px; font-weight: 600; text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list time { white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 20; padding: 12px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 8px; }
@media (max-width: 600px) {
    .post-list li { flex-direction: column; gap: 6px; }
    .blog-page .page .blog-content { margin-top: 32px; }
    .post-body { font-size: 18px; }
    .blog-content h2 { font-size: 23px; }
}

.post-illustration { margin-block: 0 32px; }
.post-illustration img { display: block; width: 100%; height: auto; }
