/* ============================================================
   DESIGN TOKENS
   All CSS custom properties for the CreateBud design system.
   Change values here to update the entire site.
============================================================ */

:root {

  /* --- Colors --- */
  --color-bg:      #FFFFFF;
  --color-surface: #F4F9F7;
  --color-border:  #DDE8E3;
  --color-accent:  #059669;
  --color-text:    #111827;
  --color-muted:   #6B7280;

  /* --- Typography --- */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --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:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */
  --text-7xl:  4.5rem;    /* 72px */

  --text-hero:          clamp(3rem, 7vw, 6rem);
  --text-section-title: clamp(1.875rem, 3vw, 3rem); /* 30px → 48px, fluid with viewport */

  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  --line-height-tight:   1.2;
  --line-height-snug:    1.375;
  --line-height-normal:  1.5;
  --line-height-relaxed: 1.625;

  /* --- Spacing (base unit: 0.5rem / 8px) --- */
  --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-28: 7rem;      /* 112px */

  /* --- Layout --- */
  --max-width:         1280px;
  --navbar-height:     4.5rem;
  --section-padding-y: 7rem;
  --section-padding-x: 1.5rem;

  /* --- Borders --- */
  --border-width:      1px;
  --border-radius-sm:  4px;
  --border-radius-md:  8px;
  --border-radius-lg:  12px;

  /* --- Transitions --- */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

  /* --- Breakpoints (reference only — use in media queries)
     sm:  640px
     md:  768px
     lg:  1024px
     xl:  1280px
  --------------------------------------------------------- */
}

/* --- Scale padding by viewport --- */
@media (min-width: 1024px) {
  :root {
    --section-padding-x: 2.5rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --section-padding-x: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding-y: 4.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding-y: 3.5rem;
    --section-padding-x: 1rem;
  }
}
