/* Design tokens — هوية بصرية تحريرية */
:root {
    /* Motion */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

    --duration-instant: 100ms;
    --duration-fast: 160ms;
    --duration-normal: 220ms;
    --duration-slow: 280ms;

    /* Editorial palette */
    --color-cream: #fdfbf7;
    --color-white: #fff;
    --color-black-light: #231f20;
    --color-ray: #666666;
    --color-gray-light: #ddd;
    --color-gray-bg: #f5f5f5;
    --color-hover-lighte: rgb(245 240 234);
    --color-cinnabar: #db3c1d;
    --color-editorial-green: #1a4d3e;
    --color-editorial-blue: #2563eb;
    --color-author: #e8651a;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Z-index */
    --z-header: 100;
    --z-mobile-menu: 500;
    --z-menu-close: 510;
    --z-modal: 600;
    --z-tree-fullscreen: 700;

    --header-height: 64px;
    --header-height-mobile: 56px;
    --vh-full: 100dvh;
    --touch-target: 52px;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-instant: 0ms;
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
    }
}

a,
button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}
