@layer utilities {
/* ═══ Utility Classes ═══ */

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

/* Flex */
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.p-4   { padding: var(--space-4); }
.p-6   { padding: var(--space-6); }
.p-8   { padding: var(--space-8); }

/* Text */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-xs  { font-size: var(--text-xs); }
.text-sm  { font-size: var(--text-sm); }
.text-md  { font-size: var(--text-md); }
.text-lg  { font-size: var(--text-lg); }
.text-xl  { font-size: var(--text-xl); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-ink   { color: var(--ink); }
.text-gold  { color: var(--gold); }
.text-berry { color: var(--berry); }
.font-display { font-family: var(--font-display); }
.font-handwritten { font-family: var(--font-handwritten); }
.font-semibold { font-weight: 600; }
.font-bold  { font-weight: 700; }
.italic     { font-style: italic; }

/* Width */
.w-full { width: 100%; }
.max-w-narrow { max-width: var(--max-width-narrow); }
.max-w-mid    { max-width: var(--max-width-mid); }
.max-w        { max-width: var(--max-width); }
.mx-auto      { margin-left: auto; margin-right: auto; }

/* Animate on load */
.anim-in {
  animation: fadeInUp 0.7s var(--ease-out) both;
}
.anim-in-1 { animation-delay: 0.1s; }
.anim-in-2 { animation-delay: 0.2s; }
.anim-in-3 { animation-delay: 0.3s; }
.anim-in-4 { animation-delay: 0.4s; }
.anim-in-5 { animation-delay: 0.5s; }
.anim-in-6 { animation-delay: 0.6s; }

/* Scroll reveal (set by stimulus) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

}
