/* ==========================================================================
   Design Tokens — Aadnøy (delt med labs.aadnoy.no)
   A systematic set of CSS custom properties powering the entire design system.
   ========================================================================== */

:root {
  /* ------- Colors ------- */
  --color-bg:             #FAFAFA;
  --color-bg-white:       #FFFFFF;
  --color-bg-subtle:      #F3F4F6;
  --color-text:           #111827;
  --color-text-secondary: #6B7280;
  --color-text-muted:     #9CA3AF;
  --color-accent:         #2563EB;
  --color-accent-hover:   #1D4ED8;
  --color-accent-light:   #EFF6FF;
  --color-accent-text:    #FFFFFF;
  --color-border:         #E5E7EB;
  --color-border-hover:   #D1D5DB;
  --color-success:        #059669;
  --color-error:          #DC2626;
  --color-warning:        #D97706;

  /* ------- Typography ------- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:  0.75rem;   /* 12px */
  --text-sm:  0.875rem;  /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg:  1.125rem;  /* 18px */
  --text-xl:  1.25rem;   /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 4rem;      /* 64px */

  --line-height-tight:   1.15;
  --line-height-normal:  1.5;
  --line-height-relaxed: 1.75;

  /* ------- Spacing (8 px grid) ------- */
  --space-1:  0.25rem;   /*   4px */
  --space-2:  0.5rem;    /*   8px */
  --space-3:  0.75rem;   /*  12px */
  --space-4:  1rem;      /*  16px */
  --space-5:  1.25rem;   /*  20px */
  --space-6:  1.5rem;    /*  24px */
  --space-8:  2rem;      /*  32px */
  --space-10: 2.5rem;    /*  40px */
  --space-12: 3rem;      /*  48px */
  --space-16: 4rem;      /*  64px */
  --space-20: 5rem;      /*  80px */
  --space-24: 6rem;      /*  96px */
  --space-32: 8rem;      /* 128px */

  /* ------- Borders & Shadows ------- */
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow:    0 1px 3px rgba(0, 0, 0, 0.1),
               0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
               0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
               0 4px 6px  -4px rgba(0, 0, 0, 0.1);

  /* ------- Layout ------- */
  --max-width:        1200px;
  --max-width-narrow: 800px;
  --nav-height:       72px;

  /* ------- Motion ------- */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast:  150ms;
  --duration:       300ms;
  --duration-slow:  500ms;
}
