/*-----------------------------------------------------------------------------
 * Project : Ergane - Athena AI Hub
 * File    : public/css/variables.css
 * Stylesheet : design tokens
 * Author  : Johann Sievering
 * AI Support : Claude AI
 * Date    : 2026-09-30 Start of the implementation
 * Rev     : structure of prompt-atelier v2.4.6 public/css/variables.css; palette
 *           of spec chapter 14 §14.2 (olive-bronze, terracotta, slate, paper)
 * Rev     : 2026-09-30 Owner's review of the admin pages: the professional
 *           chrome of Matériel AV (solid header bar, muted table headers);
 *           primary moved to the deep blue of the owner's logo, olive kept as
 *           the secondary family (A-32: palette to validate on the demo build)
 * Version : 0.2.1
 *-----------------------------------------------------------------------------
 * Colours, semantic aliases, typography, spacing, radii, shadows, z-index.
 * Loaded first by every page; nothing else defines a raw colour.
 *---------------------------------------------------------------------------*/

:root {
    /* ── Brand ── */
    --blue:         #2B5F86;   /* primary: the header bar, headings, links — the logo's blue */
    --blue-50:      #E6EEF5;
    --blue-900:     #16334A;
    --terracotta:   #A8552E;   /* accent: primary actions, the current loop step */
    --terracotta-50:#F7E8DF;
    --terracotta-900:#5C2A12;
    --olive:        #5A5A2E;   /* secondary: the owl and the bench, supervisor surfaces */
    --olive-50:     #EEEEE2;
    --olive-900:    #2E2E14;

    /* ── Semantic ── */
    --green:        #1D7A45;
    --green-50:     #E4F4EA;
    --orange:       #854F0B;
    --orange-50:    #FAEEDA;
    --red:          #B3261E;
    --red-50:       #FBE4E4;

    /* ── Neutrals on warm paper ── */
    --gray:         #5B6573;
    --gray-border:  #DDE2E8;
    --gray-50:      #F1F3F6;
    --ink:          #1F2733;
    --bg:           #F5F6F8;
    --bg-card:      #FFFFFF;

    /* ── Aliases used by the components ── */
    --primary:        var(--blue);
    --primary-dark:   var(--blue-900);
    --primary-soft:   var(--blue-50);
    --accent:         var(--terracotta);
    --accent-dark:    var(--terracotta-900);
    --accent-soft:    var(--terracotta-50);
    --secondary:      var(--olive);
    --secondary-soft: var(--olive-50);
    --text:           var(--ink);
    --text-light:     var(--gray);
    --border:         var(--gray-border);
    --success:        var(--green);
    --success-soft:   var(--green-50);
    --warning:        var(--orange);
    --warning-soft:   var(--orange-50);
    --error:          var(--red);
    --error-soft:     var(--red-50);
    --focus:          #1F5FBF;   /* one focus colour, ≥ 3:1 on every surface (WCAG 2.4.7 / 1.4.11) */

    /* ── The header bar ── */
    --header-bg:      var(--blue);
    --header-text:    #FFFFFF;
    --header-height:  3.5rem;
    --footer-height:  2.75rem;

    /* ── Typography (body 16 px minimum, chapter 14 §14.2) ── */
    --font-family:  "Segoe UI", "Trebuchet MS", system-ui, -apple-system, Roboto, sans-serif;
    --font-mono:    ui-monospace, "Cascadia Mono", Consolas, monospace;
    --font-size-xs: 0.8125rem;
    --font-size-sm: 0.9375rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
    --font-size-2xl:clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
    --line-height:  1.5;

    /* ── Spacing ── */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;

    /* ── Shape ── */
    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 12px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(31, 39, 51, 0.06);
    --shadow:    0 2px 10px rgba(31, 39, 51, 0.10);

    /* ── Layout ── */
    --page-max: 80rem;
    --z-header: 100;
    --z-menu: 200;
}
