/*
 * Afrilima design tokens (draft, waiting for Joel's approval).
 * Source: Joel's mockups in OneDrive afrilima.com/mockup, read together with the
 * live member pages. Rules for using them are in README.md next to this file.
 *
 * Y owns the website stylesheets. This file is the reference that Y copies
 * into server/resources/css/ once Joel approves it.
 */

:root {
    /* Brand greens */
    --af-forest-900: #123b27;   /* top bar, app bar, hero cards, sidebar text */
    --af-forest-700: #1f513b;   /* outline buttons, links, headings on light */
    --af-leaf-600: #2f8a3a;     /* on state: toggles, checkboxes, radios, ticks */
    --af-sprout-400: #6cc24a;   /* logo leaf, thin rule under desktop top bar */
    --af-mint-100: #e4f4d8;     /* selected nav, icon tiles, info boxes, tint buttons */
    --af-mint-50: #f1f9ec;      /* selected card fill */

    /* Harvest yellow: the one primary action on a screen */
    --af-harvest-400: #fec22a;
    --af-harvest-500: #f2b200;  /* hover and pressed */
    --af-butter-100: #fff4cc;   /* sponsored panels, pending badges */

    /* Clay: warm accent from the Afrilima profile mockup */
    --af-clay-600: #a54026;     /* timeline dots, small warm accents */
    --af-blush-50: #f9eee7;     /* desktop sidebar ground */

    /* Neutrals (green-biased, never pure grey) */
    --af-ivory: #fbf8ef;        /* page ground */
    --af-white: #ffffff;        /* cards, inputs */
    --af-ink: #16241b;          /* titles */
    --af-body: #3a463e;         /* running text */
    --af-muted: #5e6b62;        /* meta text, helper text, placeholders */
    --af-line: #e2e5df;         /* card borders, dividers */
    --af-line-strong: #b6c5b8;  /* input borders */

    /* Status (separate from brand colour) */
    --af-success-fg: #1f6b35;  --af-success-bg: #e4f4d8;
    --af-pending-fg: #8a5a00;  --af-pending-bg: #fff4cc;
    --af-info-fg: #1d5fa8;     --af-info-bg: #e6f0fb;
    --af-danger-fg: #b42318;   --af-danger-bg: #fde7e7;
    --af-warning-fg: #b54708;  --af-warning-bg: #fdecdc;
    --af-neutral-fg: #4b5563;  --af-neutral-bg: #eef0ee;

    /* Type */
    --af-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --af-text-xs: 0.75rem;    /* 12px  captions, badge text */
    --af-text-sm: 0.875rem;   /* 14px  meta, table cells on desktop */
    --af-text-md: 1rem;       /* 16px  body on desktop */
    --af-text-lg: 1.125rem;   /* 18px  body on phone, lead text */
    --af-text-xl: 1.25rem;    /* 20px  card titles */
    --af-text-2xl: 1.5rem;    /* 24px  section titles */
    --af-text-3xl: 1.875rem;  /* 30px  page title on phone */
    --af-text-4xl: 2.25rem;   /* 36px  page title on desktop */
    --af-weight-regular: 400;
    --af-weight-semibold: 600;
    --af-weight-bold: 700;
    --af-weight-heavy: 800;

    /* Space (4px steps) */
    --af-space-1: 4px;  --af-space-2: 8px;  --af-space-3: 12px; --af-space-4: 16px;
    --af-space-5: 20px; --af-space-6: 24px; --af-space-8: 32px; --af-space-10: 40px;

    /* Radius */
    --af-radius-input: 8px;
    --af-radius-button: 10px;   /* 12px on phone */
    --af-radius-card: 12px;     /* 16px on phone */
    --af-radius-tile: 12px;     /* icon tiles */
    --af-radius-pill: 999px;    /* chips, badges, segmented controls */

    /* Elevation: borders first, one soft shadow only */
    --af-shadow-card: 0 1px 2px rgba(18, 59, 39, 0.06), 0 2px 8px rgba(18, 59, 39, 0.05);

    /* Sizes */
    --af-touch: 48px;           /* minimum tap target */
    --af-icon-tile: 48px;       /* 56px on phone list rows */
    --af-topbar: 64px;          /* 56px on phone */
    --af-sidebar: 240px;
    --af-rail: 300px;
    --af-content-max: 1200px;
}

@media (max-width: 640px) {
    :root {
        --af-radius-button: 12px;
        --af-radius-card: 16px;
        --af-icon-tile: 56px;
        --af-topbar: 56px;
    }
}
