/* Amiri — arabic */
@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/amiri-arabic-regular.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
    font-family: 'Amiri';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/amiri-arabic-italic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/amiri-arabic-bold.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}

/* Amiri — latin */
@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/amiri-latin-regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Amiri';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/amiri-latin-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/amiri-latin-bold.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter — latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display — latin */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/assets/fonts/playfair-latin-regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/playfair-latin-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Skip link ── */

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--green, #1B5E3B);
    color: #fff;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-size: 0.9rem;
    z-index: 9999;
}
.skip-link:focus {
    top: 0;
}

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

:root {
    --green: #1B5E3B;
    --gold: #C9A64A;
    --cream: #FAF7F2;
    --cream-dark: #EDE7DB;
    --text: #1A1A1A;
    --text-muted: #6B6B6B;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ── */

header {
    background-color: var(--green);
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(201, 166, 74, 0.06) 0px,
            rgba(201, 166, 74, 0.06) 1px,
            transparent 1px,
            transparent 24px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(201, 166, 74, 0.06) 0px,
            rgba(201, 166, 74, 0.06) 1px,
            transparent 1px,
            transparent 24px
        );
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gold);
    box-shadow: 0 3px 0 rgba(201, 166, 74, 0.35);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-en {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 0.04em;
}

.logo-ar {
    font-family: 'Amiri', serif;
    font-size: 1.7rem;
    color: var(--gold);
}

/* ── Hero ── */

.hero {
    background-color: var(--green);
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(201, 166, 74, 0.06) 0px,
            rgba(201, 166, 74, 0.06) 1px,
            transparent 1px,
            transparent 24px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(201, 166, 74, 0.06) 0px,
            rgba(201, 166, 74, 0.06) 1px,
            transparent 1px,
            transparent 24px
        );
    padding: 5rem 0 6rem;
    text-align: center;
    color: #fff;
}

.verse-ar {
    font-family: 'Amiri', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold);
    direction: rtl;
    line-height: 2;
    margin-bottom: 1.25rem;
}

.verse-en {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.verse-ref {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── Latest article ── */

.latest-article {
    padding: 3rem 0;
    border-bottom: 1px solid var(--cream-dark);
}

.latest-article::before {
    content: '✦';
    display: block;
    text-align: center;
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    margin-bottom: 2.5rem;
    opacity: 0.6;
}

.latest-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.latest-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.latest-card + .latest-card {
    padding-top: 2.5rem;
    border-top: 1px solid var(--cream-dark);
}

.latest-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    transition: color 0.15s;
}

.latest-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.latest-read {
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 500;
}

.latest-card:hover h2 {
    color: var(--green);
}

/* ── Cookie notice ── */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--green);
    border-top: 2px solid var(--gold);
    color: rgba(255, 255, 255, 0.85);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    z-index: 100;
}

.cookie-notice p {
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-accept {
    background: var(--gold);
    color: var(--green);
    border: none;
    padding: 0.45rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.cookie-decline {
    background: none;
    color: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
    }
}

/* ── Categories ── */

.categories {
    padding: 4rem 0 5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.category-card {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-left: 3px solid var(--gold);
    border-radius: 3px;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-left-color 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    border-left-color: var(--green);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.cat-ar {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    color: var(--green);
    direction: rtl;
    line-height: 1.4;
}

.cat-en {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.cat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* ── Footer ── */

footer {
    background: var(--green);
    border-top: 1px solid var(--gold);
    box-shadow: inset 0 3px 0 rgba(201, 166, 74, 0.35);
    padding: 3rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

footer p {
    font-size: 0.875rem;
    font-style: italic;
}

.footer-meta {
    font-size: 0.78rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.5rem;
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
}

.footer-meta a:hover {
    color: var(--gold);
}

/* ── Static pages ── */

.page-content {
    padding: 4rem 0 6rem;
    max-width: 720px;
}

.page-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text);
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.5rem;
    color: var(--text);
}

.page-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.page-content a {
    color: var(--green);
}

.page-date {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Quranic quote ── */

.quran {
    background-color: var(--green);
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(201, 166, 74, 0.06) 0px,
            rgba(201, 166, 74, 0.06) 1px,
            transparent 1px,
            transparent 24px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(201, 166, 74, 0.06) 0px,
            rgba(201, 166, 74, 0.06) 1px,
            transparent 1px,
            transparent 24px
        );
    border-top: 1px solid var(--gold);
    box-shadow: 0 -3px 0 0 rgba(201, 166, 74, 0.35), inset 0 0 0 1px rgba(201, 166, 74, 0.2);
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
    border-radius: 2px;
    text-align: center;
}

.quran-ar {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--gold);
    direction: rtl;
    line-height: 2;
    margin-bottom: 1rem;
}

.quran-en {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.quran cite {
    display: block;
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-style: normal;
}

/* ── Hadith quote ── */

.hadith {
    background: var(--cream-dark);
    border-left: 3px solid var(--green);
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    border-radius: 2px;
}

.hadith-ar {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    color: var(--green);
    direction: rtl;
    text-align: right;
    line-height: 2;
    margin-bottom: 0.75rem;
}

.hadith-en {
    font-size: 1rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.hadith cite {
    display: block;
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-style: normal;
}

/* ── Article page ── */

.article-page {
    padding: 4rem 0 6rem;
}

.article-header {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.article-back {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.article-back:hover {
    color: var(--green);
}

.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--text);
}

.article-subtitle {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.article-body {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 0.75rem;
}

.article-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.5rem;
}

.article-body p {
    margin-bottom: 1.4rem;
}

.article-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-family: 'Amiri', serif;
    font-size: 1.2rem;
    color: var(--green);
    direction: rtl;
    line-height: 2;
}

.article-body blockquote cite {
    display: block;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    direction: ltr;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* ── Category page ── */

.category-page {
    padding: 4rem 0 6rem;
}

.category-header {
    max-width: 720px;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cream-dark);
}

.category-ar {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--green);
    direction: rtl;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.category-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.category-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.article-list {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-list-item {
    display: block;
    text-decoration: none;
    color: var(--text);
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--cream-dark);
    transition: color 0.15s;
}

.article-list-item h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    transition: color 0.15s;
}

.article-list-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.article-list-item:hover h2 {
    color: var(--green);
}

/* ── Legal page ── */

.legal-small,
.legal-small p,
.legal-small h2,
.legal-small h3,
.legal-small h4,
.legal-small a {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.8;
}

.legal-small h2,
.legal-small h3,
.legal-small h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin: 1.2rem 0 0.3rem;
}

.legal-small a {
    text-decoration: underline;
}

/* ── Mobile ── */

@media (max-width: 600px) {
    .hero {
        padding: 3rem 0 4rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .verse-ar {
        font-size: 1.5rem;
    }

    .article-page {
        padding: 2.5rem 0 4rem;
    }
}
