/* ─────────────────────────────────────────
   Mashaweeri — Base CSS
   Mobile-first design tokens & reset
   ───────────────────────────────────────── */

:root {
    /* Colors */
    --color-primary:       #1a56db;
    --color-primary-dark:    #1e429f;
    --color-primary-light:   #e1effe;
    --color-success:         #057a55;
    --color-success-bg:      #def7ec;
    --color-danger:          #c81e1e;
    --color-danger-bg:       #fde8e8;
    --color-warning:         #d97706;
    --color-warning-bg:      #fef3c7;
    --color-text:            #111827;
    --color-text-muted:      #6b7280;
    --color-border:          #e5e7eb;
    --color-bg:              #f9fafb;
    --color-surface:         #ffffff;
    --color-header-bg:       #ffffff;

    /* Typography */
    --font-family:           'Segoe UI', Tahoma, Arial, sans-serif;
    --font-size-xs:          0.75rem;
    --font-size-sm:          0.875rem;
    --font-size-base:        1rem;
    --font-size-lg:          1.125rem;
    --font-size-xl:          1.25rem;
    --font-size-2xl:         1.5rem;
    --font-size-3xl:         1.875rem;
    --line-height:           1.5;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Layout */
    --container-max:    720px;
    --header-height:    56px;
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;
    --radius-full:      9999px;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg:  0 8px 24px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition: 150ms ease;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-muted  { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-danger  { color: var(--color-danger); }
