/* * @intecion/ipal-kit/fluid.css — fluid type & spacing scale (variables only, no classes). * Scales smoothly from a 360px to a 1280px viewport; rem-based, so browser zoom and * user font size still work (WCAG 1.4.4). Opt-in: * * @import "tailwindcss"; * @import "@intecion/ipal-kit/fluid.css"; * @theme inline { * --text-display: var(--ipal-fs-display); * --text-h1: var(--ipal-fs-h1); * --text-h2: var(--ipal-fs-h2); * --text-h3: var(--ipal-fs-h3); * --text-lead: var(--ipal-fs-lg); * --spacing-section: var(--ipal-space-section); * --spacing-gutter: var(--ipal-space-gutter); * --spacing-gap: var(--ipal-space-gap); * } * → text-h1, text-display, py-section, px-gutter, gap-gap * * The design (DESIGN.md) decides the numbers: override any variable in the project's * :root — the plugin only removes the clamp() maths from every project. */ :root { --ipal-fs-sm: clamp(0.875rem, 0.8505rem + 0.1087vw, 0.9375rem); /* 0.875→0.9375rem · small print, captions */ --ipal-fs-base: clamp(1rem, 0.9511rem + 0.2174vw, 1.125rem); /* 1→1.125rem · body text */ --ipal-fs-lg: clamp(1.125rem, 1.0272rem + 0.4348vw, 1.375rem); /* 1.125→1.375rem · lead / intro */ --ipal-fs-h3: clamp(1.25rem, 1.0543rem + 0.8696vw, 1.75rem); /* 1.25→1.75rem · h3 */ --ipal-fs-h2: clamp(1.5rem, 1.1087rem + 1.7391vw, 2.5rem); /* 1.5→2.5rem · h2 — section headings */ --ipal-fs-h1: clamp(2rem, 1.413rem + 2.6087vw, 3.5rem); /* 2→3.5rem · h1 — page heading */ --ipal-fs-display: clamp(2.5rem, 1.7174rem + 3.4783vw, 4.5rem); /* 2.5→4.5rem · hero / display */ --ipal-space-gap: clamp(1rem, 0.6087rem + 1.7391vw, 2rem); /* 1→2rem · gap between items in a section */ --ipal-space-gutter: clamp(1rem, 0.413rem + 2.6087vw, 2.5rem); /* 1→2.5rem · container side padding */ --ipal-space-section: clamp(3rem, 1.2391rem + 7.8261vw, 7.5rem); /* 3→7.5rem · vertical padding of a section */ }