/**
 * utilities.css — single-purpose helper classes.
 * Use sparingly; prefer composing components.
 */

/* Display */
.hidden { display: none !important; }
.block { display: block !important; }
.flex { display: flex !important; }
.grid { display: grid !important; }
.inline-flex { display: inline-flex !important; }

/* Text alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Text colour */
.text-ink { color: var(--ink) !important; }
.text-ink-soft { color: var(--ink-soft) !important; }
.text-ink-faded { color: var(--ink-faded) !important; }
.text-accent { color: var(--accent) !important; }
.text-white { color: #fff !important; }

/* Background */
.bg-paper { background: var(--paper) !important; }
.bg-paper-soft { background: var(--paper-soft) !important; }
.bg-ink { background: var(--ink) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-accent-soft { background: var(--accent-soft) !important; }

/* Margin top — used for inserting vertical rhythm */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

/* Padding */
.p-0 { padding: 0 !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }

/* Width helpers */
.w-full { width: 100% !important; }
.max-w-content { max-width: var(--content-width) !important; }
.max-w-wide { max-width: var(--content-width-wide) !important; }

/* Flex helpers */
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-1 { gap: var(--space-1) !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-3) !important; }
.gap-4 { gap: var(--space-4) !important; }

/* Font weight */
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-black { font-weight: 800 !important; }

/* Font family */
.font-display { font-family: var(--font-display) !important; }
.font-serif { font-family: var(--font-serif) !important; }
.font-mono { font-family: var(--font-mono) !important; }

/* Line height */
.leading-tight { line-height: 1.2 !important; }
.leading-snug { line-height: 1.4 !important; }
.leading-normal { line-height: 1.6 !important; }
.leading-relaxed { line-height: 1.7 !important; }
