/* ==========================================================================
   Learning Center design tokens
   Brand: AI with Mayank (main site: near-black, white, gold #eab308,
   Plus Jakarta Sans + Playfair Display). The Learning Center is light by default,
   with a dark theme that mirrors the main site.
   Imported by learn.css. Change colours, type and spacing here only.
   ========================================================================== */

:root {
    /* ---- Type ---------------------------------------------------------- */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --mono: ui-monospace, SFMono-Regular, 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;

    --fs-xs: 0.78rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.3rem;
    --fs-xl: clamp(1.5rem, 2.4vw, 1.85rem);
    --fs-2xl: clamp(1.9rem, 3.6vw, 2.75rem);
    --fs-3xl: clamp(2.3rem, 4.6vw, 3.4rem);
    --fs-4xl: clamp(2.7rem, 6.4vw, 4.75rem);

    /* ---- Spacing (4px base) -------------------------------------------- */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
    --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
    --s-20: 80px; --s-24: 96px;
    --section-y: clamp(64px, 9vw, 112px);
    --wrap: 1920px;           /* wide, fluid layout: only the side gutter limits it (like the reference) */
    --gutter: clamp(16px, 4.5vw, 88px);

    /* ---- Radius & elevation -------------------------------------------- */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 26px;
    --r-pill: 999px;
    --lift: 0 1px 2px rgba(18, 16, 10, 0.04), 0 8px 24px rgba(18, 16, 10, 0.06);
    --lift-lg: 0 2px 6px rgba(18, 16, 10, 0.05), 0 22px 48px rgba(18, 16, 10, 0.1);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    /* ---- Colour: light (default) --------------------------------------- */
    --paper: #f7f5f0;          /* page background, warm paper */
    --surface: #ffffff;        /* cards */
    --surface-2: #f0ede5;      /* insets, tints */
    --surface-3: #e8e3d8;
    --line: #e4dfd3;
    --line-strong: #cfc8b8;
    --ink: #121212;            /* headings, primary buttons */
    --ink-2: #2b2b2f;          /* body text */
    --slate: #595962;          /* secondary text (7:1 on paper) */
    --faint: #7c7c85;          /* tertiary text (4.5:1 on paper) */

    --gold: #eab308;           /* brand accent: fills, highlights */
    --gold-ink: #865e00;       /* gold for text on light (5:1) */
    --gold-soft: #fbf0cc;
    --gold-mid: #f4d977;

    --tech: #2f5bea;  --tech-ink: #2449c7;  --tech-soft: #e8eefe;  --tech-mid: #b9c9fa;
    --nontech: #0f7a6e; --nontech-ink: #0b6a5f; --nontech-soft: #dff3ef; --nontech-mid: #9fd8cd;

    --green: #12805c; --green-soft: #e4f5ec;
    --red: #c2282d;   --red-soft: #fdecec;

    /* Inverse surfaces (ink sections, closing CTA) */
    --inv-bg: #0e0e10;
    --inv-surface: #18181b;
    --inv-line: rgba(255, 255, 255, 0.12);
    --inv-ink: #f4f4f5;
    --inv-muted: #b4b4bc;

    --focus: #b07c00;
    --code-bg: #15161a;
    --code-ink: #e6e8ee;

    /* Per-track "route" colour; tracks override below. Used by visuals.css too. */
    --route: var(--ink);
    --route-text: var(--ink);
    --route-soft: var(--surface-2);
    --route-mid: var(--line-strong);
    --on-route: #ffffff;

    color-scheme: light;
}

/* ---- Colour: dark ------------------------------------------------------ */
:root[data-theme="dark"] {
    --paper: #0b0b0c;
    --surface: #131315;
    --surface-2: #1a1a1d;
    --surface-3: #232327;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.17);
    --ink: #f4f4f5;
    --ink-2: #d6d6db;
    --slate: #a6a6ae;
    --faint: #8a8a93;

    --gold-ink: #f2c230;
    --gold-soft: rgba(234, 179, 8, 0.14);
    --gold-mid: rgba(234, 179, 8, 0.38);

    --tech: #6f8fff;  --tech-ink: #9cb2ff;  --tech-soft: rgba(111, 143, 255, 0.14); --tech-mid: rgba(111, 143, 255, 0.4);
    --nontech: #2cc9b4; --nontech-ink: #63e0cf; --nontech-soft: rgba(44, 201, 180, 0.13); --nontech-mid: rgba(44, 201, 180, 0.4);

    --green: #3ccf91; --green-soft: rgba(60, 207, 145, 0.13);
    --red: #f47c7c;   --red-soft: rgba(244, 124, 124, 0.13);

    --inv-bg: #141416;
    --inv-surface: #1d1d20;

    --focus: #eab308;
    --code-bg: #0f1013;
    --lift: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --lift-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 22px 48px rgba(0, 0, 0, 0.5);
    --on-route: #0b0b0c;

    color-scheme: dark;
}

/* ---- Track colours ----------------------------------------------------- */
.track-tech {
    --route: var(--tech); --route-text: var(--tech-ink); --route-soft: var(--tech-soft); --route-mid: var(--tech-mid);
}
.track-nontech {
    --route: var(--nontech); --route-text: var(--nontech-ink); --route-soft: var(--nontech-soft); --route-mid: var(--nontech-mid);
}
