/* ==========================================================================
   Printlane — design tokens
   Extracted from the approved mockups. Every colour, radius and shadow in the
   product comes from here; no view file hard-codes a hex value.

   The neutral ramp is very slightly green-tinted rather than pure grey, which
   is what makes the emerald brand read as deliberate instead of applied.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* ---------- brand ---------- */
  --brand-50:  #e9f8f1;
  --brand-100: #d2f1e3;
  --brand-200: #a7e3c8;
  --brand-300: #6fcfa6;
  --brand-400: #35b383;
  --brand-500: #14946a;
  --brand-600: #0f7a56;      /* primary buttons, active nav text */
  --brand-700: #0c6146;
  --brand-800: #0a4d38;
  --brand-900: #073a2b;
  --brand-ink: #ffffff;      /* text on a brand-filled surface */

  /* ---------- neutrals (green-tinted) ---------- */
  --n-0:   #ffffff;
  --n-25:  #fbfcfc;
  --n-50:  #f6f8f8;          /* page background */
  --n-100: #eef2f1;
  --n-200: #e3e9e7;          /* hairlines */
  --n-300: #cfd8d5;
  --n-400: #a8b5b1;
  --n-500: #7d8c88;
  --n-600: #5f706b;          /* secondary text */
  --n-700: #44534f;
  --n-800: #2a3734;
  --n-900: #101e1a;          /* primary text */

  /* ---------- status ---------- */
  --ok:        #15803d;
  --ok-bg:     #dcfce7;
  --ok-border: #a7e3c8;
  --warn:        #b45309;
  --warn-bg:     #fef3c7;
  --warn-border: #fcd98a;
  --danger:        #b91c1c;
  --danger-bg:     #fee2e2;
  --danger-border: #f7b4b1;
  --info:        #0b6bb5;
  --info-bg:     #e0f0fb;
  --info-border: #a8d3f0;

  /* semantic aliases used by components */
  --surface:    var(--n-0);
  --surface-2:  var(--n-50);
  --surface-3:  var(--n-100);
  --page:       var(--n-50);
  --line:       var(--n-200);
  --line-2:     var(--n-300);
  --ink:        var(--n-900);
  --ink-2:      var(--n-600);
  --ink-3:      var(--n-500);
  --accent:     var(--brand-600);
  --accent-bg:  var(--brand-50);
  --accent-line:var(--brand-200);

  /* ---------- geometry ---------- */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;

  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-7: 32px;  --sp-8: 40px;  --sp-9: 56px;

  --sidebar-w: 264px;
  --topbar-h: 62px;
  --maxw: 1540px;
  --gutter: clamp(16px, 2.4vw, 28px);

  /* ---------- elevation ---------- */
  --sh-xs: 0 1px 2px rgb(16 30 26 / .045);
  --sh-sm: 0 1px 2px rgb(16 30 26 / .05), 0 2px 6px rgb(16 30 26 / .04);
  --sh-md: 0 2px 4px rgb(16 30 26 / .05), 0 10px 24px rgb(16 30 26 / .07);
  --sh-lg: 0 12px 44px rgb(16 30 26 / .16);
  --ring:  0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);

  /* ---------- type ---------- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          system-ui, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --t-xs:   .6875rem;  /* 11 */
  --t-sm:   .75rem;    /* 12 */
  --t-base: .8125rem;  /* 13 */
  --t-md:   .875rem;   /* 14 */
  --t-lg:   1rem;      /* 16 */
  --t-xl:   1.125rem;  /* 18 */
  --t-2xl:  1.375rem;  /* 22 */
  --t-3xl:  1.75rem;   /* 28 */
  --t-4xl:  clamp(1.75rem, 3.6vw, 2.25rem);
  --t-num:  clamp(2.2rem, 6vw, 3.25rem);   /* the big 300/500 figure */

  --speed: 160ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --n-0:   #0d1412;
    --n-25:  #101816;
    --n-50:  #0a110f;
    --n-100: #141d1a;
    --n-200: #1f2a27;
    --n-300: #2c3a36;
    --n-400: #465651;
    --n-500: #6d7f7a;
    --n-600: #93a39e;
    --n-700: #b6c3bf;
    --n-800: #d6dedb;
    --n-900: #eaf1ee;

    --brand-600: #35b383;
    --brand-500: #45c293;
    --brand-ink: #06120d;
    --accent-bg: #10251d;
    --accent-line: #1d4535;

    --ok: #4ade80;        --ok-bg: #0e2a1a;      --ok-border: #1c5435;
    --warn: #f0b545;      --warn-bg: #2d2210;    --warn-border: #5a4418;
    --danger: #ff8b80;    --danger-bg: #311917;  --danger-border: #5e2b27;
    --info: #63b3ed;      --info-bg: #10263a;    --info-border: #1d4466;

    --surface: #121b18;
    --surface-2: #0e1715;
    --surface-3: #18221f;
    --page: #0a110f;

    --sh-xs: 0 1px 2px rgb(0 0 0 / .4);
    --sh-sm: 0 1px 2px rgb(0 0 0 / .5);
    --sh-md: 0 2px 6px rgb(0 0 0 / .45), 0 12px 30px rgb(0 0 0 / .4);
    --sh-lg: 0 16px 56px rgb(0 0 0 / .6);
  }
}

:root[data-theme="dark"] {
  --n-0:#0d1412; --n-25:#101816; --n-50:#0a110f; --n-100:#141d1a;
  --n-200:#1f2a27; --n-300:#2c3a36; --n-400:#465651; --n-500:#6d7f7a;
  --n-600:#93a39e; --n-700:#b6c3bf; --n-800:#d6dedb; --n-900:#eaf1ee;
  --brand-600:#35b383; --brand-500:#45c293; --brand-ink:#06120d;
  --accent-bg:#10251d; --accent-line:#1d4535;
  --ok:#4ade80; --ok-bg:#0e2a1a; --ok-border:#1c5435;
  --warn:#f0b545; --warn-bg:#2d2210; --warn-border:#5a4418;
  --danger:#ff8b80; --danger-bg:#311917; --danger-border:#5e2b27;
  --info:#63b3ed; --info-bg:#10263a; --info-border:#1d4466;
  --surface:#121b18; --surface-2:#0e1715; --surface-3:#18221f; --page:#0a110f;
  --sh-xs: 0 1px 2px rgb(0 0 0 / .4);
  --sh-sm: 0 1px 2px rgb(0 0 0 / .5);
  --sh-md: 0 2px 6px rgb(0 0 0 / .45), 0 12px 30px rgb(0 0 0 / .4);
  --sh-lg: 0 16px 56px rgb(0 0 0 / .6);
}
