/* ========================================
   OPENMINDED BOT — UTILITIES
   ======================================== */

/* ----------------------------------------
   Typography
   ---------------------------------------- */
.text-hero {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.text-h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.text-h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4, 1rem);
  color: var(--text);
}

.text-h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.text-h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 65ch;
}

.text-body-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.text-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.text-muted {
  color: var(--text-muted);
}

.text-center { text-align: center; }

/* ----------------------------------------
   Inline Elements
   ---------------------------------------- */
strong, b {
  font-weight: 700;
  color: var(--text);
}

code {
  font-family: var(--font-mono);
  color: var(--color-secondary);
  background-color: var(--color-secondary-soft);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  font-size: 0.9em;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

a:hover {
  border-bottom-color: var(--color-secondary);
}

/* ----------------------------------------
   Layout Utilities
   ---------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

.section {
  padding-block: clamp(64px, 10vw, 120px);
}

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.max-w-600 { max-width: 600px; }

/* ----------------------------------------
   Grid Utilities
   ---------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ----------------------------------------
   Bento Grid
   ---------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.bento__item {
  grid-column: span 4;
}

.bento__item--large {
  grid-column: span 8;
}

.bento__item--full {
  grid-column: span 12;
}

@media (max-width: 768px) {
  .bento__item,
  .bento__item--large,
  .bento__item--full {
    grid-column: span 12;
  }
}

/* ----------------------------------------
   Selection (backup)
   ---------------------------------------- */
::selection {
  background: var(--accent);
  color: var(--text-inverse);
}
