/* Royal Capital Solutions, design system v2: tokens
   "Precise emerald": a modern grotesk, hairline structure, data UI on
   glass, and the logo's forest green pushed from quiet to luminous.
   Components use the semantic roles (section 2), never primitives.

   CONTENTS
   1. Primitives
   2. Semantic roles
   3. Type
   4. Space and grid
   5. Shape, glass, elevation
   6. Motion
   ============================================================ */

:root {
    /* ============================================================
       1. PRIMITIVES
       ============================================================ */
    /* Neutrals, faintly green so they sit with the brand */
    --n-0:   #FFFFFF;
    --n-50:  #F3F4F1;   /* canvas */
    --n-100: #EBEDE8;   /* grey tile */
    --n-200: #DFE2DC;   /* hairline */
    --n-300: #C5CBC4;   /* strong hairline, ruler ticks */
    --n-500: #566059;   /* tertiary text, 5.5:1 on grey tile */
    --n-700: #3F4A44;   /* secondary text */
    --n-950: #0C120F;   /* ink */

    /* Greens: the logo's forest #1F6B34 at the center of the ramp */
    --g-50:  #E3F2E7;   /* mint */
    --g-300: #9FE3B4;   /* lumen: marks and figures on dark only */
    --g-400: #5BC48A;   /* jade */
    --g-500: #22A55B;   /* emerald signal: dots, active ticks */
    --g-600: #1F6B34;   /* forest, the logo */
    --g-800: #0B3B24;
    --g-900: #062A19;   /* deep tile */

    --champagne: #E9DCB0; /* highlights inside the silk material only */

    /* ============================================================
       2. SEMANTIC ROLES
       ============================================================ */
    --bg:              var(--n-50);
    --surface:         var(--n-0);
    --surface-grey:    var(--n-100);
    --surface-deep:    var(--g-900);
    --surface-forest:  var(--g-600);
    --surface-mint:    var(--g-50);
    --surface-trust:   var(--g-50);   /* quiet trust cards; ink 16.0:1, forest 5.6:1 */

    --text:            var(--n-950);
    --text-2:          var(--n-700);
    --text-3:          var(--n-500);
    --text-brand:      var(--g-600);
    --text-brand-strong: var(--g-800); /* chip text, 10.4:1 on mint */
    --text-on-deep:    var(--n-0);
    --text-on-deep-2:  #B9C9BF;
    --text-lumen:      var(--g-300);

    --line:            var(--n-200);
    --line-strong:     var(--n-300);
    --line-control:    #7F8982;   /* control edges: 3.3:1 on canvas, 3.1:1 on grey, 3.6:1 on white */
    --line-on-deep:    rgb(255 255 255 / 0.14);

    --action:          var(--n-950);  /* ink pill */
    --action-hover:    var(--g-800);
    --on-action:       var(--n-0);
    --action-tab:      var(--g-500);  /* signal icon button */
    --signal:          var(--g-500);
    --focus:           var(--g-600);
    --error:           #B42318;

    /* ============================================================
       3. TYPE
       Geist for everything readable, Geist Mono for figures and data
       labels only. The serif lives in the logo, not the interface.
       ============================================================ */
    --font:      "Geist", "Helvetica Neue", Helvetica, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --fs-micro: 0.75rem;     /* 12, mono labels */
    --fs-xs:    0.8125rem;   /* 13 */
    --fs-sm:    0.9375rem;   /* 15 */
    --fs-base:  1.0625rem;   /* 17 */
    --fs-lg:    1.25rem;     /* 20 */
    --fs-xl:    1.625rem;    /* 26 */
    --fs-2xl:   2.25rem;     /* 36 */
    --fs-3xl:   clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem);   /* 36 → 56 */
    --fs-hero:  clamp(2.75rem, 1rem + 5.2vw, 5.75rem);    /* 44 → 92 */
    --fs-figure: clamp(3rem, 2rem + 3vw, 4.5rem);          /* data figures */

    --lh-hero: 0.95;
    --lh-tight: 1.05;
    --lh-head: 1.15;
    --lh-body: 1.6;

    --tr-hero: -0.052em;
    --tr-head: -0.035em;
    --tr-ui:   -0.01em;
    --tr-mono: 0.02em;

    /* ============================================================
       4. SPACE AND GRID (4px base)
       ============================================================ */
    --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
    --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem;
    --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem; --s-32: 8rem;

    --container: 80rem;                         /* 1280 */
    --gutter: clamp(1rem, 0.3rem + 3vw, 2.5rem);
    --bento-gap: clamp(0.5rem, 0.3rem + 0.6vw, 0.875rem);  /* 8 → 14 */

    /* ============================================================
       5. SHAPE, GLASS, ELEVATION
       Two radii plus chips. Nested: card 20 = control 12 + 8 inset.
       ============================================================ */
    --r-card: 1.25rem;     /* 20: every card and tile */
    --r-control: 0.75rem;  /* 12: buttons, inputs, any panel inside a card */
    --r-chip: 999px;       /* full pills are for chips only */
    /* Older names, kept so existing pages resolve to the two radii */
    --r-pill: var(--r-chip);
    --r-xs: var(--r-control);
    --r-sm: var(--r-control);
    --r-glass: var(--r-control);
    --r-tile: var(--r-card);

    --card-pad: clamp(1rem, 0.7rem + 0.8vw, 1.5rem); /* shared inner padding, 16 to 24 */

    /* Light glass: on photos and deep tiles. 0.80 keeps ink above 10:1 */
    --glass-light:   rgb(255 255 255 / 0.80);
    --glass-light-edge: rgb(255 255 255 / 0.65);
    /* Dark glass: on photos where white text sits on the glass */
    --glass-dark:    rgb(6 42 25 / 0.55);
    --glass-dark-edge: rgb(255 255 255 / 0.18);
    /* Frost: on the deep and forest tiles */
    --glass-frost:   rgb(255 255 255 / 0.10);
    --glass-blur: 22px;

    --shadow-1: 0 1px 2px rgb(12 18 15 / 0.06), 0 1px 1px rgb(12 18 15 / 0.04);
    --shadow-2: 0 2px 4px rgb(12 18 15 / 0.06), 0 12px 32px rgb(12 18 15 / 0.12);
    --inner-light: inset 0 1px 0 rgb(255 255 255 / 0.5);

    /* ============================================================
       6. MOTION
       ============================================================ */
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --t-press: 120ms;
    --t-ui: 200ms;
    --t-slow: 420ms;
}
