@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/Vazirmatn-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f3f6fb;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.14);
    --accent-foreground: #ffffff;
    --ring: rgba(37, 99, 235, 0.20);
    --range-fill: 50%;
}

html[data-theme="dark"] {
    --bg: #08111f;
    --surface: rgba(15, 23, 42, 0.72);
    --surface-strong: #0f172a;
    --text: #e5eefc;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.16);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, 0.14);
    --accent-foreground: #08111f;
    --ring: rgba(96, 165, 250, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Vazirmatn", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 26%),
        var(--bg);
    color: var(--text);
    direction: rtl;
    text-align: start;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

::selection {
    background: rgba(37, 99, 235, 0.18);
    color: inherit;
}

textarea {
    resize: vertical;
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(243, 246, 251, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] .site-header {
    background: rgba(8, 17, 31, 0.85);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0.85rem 0;
    min-width: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0.85rem 0;
}


.hero__content p {
    text-align: justify;
    line-height: 2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    width: 100px;
    height: auto;
    display: block;
}

.header-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--accent-soft);
    color: var(--text);
}

.header-end {
    margin-inline-start: auto;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    gap: 16px;
}

.footer-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 160ms ease;
}

.footer-nav a:hover {
    color: var(--text);
}

.content-section {
    margin-top: 48px;
    padding-bottom: 16px;
}

.content-inner {
    max-width: 72ch;
}

.content-inner h2 {
    font-size: 1.45rem;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.content-inner h3 {
    font-size: 1.1rem;
    margin: 1.6rem 0 0.5rem;
    color: var(--text);
}

.content-inner p {
    margin: 0 0 0.9rem;
    color: var(--muted);
    line-height: 1.9;
}

.content-inner ul {
    margin: 0 0 0.9rem;
    padding-inline-start: 1.4rem;
    color: var(--muted);
    line-height: 2;
}

.content-inner code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    padding: 0.15em 0.4em;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.07);
}

html[data-theme="dark"] .content-inner code {
    background: rgba(255, 255, 255, 0.08);
}


@media (max-width:768px) {

    .header-inner {
        width: calc(100% - 24px);
        gap: 10px;
    }


    .site-logo img {
        width: 85px;
    }


    .hero__badge {
        display: none;
    }


    .header-actions {
        gap: 8px;
    }


    #theme-toggle {
        padding: 6px 10px;
        font-size: .85rem;
    }

}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}