@font-face {
    font-family: Vazirmatn;
    src: url(/font/Vazirmatn.ttf);
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Vazirmatn;
    font-size: 1rem;
    overflow-x: hidden;
    color: #000000;
    background: #FFFFFF;
    direction: rtl;
}

header {
    max-width: 75rem;
    height: 4.5rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8e8e8;
}

header .site {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #222;
    text-decoration: none;
}

header .site img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: .625rem;
}

header .site h1 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 800;
    white-space: nowrap;
}

header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

header nav a {
    position: relative;
    color: #666;
    font-size: .875rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease;
}

header nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -.5rem;
    width: 0;
    height: .125rem;
    background: #222;
    transition: width .2s ease;
}

header nav a:hover {
    color: #222;
}

header nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    header {
        height: 4rem;
        padding: 0 1rem;
    }

    header .site {
        gap: .5rem;
    }

    header .site img {
        width: 2.125rem;
        height: 2.125rem;
    }

    header .site h1 {
        font-size: 1rem;
    }

    header nav {
        gap: .875rem;
    }

    header nav a {
        font-size: .75rem;
    }
}