/* ---------------------------------------------------------------------------
 * H1 docs — theme overrides
 * ------------------------------------------------------------------------- */
:root  {
  --primary: #6735e8;
  --primary-foreground: #fff;
  --sidebar-primary: #6735e8;
}
.dark  {
  --primary: #a98bf5;
  --primary-foreground: #14121a;
  --sidebar-primary: #a98bf5;
}

/* ===========================================================================
 * CARDS DE MÓDULO — las genera `render_home.py` en la portada.
 *
 * Todo sale de tokens del theme (`--card`, `--border`, `--muted-foreground`,
 * `--primary`), así que acompañan claro y oscuro sin declarar nada aparte.
 * ======================================================================== */

.h1-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.h1-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  /* El theme subraya y colorea todos los <a> del contenido: acá no queremos eso. */
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.h1-card:hover {
  border-color: var(--primary);
  box-shadow: 0 1px 12px -4px var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
}

.h1-card-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--foreground);
}

.h1-card:hover .h1-card-title {
  color: var(--primary);
}

.h1-card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* Cuando todavía no hay ningún módulo publicado. */
.h1-empty {
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  color: var(--muted-foreground);
}

@media (prefers-reduced-motion: reduce) {
  .h1-card { transition: none; }
  .h1-card:hover { transform: none; }
}

/* ===========================================================================
 * 2. TIPOGRAFÍA
 *
 * El theme trae Geist (sans), Geist Mono y Inter, ya declaradas por @font-face
 * en su `css/geist.css`. Cambiar de fuente es reasignar estas dos variables.
 *
 * Para una fuente propia hay dos caminos:
 *   a) autohospedada: poné el .woff2 en `content/assets/fonts/` y declarala con
 *      un @font-face acá (como el ejemplo comentado abajo);
 *   b) externa: agregá la URL del CSS a `extra_css` en properdocs.base.yml —
 *      MkDocs acepta URLs absolutas ahí.
 * ======================================================================== */

/*
@font-face {
  font-family: "H1 Sans";
  src: url("fonts/H1Sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
*/

:root {
  /* Default: "Geist", sans-serif */
  /* --font-sans: "H1 Sans", "Geist", sans-serif; */

  /* Default: "Geist Mono", monospace — la de los bloques de código */
  /* --font-mono: "Geist Mono", ui-monospace, monospace; */

  /* Inter viene declarada y la usa el theme en algunos lugares */
  /* --font-inter: "Inter", sans-serif; */
}
