/* =============================================================
   main.css — Entry point. Imports all stylesheets in order.
   ============================================================= */

@import './tokens.css';
@import './base.css';
@import './layouts/grid.css';

/* Component styles */
@import './components/nav.css';
@import './components/buttons.css';
@import './components/hero.css';
@import './components/cards.css';
@import './components/misc.css';

/* Feature styles */
@import './components/breed.css';
@import './components/products.css';
@import './components/blog.css';

/* ── Prose / rich text ────────────────────────────────────────── */
.prose { max-width: 72ch; }

.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.prose h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose h4 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--color-heading);
}

.prose p { margin-bottom: var(--space-5); }

.prose ul, .prose ol {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.prose li { font-size: var(--text-base); color: var(--color-body); }

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(13,148,136,0.35);
  font-weight: var(--weight-medium);
  transition: text-decoration-color var(--transition-base), color var(--transition-base);
}

.prose a:hover { text-decoration-color: var(--color-primary); }

.prose strong {
  font-weight: var(--weight-bold);
  color: var(--color-heading);
}

.prose blockquote {
  border-left: 3px solid var(--color-primary);
  background: rgba(13,148,136,0.04);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--color-body);
}

.prose blockquote p { margin-bottom: 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.prose table thead tr { background: var(--color-bg-muted); }

.prose table th {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.prose table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-body);
}

.prose table tr:last-child td { border-bottom: none; }
.prose table tr:nth-child(even) { background: var(--color-bg-soft); }

/* ── Utility classes ──────────────────────────────────────────── */
.text-primary   { color: var(--color-primary); }
.text-heading   { color: var(--color-heading); }
.text-body      { color: var(--color-body);    }
.text-muted     { color: var(--color-muted);   }
.text-accent    { color: var(--color-accent);  }
.text-center    { text-align: center; }
.text-right     { text-align: right;  }
.font-bold      { font-weight: var(--weight-bold); }
.font-black     { font-weight: var(--weight-black); }
.font-serif     { font-family: var(--font-serif); }
.mt-auto        { margin-top: auto; }
.hidden         { display: none; }
