/* Smart-175 — reset y tipografía base */

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--page);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 8px;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); }

.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }

img, svg { max-width: 100%; }

::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* contenedores anchos con scroll propio: nunca scroll horizontal del body */
.scroll-x { overflow-x: auto; }

input[type="file"] { display: none; }

input[type="number"],
input[type="text"],
input[type="search"],
select {
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  width: 100%;
}

/* los <textarea> (pegar FASTA/primers, Sanger) no tenían estilo propio y
   salían con el del navegador — en oscuro, un bloque gris claro */
textarea {
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  width: 100%;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: var(--ink-muted); opacity: 1; }

input[type="range"] { accent-color: var(--accent); }

/* Respeto global a "reducir movimiento": corta transiciones, animaciones y
   desplazamientos suaves en todo el árbol. Los bloques de motivo/esqueleto ya
   van tras `prefers-reduced-motion: no-preference`; esto cubre el resto
   (transiciones de hover, .ql-skip-link, scrollIntoView, etc.). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
