:root {
    --bg: #fff5f7;
    --surface: #ffffff;
    --ink: #3b0a1a;
    --muted: #8a5565;
    --pink: #ff7aa2;
    --pink-soft: #ffdbe6;
    --red: #c8102e;
    --red-deep: #9b0b23;
    --line: #f3c9d6;
    --shadow: 0 1px 0 rgba(155, 11, 35, .06), 0 12px 28px -14px rgba(155, 11, 35, .35);
}

@media (prefers-color-scheme:dark) {
    :root {
        --bg: #2a0a14;
        --surface: #3a1220;
        --ink: #ffe9ef;
        --muted: #e0a9b8;
        --pink-soft: #5a1b30;
        --line: #6b2740;
        --shadow: none;
        --red-deep: #ff7aa2
    }
}

* {
    box-sizing: border-box;
    margin: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.9;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

main {
    flex: 1
}

a {
    color: inherit;
    text-decoration: none
}

img {
    display: block;
    max-width: 100%;
    height: auto
}

ul {
    list-style: none;
    padding: 0
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 6px
}

[hidden] {
    display: none !important
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px
}

.site-head {
    background: var(--red);
    color: #fff
}

.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 8px
}

.brand {
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px
}

.brand i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .22)
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

.site-head nav a {
    font-size: .95rem;
    opacity: .92;
    margin-inline-start: 18px
}

.site-head nav a:hover,
.site-head nav a[aria-current="page"] {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 6px
}

.site-foot {
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    padding: 24px 0;
    font-size: .9rem;
    margin-top: 24px
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    padding-bottom: 40px
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .18s, border-color .18s
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--pink)
}

.card a {
    display: block;
    height: 100%
}

.card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    background: var(--pink-soft)
}

.card-body {
    padding: 16px 18px 20px
}

.card h2,
.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6
}

.role {
    color: var(--muted);
    font-size: .92rem
}

.tag {
    display: inline-block;
    margin-top: 8px;
    background: var(--pink-soft);
    color: var(--red-deep);
    font-size: .8rem;
    padding: 1px 12px;
    border-radius: 999px
}

@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}