/* Consuma — Responsive & mobile tokens
   Breakpoints use Tailwind v4 --breakpoint-* naming. The --fluid-* sizes are
   consumed by tokens/typography.css so display type scales with the viewport.
   Patterns (drawer nav, pill composer) are documented in
   guidelines/mobile.card.html and readme.md. */

:root {
  /* Breakpoints */
  --breakpoint-sm: 40rem;  /* 640px — below: composer collapses to a pill */
  --breakpoint-md: 48rem;  /* 768px — below: sidebar becomes the hamburger drawer */
  --breakpoint-lg: 64rem;  /* 1024px */
  --breakpoint-xl: 80rem;  /* 1280px */

  /* Touch & device */
  --tap-target: 2.75rem;   /* 44px — minimum hit size for touch controls */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Layout */
  --sidebar-width: 264px;  /* desktop nav rail & mobile drawer width */
  --page-pad: clamp(1rem, 0.35rem + 2.9vw, 2rem); /* content gutter: 16px @ 360 → 32px @ 1024+ */

  /* Fluid display sizes, referenced by --text-* in typography.css:
     2xl 34→48px · xl 30→40px · lg 24→32px · h1 21→24px */
  --fluid-display-2xl: clamp(2.125rem, 1.55rem + 2.4vw, 3rem); /* @kind other */
  --fluid-display-xl: clamp(1.875rem, 1.45rem + 1.8vw, 2.5rem); /* @kind other */
  --fluid-display-lg: clamp(1.5rem, 1.26rem + 1vw, 2rem); /* @kind other */
  --fluid-h1: clamp(1.3125rem, 1.22rem + 0.4vw, 1.5rem); /* @kind other */
}
