Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106/* ========================================================================== supram · tokens Every other file in the system reads from these custom properties. Override them on :root (or any subtree) to retheme. ========================================================================== */
:root { /* Colour lives in css/palettes/<name>.css: one palette is imported by the entry file, and every palette defines the same roles (--bg, --surface, --fg, --muted, --subtle, --hairline, --rule, --accent, --link, --focus, --selection, --ok, --warn, their --on-* text colours and --*-wash) plus its own named inks. Everything here is palette-independent. */
/* ── Grid ────────────────────────────────────────────────────────────── */ --columns: 12; --gutter: clamp(0.75rem, 0.5rem + 1.25vw, 1.5rem); --margin: clamp(1rem, 0.25rem + 3.5vw, 3rem); --page-max: 90rem; --grid-debug: color-mix(in oklab, var(--accent) 18%, transparent);
/* Container-query breakpoints used by grid.css. CSS cannot read custom properties inside @container, so these are documentation and for JS. */ --bp-sm: 30rem; --bp-md: 45rem; --bp-lg: 60rem; --bp-xl: 75rem;
/* ── Space (8px module) ──────────────────────────────────────────────── */ --unit: 0.5rem; --space-half: 0.25rem; /* half a unit, for tight gaps */ --space-1: calc(var(--unit) * 1); /* 0.5rem */ --space-2: calc(var(--unit) * 2); /* 1rem */ --space-3: calc(var(--unit) * 3); /* 1.5rem */ --space-4: calc(var(--unit) * 4); /* 2rem */ --space-6: calc(var(--unit) * 6); /* 3rem */ --space-8: calc(var(--unit) * 8); /* 4rem */ --space-12: calc(var(--unit) * 12); /* 6rem */ --space-16: calc(var(--unit) * 16); /* 8rem */
/* ── Rules ───────────────────────────────────────────────────────────── */ --rule-w: 2px; --rule-w-bold: 0.5rem;
/* ── Type ────────────────────────────────────────────────────────────── */ --font-sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif; --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
/* Fluid scale: minimum at a 320px viewport, maximum at 1440px. */ --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem); --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem); --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); --text-md: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); --text-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem); --text-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.375rem); --text-2xl: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem); --text-3xl: clamp(2.25rem, 1.4rem + 4.2vw, 4.5rem); --text-4xl: clamp(2.75rem, 1.5rem + 6.5vw, 6.25rem); --text-display: clamp(3.25rem, 1rem + 11vw, 9rem);
--leading-none: 1; --leading-tight: 1.1; --leading-snug: 1.25; --leading-normal: 1.5; --leading-loose: 1.7;
--weight-light: 300; --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700; --weight-black: 800;
--tracking-tight: -0.02em; --tracking-normal: 0; --tracking-wide: 0.04em; --tracking-caps: 0.08em;
--measure: 65ch; --measure-narrow: 45ch; --measure-wide: 80ch;
/* ── Motion ──────────────────────────────────────────────────────────── */ --duration-fast: 120ms; /* hover, focus, toggles */ --duration: 180ms; /* most transitions */ --duration-slow: 250ms; /* panels, dialogs, drawers */ --ease: cubic-bezier(0.2, 0.7, 0.2, 1);}
/* Dark mode follows the OS unless data-theme pins it; the palette files switch their colours on the same conditions. Pinning a theme also tells the browser which scheme to draw native controls and scrollbars in. */:root[data-theme="light"] { color-scheme: light; }:root[data-theme="dark"] { color-scheme: dark; }
/* ── Reduced motion ────────────────────────────────────────────────────── The durations go to zero, so everything that transitions with them stops together. A project that keeps an animation on purpose gives it its own duration. */@media (prefers-reduced-motion: reduce) { :root { --duration-fast: 0ms; --duration: 0ms; --duration-slow: 0ms; }}