/* ── Variables ── */
:root {
    --bg:      #0f1117;
    --surface: #1c2130;
    --text:    #e8eaed;
    --muted:   #8b92a0;
    --green:   #6aaa64;
    --yellow:  #c9b458;
    --border:  rgba(255, 255, 255, 0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Site header ── */
.site-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-header img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.site-header .brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

/* ── Article ── */
article {
    flex: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 52px 24px 80px;
    width: 100%;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 36px;
}

.intro {
    background: rgba(106, 170, 100, 0.08);
    border-left: 3px solid var(--green);
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin-bottom: 44px;
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.7;
}

h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 48px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 16px;
}

h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    opacity: 0.85;
    margin-top: 22px;
    margin-bottom: 8px;
}

p {
    color: var(--muted);
    font-size: 0.91rem;
    margin-bottom: 14px;
}

ul, ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

li {
    color: var(--muted);
    font-size: 0.91rem;
    margin-bottom: 7px;
}

strong { color: var(--text); }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Callout blocks ── */
.callout {
    background: var(--surface);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
}

.callout-warn {
    background: rgba(201, 180, 88, 0.07);
    border-left: 3px solid var(--yellow);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.callout p, .callout-warn p { margin-bottom: 0; }

/* ── Contact box ── */
.contact {
    background: var(--surface);
    border-radius: 14px;
    padding: 32px 24px;
    margin-top: 44px;
    text-align: center;
}

.contact p { margin-bottom: 6px; }
.contact p:last-child { margin-bottom: 0; font-size: 0.82rem; color: var(--muted); }

.email {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green);
    margin: 8px 0;
    display: block;
}

/* ── Footer ── */
footer {
    padding: 20px 24px;
    border-top: 1px solid var(--surface);
    color: var(--muted);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--yellow); }
.sep { opacity: 0.3; }
