/* ============================================================
 * Dietcon Design System — Base
 *
 * Reset mínimo escopado em `.ds-scope` — não afeta elementos
 * fora do preview. Não mexer em global.css / Hyper.
 * ============================================================ */

.ds-scope {
  font-family: var(--ds-font-family-sans);
  font-size: var(--ds-font-size-md);
  line-height: var(--ds-line-height-base);
  color: var(--ds-text-primary);
  background-color: var(--ds-bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ds-scope *,
.ds-scope *::before,
.ds-scope *::after {
  box-sizing: border-box;
}

.ds-scope h1,
.ds-scope h2,
.ds-scope h3,
.ds-scope h4,
.ds-scope h5,
.ds-scope h6 {
  margin: 0 0 var(--ds-space-2) 0;
  font-weight: var(--ds-font-weight-semibold);
  line-height: var(--ds-line-height-tight);
  color: var(--ds-text-primary);
}

.ds-scope h1 { font-size: var(--ds-font-size-4xl); }
.ds-scope h2 { font-size: var(--ds-font-size-3xl); }
.ds-scope h3 { font-size: var(--ds-font-size-2xl); }
.ds-scope h4 { font-size: var(--ds-font-size-xl); }
.ds-scope h5 { font-size: var(--ds-font-size-lg); }
.ds-scope h6 { font-size: var(--ds-font-size-md); }

.ds-scope p {
  margin: 0 0 var(--ds-space-3) 0;
  color: var(--ds-text-secondary);
}

.ds-scope a {
  color: var(--ds-text-link);
  text-decoration: none;
  transition: color var(--ds-transition-fast);
}

.ds-scope a:hover {
  color: var(--ds-color-primary-700);
  text-decoration: underline;
}

.ds-scope code {
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-font-size-sm);
  padding: 2px 6px;
  background-color: var(--ds-bg-muted);
  border-radius: var(--ds-radius-sm);
  color: var(--ds-color-neutral-800);
}

.ds-scope pre {
  font-family: var(--ds-font-family-mono);
  font-size: var(--ds-font-size-sm);
  line-height: 1.6;
  padding: var(--ds-space-4);
  background-color: var(--ds-color-neutral-900);
  color: var(--ds-color-neutral-100);
  border-radius: var(--ds-radius-md);
  overflow-x: auto;
  margin: 0;
}

.ds-scope hr {
  border: none;
  border-top: 1px solid var(--ds-border-subtle);
  margin: var(--ds-space-6) 0;
}

.ds-scope ::selection {
  background-color: var(--ds-color-primary-200);
  color: var(--ds-color-primary-900);
}
